/* src/main/resources/static/css/global.css */
:root{
  --max-width:1200px;
  --accent:#c98212;
  --muted:#666;
  --bg: #e3e6e6;   /* Amazon-style light gray background */
  --surface: #ffffff; /* keep white for inner content sections */
}
*{box-sizing:border-box}
body{
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  margin:0;color:#222;background:var(--bg);
}
.container{
  max-width:var(--max-width);margin:0 auto;padding:0 1rem;
}
a{color:inherit;text-decoration:none}
.muted{color:var(--muted)}
.btn-primary{
  background:var(--accent);color:#fff;padding:0.6rem 1rem;border-radius:6px;display:inline-block;margin-top:0.5rem;
}


/* Product card carousel controls */
.product-card-carousel .custom-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 4;
}

.product-card .product-card-carousel .custom-carousel-control {
  position: absolute !important;
}

.product-card-carousel:hover .custom-carousel-control {
  opacity: 1;
  pointer-events: auto;
}

.product-card-carousel .custom-carousel-control:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.product-card-carousel .carousel-control-prev {
  left: 6px;
}

.product-card-carousel .carousel-control-next {
  right: 6px;
}

.product-card-carousel .carousel-control-prev-icon,
.product-card-carousel .carousel-control-next-icon {
  width: 0.8rem;
  height: 0.8rem;
  filter: invert(1) drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

@media (hover: none), (pointer: coarse) {
  .product-card-carousel .custom-carousel-control {
    display: none;
  }
}


/* ==========================
   Homepage Section Styles
   ========================== */

/* Section wrappers: visually separate modules on home page */
.section-wrapper {
  padding: 3rem 0;
  background: var(--surface);
}

.section-wrapper.alt {
  background: var(--bg);
}

.section-wrapper .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-wrapper h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Cards (for product & collections) */
.product-card,
.collection-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover,
.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.product-card[data-href] {
  cursor: pointer;
}

.product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  font-size: 0;
  color: transparent;
  text-decoration: none;
}

.product-card img,
.collection-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-card .card-body,
.product-card .product-card-carousel {
  position: relative;
  z-index: 2;
}

.product-card .product-card-actions,
.product-card .custom-carousel-control {
  position: relative;
  z-index: 3;
}

.product-card .product-card-actions {
  position: relative;
  z-index: 3;
}

.product-card .wishlist-toggle-btn,
.product-card .custom-carousel-control {
  z-index: 3;
}


/* Card content */
.product-card .info,
.collection-card .info {
  padding: 0.8rem 1rem;
  text-align: center;
}

.product-card .title,
.collection-card .title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.4rem;
}

.product-card .price {
  color: var(--accent);
  font-weight: 600;
}


.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0.25rem 0 0.5rem;
  color: #f4b400;
}

.product-card-rating .bi {
  font-size: 0.85rem;
}

.product-card-rating--thumb {
  justify-content: center;
  margin: 0.5rem 0 0;
}

.product-card-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.product-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 3;
}

.product-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #ffffff;
  color: #111;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.product-card-badge.discount {
  background: #d1495b;
  color: #fff;
}

.product-card-badge.shipping {
  background: #0f766e;
  color: #fff;
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-card-actions .card-add-cart {
  margin-top: 10px;
}

.product-card-shipping-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #0f766e;
  color: #fff;
  margin-top: 10px;
  min-height: 32px;
  white-space: nowrap;
}

.product-card-shipping-badge i {
  margin-left: 6px;
  font-size: 1.25em;
}

.product-card-carousel .carousel-inner {
  height: 100%;
}

.product-card-carousel .carousel-item,
.product-card-carousel .carousel-item img {
  height: 100%;
}

.product-card-carousel .carousel-item img {
  object-fit: contain !important;
  object-position: center;
  background: #faf7f5;
}

.product-card-carousel .carousel-item > a,
.product-card-carousel .carousel-item > div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.product-card-rating-overlay {
  position: absolute;
  left: 8px;
  bottom: 8px;
  color: #f4b400;
  border-radius: 999px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.product-card-rating-overlay .bi {
  font-size: 0.8rem;
}

.top-viewed-section .product-card-rating-overlay,
.top-viewed-section .wishlist-toggle-btn,
.top-viewed-section .product-card-badges {
  display: none;
}

.top-viewed-section .product-card-shipping-badge {
  display: none;
}

.wishlist-toggle-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wishlist-toggle-btn .bi {
  font-size: 1rem;
  color: #9aa0a6;
}

.wishlist-toggle-btn.is-active .bi {
  color: #e53935;
}

.wishlist-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.price .price-current {
  font-weight: 600;
}

.price .price-original {
  margin-left: 8px;
  color: #8a8a8a;
  font-size: 0.9rem;
}

.price-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d1495b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.price-badge.shipping {
  background: #0f766e;
}

#paypal-container-wrap {
  position: static !important;
}

