/**
 * Product Page Enhancements - ANFISA-Inspired Design
 *
 * This file enhances the product detail page with ANFISA-style design:
 * - Warm, earthy color palette
 * - Two-column layout with gallery
 * - Accordion sections for details
 * - Beautiful typography and spacing
 */

/* ============================================
   Product Detail Layout - Two Column
   ============================================ */

.store-product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
  width: 100%;
}

.store-product-layout > * {
  min-width: 0;
}

/* Ensure product page doesn't overflow viewport */
.store-product-page {
  width: 100%;
  max-width: 100vw;
}

/* ============================================
   Product Gallery - Professional Design
   ============================================ */

.store-product-gallery {
  max-width: 100%;
  overflow: hidden;
}

/* Sticky gallery on desktop only */
@media (min-width: 1025px) {
  .store-product-gallery {
    position: sticky;
    top: 2rem;
    height: fit-content;
  }
}

.store-gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.store-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-gallery-main:hover img {
  transform: scale(1.05);
}

.store-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.store-gallery-thumbnails img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-gallery-thumbnails img:hover {
  border-color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Product Main Info - Shopify Style
   ============================================ */

.store-product-main {
  display: flex;
  flex-direction: column;
}

/* Scoped to product detail main section */
.store-product-main .store-product-brand {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.store-product-title {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
  color: #111827;
  line-height: 1.2;
}

.store-product-rating {
  font-size: 1.125rem;
  color: #fbbf24;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.store-product-rating span {
  font-size: 0.875rem;
  color: #6b7280;
  margin-left: 0;
}

.store-product-price-large {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111827;
  margin-bottom: 1.5rem;
}

/* ============================================
   Availability Badge - Professional
   ============================================ */

.store-availability {
  display: inline-block;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.store-in-stock {
  color: #059669;
}

.store-out-of-stock {
  color: #dc2626;
}

/* ============================================
   Product Description - Enhanced Typography
   ============================================ */

.store-product-description {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.75;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.store-product-description h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 1.5rem 0 0.75rem 0;
}

.store-product-description h3:first-child {
  margin-top: 0;
}

.store-product-description p {
  margin-bottom: 1rem;
}

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

.store-product-description ul,
.store-product-description ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.store-product-description li {
  margin-bottom: 0.5rem;
}

.store-product-description strong {
  color: #111827;
  font-weight: 600;
}

/* ============================================
   SKU and Meta Info
   ============================================ */

.store-product-sku {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

/* ============================================
   Add to Cart Button - Shopify Style
   ============================================ */

.store-product-actions {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.store-product-actions .store-btn {
  width: 100%;
  display: block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

/* Scoped to product actions section (Shopify style) */
.store-product-actions .store-btn-primary {
  background: #111827;
  color: white;
  border: 2px solid #111827;
}

.store-product-actions .store-btn-primary:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.store-btn-primary:active {
  transform: translateY(0);
}

.store-btn-disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #e5e7eb;
  cursor: not-allowed;
  opacity: 1 !important;
}

.store-btn-disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Add to Cart button with custom shade color */
.store-btn-primary[style*="background-color"] {
  /* Smooth transition for dynamic color changes */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.store-btn-primary[style*="background-color"]:hover {
  /* Slightly darken the custom color on hover */
  filter: brightness(0.9);
}

.store-btn-primary[style*="background-color"]:active {
  filter: brightness(0.85);
}

/* ============================================
   Related Products Section
   ============================================ */

.store-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e8e6e1;
}

.store-section h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #2c2520;
  margin-bottom: 2rem;
  text-align: center;
}

#store-related-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Product Card Styling */
.store-product-card {
  transition: transform 0.2s ease;
}

.store-product-card:hover {
  transform: translateY(-4px);
}

.store-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.store-product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafaf8;
  border: 1px solid #e8e6e1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.store-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.store-product-card:hover .store-product-image img {
  transform: scale(1.05);
}

/* Scoped to related products cards */
#store-related-products .store-product-brand {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b8a7a;
  margin-bottom: 0.25rem;
}

.store-product-name {
  font-size: 1rem;
  font-weight: 500;
  color: #2c2520;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.store-product-price {
  font-size: 1rem;
  font-weight: 500;
  color: #6b5d4f;
}

/* ============================================
   Responsive Design
   ============================================ */

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .store-product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .store-product-gallery {
    position: static;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }

  .store-product-images {
    position: static;
  }

  /* Scoped to product detail page only */
  .store-product-layout .store-product-info {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  #store-related-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .store-product-layout {
    gap: 1.5rem;
    width: 100%;
  }

  .store-product-layout > * {
    width: 100%;
    max-width: 100%;
  }

  .store-product-gallery {
    position: static;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .store-gallery-main {
    width: 100%;
    max-width: 100%;
  }

  .store-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* New Gallery System - Mobile Fixes */
  .product-gallery {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .product-gallery-main {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .gallery-nav-prev {
    left: 0.5rem;
  }

  .gallery-nav-next {
    right: 0.5rem;
  }

  .gallery-thumbnails {
    gap: 0.5rem;
    margin: 0;
    padding: 0 0 0.5rem 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
  }

  .gallery-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .product-image-urls-gallery {
    margin: 1.5rem 0 0 0;
  }

  .product-image-urls-gallery .gallery-title {
    font-size: 1rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .product-beauty-info {
    padding: 1rem;
  }

  .benefits-list,
  .skin-types-list {
    gap: 0.375rem;
  }

  .benefit-badge,
  .skin-type-tag {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  .collapsible-header {
    font-size: 0.875rem;
    padding: 1rem 0;
  }

  .store-product-full-description {
    padding: 1.5rem;
  }

  #store-related-products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .product-main-image {
    border-radius: 8px;
  }

  .store-product-full-description {
    padding: 1rem;
    margin: 2rem 0;
  }

  /* Ensure gallery fits within mobile viewport */
  .product-gallery {
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  .product-gallery-main {
    border-radius: 6px;
    margin-bottom: 0.75rem;
    max-width: 100%;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
  }

  .gallery-nav svg {
    width: 16px;
    height: 16px;
  }

  .gallery-thumbnails {
    gap: 0.375rem;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
  }

  .gallery-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }

  .gallery-thumbnail svg {
    width: 24px;
    height: 24px;
  }
}

/* ============================================
   Loading State
   ============================================ */

.store-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  min-height: 400px;
}

.store-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #111827;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.store-loading p {
  color: #6b7280;
  font-size: 0.875rem;
}

/* ============================================
   Error State
   ============================================ */

.store-error {
  padding: 3rem 2rem;
  text-align: center;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
}

.store-error p {
  font-size: 1rem;
  margin: 0;
}

/* ============================================
   ANFISA-Inspired Beauty Product Info
   ============================================ */

.product-beauty-info {
  margin: 2rem 0 0 0;
}

.product-beauty-info h3 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2c2520;
  margin: 0 0 0.75rem 0;
}

.product-benefits {
  margin-bottom: 2rem;
}

.benefits-list {
  color: #6b5d4f;
  font-size: 0.9375rem;
  line-height: 1.7;
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.benefits-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #c4a57b;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

.product-key-ingredients {
  margin-bottom: 2rem;
}

.product-key-ingredients .ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #6b5d4f;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.product-key-ingredients .ingredients-list li {
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.product-key-ingredients .ingredients-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #c4a57b;
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.4;
}

.product-badges {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b5d4f;
}

.badge-icon::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background-color: #c4a57b;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* ============================================
   Collapsible Accordion Sections (ANFISA Style)
   ============================================ */

.product-collapsible-sections {
  margin: 2rem 0;
  border-top: 1px solid #e8e6e1;
}

.collapsible-section {
  border-bottom: 1px solid #e8e6e1;
}

.collapsible-header {
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2c2520;
  text-align: left;
  transition: color 0.2s ease;
}

.collapsible-header:hover {
  color: #6b5d4f;
}

.collapsible-header span {
  flex: 1;
}

.collapsible-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #6b5d4f;
}

.collapsible-header.open .collapsible-icon {
  transform: rotate(180deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.open {
  max-height: 1000px;
}

.collapsible-inner {
  padding: 0 0 1.5rem 0;
  color: #6b5d4f;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.ingredients-text {
  margin: 0;
  font-size: 0.875rem;
  color: #6b5d4f;
  line-height: 1.6;
}

.skin-types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skin-type-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #d4cfc6;
  border-radius: 20px;
  font-size: 0.875rem;
  color: #6b5d4f;
  font-weight: 500;
}

/* ============================================
   Product Images & Video - Gallery Style
   ============================================ */

/* Sticky images on desktop only */
@media (min-width: 1025px) {
  .store-product-images {
    position: sticky;
    top: 2rem;
    height: fit-content;
  }
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafaf8;
  border: 1px solid #e8e6e1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-main-image:hover img {
  transform: scale(1.05);
}

/* Media Gallery (Video + Image) */
.product-media-gallery {
  width: 100%;
}

.product-main-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafaf8;
  border: 1px solid #e8e6e1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-video-container,
.product-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-video-container.active,
.product-image-container.active {
  opacity: 1;
  visibility: visible;
}

.product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Media Thumbnails */
.product-media-thumbnails {
  display: flex;
  gap: 0.75rem;
}

.media-thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid #e8e6e1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafaf8;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-thumbnail:hover {
  border-color: #c4a57b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.media-thumbnail.active {
  border-color: #2c2520;
  box-shadow: 0 0 0 1px #2c2520;
}

.media-thumbnail svg {
  color: #6b5d4f;
  width: 32px;
  height: 32px;
}

.media-thumbnail.active svg {
  color: #2c2520;
}

.media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Controls Styling */
.product-video::-webkit-media-controls-panel {
  background-color: rgba(44, 37, 32, 0.9);
}

.product-video::-webkit-media-controls-play-button,
.product-video::-webkit-media-controls-mute-button,
.product-video::-webkit-media-controls-fullscreen-button {
  filter: brightness(0) invert(1);
}

/* ============================================
   Product Gallery Slider
   ============================================ */

.product-gallery {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}

.product-gallery-main {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #fafaf8;
  border: 1px solid #e8e6e1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.gallery-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e8e6e1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gallery-nav:hover {
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav svg {
  color: #2c2520;
}

.gallery-nav-prev {
  left: 1rem;
}

.gallery-nav-next {
  right: 1rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #d4cfc6 #fafaf8;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #fafaf8;
  border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #d4cfc6;
  border-radius: 3px;
}

.gallery-thumbnail {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border: 2px solid #e8e6e1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafaf8;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-thumbnail:hover {
  border-color: #c4a57b;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail.active {
  border-color: #2c2520;
  box-shadow: 0 0 0 1px #2c2520;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnail svg {
  color: #6b5d4f;
  width: 32px;
  height: 32px;
}

.gallery-thumbnail.active svg {
  color: #2c2520;
}

/* ============================================
   Image URLs Gallery Section
   ============================================ */

.product-image-urls-gallery {
  width: 100%;
  margin: 2rem 0 0 0;
  padding: 0;
}

.product-image-urls-gallery .gallery-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2c2520;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
}

/* ============================================
   Product Info - Right Column
   ============================================ */

/* Scoped to product detail page only (not product cards) */
.store-product-layout .store-product-info {
  padding: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

/* Sticky positioning on desktop only (1024px and up) */
@media (min-width: 1025px) {
  .store-product-layout .store-product-info {
    position: sticky;
    top: 2rem;
    height: fit-content;
  }
}

.product-header {
  margin-bottom: 1.5rem;
}

.product-brand {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9b8a7a;
  margin: 0 0 0.5rem 0;
}

.product-title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #2c2520;
  margin: 0;
  line-height: 1.2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.product-category {
  font-size: 0.9375rem;
  color: #9b8a7a;
  margin: 0.5rem 0 0 0;
}

/* ============================================
   Pricing Section
   ============================================ */

.product-pricing {
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e6e1;
}

/* ============================================
   Short Description (Above Variants)
   ============================================ */

.product-short-description {
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e6e1;
  color: #6b5d4f;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.product-short-description p {
  margin: 0 0 1rem 0;
}

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

.product-price {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #2c2520;
  margin-bottom: 0.75rem;
}

.price-savings {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.compare-price {
  font-size: 1rem;
  color: #9b8a7a;
  text-decoration: line-through;
}

.savings-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: #d4e9d7;
  color: #2d5f3d;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.product-stock {
  margin-top: 0.75rem;
}

/* ============================================
   Add to Cart - Primary CTA
   ============================================ */

.product-actions {
  margin: 2rem 0;
}

.store-btn-large {
  padding: 1.125rem 2rem;
  font-size: 1rem;
}

/* Scoped to product detail page Add to Cart button */
.store-product-layout .store-btn-primary,
.product-actions .store-btn-primary {
  width: 100%;
  background: #2c2520;
  color: white;
  border: 2px solid #2c2520;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.store-product-layout .store-btn-primary:hover:not(:disabled),
.product-actions .store-btn-primary:hover:not(:disabled) {
  background: #1a1614;
  border-color: #1a1614;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 37, 32, 0.2);
}

.store-btn-primary:active {
  transform: translateY(0);
}

.store-btn-primary:disabled {
  background: #e8e6e1;
  color: #9b8a7a;
  border-color: #e8e6e1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.store-btn-primary.success {
  background: #2d5f3d;
  border-color: #2d5f3d;
}

/* ============================================
   Full Product Description Section
   ============================================ */

.store-product-full-description {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fafaf8;
  border-radius: 12px;
  border: 1px solid #e8e6e1;
}

.store-product-full-description h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #2c2520;
  margin: 0 0 1.5rem 0;
}

.product-description-content {
  color: #6b5d4f;
  font-size: 1rem;
  line-height: 1.7;
}

.product-description-content p {
  margin-bottom: 1rem;
}

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