/* ===================== */
/* HORIZONTAL SCROLL */
/* ===================== */

.horizontal-wrapper,
.scroll-container {
    position: relative;
    margin-bottom: 10px;
}

.horizontal-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* FIXED CARD SIZE */
.horizontal-card {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    border-radius: 14px;
    scroll-snap-align: start;
}

/* IMAGE CONSISTENCY */
.horizontal-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

//* Product card titles */
.product-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* BADGES */
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    color: #fff;
    z-index: 5;
    white-space: nowrap;
}
.product-badge {
    white-space: nowrap;
    max-width: 90px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-new { background: #0d6efd; }
.badge-trending { background: #dc3545; }
.badge-sale { background: #198754; }

/* SCROLL BUTTONS (DESKTOP ONLY) */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.scroll-left { left: -10px; }
.scroll-right { right: -10px; }

.scroll-btn:hover {
    background: #000;
}

@media (min-width: 768px) {
    .scroll-btn {
        display: flex;
    }
}

/* MOBILE POLISH */
@media (max-width: 767px) {
    .horizontal-card {
        width: 160px;
        min-width: 160px;
    }

    .horizontal-card img {
        height: 160px;
    }

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

    .scroll-btn {
        display: none !important; /* Swipe only on mobile */
    }
}

/* =========================
   PREMIUM IMAGE-LIKE CATEGORY ICONS (JIJI STYLE)
   ========================= */

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #111827;
}

/* MAIN CIRCLE */
.category-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffffff, #eef2f7);
    border: 1px solid #e5e7eb;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 10px 20px rgba(0,0,0,0.12),
        inset 0 2px 4px rgba(255,255,255,0.9);

    transition: all 0.35s ease;
}

/* ICON */
.category-circle span {
    font-size: 54px;
    line-height: 1;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.15));
}

/* HOVER */
.category-card:hover .category-circle {
    transform: translateY(-6px);
    box-shadow:
        0 18px 35px rgba(0,0,0,0.18),
        inset 0 3px 6px rgba(255,255,255,1);
}

/* LABEL */
.category-label {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: #111827;
}

/* MOBILE CATEGORY ICONS */
@media (max-width: 576px) {
    .category-circle {
        width: 80px;
        height: 80px;
    }

    .category-circle span {
        font-size: 34px;
    }

    .category-label {
        font-size: 12px;
    }
}

/* =========================
   WATERMARK PROTECTION
   ========================= */

.image-container {
    position: relative;
}

.image-container::after {
    content: "GUZONES.COM";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: rgba(255,255,255,0.18);
    transform: rotate(-30deg);
    pointer-events: none;
    user-select: none;
}

/* =========================
   LANGUAGE SWITCHER
   ========================= */

.btn-lang {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
}

.btn-lang:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.dropdown-item {
    font-size: 14px;
}

/* LANGUAGE DROPDOWN FIX (MOBILE) */
.dropdown-menu {
    z-index: 1055; /* higher than navbar */
}

@media (max-width: 576px) {
    .dropdown-menu {
        min-width: 140px;
        font-size: 14px;
    }
}

/* =========================
   CART MOBILE OPTIMIZATION
   ========================= */

