.product-page {
  display: grid;
  grid-template-columns: 62fr 38fr;
  gap: 0;
  padding: 0;
  align-items: start;
  min-height: calc(100vh - 80px);
}

/* Images */
/* ================= PRODUCT IMAGE GRID ================= */



.product-gallery {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  align-content: start;
  padding: 24px 12px 24px 10px;
  /* breathing room around images */
  background: #f5f4f2;
  /* light off-white tray */
}

.slider-dots {
  display: none;
  /* Hidden on desktop */
}

/* Shipping strip — hidden on desktop, shown on mobile */
.shipping-strip {
  display: none;
}

.product-gallery img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* ================= HOME DECOR GALLERY ================= */
.home-decor-gallery {
  display: flex;
  gap: 20px;
  padding: 24px 12px 24px 24px;
}

.hd-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100px;
  flex-shrink: 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.hd-thumbnails::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.hd-thumb-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.hd-thumb-img.active,
.hd-thumb-img:hover {
  opacity: 1;
  border-color: #111;
}

.hd-main-image {
  flex-grow: 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.hd-main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 992px) {
  .home-decor-gallery {
    flex-direction: column-reverse;
    /* Main image on top, thumbs below */
    padding: 12px;
  }

  .hd-thumbnails {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 5px;
  }

  .hd-thumb-img {
    width: 80px;
    height: 80px;
  }
}

/* Details */
/* ---- Title + Price row ---- */
.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.size-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.product-details h1 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.4px;
  color: #111;
  line-height: 1.4;
}

.admin-edit-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: #8492c3;
  transition: all 0.3s ease;
  padding: 6px;
  border-radius: 50%;
  background: rgba(132, 146, 195, 0.1);
  vertical-align: middle;
}

.admin-edit-shortcut:hover {
  background: rgba(132, 146, 195, 0.2);
  color: #111;
  transform: scale(1.1);
}

.price-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  /* right-align the price block */
  margin-bottom: 20px;
  flex-shrink: 0;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

.original-price {
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
  margin-top: 3px;
}

.tax-note {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  text-align: right;
}

.sizes p {
  font-size: 14px;
  margin-bottom: 6px;
  /* Less margin */
  color: #444;
}

.size-options {
  display: flex;
  gap: 8px;
  /* Slightly less gap */
  /* bit more gap */
  flex-wrap: wrap;
  max-width: 420px;
}

.size-btn {
  padding: 10px 16px;
  border: 1px solid #ccc;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  /* Highly rounded chips */
  min-width: 50px;
  text-align: center;
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: #888;
}

.size-btn.active {
  background: #1a1a1a;
  /* Dark theme */
  color: #fff;
  border-color: #1a1a1a;
}

/* Old add to cart removed so it doesnt clash */
.out-of-stock-size {
  opacity: 0.6;
  text-decoration: line-through;
  cursor: not-allowed;
}

.add-to-cart {
  margin: 24px 0;
  padding: 16px 24px;
  width: 100%;
  max-width: 420px;

  background: #888;
  /* light-dark default */
  color: #fff;
  border: none;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.25s ease;
}

/* Mobile sticky button: hidden on desktop — REMOVED, using single button */

.add-to-cart:hover {
  background: #777;
}

.add-to-cart.disabled {
  background: #aaa;
  /* light grey-dark — no size selected */
  color: #fff;
  cursor: not-allowed;
}

.add-to-cart.enabled {
  background: #1a1a1a;
  /* solid dark when size selected */
  color: #fff;
}

.add-to-cart.enabled:hover {
  background: #333;
}

/* SIZE GUIDE MODAL */
.size-guide-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  /* Slightly lighter background for "Salesforce" feel */
  z-index: 9999;
  /* Force it on top of absolutely everything */
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  /* Stronger blur */
}

.size-guide-modal.active {
  display: flex;
}