#paypal-container-wrap .paypal-buttons,
#paypal-container-wrap iframe {
  position: static !important;
  max-width: 100%;
}


.modal-option-group {
  margin-bottom: 1rem;
}

.modal-option-error {
  font-size: 0.9rem;
}

.btn-primary {
  --bs-btn-bg: #c98212;
  --bs-btn-border-color: #c98212;
  --bs-btn-hover-bg: #b06f0b;
  --bs-btn-hover-border-color: #b06f0b;
  --bs-btn-active-bg: #9f6009;
  --bs-btn-active-border-color: #9f6009;
  --bs-btn-color: #ffffff;
}

/* Carousel image tweaks */
.banner-sec img {
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
}


/* Optional Amazon-like light background for full page */
body.home {
  background: #f4f4f4;
}

/* ==========================
   Horizontal Product Carousel
   ========================== */
.product-carousel {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 0 2rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .card {
  flex: 0 0 auto;
  width: 440px;
  scroll-snap-align: start;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-btn {
  pointer-events: all;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background 0.3s;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.home-section:hover .carousel-nav {
  opacity: 1;
  visibility: visible;
}


.carousel-track .card img {
  width: 100%;
  height: 240px; /* or consistent height */
  object-fit: cover;
  display: block;
  background-color: #f3f3f3; /* placeholder background */
}


/* Carousel viewport wrapper */
.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

/* Ensure track uses transform-based movement */
.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 400ms cubic-bezier(.22,.9,.25,1);
  will-change: transform;
  /* keep existing padding/gap if present */
}

/* make sure cards are flex children and don't shrink */
.carousel-track .card {
  flex: 0 0 auto;
  /* keep existing width: 220px; in your file or responsive sizing */
}

/* optionally hide scrollbar */
.carousel-viewport::-webkit-scrollbar { display: none; }


/* ==========================
   Full-width & wide layout overrides
   ========================== */

/* Make full-width banner and optionally wide containers */
.banner-sec .container,
.container-fluid,
.full-width {
  max-width: 1500px !important;
  width: 100%;
  padding: 0; /* or padding: 0 1rem; if you want some side gap */
}

/* Slightly wider general container for large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1500px;
  }
}

/* ==========================
   Homepage width tuning
   ========================== */

.banner-sec {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  display: block;
  aspect-ratio: 1920 / 700; /* ensures height before load */
  overflow: hidden;
}

.banner-sec img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}


/* ==========================
   Home Section Styling
   ========================== */

.home-section {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;                /* same as banner width */
  background: #ffffff;        /* white card background */
  margin-top: 2.5rem;         /* space between banner/sections */
  padding: 2rem 1rem;         /* inner content padding */
  border-radius: 12px;        /* rounded corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);  /* subtle floating look */
}

.home-section .carousel-item img {
  width: 100%;
  height: auto;          /* respects natural aspect ratio */
  object-fit: contain;   /* ensures whole image fits */
  background-color: #fafafa; /* optional: fill background behind smaller images */
  display: block;
  aspect-ratio: 500 / 500;
}


/* ==========================
   Home carousel layout tuning
   ========================== */

/* Only affect carousels inside home sections */
/* .home-section .carousel-track {
  gap: 2.5rem; 
  justify-content: flex-start;
} */

/* ==========================
   Add minimal Embla styles
   ========================== */


.embla {
  position: relative;
}
.embla__viewport {
  overflow: hidden;
  width: 100%;
}
.embla__container {
  display: flex;
  gap: 1rem;
}
.embla__slide {
  flex: 0 0 auto;
  width: 440px;
  user-select: none;
  scroll-snap-align: start;
}
.embla__slide img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.top-viewed-section .embla__slide {
  width: 220px;  /* smaller slides for top viewed */
}

.top-viewed-section .card {
  height: 220px;
}

.top-viewed-section .product-card-carousel .carousel-inner {
  height: 100%;
}

.top-viewed-section .product-card-carousel .carousel-item,
.top-viewed-section .product-card-carousel .carousel-item img {
  height: 100%;
}

.top-viewed-section .product-card-carousel .carousel-item img {
  object-fit: cover !important;
}

.top-viewed-section .card-body {
  display: none;
}

.home-section .embla__slide .product-card-carousel .carousel-item,
.home-section .embla__slide .product-card-carousel .carousel-item img {
  height: 100%;
}

.home-section .embla__slide .product-card-carousel .carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  background: #faf7f5;
}

.home-section .embla__slide .product-card-carousel .carousel-inner {
  height: auto;
}