@media (max-width: 576px) {

    .cart-item {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .cart-item img {
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 10px;
    }

    .cart-item-details {
        flex: 1;
    }

    .cart-item h5 {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .cart-item-price {
        font-size: 13px;
        font-weight: 600;
    }

    .cart-total {
        font-size: 16px;
    }

    .btn-checkout {
        width: 100%;
        padding: 12px;
        font-size: 15px;
        border-radius: 999px;
    }
}

/* =========================
   CART DESKTOP CONTAINER
   ========================= */

.cart-container {
    max-width: 900px;     /* ⬅️ KEY FIX */
    margin: 0 auto;
}
/* =========================
   CART ITEM DESKTOP SIZE
   ========================= */

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item img {
    width: 110px;        /* ⬅️ MUCH SMALLER */
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item-details h5 {
    font-size: 15px;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
}

.cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-actions button {
    padding: 6px 10px;
    font-size: 13px;
}
/* =========================
   CART SUMMARY
   ========================= */

.cart-summary {
    max-width: 360px;
    margin-left: auto;
    padding: 18px;
    border-radius: 14px;
    background: #f9fafb;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.cart-summary h4 {
    font-size: 18px;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 999px;
}
/* =========================
   CATEGORY PAGE GRID FIX
   ========================= */

.category-products-grid .product-card img {
    height: 160px;
    object-fit: cover;
}

/* MOBILE */
@media (max-width: 576px) {
    .category-products-grid .product-card img {
        height: 150px;
    }

    .product-title {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* PRODUCT CARD */
.related-link { text-decoration:none; color:inherit; }

.related-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: .35s;
    height: 100%;
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.related-img { height:170px; overflow:hidden; }
.related-img img { width:100%; height:100%; object-fit:cover; transition:.4s; }
.related-card:hover img { transform:scale(1.12); }


.wishlist-btn {
    position:absolute; top:12px; right:12px;
    width:32px; height:32px;
    background:#fff; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:18px; color:#e63946;
    box-shadow:0 6px 18px rgba(0,0,0,.15);
}

.related-body { padding:12px 14px 16px; }

.rating { font-size:13px; color:#f4b400; margin-bottom:4px; }
.rating span { color:#777; font-size:12px; }

.related-name {
    font-size:14px; font-weight:500;
    line-height:1.4; height:38px; overflow:hidden;
}
.related-price { font-size:15px; font-weight:700; }

/* 🔔 Notification Bell */
.notification-bell {
    font-size: 22px;
    text-decoration: none;
    line-height: 1;
}

/* 🔴 Badge */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.banner-detail-page {
  padding: 14px;
}

/* Main Image */
.banner-image img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

/* Gallery */
.banner-gallery {
  display: flex;
  gap: 8px;
  margin: 10px 0 18px;
  overflow-x: auto;
}

.banner-gallery img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #eee;
}

/* Info Cards */
.banner-card {
  background: #f9f9f9;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.banner-card.title {
  font-size: 20px;
  font-weight: 600;
}

.banner-card.price {
  font-size: 22px;
  font-weight: bold;
  color: #0d6efd;
}

.banner-card.description {
  font-size: 15px;
  color: #444;
  line-height: 1.5;
}

/* Contact Seller */
.contact-seller-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  text-align: center;
  background: #035c2f;
  color: white;
  font-size: 17px;
  border-radius: 14px;
  text-decoration: none;
}

.contact-seller-btn:active {
  transform: scale(0.98);
}

.banner-main-image img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.banner-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
}

.banner-thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.banner-thumbnails img.active-thumb {
  border-color: #0d6efd;
}

.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-zoom-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.close-zoom {
  position: absolute;
  top: 18px;
  right: 18px;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.contact-seller-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  text-align: center;
  border-radius: 14px;
  font-size: 16px;
  text-decoration: none;
  color: white;
}

.contact-seller-btn.whatsapp {
  background: #25D366;
}

.contact-seller-btn.call {
  background: #0d6efd;
}

/* ===== PROMO BANNER POSITIONING ===== */
.promo-wrapper {
    margin-top: -26px;   /* 👈 touches navbar */
    padding-top: 0;
}

.promo-banner {
    height: 220px;
    object-fit: cover;
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
    .promo-wrapper {
        margin-top: -18px;  /* perfect on iOS & Android */
    }
}

/* ===== PROMO BANNER (SHEIN STYLE) ===== */

.promo-wrapper {
    width: 100%;
    margin-top: 0;          /* touches navbar */
    padding: 0;
}

.promo-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;       /* edge-to-edge */
}

/* Mobile height */
@media (max-width: 768px) {
    .promo-img {
        height: 200px;
    }
}

/* CTA overlay */
.promo-link {
    position: relative;
    display: block;
}

.promo-cta {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}

/* Animate like SHEIN */
.promo-link:hover .promo-cta,
.promo-link:active .promo-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ===== TRUE FULL-BLEED PROMO (SHEIN FIX) ===== */

.promo-fullbleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.promo-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Mobile tuning */
@media (max-width: 768px) {
    .promo-img {
        height: 240px;
    }
}

.promo-fullbleed {
        margin-top: -25px;  /* ⬅ gently pulls banner toward navbar */
    }

/* ===== BANNER CTA ===== */
.banner-wrapper {
    position: relative;
}

.banner-cta {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 26px;
    background: #ff2f92;
    color: #fff;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    animation: pulse 1.8s infinite;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 47, 146, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 47, 146, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 47, 146, 0);
    }
}

.banner-cta {
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.banner-cta:hover {
    transform: scale(1.05);
    opacity: 0.9;
    color: #fff;
}

/* GRID */
.for-you-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 6px;   /* 🔥 smaller space between left & right */
  row-gap: 10px;     /* keep vertical spacing comfortable */
}

/* CARD */
.for-you-card {
  background: #ffffff;
  border-radius: 8px;   /* 🔥 less rounded overall */
  overflow: hidden;
}

/* IMAGE */
.for-you-img-wrapper img {
  width: 100%;
  height: 240px;   /* 🔥 Taller portrait */
  object-fit: cover;
  display: block;
  border-radius: 6px;   /* 🔥 Slight rounding only */
}

/* INFO */
.for-you-info {
  padding: 8px;
  background: #fafafa;
}

/* TITLE - max 2 lines */
.for-you-title {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.for-you-description {
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* PRICE */
.for-you-price {
  font-size: 14px;
  font-weight: 600;
  color: #ac060f;
}

/* ========================= */
/* CATEGORY SWIPE STYLE */
/* ========================= */

.category-wrapper {
    background: #fff;
    padding: 15px 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Horizontal scroll container */
.category-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto); /* 3 rows fixed */
    grid-auto-columns: 80px;
    gap: 14px 10px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
}

/* Hide scrollbar (mobile clean look) */
.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    text-decoration: none;
    text-align: center;
    color: #222;
}

.category-box {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    background: #f3f3f3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.category-box:hover {
    background: #eaeaea;
}

.category-icon {
    font-size: 22px;
}

.category-name {
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.2;
}

/* SECTION CONTAINER */
.horizontal-wrapper {
  background: #ffffff;
  padding: 12px;
  margin-bottom: 25px;
  border-radius: 6px;
}

/* Title style */
.section-title {
  font-weight: 700;
  font-size: 18px;
  margin: 10px 0 12px;
  letter-spacing: 0.5px;
}

/* Scroll row */
.horizontal-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* Card smaller & sharper */
.horizontal-card {
  min-width: 130px;   /* SMALLER */
  flex: 0 0 auto;
  background: #fff;
  border-radius: 4px;  /* LESS ROUND */
  overflow: hidden;
}

/* Remove link underline */
.product-link {
  text-decoration: none;
  color: inherit;
}

/* Image */
.horizontal-card img {
  width: 100%;
  height: 150px;   /* smaller image */
  object-fit: cover;
  border-radius: 4px;
}

/* Badge */
.product-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 14px;
  color: #fff;
}

.badge-new { background: #2b6df6; }
.badge-trending { background: #ff3b3b; }
.badge-sale { background: #00a650; }

/* Product info */
.product-info {
  padding: 6px 4px 8px;
}

/* SINGLE LINE TITLE */
.product-title {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;        /* FORCE ONE LINE */
  overflow: hidden;
  text-overflow: ellipsis;    /* SHOW ... */
}

/* Price */
.product-price {
  font-size: 14px;
  font-weight: 700;
  color: #e60023;
  margin-top: 4px;
}

/* ============================= */
/* HOME PRODUCTS TABS */
/* ============================= */

.home-products-container {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 25px;
}

/* TABS */
.home-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.home-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: #f3f3f3;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.home-tab.active {
  background: #111;
  color: white;
}

/* PRODUCT ROW */
.home-products-scroll {
  position: relative;
}

.home-products-row {
  display: none;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.home-products-row.active {
  display: flex;
}

/* PRODUCT CARD */
.mini-product-card {
  min-width: 130px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  flex-shrink: 0;
}

.mini-product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

/* INFO */
.mini-product-info {
  padding: 8px;
}

.mini-title {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-price {
  font-size: 14px;
  font-weight: 700;
  color: #e60023;
  margin-top: 4px;
}

/* ===== Tabs ===== */
.product-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: #f2f2f2;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s;
}

.tab-btn.active {
  background: #000;
  color: #fff;
}

/* ===== Tab Content ===== */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== Grid Card ===== */
.grid-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 6px;
}

.grid-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0;
}

.grid-info {
  padding: 6px 4px;
}

.grid-title {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}

.grid-price {
  color: #d10000;
  font-weight: 700;
  font-size: 15px;
  margin-top: 4px;
}

/* ===== NEW ARRIVALS FINAL COMPACT ===== */

.horizontal-card {
    width: 135px;
    flex: 0 0 auto;
}

/* IMAGE */
.image-wrapper {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #f6f6f6;
}

.new-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* PRODUCT INFO */
.product-info {
    padding: 2px 0 0 0;   /* almost no space */
    margin: 0;
}

/* TITLE – Stylish + Always … */
.product-title.one-line {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 3px 0 0 0;   /* very tight */
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    display: block;
}

/* PRICE – Very close */
.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #d6001c;
    margin: 2px 0 0 0;   /* almost touching title */
    letter-spacing: 0.3px;
}

.horizontal-card a {
    text-decoration: none;
}

.horizontal-card h6,
.horizontal-card p {
    margin: 0;
}

body {
    padding-bottom: 70px;
}

.category-icon i {
    font-size: 22px;
    color: #000;
}

.category-icon:hover i {
    color: #ff3b3b;
    transform: scale(1.1);
    transition: 0.2s ease;
}

/* ========================= */
/* DESKTOP & TABLET SUPPORT  */
/* ========================= */

@media (min-width: 992px) {

  .desktop-wrapper {
    max-width: 1440px;
    margin: 0 auto;
  }

}

@media (min-width: 992px) {

  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

}

@media (min-width: 992px) {

  .product-details-wrapper {
    display: flex;
    gap: 40px;
  }

  .product-images {
    flex: 1;
  }

  .product-info {
    flex: 1;
  }

}

@media (min-width: 992px) {

  .chat-container {
    max-width: 800px;
    margin: 40px auto;
  }

}
/* ========================= */
/* DESKTOP & TABLET FIXES */
/* ========================= */

@media (min-width: 768px) {

  /* Center main content */
  .container,
  .main-content,
  .product-container {
      max-width: 1200px;
      margin: 0 auto;
  }

  /* Product image portrait ratio */
  .product-image,
  .product-image img {
      width: 100%;
      height: 500px;
      object-fit: cover;
      border-radius: 12px;
  }

  /* Product cards grid */
  .product-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
  }

  /* Add to cart bar not full width on desktop */
  .add-to-cart-bar {
      max-width: 1200px;
      margin: auto;
      border-radius: 12px;
  }

}

