/* ============================================================
   Korea Care – assets/css/product.css
   Estilos exclusivos para single-product.
   ============================================================ */

/* ── SINGLE PRODUCT LAYOUT ── */
.kc-single-product-wrap {
  display: flex; gap: 48px;
  padding: 36px 80px 60px;
  align-items: flex-start;
}
.kc-product-gallery { flex: 0 0 420px; max-width: 420px; }
.kc-product-summary { flex: 1; position: sticky; top: 84px; }

/* ── GALLERY ── */
.kc-gallery-main {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 20px; overflow: hidden; background: var(--pk-light);
  margin-bottom: 14px; cursor: zoom-in;
}
.kc-gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .2s;
}
.kc-gallery-main img.loading { opacity: .5; }

.kc-gallery-thumbs {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.kc-gallery-thumbs .kc-thumb {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
  cursor: pointer; border: 2.5px solid transparent;
  transition: border-color .2s; flex-shrink: 0;
}
.kc-gallery-thumbs .kc-thumb:hover,
.kc-gallery-thumbs .kc-thumb.active { border-color: var(--pk); }
.kc-gallery-thumbs .kc-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── PRODUCT SUMMARY ── */
.kc-product-cat-link {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--gold);
  margin-bottom: 8px;
}
.kc-product-cat-link:hover { text-decoration: underline; }