.home-section .embla__slide .product-card-carousel .carousel-item {
  aspect-ratio: 1 / 1;
}


.home-section .embla__container {
  gap: 0;
}

.home-section .embla__slide {
  margin-right: 16px;
}

.category-card {
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem;
  width: 300px;
  flex: 0 0 auto;
}

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

.child-category {
  position: relative;
  border-radius: 0.6rem;
  overflow: hidden;
  background: #f9f9f9;
  transition: transform 0.2s, box-shadow 0.2s;
}

.child-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.child-category img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.child-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}



.product-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem; /* space between items */
  padding: 0.25rem;
}

.product-grid-item {
  width: 100%;
}
/* =============================
   Product Details Page Styles
   ============================= */

.product-detail-page {
  padding: 20px 0;
  font-family: system-ui, sans-serif;
}

/* LEFT COLUMN */
.pv-banner {
  background: #fff3cd;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #8a6d3b;
}

.main-image-wrapper {
  position: relative;
  text-align: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.thumbnail-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.thumb {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #eee;
}

.thumb:hover { opacity: 0.8; }

.main-image-wrapper .wishlist-toggle-btn {
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e5e5;
}

/* RIGHT COLUMN */
.product-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.product-subtitle {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #555;
}

.product-excerpt {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #555;
}

/* Text glow animation: smaller shadow and red → green → parrot → green → red */
.product-stock-message {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: left;
    margin-top: 8px;
    margin-bottom: 6px;
    line-height: 1.25;
    color: #c72c41;                  /* initial red */
    animation: stockGlow 4s infinite alternate; /* smooth cyclic animation */
}

@keyframes stockGlow {
    0% {
        color: #c72c41;                /* red */
        text-shadow: 0 0 0.5px #c72c41, 0 0 1.25px #c72c41;
    }
    25% {
        color: #198754;                /* green */
        text-shadow: 0 0 0.5px #198754, 0 0 1.25px #198754;
    }
    50% {
        color: #a4c639;                /* parrot / yellowish-green */
        text-shadow: 0 0 0.5px #a4c639, 0 0 1.25px #a4c639;
    }
    75% {
        color: #198754;                /* back to green */
        text-shadow: 0 0 0.5px #198754, 0 0 1.25px #198754;
    }
    100% {
        color: #c72c41;                /* back to red */
        text-shadow: 0 0 0.5px #c72c41, 0 0 1.25px #c72c41;
    }
}

/* Container */
.product-returnstext {
    display: inline-flex !important;
    align-items: baseline !important;   /* keep vertical alignment */
    gap: 0.5em;                          /* space between icon and text */
    font-size: 16px;                     /* base text size */
    font-weight: 600;                     /* semi-bold text */
    color: #2c2c2c;          /* Trendwall‑style text color */
    line-height: 1.2;
}

/* Icon */
.product-returnstext i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;          /* increase icon size */
    line-height: 1 !important;
    margin-top: 5px !important;          /* keeps optical alignment */
    color: #198754 !important;   /* Bootstrap success green */
}

/* Text */
.product-returnstext span {
    display: inline-block !important;
    line-height: 1.2;
    font-weight: 600;                     /* match or slightly lighter than icon */
    font-size: 16px;                      /* increase text size */
}

/* =============================
   Frequently Bought Together
   ============================= */
.fbt-bundle-section {
  margin-top: 3rem;
  background: #faf7f5;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
}

.fbt-bundle-section h2 {
  margin-bottom: 1.5rem;
}

.fbt-bundle-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  justify-items: stretch;
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  margin-bottom: 1rem;
}

.fbt-bundle-item {
  display: flex;
  align-items: center;
  width: 100%;
}

.fbt-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  width: 100%;
}

.fbt-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e7d6d6;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.fbt-thumb {
  width: 96px;
  height: 96px;
  background: #faf7f5;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.fbt-info {
  display: flex;
  flex-direction: column;
}

.fbt-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 240px;
}

.fbt-price {
  color: #7f2221;
  font-weight: 600;
}

.fbt-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: #7f2221;
  background: #fff;
  border: 1px solid #e7d6d6;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  justify-self: center;
  align-self: center;
}

@media (max-width: 991.98px) {
  .fbt-bundle-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .fbt-plus {
    margin-left: 0.5rem;
  }
}

.fbt-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fbt-total {
  font-weight: 700;
  font-size: 1.1rem;
}

.fbt-step-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.fbt-step-thumb {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  background: #faf7f5;
}

/* =============================
   Cart Page
   ============================= */
.cart-page {
  padding: 2.5rem 0 3rem;
}

.cart-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cart-header h1 {
  font-size: 2rem;
  margin: 0;
}