/* ============================= */
/* TRENDING - DESKTOP FRIENDLY  */
/* ============================= */

@media (min-width: 768px) {

  /* Make grid responsive */
  .for-you-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* Tablet */
      gap: 20px;
  }

}

@media (min-width: 1024px) {

  .for-you-grid {
      grid-template-columns: repeat(4, 1fr); /* Desktop */
  }

  .for-you-card {
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      border-radius: 14px;
  }

  .for-you-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

}

/* ============================= */
/* FIX IMAGE RATIO (IMPORTANT) */
/* ============================= */

.for-you-img-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;  /* Portrait style */
    overflow: hidden;
    border-radius: 12px;
}

.for-you-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================= */
/* TITLE IMPROVEMENT */
/* ============================= */

.for-you-title {
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    min-height: 38px;
    overflow: hidden;
}

/* Desktop slightly bigger text */
@media (min-width: 1024px) {
    .for-you-title {
        font-size: 15px;
    }
}



/* ===================================== */
/* RELATED PRODUCTS GRID DESKTOP */
/* ===================================== */

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

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

.related-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
}

/* ===================================== */
/* STICKY CART DESKTOP FIX */
/* ===================================== */

@media (min-width: 992px) {
  .sticky-cart {
      max-width: 1200px;
      margin: auto;
      border-radius: 14px;
  }
}

/* Bottom nav tablet/desktop behaviour is now handled by the
   Guzones Responsive System block at the bottom of this file. */

/* ========================= */
/* CART RESPONSIVE FIX */
/* ========================= */

@media (max-width: 768px) {

  .cart-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cart-item-top {
    display: flex;
    gap: 12px;
  }

  .cart-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
  }

  .cart-details {
    flex: 1;
  }

  .cart-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .cart-actions a {
    padding: 6px 10px;
  }

  .cart-price {
    font-size: 14px;
  }

  .checkout-floating {
    position: fixed;
    bottom: 70px; /* above bottom nav */
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  }

}

/* ===============================
   TRUST STRIP — ULTRA COMPACT FINAL
================================ */

.trust-strip {
    background: #efe3d3;
    padding: 6px 10px;                 /* even tighter */
    margin: -8px 12px 10px 12px;       /* clean touch to banner */
    border-radius: 8px;
    border: 1px solid #e2d2bf;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.trust-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;                          /* tighter gap */
    flex: 1;
    min-width: 0;                      /* prevents overflow issues */
}

.trust-icon {
    width: 26px;                       /* smaller box */
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7efe6;
    border-radius: 6px;
    color: #7a5c3e;
}

.trust-icon svg {
    width: 14px;
    height: 14px;
}

.trust-text {
    line-height: 1.1;                  /* reduce vertical spacing */
}

.trust-text strong {
    font-size: 12px;
    color: #5a4632;
    white-space: nowrap;               /* keep on one line */
}

.trust-text span {
    font-size: 10px;
    color: #8a7560;
    white-space: nowrap;               /* keep on one line */
}