.kc-product-brand {
  font-size: 11px; color: #aaa; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}

.kc-product-title {
  font-size: 28px; font-weight: 900; line-height: 1.2;
  color: var(--txt); margin-bottom: 12px;
}

/* Star rating */
.kc-stars-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.kc-star-rating { color: #FFBA00; font-size: 16px; letter-spacing: 2px; }
.kc-star-rating .kc-star { color: #E0E0E0; }
.kc-rating-count { font-size: 13px; color: #888; }
.kc-rating-link { color: var(--gold); font-size: 13px; font-weight: 600; }
.kc-rating-link:hover { text-decoration: underline; }

/* Price */
.kc-product-price {
  margin-bottom: 18px;
}
.kc-product-price .price {
  font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1;
}
.kc-product-price .price ins { text-decoration: none; }
.kc-product-price .price del { font-size: 16px; color: #bbb; font-weight: 400; margin-right: 6px; }
.kc-price-install { font-size: 14px; color: #555; margin-top: 6px; font-weight: 500; }

/* Short desc */
.kc-short-desc { font-size: 14.5px; color: #555; line-height: 1.7; margin-bottom: 22px; }
.kc-short-desc p { margin: 0; }

/* Attributes (skin type chips) */
.kc-product-attrs { margin-bottom: 22px; }
.kc-attr-group { margin-bottom: 14px; }
.kc-attr-label { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.kc-attr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kc-chip {
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid #ddd; font-size: 12px; font-weight: 600;
  color: #555; cursor: pointer; transition: border-color .2s, color .2s, background .2s;
  user-select: none;
}
.kc-chip:hover, .kc-chip.selected {
  border-color: var(--pk); color: var(--pk); background: var(--pk-light);
}
.kc-chip.out-of-stock { opacity: .4; cursor: not-allowed; }

/* Shipping estimate */
.kc-cep-calc--single-product {
  max-width: 520px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1.5px solid #eee;
  border-radius: 14px;
  background: #fff;
}
.kc-cep-calc--single-product .kc-cep-calc-title {
  margin-bottom: 10px;
  font-size: 13px;
}
.kc-cep-calc--single-product .kc-cep-result { margin-top: 10px; }

/* Variable product select (hidden, driven by chips) */
.kc-product-variations select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #ddd; border-radius: 12px;
  font-size: 14px; color: var(--txt); outline: none;
  transition: border-color .2s; font-family: inherit;
  appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23888'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 34px; cursor: pointer;
}
.kc-product-variations select:focus { border-color: var(--pk); }

/* Qty + add to cart row */
.kc-cart-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: nowrap; }

/* Qty stepper */
.kc-qty-stepper {
  display: flex; align-items: center;
  border: 1.5px solid #ddd; border-radius: 30px; overflow: hidden;
}
.kc-qty-stepper button {
  width: 40px; height: 50px; background: #fafafa;
  border: none; cursor: pointer;
  font-size: 20px; font-weight: 300; color: #555;
  transition: background .2s;
}
.kc-qty-stepper button:hover { background: var(--pk-light); color: var(--pk); }
.kc-qty-stepper input {
  width: 48px; height: 50px; text-align: center;
  border: none; border-left: 1.5px solid #ddd; border-right: 1.5px solid #ddd;
  font-size: 16px; font-weight: 800; color: var(--txt); outline: none;
  font-family: inherit;
}
.kc-qty-stepper input::-webkit-inner-spin-button { display: none; }

/* Buttons */
.kc-add-to-cart-btn {
  flex: 1; min-width: 0; max-width: 320px;
  background: var(--gold); color: #fff;
  padding: 14px 24px; border-radius: 14px;
  font-size: 15px; font-weight: 800; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  white-space: nowrap; box-shadow: 0 4px 14px rgba(201,164,106,.35);
}
.kc-add-to-cart-btn svg,
.kc-buy-now-btn svg {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.kc-add-to-cart-btn:hover { background: var(--bronze); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,164,106,.45); }
.kc-add-to-cart-btn.loading { opacity: .7; pointer-events: none; }

.kc-buy-now-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: auto; max-width: 380px;
  background: transparent; color: var(--txt);
  padding: 13px 28px; border-radius: 14px;
  font-size: 15px; font-weight: 800;
  border: 2px solid var(--txt); cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap; text-decoration: none;
  margin-top: 10px;
}
.kc-buy-now-btn:hover { background: var(--txt); color: #fff; }

/* Trust icons */
.kc-trust-row {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding: 16px 0; border-top: 1px solid #f5f5f5; border-bottom: 1px solid #f5f5f5;
  margin-bottom: 22px;
}
.kc-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #666; }
.kc-trust-item svg { width: 18px; height: 18px; stroke: var(--pk); fill: none; stroke-width: 2; flex-shrink: 0; }

/* Share / wishlist row */
.kc-product-meta { font-size: 12px; color: #aaa; margin-top: 14px; }
.kc-product-meta span { margin-right: 14px; }
.kc-product-meta a { color: #aaa; }
.kc-product-meta a:hover { color: var(--pk); }

/* ── PRODUCT DESCRIPTION (full-width, below gallery+summary) ── */
.kc-product-description {
  padding: 40px 80px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.kc-product-description-inner {
  max-width: 860px;
}
.kc-product-description h2 {
  font-size: 22px; font-weight: 800; color: var(--txt);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.kc-desc-content {
  font-size: 15px; color: #444; line-height: 1.8;
}
.kc-desc-content p { margin-bottom: 14px; }
.kc-desc-content ul, .kc-desc-content ol { padding-left: 22px; margin-bottom: 14px; }
.kc-desc-content ul { list-style: disc; }
.kc-desc-content li { margin-bottom: 6px; }
.kc-desc-content h3, .kc-desc-content h4 { font-weight: 800; margin-bottom: 10px; margin-top: 20px; }
.kc-desc-content img { max-width: 100%; border-radius: 12px; margin: 10px 0; }
.kc-desc-content strong { color: var(--txt); }

/* ── PRODUCT TABS ── */
.kc-product-tabs { padding: 40px 80px; }
.kc-tabs-nav {
  display: flex; gap: 0;
  border-bottom: 2px solid #f0f0f0; margin-bottom: 32px;
}
.kc-tabs-nav a {
  padding: 12px 24px; font-size: 14px; font-weight: 700;
  color: #888; border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: color .2s, border-color .2s;
  text-decoration: none;
}
.kc-tabs-nav a.active { color: var(--pk); border-color: var(--pk); }
.kc-tabs-nav a:hover { color: var(--pk); }

.kc-tab-panel { display: none; }
.kc-tab-panel.active { display: block; }
.kc-tab-panel .woocommerce-Tabs-panel { font-size: 15px; color: #444; line-height: 1.75; }
.kc-tab-panel .woocommerce-Tabs-panel p { margin-bottom: 14px; }
.kc-tab-panel .woocommerce-Tabs-panel ul { padding-left: 20px; list-style: disc; }
.kc-tab-panel .woocommerce-Tabs-panel ul li { margin-bottom: 6px; }

/* Attributes table */
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce-product-attributes th { text-align: left; width: 220px; padding: 10px 16px 10px 0; font-size: 14px; font-weight: 700; color: #888; vertical-align: top; border-bottom: 1px solid #f5f5f5; }
.woocommerce-product-attributes td { padding: 10px 0; font-size: 14px; color: #444; border-bottom: 1px solid #f5f5f5; }

/* ── REVIEWS ── */
#reviews { padding: 0; }
.kc-reviews-summary { display: flex; align-items: center; gap: 30px; margin-bottom: 28px; }
.kc-rating-big { font-size: 64px; font-weight: 900; line-height: 1; color: var(--txt); }
.kc-rating-stars { color: #FFBA00; font-size: 22px; }
.kc-rating-bars { flex: 1; }
.kc-rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.kc-rating-bar-row span { font-size: 12px; color: #888; min-width: 40px; }
.kc-rating-bar-bg { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.kc-rating-bar-fill { height: 100%; background: #FFBA00; border-radius: 3px; }

.comment { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid #f5f5f5; }
.comment-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.comment-author cite { font-size: 14px; font-weight: 700; }
.comment-date { font-size: 12px; color: #aaa; margin-bottom: 6px; }
.woocommerce-review__content p { font-size: 14px; color: #444; line-height: 1.65; }
.star-rating { color: #FFBA00; font-size: 14px; margin-bottom: 6px; }

/* Review form */
#review_form { margin-top: 28px; }
#review_form h3 { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
#review_form .comment-form-rating { margin-bottom: 14px; }
#review_form .comment-form-rating label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
#review_form p.stars a { color: #FFBA00; font-size: 24px; }
#review_form .form-submit input[type="submit"] {
  background: var(--pk); color: #fff;
  padding: 12px 28px; border-radius: 28px;
  border: none; cursor: pointer; font-size: 14px; font-weight: 700;
  transition: background .2s;
}
#review_form .form-submit input[type="submit"]:hover { background: var(--gold); }

/* ── RELATED PRODUCTS ── */
.kc-related-products { padding: 40px 80px 60px; }
.kc-related-products h2 { font-size: 28px; font-weight: 800; margin-bottom: 28px; }
.kc-related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ── UPSELLS ── */
.kc-upsells { padding: 0 80px 40px; }
.kc-upsells h2 { font-size: 24px; font-weight: 800; margin-bottom: 22px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .kc-single-product-wrap { flex-direction: column; padding: 24px 30px 40px; }
  .kc-product-gallery { flex: none; width: 100%; max-width: 100%; }
  .kc-product-summary { position: static; }
  .kc-product-description { padding: 30px 30px 40px; }
  .kc-product-tabs, .kc-related-products, .kc-upsells { padding: 30px 30px 40px; }
  .kc-related-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .kc-single-product-wrap { padding: 20px 16px 40px; gap: 24px; }
  .kc-product-gallery { flex: none; width: 100%; max-width: 100%; }
  .kc-gallery-main { aspect-ratio: 4/3; max-height: 70vw; }
  .kc-product-title { font-size: 22px; }
  .kc-product-price .price { font-size: 26px; }
  .kc-cart-row { flex-wrap: wrap; }
  .kc-add-to-cart-btn { max-width: 100%; width: 100%; }
  .kc-buy-now-btn { max-width: 100%; width: 100%; }
  .kc-gallery-thumbs .kc-thumb { width: 58px; height: 58px; }
  .kc-product-tabs { padding: 24px 16px; }
  .kc-product-description { padding: 24px 16px; }
  .kc-tabs-nav a { padding: 10px 14px; font-size: 13px; }
  .kc-related-products { padding: 24px 16px 40px; }
  .kc-related-products h2 { font-size: 22px; }
  .kc-related-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .kc-upsells { padding: 0 16px 32px; }
  .kc-reviews-summary { flex-direction: column; }
  .kc-trust-row { gap: 10px; }
  .kc-product-attrs { margin-bottom: 16px; }
  .kc-cep-calc--single-product { max-width: 100%; padding: 13px; }
  .kc-qty-stepper button { width: 36px; }
  .kc-qty-stepper input { width: 40px; }
}