.size-guide-content {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.size-guide-content img {
  width: 100%;
  max-width: 500px;
  display: block;
  height: auto;
}

.close-size-guide {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}

.close-size-guide:hover {
  color: #d9534f;
}

/* ================= BACK BUTTON ================= */
.back-wrapper {
  display: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-btn .arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}

.back-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.back-btn:hover .arrow {
  transform: translateX(-4px);
}

/* Mobile spacing */
@media (max-width: 1024px) {
  .back-wrapper {
    margin: 16px 20px 0;
  }
}

.product-details {
  padding: 28px 32px 40px 24px;
  position: sticky;
  top: 80px;
  height: max-content;
  border-left: 1px solid #eee;
}

.product-details>* {
  max-width: 100%;
}

.quantity {
  margin: 20px 0;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ccc;
}

.qty-controls button {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  font-size: 18px;
  cursor: pointer;
}

.qty-controls span {
  width: 40px;
  text-align: center;
  font-size: 14px;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 1024px) {
  .product-page {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
    /* NEW: Clear the fixed navbar + announcement bar */
  }

  .product-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-left: 0;
    padding-top: 0;
    /* Removed top padding */
    margin-top: 0;
    width: 100%;
  }

  /* Hide scrollbar for a cleaner look */
  .product-gallery::-webkit-scrollbar {
    display: none;
  }

  .product-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .product-gallery img {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Ensure one image per swipe */
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
  }

  /* Shipping strip */
  .shipping-strip {
    display: block;
    background: #f6f5f3;
    text-align: center;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    border-bottom: 1px solid #eee;
  }

  .shipping-strip span {
    color: #8492c3;
    font-weight: 700;
  }

  .product-details {
    padding: 18px 16px 100px;
    position: static;
  }

  .product-details>* {
    max-width: 100%;
  }

  /* Title + price: side by side on mobile too */
  .product-title-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .product-details h1 {
    font-size: 13px;
    line-height: 1.4;
    max-width: 55%;
    font-weight: 700;
  }

  .price-container {
    text-align: right !important;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .price {
    font-size: 15px;
  }

  .original-price {
    font-size: 12px;
  }

  .tax-note {
    font-size: 11px;
    color: #888;
  }

  /* Single row sizes — no wrap, scrollable */
  .size-options {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .size-options::-webkit-scrollbar {
    display: none;
  }

  .size-btn {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 42px;
    flex-shrink: 0;
  }

  /* Add to cart: normal in-flow on mobile, full width */
  .add-to-cart {
    max-width: 100%;
    margin: 16px 0 24px;
    padding: 16px 20px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Disabled state */
  .add-to-cart.disabled {
    background: #aaa;
    color: #fff;
    cursor: not-allowed;
  }

  .size-guide-image img {
    max-width: 100%;
  }

  .back-wrapper {
    display: none;
    /* button removed from HTML */
  }

  .slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 14px 0 6px;
    background: #f6f5f3;
  }

  .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
  }

  .dot.active {
    background: #8492c3;
    transform: scale(1.15);
    width: 20px;
    border-radius: 4px;
  }
}

/* ================= SIMILAR PRODUCTS 3D CAROUSEL ================= */
.similar-swiper {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 50px;
}

.similar-swiper .swiper-slide {
  background-position: center;
  background-size: cover;
  width: 320px;
  background-color: #fff;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4 / 5;
}

/* Dim non-active cards slightly */
.similar-swiper .swiper-slide:not(.swiper-slide-active) {
  opacity: 0.6;
}

/* Ensure center card sits cleanly on top */
.similar-swiper .swiper-slide-active {
  z-index: 10 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Remove default mens-grid interference */
.similar-products-section #similarProductsGrid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

/* Custom Navigation Arrow UI */
.similar-swiper .swiper-button-next:after,
.similar-swiper .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

/* ================= SIMILAR PRODUCTS 3D CAROUSEL (PURE CSS) ================= */
.similar-swiper {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 70px;
  overflow: hidden;
}

.similar-swiper .swiper-wrapper {
  perspective: 1200px;
  transform-style: preserve-3d;
  align-items: center;
  /* Center them perfectly vertically if heights differ */
}

/* Base slide (far slides) */
.similar-swiper .swiper-slide {
  width: auto;
  flex: 0 0 32%;
  /* Desktop width via flex */
  background-color: #fff;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 4 / 5;

  /* Far slide defaults */
  opacity: 0.4;
  transform: scale(0.75);
  box-shadow: none;
}

/* Side slides (immediate siblings) */
.similar-swiper .swiper-slide-prev {
  opacity: 0.75;
  transform: scale(0.9) rotateY(10deg);
  z-index: 5;
}

.similar-swiper .swiper-slide-next {
  opacity: 0.75;
  transform: scale(0.9) rotateY(-10deg);
  z-index: 5;
}

/* Center slide (active) */
.similar-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1.15) translateY(-10px);
  z-index: 10 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

/* ================= PREMIUM FASHION CARDS ================= */
.premium-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.premium-product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 60px 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.similar-swiper .swiper-slide:hover .premium-product-info {
  transform: translateY(0);
}

.premium-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.premium-price {
  font-size: 14px;
  font-weight: 500;
  color: #ddd;
  margin-bottom: 20px;
}

.premium-view-btn {
  background: #111;
  color: #fff;
  border: 1px solid #111;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 60%;
}

.premium-view-btn:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 1024px) {
  .similar-swiper .swiper-slide {
    width: auto;
    flex: 0 0 60%;
    aspect-ratio: 4 / 5;
  }
}

/* ================= UNIFIED COLLECTION GRID FOR SIMILAR PRODUCTS ================= */
.shop-by-category {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
}

.title-brush {
  display: inline-block;
  padding: 10px 40px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  position: relative;
  z-index: 1;
}

.home-decor-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 60px;
}

.hd-collection-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9/11;
  text-decoration: none;
  overflow: hidden;
}

.hd-coll-img-wrapper {
  width: 100%;
  height: 100%;
  background-color: #eaeaea;
}

.hd-collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.hd-coll-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 40%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 30px 20px;
}

.hd-coll-title {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.hd-coll-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 11px;
  font-weight: 600;
  padding: 12px 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hd-collection-card:hover img {
  transform: scale(1.05);
}

.hd-collection-card:hover .hd-coll-btn {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .home-decor-collections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .home-decor-collections-grid {
    grid-template-columns: 1fr;
  }

  .hd-collection-card {
    aspect-ratio: 4/5;
  }
}