.trust-divider {
    width: 1px;
    height: 22px;                      /* shorter divider */
    background: #d8c6b3;
    margin: 0 6px;
}



/* =========================
   MODERN DOT INDICATORS
========================= */

.carousel-indicators {
    bottom: 18px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 6px;
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators .active {
    width: 22px;
    border-radius: 20px;
    background-color: #ffffff;
}

/* =========================
   FORCE SHEIN DOT STYLE
========================= */

.carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: rgba(255,255,255,0.6) !important;
    border: none !important;
    margin: 0 4px !important;
    opacity: 1 !important;
}

.carousel-indicators .active {
    background-color: #ffffff !important;
    transform: scale(1.2);
}

/* RATING */
.related-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 6px 0;
}

.star {
    font-size: 13px;
    color: #d1d5db;
}

.star.filled {
    color: #f59e0b; /* Amazon orange */
}

.rating-count {
    font-size: 12px;
    color: #6b7280;
    margin-left: 4px;
}

/* AMAZON SMALL BUTTON */
.amazon-cart-btn-small {
    width: 100%;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 18px;
    padding: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    transition: 0.2s;
}

.amazon-cart-btn-small:hover {
    background: #f7ca00;
}

.amazon-cart-btn-small {
    width: 100%;
    background: #ffd814;
    border: 1px solid #fcd200;
    border-radius: 18px;
    padding: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 6px;
    transition: 0.2s;
    color: #111;   /* 🔥 MAKE TEXT BLACK */
}

/* ===============================
   RELATED PRODUCTS — AMAZON STYLE
================================ */

/* Grid layout */
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Card */
.related-card {
    background: #fff;
    border-radius: 10px;          /* less rounded */
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: 0.2s ease;
}

/* Image */
.related-card img {
    width: 100%;
    height: 260px;                /* portrait height */
    object-fit: contain;          /* 🔥 show FULL image */
    background: #fff;             /* clean background */
    padding: 12px;                /* space like Amazon */
    display: block;
}

/* Info section */
.related-info {
    padding: 10px 12px 14px;
}

