/* ==========================================================================
   Product Single Page Styles
   Page /product/exfoliating-refining-serum/
   Exact styles extracted from post-189.css, post-198.css, and post-192.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Product Hero Section (Main Presentation)
   -------------------------------------------------------------------------- */
.product-hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 120px 40px;
  margin-bottom: 6.5%;
  background-image: url('../images/open-post-background.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.product-hero-container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 80px;
}

/* Left Column: Product Gallery (59% on desktop) */
.product-gallery-col {
  flex: 0 0 59%;
  max-width: 59%;
  display: flex;
  flex-direction: column;
}

.product-main-slider {
  position: relative;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.product-main-image-wrap {
  width: 100%;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
}

.product-main-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: opacity 0.25s ease;
}

/* Thumbnails row (6 columns, 10px gap) */
.product-thumbs-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
}

.product-thumb-item {
  aspect-ratio: 1 / 1;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition-fast), opacity var(--transition-fast);
  outline: none;
}

.product-thumb-item:hover {
  border-color: var(--color-tertiary);
}

.product-thumb-item.active {
  border-color: var(--color-primary);
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Right Column: Product Details (41% on desktop) */
.product-details-col {
  flex: 0 0 calc(41% - 80px);
  max-width: calc(41% - 80px);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Category taxonomy tag */
.product-meta-cat {
  font-family: var(--font-family-base);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: -10px;
}

.product-meta-cat a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-meta-cat a:hover {
  color: var(--color-primary);
}

/* Product title (Karla Local, 48px, weight 200, line-height 1.15) */
.product-title {
  font-family: 'Karla Local', var(--font-family-base);
  font-size: 48px;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--color-secondary);
  margin: 0;
  transition: all 0.3s;
}

/* Product short description */
.product-desc {
  font-family: var(--font-family-base);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text);
}

.product-desc p {
  margin: 0 0 16px 0;
}

.product-desc p:last-child {
  margin-bottom: 0;
}

.product-desc strong {
  font-weight: 700;
  color: var(--color-secondary);
}

/* Price (H5 typography: Karla, font-weight 400, color secondary) */
.product-price {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h5, 20px);
  font-weight: 400;
  line-height: var(--line-height-h5, 1.45);
  color: var(--color-secondary);
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. Product Tabs Section (Additional Information)
   -------------------------------------------------------------------------- */
.product-tabs-section {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 6.5% auto;
  padding: 0 40px;
}

.product-tabs-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.product-tab-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-family-base);
  font-size: var(--font-size-h4, 30px);
  font-weight: 300;
  color: var(--color-secondary);
  padding: 0 0 8px 0;
  letter-spacing: 0.5px;
  text-align: center;
}

.product-tab-title.active {
  color: var(--color-primary);
}

.product-tabs-content {
  width: 100%;
}

/* Attributes Table (shop_attributes from post-198.css) */
.product-attributes-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-family-base);
}

.product-attributes-table tr {
  border-bottom: 1px solid var(--color-border);
}

.product-attributes-table th {
  width: 30%;
  text-align: left;
  vertical-align: top;
  padding: 12px 20px 12px 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-h6, 15px);
  font-weight: 400;
  line-height: var(--line-height-h6, 1.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.product-attributes-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-body, 18px);
  font-weight: 300;
  line-height: var(--line-height-body, 1.45);
  color: var(--color-text);
}

.product-attributes-table td p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. Related Products Section (Elementor 192 from post-192.css & post-189.css)
   -------------------------------------------------------------------------- */
.product-related-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto 120px auto;
  padding: 0 40px;
}

.related-products-header {
  text-align: center;
  margin-bottom: 50px;
}

.related-products-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h3, 42px);
  font-weight: 300;
  line-height: var(--line-height-h3, 1.2);
  color: var(--color-secondary);
  margin: 0;
  text-align: center;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Single related product item (NO card background, NO card shadow) */
.related-product-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.related-product-media {
  width: 100%;
  margin-bottom: 20px;
  background: transparent;
}

.related-product-media a {
  display: block;
  width: 100%;
}

.related-product-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: all 0.3s ease;
  background: transparent;
}

.related-product-media a:hover .related-product-img {
  transform: scale(1.02);
}

.related-product-title {
  font-family: var(--font-family-base);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 5px 0;
}

.related-product-title a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-product-title a:hover {
  color: var(--color-primary);
}

.related-product-price {
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-tertiary);
  margin: 0 0 15px 0;
}

.related-product-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
  text-decoration: none;
  background: transparent;
  padding: 0 10px 0 2px;
  transition: color 0.3s ease;
}

.related-product-btn svg {
  width: 11px;
  height: 11px;
  transition: transform 0.2s ease;
}

.related-product-btn:hover {
  color: var(--color-tertiary);
}

.related-product-btn:hover svg {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   4. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* Tablet (<= 1024px) */
@media (max-width: 1024px) {
  .product-hero-section {
    padding: 100px 30px 60px 30px;
    margin-bottom: 60px;
  }

  .product-hero-container {
    flex-direction: column;
    gap: 40px;
  }

  .product-gallery-col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .product-details-col {
    flex: 0 0 100%;
    max-width: 100%;
    gap: 20px;
  }

  .product-title {
    font-size: 40px;
  }

  .product-tabs-section {
    max-width: 100%;
    padding: 0 30px;
    margin-bottom: 80px;
  }

  .product-related-section {
    padding: 0 30px;
    margin-bottom: 90px;
  }

  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
  .product-hero-section {
    padding: 80px 20px 40px 20px;
    margin-bottom: 40px;
  }

  .product-hero-container {
    gap: 30px;
  }

  .product-thumbs-row {
    gap: 6px;
  }

  .product-title {
    font-size: 32px;
  }

  .product-desc {
    font-size: 16px;
  }

  .product-tabs-section {
    padding: 0 20px;
    margin-bottom: 60px;
  }

  .product-attributes-table th {
    width: 40%;
    padding: 12px 10px 12px 0;
  }

  .product-attributes-table td {
    padding: 12px 0;
  }

  .product-related-section {
    padding: 0 20px;
    margin-bottom: 60px;
  }

  .related-products-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .related-products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
