/* ============================================
   HULEGEB STATIC SITE - PRODUCT PAGE STYLES
   Updated: Hardcoded Values
   ============================================ */

/* Product Page Layout */
.product-page {
  min-height: 100vh;
  background-color: #faf8f5;
}

.product-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

@media (min-width: 640px) {
  .product-container {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .product-container {
    padding: 4rem 2rem;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b6b6b;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #6b6b6b;
  transition: color 150ms ease;
}

.breadcrumb a:hover {
  color: #f37a20;
}

.breadcrumb-separator {
  color: #e0d5c5;
}

.breadcrumb-current {
  color: #237dd8;
}

/* Product Layout */
.product-layout {
  display: grid;
  gap: 3rem;
  margin-top: 100px;
}

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

/* ============================================
   IMAGE GALLERY
   ============================================ */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  background-color: #f5f0e8;
  border-radius: 1rem;
  overflow: hidden;
}

.gallery-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease;
}

.gallery-main-image.fade-out {
  opacity: 0;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  background-color: #ffffff;
  border: 1px solid #e0d5c5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 150ms ease;
  opacity: 0;
  z-index: 10;
}

.gallery-main:hover .gallery-nav {
  opacity: 1;
}

.gallery-nav:hover {
  background-color: #f37a20;
  color: #faf8f5;
  border-color: #f37a20;
}

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

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

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 150ms ease;
  background-color: #f5f0e8;
}

.gallery-thumb:hover {
  border-color: #e8e0d5;
}

.gallery-thumb.active {
  border-color: #f37a20;
}

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

/* Touch/Swipe support */
.gallery-main {
  touch-action: pan-y pinch-zoom;
}

/* ============================================
   PRODUCT DETAILS
   ============================================ */
.product-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-brand {
  font-size: 0.875rem;
  color: #f37a20;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-title-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #237dd8;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .product-title-main {
    font-size: 2.25rem;
  }
}

.product-sku {
  font-size: 0.75rem;
  color: #6b6b6b;
}

/* Price Display */
.price-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.price-current {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #f37a20;
}

.price-compare {
  font-size: 1.125rem;
  color: #6b6b6b;
  text-decoration: line-through;
}

.price-badge {
  padding: 0.25rem 0.5rem;
  background-color: rgba(139, 90, 43, 0.1);
  color: #f37a20;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

/* Short Description */
.product-short-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: #6b6b6b;
}

/* ============================================
   VARIANT SWATCHES
   ============================================ */
.variants-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.variants-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #237dd8;
}

.variants-label span {
  font-weight: 400;
  color: #6b6b6b;
}

.variant-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Color Swatches */
.swatch-color {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 150ms ease;
  position: relative;
}

.swatch-color:hover {
  transform: scale(1.1);
}

.swatch-color.active {
  border-color: #f37a20;
}

.swatch-color.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Size Swatches */
.swatch-size {
  min-width: 4rem;
  padding: 0.5rem 1rem;
  border: 2px solid #e0d5c5;
  border-radius: 0.5rem;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  transition: all 150ms ease;
}

.swatch-size:hover {
  border-color: #6b6b6b;
}

.swatch-size.active {
  border-color: #f37a20;
  background-color: #f37a20;
  color: #faf8f5;
}

/* ============================================
   QUANTITY SELECTOR (Display Only)
   ============================================ */
.quantity-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quantity-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #237dd8;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.quantity-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e0d5c5;
  border-radius: 0.5rem;
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 150ms ease;
}

.quantity-btn:hover {
  background-color: #f5f0e8;
}

.quantity-value {
  width: 3rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

.inventory-status {
  font-size: 0.75rem;
  color: #6b6b6b;
}

.inventory-status.in-stock {
  color: #16a34a;
}

.inventory-status.low-stock {
  color: #ea580c;
}

/* ============================================
   ADD TO CART (CTA)
   ============================================ */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn-add-cart {
  flex: 1;
  padding: 1rem 2rem;
  background-color: #f37a20;
  color: #faf8f5;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 300ms ease;
}

.btn-add-cart:hover {
  background-color: rgba(139, 90, 43, 0.9);
  box-shadow: 0 0 20px rgba(139, 90, 43, 0.3);
}

.btn-wishlist {
  padding: 1rem;
  background-color: #ffffff;
  border: 1px solid #e0d5c5;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-wishlist:hover {
  border-color: #f37a20;
  color: #f37a20;
}

/* ============================================
   PRODUCT TABS
   ============================================ */
.product-tabs {
  margin-top: 2rem;
  border-top: 1px solid #e0d5c5;
  padding-top: 2rem;
}

.tabs-header {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #e0d5c5;
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 1rem 0;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6b6b6b;
  cursor: pointer;
  position: relative;
  transition: color 150ms ease;
}

.tab-button:hover {
  color: #237dd8;
}

.tab-button.active {
  color: #f37a20;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #f37a20;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.tab-content p {
  color: #6b6b6b;
  line-height: 1.75;
}

.tab-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #6b6b6b;
}

.tab-content li {
  margin-bottom: 0.5rem;
}

/* Attributes Table */
.attributes-table {
  width: 100%;
  border-collapse: collapse;
}

.attributes-table tr {
  border-bottom: 1px solid #e0d5c5;
}

.attributes-table th,
.attributes-table td {
  padding: 1rem;
  text-align: left;
  font-size: 0.9375rem;
}

.attributes-table th {
  font-weight: 600;
  color: #237dd8;
  width: 40%;
}

.attributes-table td {
  color: #6b6b6b;
}

/* ============================================
   IMPACT BANNER (Product Page)
   ============================================ */
.impact-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0d5c5;
}

.impact-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background-color: #f5f0e8;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b6b6b;
}

.impact-badge svg {
  width: 1rem;
  height: 1rem;
  color: #f37a20;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #e0d5c5;
}

.related-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.related-header h2 {
  font-size: 1.5rem;
}

.related-nav {
  display: flex;
  gap: 0.5rem;
}

.related-nav button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e0d5c5;
  border-radius: 50%;
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.related-nav button:hover {
  border-color: #f37a20;
  color: #f37a20;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   BACK LINK
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b6b6b;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 150ms ease;
}

.back-link:hover {
  color: #f37a20;
}

/* ============================================
   STORY RIBBON
   ============================================ */
.story-ribbon {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
}

.story-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #f37a20;
  color: #faf8f5;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: all 300ms ease;
}

.story-toggle:hover {
  box-shadow: 0 0 20px rgba(139, 90, 43, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   LOADING STATE
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, #e8e0d5 25%, #f5f0e8 50%, #e8e0d5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}