/* Product name */
.related-name {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* Price */
.related-price {
    font-size: 16px;
    font-weight: 700;
    color: #B12704;   /* Amazon red */
}

.home-badge.best-seller {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff9900;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
}

.limited-text {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #cc0c39;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.star {
  font-size: 14px;
  color: #ccc;
}

.star.filled {
  color: #f5a623;
}

.rating-count {
  font-size: 13px;
  color: #555;
  margin-right: 6px;
}

/* AMAZON STYLE LIMITED BADGE */
.limited-badge-inline {
  background: #cc0c39;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.home-add-cart {
  width: 100%;
  margin-top: 8px;
  background: #ffd814;      /* Amazon yellow */
  border: 1px solid #fcd200;
  color: #111;
  font-weight: 600;
  padding: 8px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.home-add-cart:hover {
  background: #f7ca00;
}

.category-add-cart {
  background: #FFD814;
  border: 1px solid #FCD200;
  color: #111;
  font-weight: 600;
  transition: all 0.2s ease;
}

.category-add-cart:hover {
  background: #F7CA00;
  border-color: #F2C200;
}

.category-add-cart:active {
  background: #E6B800;
}

.amazon-cart-btn {
  background: #FFD814;
  border: 1px solid #FCD200;
  color: #111;
  font-weight: 600;
  transition: all 0.2s ease;
}

.amazon-cart-btn:hover {
  background: #F7CA00;
  border-color: #F2C200;
  transform: translateY(-1px);
}

.amazon-cart-btn:active {
  background: #E6B800;
  transform: translateY(0);
}

/* =========================
   GLOBAL PRODUCT SPACING
========================= */

/* Space below price */
.for-you-price,
.product-price {
  margin-bottom: 12px;
}

/* Space above Add To Cart button */
.amazon-cart-btn,
.home-add-cart,
.btn-add-cart {
  margin-top: 10px;
}

/* =========================
   PRODUCT INFO BOXES
========================= */

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* IN STOCK */
.success-box {
  background: #e8f6ec;
  color: #1e7e34;
}

.success-box .info-icon i {
  font-size: 18px;
  color: #28a745;
}

/* DELIVERY */
.delivery-box {
  background: #eef3fb;
  color: #1f4ea3;
}

.delivery-box .info-icon i {
  font-size: 18px;
  color: #2f6fed;
}



.shipping-icon {
    font-size: 14px;
    color: #ff9900; /* Amazon-style orange */
}

.home-ships-to {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-ships-to i {
    font-size: 11px;
    color: #ff9900; /* Amazon orange */
}

.home-ships-to {
    color: #777;
}

/* ===== Fix alignment only on Category page ===== */


.card-body .home-ships-to {
    padding-left: 0;
    margin-left: 2px;
}

.product-video-section {
    background: #fff;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.video-slider {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.video-slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
}

.product-video {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 14px;
}

/* WhatsApp Order Button Spacing */
.whatsapp-btn {
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 10px;
}

.whatsapp-btn {
    display: block;
    width: calc(100% - 30px);  /* leaves space on both sides */
    margin: 12px auto;         /* center horizontally */
}  

.image-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 12px;
    padding: 4px 8px;
}

/* ===== Sticky Cart Bar ===== */

.sticky-cart{
    position:fixed;
    bottom:15px;
    left:12px;
    right:12px;
    background:#ffffff;
    border-radius:18px;
    padding:10px;
    display:flex;
    align-items:center;
    gap:10px;
    box-shadow:0 10px 35px rgba(0,0,0,0.15);
    z-index:999;
}

/* Home button */

.home-btn{
    width:45px;
    height:45px;
    border-radius:12px;
    background:#f2f2f2;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    color:#333;
    text-decoration:none;
    transition:0.2s;
}

.home-btn:hover{
    background:#e8e8e8;
}

/* Quantity box */

.qty-box{
    display:flex;
    align-items:center;
    background:#f7f7f7;
    border-radius:12px;
    padding:4px 6px;
}

.qty-box button{
    border:none;
    background:none;
    font-size:20px;
    padding:6px 10px;
}

.qty-box span{
    font-weight:600;
    min-width:20px;
    text-align:center;
}

/* Add to cart button */

.btn-cart{
    flex:1;
    border:none;
    border-radius:14px;
    padding:12px;
    background:#000;
    color:#fff;
    font-weight:600;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:0.2s;
}

.btn-cart:hover{
    background:#111;
}



/* top row layout */

.category-chips{
display:flex;
overflow-x:auto;
gap:10px;
padding:10px 15px;
margin-bottom:10px;
}

.category-chips::-webkit-scrollbar{
display:none;
}

.chip{
flex:0 0 auto;
padding:8px 16px;
border-radius:20px;
background:#f2f2f2;
font-size:13px;
font-weight:500;
text-decoration:none;
color:#333;
}

.chip.active{
background:black;
color:white;
}

.category-filter-bar{
display:flex;
gap:10px;
padding:0 15px 10px;
}

.filter-btn{
padding:6px 14px;
border-radius:20px;
background:#f5f5f5;
font-size:13px;
text-decoration:none;
color:#333;
}

.category-chips{
display:flex;
overflow-x:auto;
gap:10px;
padding:10px 15px;
}

.category-chips::-webkit-scrollbar{
display:none;
}

.chip{
flex:0 0 auto;
padding:8px 14px;
border-radius:20px;
background:#f2f2f2;
font-size:13px;
text-decoration:none;
color:#333;
}

.chip.active{
background:black;
color:white;
}

.category-filter-bar{
display:flex;
gap:10px;
padding:0 15px 10px;
}

.filter-btn{
padding:6px 14px;
border-radius:20px;
background:#f5f5f5;
font-size:13px;
text-decoration:none;
color:#333;
}

.category-filter-bar{
display:flex;
align-items:center;
gap:10px;
padding:10px 15px;
}

.filter-dropdown{
position:relative;
}

.filter-trigger{
display:flex;
align-items:center;
gap:8px;
padding:8px 14px;
border-radius:20px;
border:1px solid #ddd;
background:white;
font-size:14px;
}

.filter-menu{
position:absolute;
top:40px;
left:0;
background:white;
border-radius:10px;
box-shadow:0 10px 25px rgba(0,0,0,0.1);
padding:10px;
display:none;
min-width:180px;
z-index:100;
}

.filter-menu a{
display:block;
padding:8px 10px;
text-decoration:none;
color:#333;
font-size:14px;
}

.filter-menu a:hover{
background:#f5f5f5;
}

.price-chips{
display:flex;
gap:8px;
overflow-x:auto;
padding:10px 15px;
}

.price-chips::-webkit-scrollbar{
display:none;
}

.price-chip{
flex:0 0 auto;
padding:6px 12px;
border-radius:16px;
background:#f2f2f2;
font-size:13px;
text-decoration:none;
color:#333;
border:1px solid #e5e5e5;
}

.price-chip:hover{
background:#e9e9e9;
}

.price-chip{
padding:6px 14px;
border-radius:20px;
background:#f2f2f2;
border:1px solid #e5e5e5;
font-size:13px;
text-decoration:none;
color:#333;
}

.price-chip.active{
background:#000;
color:#fff;
border-color:#000;
}

.clear-chip{
background:#fff;
border:1px solid #ddd;
color:#333;
}

.category-wrapper{
padding:10px 0;
}

.category-scroll{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:14px;
padding:0 12px;
}

.category-item{
text-align:center;
text-decoration:none;
color:#333;
}

.category-box{
width:70px;
height:70px;
margin:auto;
border-radius:18px;
background:#f4f4f4;
display:flex;
align-items:center;
justify-content:center;
}

.category-img{
width:45px;
height:45px;
object-fit:contain;
}

.category-icon{
font-size:26px;
}

.category-name{
font-size:12px;
margin-top:6px;
}

.category-img{
width:60px;
height:60px;
object-fit:cover;
border-radius:12px;
}

.category-icon{
font-size:28px;
}

/* CATEGORY SECTION */
.category-wrapper{
padding:10px 10px 5px 10px;
}

/* horizontal scroll */
.category-scroll{
display:flex;
overflow-x:auto;
gap:16px;
scrollbar-width:none;
}

.category-scroll::-webkit-scrollbar{
display:none;
}

/* item */
.category-item{
text-align:center;
min-width:80px;
text-decoration:none;
color:#222;
}

/* circle background */
.category-box{
width:70px;
height:70px;
background:#f3f3f3;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
overflow:hidden;
}

/* image */
.category-img{
width:100%;
height:100%;
object-fit:cover;
border-radius:50%;
}

/* icon fallback */
.category-icon{
font-size:28px;
}

/* category name */
.category-name{
font-size:13px;
margin-top:6px;
line-height:1.2;
}

.category-box{
transition:0.2s;
}

.category-item:active .category-box{
transform:scale(0.95);
}

/* =============================== */
/* CATEGORY SECTION */
/* =============================== */

.category-wrapper{
padding:12px 10px 6px 10px;
}

/* horizontal scroll container */
.category-scroll{
display:flex;
overflow-x:auto;
gap:18px;
padding:0 12px;
scrollbar-width:none;
}

.category-scroll::-webkit-scrollbar{
display:none;
}

/* category item */
.category-item{
text-align:center;
min-width:80px;
text-decoration:none;
color:#222;
transition:0.2s;
}

/* press effect like mobile apps */
.category-item:active{
transform:scale(0.95);
}

/* circle container */
.category-box{
width:70px;
height:70px;
background:#f3f3f3;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
overflow:hidden;
box-shadow:0 3px 8px rgba(0,0,0,0.08);
transition:0.2s;
}

/* image inside circle */
.category-img{
width:100%;
height:100%;
object-fit:cover;
border-radius:50%;
}

/* emoji fallback */
.category-icon{
font-size:28px;
}

/* category text */
.category-name{
font-size:13px;
margin-top:8px;
line-height:1.2;
font-weight:500;
color:#333;
}

/* hover for desktop */
.category-item:hover .category-box{
transform:translateY(-2px);
box-shadow:0 5px 12px rgba(0,0,0,0.12);
}

/* =============================== */
/* CATEGORY SECTION */
/* =============================== */

.category-wrapper{
padding:12px 10px 10px 10px;
}

/* GRID instead of single row */
.category-scroll{
display:grid;
grid-template-columns: repeat(4, 1fr);
gap:18px 10px;
padding:0 10px;
}

/* category item */
.category-item{
text-align:center;
text-decoration:none;
color:#222;
}

/* category circle */
.category-box{
width:70px;
height:70px;
background:#f3f3f3;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
overflow:hidden;
box-shadow:0 3px 8px rgba(0,0,0,0.08);
}

/* image */
.category-img{
width:100%;
height:100%;
object-fit:cover;
border-radius:50%;
}

/* fallback icon */
.category-icon{
font-size:28px;
}

/* category text */
.category-name{
font-size:13px;
margin-top:6px;
line-height:1.2;
font-weight:500;
color:#333;
}

/* press animation */
.category-item:active{
transform:scale(0.95);
}

/* CATEGORY GRID */
.category-scroll{
display:grid;
grid-template-columns: repeat(4, 1fr);
gap:18px 10px;
padding:0 10px;
}

/* CATEGORY ITEM */
.category-item{
text-align:center;
text-decoration:none;
color:#222;
}

/* CATEGORY CIRCLE */
.category-box{
width:70px;
height:70px;
background:#f3f3f3;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin:auto;
overflow:hidden;
}

/* CATEGORY IMAGE */
.category-img{
width:100%;
height:100%;
object-fit:cover;
border-radius:50%;
display:block;
}

/* ICON FALLBACK */
.category-icon{
font-size:28px;
}

/* CATEGORY TEXT */
.category-name{
font-size:13px;
margin-top:6px;
line-height:1.2;
font-weight:500;
color:#333;
}

button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

/* ===========================
   DELIVERY BAR (AMAZON STYLE)
=========================== */

.delivery-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    color: white;
    padding: 10px 15px;
    font-size: 13px;
}

.delivery-bar i {
    font-size: 16px;
    color: #fbbf24;
}

.delivery-text small {
    display: block;
    color: #cbd5f5;
    font-size: 11px;
}

.delivery-text strong {
    font-size: 13px;
}

/* INFO BOX */
.delivery-info {
    background: #334155;
    color: white;
    padding: 12px 15px;
    font-size: 13px;
}






/* =========================
   FIX OVERLAP WITH LOCATION BAR
========================= */

.location-bar {
    position: relative;
    z-index: 1;
    margin-top: 5px;
}


.home-page {
    padding-top: 0;
}



.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 10px;
}