.cart-guest-notice {
  background: #fff1e6;
  border: 1px dashed #e2b9a5;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: #6c4a3d;
  margin: 0;
}

.cart-empty {
  padding: 2rem;
  text-align: center;
  background: #faf7f5;
  border: 1px solid #eee;
  border-radius: 12px;
  color: #6b6b6b;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  background: #faf7f5;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 1.25rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateX(40px);
}

.cart-item-main {
  display: flex;
  gap: 1rem;
}

.cart-item-thumb {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eadada;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-name {
  font-weight: 700;
  color: #2c2c2c;
  text-decoration: none;
}

.cart-item-name:hover {
  color: #7f2221;
}

.cart-item-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #5b4945;
  font-size: 0.95rem;
}

.cart-item-option {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.cart-item-option-price {
  color: #7f2221;
  font-weight: 600;
}

.cart-edit-options {
  align-self: flex-start;
  border: none;
  background: transparent;
  color: #7f2221;
  font-weight: 600;
  padding: 0;
}

.cart-edit-options:hover {
  text-decoration: underline;
}

.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: center;
}

.cart-item-unit,
.cart-item-options-total,
.cart-item-subtotal {
  font-weight: 600;
}

.cart-item-options-value {
  color: #7f2221;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #eadada;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #eadada;
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
  color: #7f2221;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}

.cart-remove-btn {
  border: none;
  background: transparent;
  color: #b23a3a;
  font-weight: 600;
  padding: 0;
}

.cart-remove-btn:hover {
  text-decoration: underline;
}

.cart-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 45%, #ffffff 100%);
  border: 1px solid rgba(178, 58, 58, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  bottom: 1rem;
  z-index: 6;
  box-shadow: 0 18px 35px rgba(124, 36, 36, 0.18);
  backdrop-filter: blur(6px);
}

.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 700;
}

.cart-summary-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cart-options-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cart-options-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #eadada;
  background: #fff;
}

.cart-options-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-options-price {
  color: #7f2221;
  font-weight: 600;
}

.cart-option-group {
  margin-bottom: 1rem;
}

.cart-option-error {
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-meta {
    align-items: flex-start;
  }
}

.fbt-step-name {
  font-weight: 700;
}

.fbt-step-price {
  color: #7f2221;
  font-weight: 600;
}

.fbt-step-options .fbt-option-group {
  margin-bottom: 1rem;
}