.subcategory-card {
    text-align: center;
    text-decoration: none;
    color: #111;
}

.subcategory-box {
    width: 70px;
    height: 70px;
    margin: auto;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subcategory-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.subcategory-icon {
    font-size: 28px;
}

.subcategory-name {
    margin-top: 6px;
    font-size: 12px;
}


/* ===== FIX CUT EDGES (FULL BLEED SCROLL) ===== */
.category-wrapper,
.horizontal-wrapper {
    margin-left: -12px;
    margin-right: -12px;
}

.category-scroll,
.horizontal-scroll {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    overflow-x: auto;
    gap: 12px;
    scroll-behavior: smooth;
}

.category-scroll::-webkit-scrollbar,
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* ===== CARD FIX ===== */
.horizontal-card {
    flex: 0 0 140px;
}

/* ===== IMAGE SAFETY (VERY IMPORTANT) ===== */
img {
    max-width: 100%;
}

/* fallback broken images globally */
img[onerror] {
    background: #f2f2f2;
}

<!-- ===================== -->
<!-- PRODUCT TABS -->
<!-- ===================== -->

<style>
.product-tabs {
    display: flex;
    gap: 8px;
    padding: 0 12px;
    margin-top: 10px;
}

.tab-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    border: none;
    background: #f2f2f2;
    color: #333;
    transition: all 0.2s ease;
}

/* ACTIVE */
.tab-btn.active {
    background: #000;
    color: #fff;
}

/* HOVER (desktop safe) */
.tab-btn:hover {
    background: #ddd;
}
</style>

<div class="product-tabs">
  <button class="tab-btn active" onclick="switchTab('for-you', this)">
    For You
  </button>
  <button class="tab-btn" onclick="switchTab('trending', this)">
    {{ t.trending }}
  </button>
  <button class="tab-btn" onclick="switchTab('sale', this)">
    {{ t.on_sale }}
  </button>
</div>

.preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    line-height: 18px;
}


.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.preview-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

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

/* REMOVE BUTTON */
.remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
}

.product-card{
    border-radius:28px;
    background:#fff;
}

.product-img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
    background:#f8f8f8;
}

.product-title{
    font-size:15px;
    line-height:1.3;
    min-height:38px;

    overflow:hidden;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}

.product-price{
    font-size:18px;
}