.fbt-option-error {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.fbt-modal-total {
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.related-products-section .embla__slide {
  width: 20%;
}

@media (max-width: 991.98px) {
  .related-products-section .embla__slide {
    width: 33.3333%;
  }
}

@media (max-width: 575.98px) {
  .related-products-section .embla__slide {
    width: 66.6667%;
  }
}

.product-returnstext i {
    transform: translateY(6px);
}

.product-returnstext .not-returnable {
    color: #dc3545 !important;
    font-weight: 700;
}

/* PRICE */
.price-main {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
}

.star {
  color: red;
  padding-left: 2px;
}

.rare-find {
  color: #d9534f;
  font-weight: 600;
}

.great-offer {
  background: #d1e7dd;
  padding: 5px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

/* QTY TABLE */
.qty-table {
  width: 100%;
  margin: 15px 0;
  border-collapse: collapse;
  text-align: center;
}

.qty-table th,
.qty-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.return-policy {
  font-size: 0.9rem;
  color: #555;
  margin: 10px 0;
}

/* OPTIONS */
.option-group {
  margin: 12px 0;
}

.option-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.option-buttons {
  display: flex;
  gap: 10px;
}

.opt-btn {
  padding: 6px 12px;
  border: 1px solid #aaa;
  border-radius: 5px;
  background: #f6f6f6;
  cursor: pointer;
}

.opt-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.qty-input {
  width: 80px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.availability {
  font-weight: 600;
  color: #28a745;
}

.availability.out-of-stock {
  color: #dc3545;
}

.dispatch-time,
.ship-from {
  color: #666;
}

/* ADD TO CART */
.btn-add-cart {
  width: 100%;
  padding: 12px 0;
  background: #c98212;
  color: white;
  border: none;
  border-radius: 6px;
  margin: 18px 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.btn-add-cart:hover {
  background: #b06f0b;
}

.product-detail-page .btn-add-cart {
  background: #f7ca00;
  border-color: #f7ca00;
  color: #111;
}

.product-detail-page .btn-add-cart:hover {
  background: #f0b800;
  border-color: #f0b800;
}

.btn-add-cart i {
  font-size: 1.7rem;
  line-height: 1;
}

.btn-add-cart[disabled],
.btn-add-cart.disabled {
  background: #c2c2c2;
  color: #6b6b6b;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-add-cart[disabled]:hover,
.btn-add-cart.disabled:hover {
  background: #c2c2c2;
}

.card-add-cart {
  width: auto;
  padding: 6px 14px;
  margin: 10px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 20px;
  background: #f7ca00;
  border-color: #f7ca00;
  color: #111;
}

.card-add-cart:hover {
  background: #f0b800;
  border-color: #f0b800;
}

/* SECTIONS */
.materials-section h4,
.description-section h3,
.delivery-section h3 {
  margin-top: 25px;
}

.materials-grid {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}

.materials-grid li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  color: #444;
  font-size: 0.9rem;
}

.materials-grid img {
  width: 100%;
  max-width: 60px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  background: #fafafa;
}

.delivery-section {
  margin-top: 18px;
}

.delivery-toggle {
  background: #f6f2ea;
  border: 1px solid #ece6dd;
  color: #222;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
}

.delivery-toggle .bi {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.delivery-toggle[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

.delivery-list {
  padding: 10px 6px 2px 6px;
}

.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #333;
  font-size: 0.95rem;
  padding: 6px 2px;
}

.delivery-item .bi {
  color: #555;
  font-size: 1rem;
  margin-top: 2px;
}

.delivery-item span > * {
  margin: 0;
}
/* SHARE */
.share-section {
  margin-top: 25px;
}

.share-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 16px;
  background: #1877f2;
  color: white;
  border: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.share-btn.copy {
  background: #7b7b7b;
}

.share-btn.copied {
  background: #198754;
}
.share-btn.marketplace{background:#fff;color:#111;border:1px solid #eee;display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:10px;gap:10px}
.share-btn.marketplace:hover{background:#f5f5f5}
.marketplace-icon{height:36px;width:36px;object-fit:contain;display:block}
.marketplace-row{align-items:center;gap:8px}
.marketplace-label{font-weight:600;color:#444;display:inline-flex;align-items:center;padding:6px 0}

.checkout-summary strong {
  font-weight: 700;
}

.share-link {
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.mini-cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.mini-cart-empty {
  color: #6c757d;
  text-align: center;
  padding: 20px 0;
}

.mini-cart-items {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}

.mini-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.mini-cart-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
}

.mini-cart-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.mini-cart-meta {
  color: #666;
  font-size: 0.85rem;
}

.mini-cart-price {
  font-weight: 600;
}

.mini-cart-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}

.mini-cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.mini-cart-actions {
  display: flex;
  gap: 8px;
}

.mini-cart-btn {
  flex: 1;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.mini-cart-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.mini-cart-item.is-new {
  background: #f1f8ff;
  border-radius: 8px;
  padding: 8px;
}

.cart-toast-message {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.cart-toast-icon {
  font-size: 1.2rem;
  animation: cart-toast-pulse 1.2s ease-in-out infinite;
}

@keyframes cart-toast-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

.search-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.search-product-cell {
  min-width: 0;
}
@media (min-width: 768px) {
  .search-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .search-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.account-auth-main-wrapper {
  background: #fff;
}

.auth-card {
  border-radius: 10px;
}

.auth-card .row {
  align-items: center;
}

.login-hero {
  width: 200px;
  display: block;
  margin: 0 auto 12px;
}

.guest-hero {
  display: block;
  margin: 0 auto 12px;
}

.login-container h6 {
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.sign-fields-wrapper {
  text-align: left;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #666;
  padding: 0;
  line-height: 1;
}

.login-butn-forgot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
  width: 100%;
}

.login-btn {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  min-width: 120px;
}

.login-btn:hover {
  background: #bb2d3b;
}

.forgot-pass {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: auto;
}

.display-mob {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.guest-checkout-btn {
  width: 100%;
  display: flex;
  justify-content: center;
}

.checkout-as-guest {
  color: #fff;
  background: #dc3545;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  justify-content: center;
  width: 100%;
  max-width: 260px;
}

.checkout-as-guest:hover {
  background: #bb2d3b;
  color: #fff;
}

.width-2 {
  height: 100%;
  min-height: 220px;
  opacity: 0.25;
  width: 1px;
  margin: 0 auto;
}

.auth-card h5 {
  font-weight: 700;
}

.account-page {
  background: #fff;
}

.account-title {
  font-weight: 700;
  margin-bottom: 16px;
}

.account-sidebar {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

.account-sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.dashboard-list .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.dashboard-list .nav-link.active {
  background: #e9ecef;
  color: #000;
}

.account-content {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 24px;
}

.readonly-field {
  background: #f5f5f5;
  border-style: dashed;
  color: #666;
  cursor: not-allowed;
}

.account-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

@media (max-width: 768px) {
  .account-landscape-hint {
    display: block;
  }
}

.account-landscape-hint {
  display: none;
  margin: 6px 0 16px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff7d6;
  color: #6b4d00;
  border: 1px solid #f0d98a;
  font-size: 0.9rem;
}

.review-upload-zone {
  border: 2px dashed #198754;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: #198754;
  background: #f3fbf6;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.review-upload-zone.is-dragover {
  background: #e6f7ed;
  border-color: #157347;
}

.review-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.review-upload-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  background: #fff;
}

.review-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  background: #dc3545;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.account-product-card {
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.account-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.account-product-card.removing {
  opacity: 0;
  transform: translateY(12px);
}

.account-product-thumb {
  position: relative;
  background: #faf7f5;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.account-product-thumb img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  mix-blend-mode: multiply;
}

.account-product-actions {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #f1f1f1;
  background: #fff;
}

.account-product-actions .btn {
  flex: 1;
  font-size: 0.8rem;
}

.account-product-info {
  padding: 12px 14px 16px;
}

.account-product-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.account-product-info p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.account-product-price del {
  color: #999;
  margin-right: 6px;
}

.account-product-price strong {
  color: #b01b2d;
  font-size: 1rem;
}

.account-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
}

.account-stars i {
  color: #d4d4d4;
  margin-right: 2px;
}

.account-stars i.active {
  color: #f4b400;
}

.account-product-review {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
}

.wishlist-remove-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid #f3c1c1;
  background: #fff;
  color: #e11d48;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.wishlist-remove-btn:hover {
  background: #fee2e2;
}

.account-product-stock {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.stock-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e8f5e9;
  color: #1b5e20;
}

.stock-pill.outstock {
  background: #fde8e8;
  color: #b91c1c;
}

.stock-save {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #9a3412;
}

.review-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.review-star-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-star {
  font-size: 22px;
  color: #c4c4c4;
  cursor: pointer;
  transition: color 0.15s ease;
}

.review-star.selected {
  color: #f4b400;
}

.product-reviews-section {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: 0.95rem;
}

.review-stars .bi {
  color: #f4b400;
  margin-right: 2px;
}

.review-summary-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-count {
  color: #777;
}

.review-list {
  display: grid;
  gap: 16px;
  margin: 18px 0;
}

.review-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f0e5e5;
  background: #fafafa;
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.review-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf6f0;
  color: #177a4a;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 0.85rem;
}

.review-rating .bi {
  color: #f4b400;
}

.review-date {
  color: #888;
}

.review-title {
  margin: 10px 0 4px;
  font-size: 1rem;
}

.review-body {
  color: #555;
  margin: 0;
}

.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.review-images img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.review-empty {
  margin-top: 12px;
  color: #666;
}

.review-form-wrapper {
  margin-top: 18px;
}

.review-hint {
  margin-top: 12px;
  color: #666;
}

.review-signin-link {
  color: #b01b2d;
  font-weight: 600;
  text-decoration: underline;
}

.review-signin-link:hover {
  color: #8a1523;
}

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.search-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  z-index: 1200;
  display: none;
  padding: 10px;
}

.search-autocomplete.show {
  display: block;
}

.autocomplete-section + .autocomplete-section {
  margin-top: 10px;
  border-top: 1px solid #f2f2f2;
  padding-top: 10px;
}

.autocomplete-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 6px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  color: #222;
  text-decoration: none;
}

.autocomplete-item:hover {
  background: #f7f7f7;
}

.autocomplete-item img,
.autocomplete-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f1f1;
}

.autocomplete-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.autocomplete-meta {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: #666;
}

.autocomplete-category-pill {
  background: #f4f4f4;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.search-filter-card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.search-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.search-category-chip {
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #222;
  font-size: 0.85rem;
}

.search-category-chip:hover {
  background: #ececec;
}

.search-empty {
  background: #fffaf6;
  border: 1px dashed #f0cfa4;
  border-radius: 12px;
  padding: 18px;
}

.search-empty-message {
  font-weight: 600;
  color: #b42318;
  font-size: 1rem;
  margin-bottom: 12px;
}

.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 1300;
  padding: 24px 16px;
}

.mobile-search-overlay.active {
  display: block;
}

.mobile-search-panel {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.mobile-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.custom-order-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:1200}
.custom-order-modal--visible{display:flex}
.custom-order-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.custom-order-modal__content{position:relative;background:#fff;border-radius:10px;box-shadow:0 20px 40px rgba(0,0,0,.25);max-width:min(560px,92vw);max-height:88vh;display:flex;align-items:center;justify-content:center;padding:14px}
.custom-order-modal__image{max-width:100%;height:auto;display:block;border-radius:0}
.custom-order-modal__close{position:absolute;top:6px;right:10px;border:none;background:transparent;font-size:24px;line-height:1;cursor:pointer;color:#b23}

.mobile-search-form {
  display: flex;
  gap: 8px;
}

.mobile-search-panel .search-autocomplete {
  position: static;
  margin-top: 10px;
  box-shadow: none;
  border: 1px solid #f0f0f0;
}

@media (min-width: 601px) {
  .mobile-search-overlay {
    display: none !important;
  }
}

.gc_thumbnail {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  background: #fafafa;
}

.newsletter-section {
  margin: 50px 0 70px;
}

.newsletter-card {
  background: linear-gradient(120deg, #fff4f4 0%, #fff 55%, #f5f5f5 100%);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #f1d7d7;
}

.newsletter-card.subscribed {
  background: linear-gradient(120deg, #f6fff9 0%, #ffffff 55%, #f4f9f6 100%);
  border-color: #cfe9d7;
}

.newsletter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.newsletter-copy h3 {
  font-weight: 700;
  margin-bottom: 6px;
}

.newsletter-copy p {
  margin: 0;
  color: #555;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.newsletter-form input {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 240px;
}

.newsletter-section .newsletter-form .newsletter-row input {
  flex: 0 1 240px;
}

.newsletter-section .newsletter-form {
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  text-align: right;
}

.newsletter-section .newsletter-form .newsletter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

.newsletter-section .newsletter-form .g-recaptcha {
  width: auto;
  align-self: flex-end;
}

.newsletter-section .newsletter-form .g-recaptcha > div {
  margin-left: 0 !important;
}

/* ==========================
   Home responsive tweaks
   ========================== */

@media (max-width: 1200px) {
  .banner-sec,
  .home-section,
  .category-carousel-section {
    width: 90vw;
  }
  .home-section {
    padding: 1.5rem 1rem;
  }
  .embla__slide {
    width: 360px;
  }
  .top-viewed-section .embla__slide {
    width: 200px;
  }
  .category-card {
    width: 260px;
  }
}

@media (max-width: 992px) {
  .banner-sec,
  .home-section,
  .category-carousel-section {
    width: 94vw;
  }
  .home-section {
    margin-top: 2rem;
    padding: 1.25rem 0.85rem;
  }
  .embla__slide {
    width: 300px;
  }
  .top-viewed-section .embla__slide {
    width: 180px;
  }
  .category-card {
    width: 220px;
  }
  .child-grid {
    gap: 0.6rem;
  }
}

@media (max-width: 991.98px) {
  .carousel-nav {
    display: none !important;
  }

  .custom-carousel-control {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .banner-sec,
  .home-section,
  .category-carousel-section {
    width: 96vw;
  }
  .banner-sec {
    aspect-ratio: auto;
  }
  .banner-sec img {
    height: auto;
  }
  .home-section {
    padding: 1rem 0.8rem;
  }
  .embla__slide {
    width: 260px;
  }
  .top-viewed-section .embla__slide {
    width: 160px;
  }
  .category-card {
    width: 200px;
  }
  .child-grid {
    grid-template-columns: 1fr;
  }
  .product-grid-2x2 {
    grid-template-columns: 1fr;
  }
  .top-viewed-section .product-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-section .newsletter-form {
    align-items: flex-start;
    text-align: left;
  }
  .newsletter-section .newsletter-form .newsletter-row {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .banner-sec,
  .home-section,
  .category-carousel-section {
    width: 98vw;
  }
  .home-section {
    padding: 0.9rem 0.7rem;
    margin-top: 1.5rem;
  }
  .embla__slide {
    width: 85vw;
  }
  .home-section .embla__slide {
    width: 38vw;
  }
  .home-section .embla__container {
    gap: 0.5rem;
  }
  .top-viewed-section .embla__slide {
    width: 150px;
  }
  .category-card {
    width: 80vw;
  }
  .child-category img {
    height: 160px;
  }
  .category-carousel-section .child-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .product-card-actions .card-add-cart,
  .product-card-shipping-badge {
    margin-top: 0;
  }

  .home-section .product-card .card-title {
    font-size: 0.85rem;
  }
}

@media (min-width: 512px) and (max-width: 1200px) {
  .home-section .embla__viewport {
    padding: 0;
  }
  .home-section .embla__slide {
    width: 30.5%;
  }
  .home-section .embla__container {
    gap: 0.8rem;
  }
}

@media (min-width: 1201px) {
  .home-section .embla__viewport {
    padding: 0;
  }
  .home-section .embla__slide {
    width: 18%;
  }
  .home-section .embla__container {
    gap: 0.6rem;
  }
}

@media (max-width: 511px) {
  .home-section .embla__viewport {
    padding: 0 6px;
  }
  .home-section .embla__slide {
    width: 46%;
    box-sizing: border-box;
  }
  .home-section .embla__container {
    gap: 0.35rem;
  }
}

.site-footer .newsletter-form input {
  min-width: 180px;
  flex: 1;
}

.site-footer .newsletter-form {
  align-items: stretch;
}

.site-footer .newsletter-form .newsletter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer .newsletter-form .g-recaptcha {
  width: 100%;
}

.site-footer .newsletter-form .g-recaptcha > div {
  margin-left: 0 !important;
}

.footer-newsletter .newsletter-status {
  margin-top: 6px;
}

.newsletter-status {
  width: 100%;
  color: #555;
  font-size: 0.9rem;
}

/* =============================
   Responsive Overrides
   ============================= */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 1199.98px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  .section-wrapper {
    padding: 2rem 0;
  }

  .category-carousel-section {
    width: 95vw;
  }

  .category-card {
    width: min(300px, 85vw);
  }

  .child-grid {
    grid-template-columns: 1fr;
  }

  .child-category img {
    height: 110px;
  }

  .cart-summary {
    position: static;
    box-shadow: none;
  }

  .cart-item {
    padding: 1rem;
  }

  .main-image {
    max-height: 420px;
    object-fit: contain;
  }

  .fbt-bundle-row {
    grid-template-columns: 1fr;
  }

  .account-content {
    padding: 16px;
  }
}

@media (max-width: 767.98px) {
  .product-card img,
  .collection-card img {
    height: 200px;
  }

  .product-card .info,
  .collection-card .info {
    padding: 0.6rem 0.75rem;
  }

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

  .product-excerpt {
    font-size: 1rem;
  }

  .price-main {
    font-size: 1.6rem;
  }

  .thumb {
    width: 64px;
    height: 64px;
  }

  .cart-item {
    gap: 1rem;
  }

  .cart-item-thumb {
    width: 90px;
    height: 90px;
  }

  .mini-cart-item {
    grid-template-columns: 56px 1fr;
  }

  .mini-cart-price {
    justify-self: start;
  }

  .share-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-actions {
    width: 100%;
  }

  .marketplace-row {
    justify-content: flex-start;
  }

  #paypal-container-wrap {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .section-wrapper {
    padding: 1.5rem 0;
  }

  .product-card img,
  .collection-card img {
    height: 180px;
  }

  .cart-item-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-qty {
    width: 100%;
    justify-content: space-between;
  }

  .product-detail-page .btn-add-cart {
    width: 100%;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .mini-cart-actions {
    flex-direction: column;
  }
}

/* ==========================
   Sale Banner (Home)
   ========================== */
.offer-sale-sec {
  background: #e31b23;
  color: #fff;
  padding: 0 0 14px;
  margin: 0 0 8px;
}

.offer-sale-sec .offer-heading {
  margin: 0;
  padding: 8px 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.offer-sale-sec .offer-content {
  background: #e31b23;
}

.offer-sale-sec .offer-content .row {
  align-items: center;
  text-align: center;
}

.offer-sale-sec .buy-more strong {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  min-width: 160px;
}

.offer-sale-sec h5 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.offer-sale-sec .offer-time #countdown {
  background: #000;
  color: #fff;
  padding: 8px 14px;
  display: inline-block;
  min-width: 150px;
}

.offer-sale-sec .offer-time ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  font-size: 0.85rem;
}

.offer-sale-sec .offer-time li {
  text-align: center;
  line-height: 1.1;
}

.offer-sale-sec .offer-time li span {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.offer-sale-sec .order-text {
  display: inline-block;
  font-weight: 700;
  font-size: 1.35rem;
}

.offer-sale-sec .use-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #111;
  padding: 8px 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.offer-sale-sec .use-code p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.6px;
}

.offer-sale-sec .use-code label {
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .offer-sale-sec .offer-heading {
    font-size: 0.95rem;
  }
  .offer-sale-sec h5 {
    font-size: 1.5rem;
  }
  .offer-sale-sec .order-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .offer-sale-sec .offer-content .row > div {
    margin-bottom: 8px;
  }
  .offer-sale-sec .buy-more strong {
    min-width: auto;
  }
  .offer-sale-sec .offer-time ul {
    gap: 6px;
    font-size: 0.75rem;
  }
}

.cookie-consent-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f7d9aa;
  color: #2b1d0f;
  border-top: 1px solid #e2c091;
  padding: 12px 16px;
  z-index: 1085;
  display: none;
}

.cookie-consent-bar.is-visible {
  display: block;
}

.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.cookie-consent-text a {
  color: inherit;
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