.wishlist-btn{
    position:absolute;
    top:14px;
    right:14px;
    z-index:5;

    width:40px;
    height:40px;

    border-radius:50%;
    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:22px;

    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.product-card img{
    backface-visibility:hidden;
    transform:translateZ(0);
}

/* ==========================================================================
   GUZONES RESPONSIVE DESIGN SYSTEM v2
   Mobile-first. Breakpoints:
     sm  480px  — large phones
     md  768px  — tablets portrait
     lg  1024px — tablets landscape / small laptop
     xl  1280px — standard laptop  (desktop nav rail activates)
     2xl 1440px — large desktop    (rail expands with labels)
     3xl 1920px — ultra-wide       (hard content cap)
   Mobile experience (< 768px) is the preserved reference — no changes there.
========================================================================== */

/* ---- sm: 480px ---- */
@media (min-width: 480px) {
    .horizontal-card {
        width: 190px;
        min-width: 190px;
    }
    .hero-category-card {
        flex: 0 0 76%;
    }
}

/* =========================================================================
   md: 768px  — Tablet Portrait
========================================================================= */
@media (min-width: 768px) {

    /* ---- Product grids: 3 columns ---- */
    .for-you-grid,
    .amazon-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
        padding: 0 16px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    /* ---- Product detail: image + info side by side ---- */
    .product-details-wrapper {
        display: flex !important;
        gap: 32px;
        align-items: flex-start;
    }
    .product-images { flex: 1; }
    .product-info   { flex: 1; }

    /* ---- Horizontal scroll: slightly larger cards ---- */
    .horizontal-card {
        width: 200px;
        min-width: 200px;
    }

    /* ---- Hero carousel: less peeking ---- */
    .hero-category-card {
        flex: 0 0 60%;
        height: 460px;
    }

    /* ---- Section heads: larger label ---- */
    .section-head-title,
    .section-title {
        font-size: 20px;
    }

    /* ---- Inbox: constrain width ---- */
    .inbox-page {
        max-width: 720px;
        margin: 0 auto;
    }

    /* ---- Chat: constrain width ---- */
    .chat-container {
        max-width: 720px;
        margin: 40px auto;
    }

    /* ---- User profile grid: 4 cols ---- */
    .up-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* ---- Seller dashboard: 2-col stat cards ---- */
    .payout-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    /* ---- Call overlay: modal card ---- */
    #gz-incoming-overlay,
    #gz-outgoing-overlay,
    #gz-active-overlay {
        background: rgba(10, 15, 40, 0.75) !important;
        backdrop-filter: blur(12px);
    }
    #gz-incoming-overlay > *,
    #gz-outgoing-overlay > *,
    #gz-active-overlay > * {
        /* children already centered via flex-column */
    }

    /* ---- Navbar: constrain inner width ---- */
    .nav-inner {
        max-width: 1440px;
        margin: 0 auto;
        padding: 0 24px;
    }

    /* ---- Body: tablet spacing ---- */
    body {
        padding-bottom: 110px; /* keep room for rounded bottom nav */
    }
}

/* =========================================================================
   lg: 1024px — Tablet Landscape / Small Laptop
========================================================================= */
@media (min-width: 1024px) {

    /* ---- Product grids: 4 columns ---- */
    .for-you-grid,
    .amazon-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px;
    }

    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* ---- Horizontal scroll: larger cards ---- */
    .horizontal-card {
        width: 220px;
        min-width: 220px;
    }

    /* ---- Hero carousel: show more cards ---- */
    .hero-category-card {
        flex: 0 0 46%;
        height: 480px;
    }

    /* ---- User profile grid: 5 cols ---- */
    .up-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    /* ---- Inbox constrain ---- */
    .inbox-page {
        max-width: 860px;
    }

    /* ---- Product card hover ---- */
    .for-you-card,
    .amazon-card,
    .product-card {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
    .for-you-card:hover,
    .amazon-card:hover,
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }
    .related-card:hover img {
        transform: scale(1.04);
    }

    /* ---- Typography ---- */
    .for-you-title { font-size: 15px; }

    /* ---- Seller dashboard: 3-col ---- */
    .payout-box {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ---- Add-to-cart sticky bar ---- */
    .sticky-cart,
    .add-to-cart-bar {
        max-width: 900px;
        margin: 0 auto;
        border-radius: 16px;
    }
}

/* =========================================================================
   xl: 1280px — Standard Laptop
   KEY CHANGE: bottom nav repositions to LEFT RAIL
========================================================================= */
@media (min-width: 1280px) {

    /* ---- Left Navigation Rail ---- */
    .bottom-nav {
        /* Detach from bottom, attach to left side */
        bottom:    12px !important;
        left:      12px !important;
        right:     auto !important;
        top:       82px !important;      /* sits just below the top navbar */
        width:     72px;
        height:    auto;

        flex-direction:  column !important;
        justify-content: flex-start !important;
        align-items:     center !important;

        padding:        16px 6px !important;
        border-radius:  24px !important;
        border-top:     none !important;
        gap:            4px;

        /* Keep the glassy card style */
        background:      rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(20px) !important;
        box-shadow:      0 10px 35px rgba(0, 0, 0, 0.08) !important;
        border:          1px solid rgba(0, 0, 0, 0.05) !important;

        /* Don't let it stretch wider than needed */
        box-sizing: border-box;
    }

    .bottom-nav .nav-item {
        width:           100%;
        height:          52px;
        flex-direction:  column;
        justify-content: center;
        align-items:     center;
        gap:             3px;
        font-size:       9px;
        font-weight:     700;
        padding:         4px;
        border-radius:   16px;
        transition:      background 0.15s ease;
    }

    .bottom-nav .nav-item:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .bottom-nav .nav-item.active {
        color: #111827;
    }

    .bottom-nav .nav-icon-wrapper {
        width:         36px;
        height:        36px;
        border-radius: 14px;
    }

    .bottom-nav .nav-icon { font-size: 19px; }

    /* AI Search remains available in the mobile bottom nav only. */
    .nav-center {
        display: none !important;
    }

    .add-btn {
        width:         52px;
        height:        52px;
        border-radius: 18px;
        font-size:     24px;
    }

    /* ---- Main content indented to clear the rail ---- */
    body {
        padding-left:   92px;
        padding-bottom: 24px;
    }

    /* ---- Desktop wrapper: centred with padding ---- */
    .desktop-wrapper {
        max-width: 1440px;
        margin:    0 auto;
        padding:   0 28px;
    }

    /* ---- Product grids: 5 columns ---- */
    .for-you-grid,
    .amazon-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px;
    }

    /* ---- User profile grid: 6 cols ---- */
    .up-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }

    /* ---- Navbar inner: full-width centred ---- */
    .nav-inner {
        max-width: 1440px;
        margin:    0 auto;
        padding:   0 32px;
    }

    /* ---- Seller dashboard: 4-col stat cards ---- */
    .payout-box {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    /* ---- Sticky cart / add-to-cart ---- */
    .sticky-cart,
    .add-to-cart-bar {
        max-width: 1100px;
    }

    /* ---- Product detail sticky image ---- */
    .product-images {
        position: sticky;
        top: 90px;
    }

    /* ---- Hero carousel ---- */
    .hero-category-card {
        flex: 0 0 38%;
        height: 500px;
    }

    /* ---- Section head typography ---- */
    .section-head-title,
    .section-title {
        font-size: 22px;
    }

    /* ---- Inbox: full-page two-panel layout ---- */
    .inbox-layout {
        display:               grid;
        grid-template-columns: 380px 1fr;
        gap:                   0;
        height:                calc(100vh - 70px);
        overflow:              hidden;
    }

    .inbox-page {
        overflow-y:  auto;
        height:      100%;
        max-width:   none;
        margin:      0;
        padding-bottom: 20px;
    }

    .conversations-wrap {
        overflow-y:   auto;
        border-right: 1px solid #f1f5f9;
    }

    /* Inbox right panel — shown on desktop when no chat is open */
    .inbox-empty-panel {
        display:         flex !important;
        align-items:     center;
        justify-content: center;
        background:      #f8fafc;
        color:           #94a3b8;
        font-size:       15px;
        font-weight:     600;
        flex-direction:  column;
        gap:             12px;
    }

    .inbox-empty-panel i {
        font-size: 48px;
        opacity:   0.3;
    }

    /* ---- Call overlay: modal card (not full screen on big monitors) ---- */
    #gz-incoming-overlay,
    #gz-outgoing-overlay,
    #gz-active-overlay {
        background: rgba(5, 10, 30, 0.65) !important;
    }
}

/* =========================================================================
   2xl: 1440px — Large Desktop
   Rail expands to show icon + label
========================================================================= */
@media (min-width: 1440px) {

    /* ---- Wider rail with text labels ---- */
    .bottom-nav {
        width:   168px !important;
        padding: 16px 10px !important;
        gap:     2px;
    }

    .bottom-nav .nav-item {
        flex-direction:  row;
        justify-content: flex-start;
        height:          46px;
        padding:         0 12px;
        font-size:       13px;
        gap:             10px;
        border-radius:   14px;
    }

    .bottom-nav .nav-item > span {
        /* Show the text label */
        display: block !important;
    }

    .bottom-nav .nav-icon-wrapper {
        width:         34px;
        height:        34px;
        border-radius: 12px;
        flex-shrink:   0;
    }

    .bottom-nav .nav-icon { font-size: 18px; }

    .add-btn {
        width:         34px;
        height:        34px;
        border-radius: 11px;
        font-size:     18px;
    }

    /* ---- Body: wider rail indent ---- */
    body {
        padding-left: 188px;
    }

    .desktop-wrapper {
        max-width: 1440px;
        padding:   0 36px;
    }

    /* ---- Navbar ---- */
    .nav-inner {
        max-width: 1440px;
        padding:   0 40px;
    }

    /* ---- Grids stay at 5 cols (cards get bigger) ---- */
    .for-you-grid,
    .amazon-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 22px;
    }

    /* ---- Typography ---- */
    .for-you-title { font-size: 16px; }
    .section-head-title,
    .section-title  { font-size: 24px; }
}

/* =========================================================================
   3xl: 1920px — Ultra-Wide
   Hard content cap, background fills edges
========================================================================= */
@media (min-width: 1920px) {

    .desktop-wrapper {
        max-width: 1600px;
        padding:   0 48px;
    }

    /* ---- Navbar stays contained ---- */
    .nav-inner {
        max-width: 1600px;
        padding:   0 48px;
    }

    /* ---- Ultra-wide grids: 6 columns ---- */
    .for-you-grid,
    .amazon-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 24px;
    }

    .related-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    /* ---- Typography ---- */
    .for-you-title          { font-size: 16px; }
    .section-head-title,
    .section-title          { font-size: 26px; }

    /* ---- Sticky bars ---- */
    .sticky-cart,
    .add-to-cart-bar {
        max-width: 1400px;
    }
}

/* =========================================================================
   Hover / pointer states — only active on non-touch (pointer: fine)
========================================================================= */
@media (pointer: fine) {

    /* ---- Buttons ---- */
    .menu-btn:hover         { background: rgba(255,255,255,.95); }
    .nav-dd-btn:hover       { background: rgba(0,0,0,.06); }
    .send-btn:hover         { opacity: .88; }

    /* ---- Product images ---- */
    .for-you-img-wrapper img,
    .related-card img,
    .horizontal-card img {
        transition: transform 0.22s ease;
    }
    .for-you-img-wrapper:hover img,
    .related-card:hover img,
    .horizontal-card:hover img {
        transform: scale(1.04);
    }

    /* ---- Category circles ---- */
    .category-circle:hover {
        transform:  translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,.10);
        transition: 0.18s ease;
    }

    /* ---- Chat items ---- */
    .chat-item:hover {
        background: #f8fafc;
        cursor: pointer;
    }

    /* ---- Sidebar links ---- */
    .sb-link:hover {
        background: rgba(0,0,0,.04);
        border-radius: 12px;
    }

    /* ---- Auth buttons ---- */
    .auth-submit:hover,
    .btn-primary:hover {
        opacity: .9;
        transform: translateY(-1px);
        transition: 0.15s ease;
    }
}

/* =========================================================================
   Fluid Typography — section headings scale smoothly between breakpoints
========================================================================= */

/* Page-level headings (inbox "Messages", account title, etc.) */
.inbox-title h2,
.page-heading,
.cart-title,
.auth-title {
    font-size: clamp(24px, 4vw, 38px);
}

/* Section heads inside home / feed */
.section-head-title,
.section-title {
    font-size: clamp(16px, 2.2vw, 24px);
}

/* Product titles in cards */
.for-you-title {
    font-size: clamp(13px, 1.2vw, 16px);
}

/* =========================================================================
   Safe-area insets — notch / Dynamic Island support
========================================================================= */
#mainNavbar {
    padding-top: env(safe-area-inset-top);
}

/* =========================================================================
   No-horizontal-scroll guarantee
========================================================================= */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
