/* ==========================================================
   KrishnaveniLaceHouse — Premium Storefront Styles
   ========================================================== */
:root {
  --color-primary: #7a1f3d;      /* deep maroon/wine - premium Indian textile feel */
  --color-primary-dark: #5c1630;
  --color-accent: #c9a24b;       /* gold accent */
  --color-bg: #faf7f5;
  --color-surface: #ffffff;
  --color-text: #2b2323;
  --color-muted: #7a6f6f;
  --color-border: #ece3df;
  --color-success: #1e7a45;
  --color-danger: #c0392b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(43,35,35,0.06);
  --shadow-md: 0 8px 24px rgba(43,35,35,0.10);
  --shadow-lg: 0 16px 40px rgba(43,35,35,0.16);
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', 'Georgia', serif; margin: 0 0 .5em; font-weight: 600; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section-title { text-align: center; margin-bottom: 32px; }
.section-title h2 { font-size: 28px; letter-spacing: .3px; }
.section-title p { color: var(--color-muted); margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 600; font-size: 14px; letter-spacing: .3px; transition: var(--transition);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 1.5px solid var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-gold { background: var(--color-accent); color: #2b2323; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--color-primary); }
.logo span { color: var(--color-accent); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 6px; position: relative; }
.main-nav a:hover { color: var(--color-primary); }
.nav-icons { display: flex; align-items: center; gap: 20px; }
.icon-link { position: relative; font-size: 20px; }
.badge {
  position: absolute; top: -8px; right: -10px; background: var(--color-primary); color: #fff;
  font-size: 10px; min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.mobile-toggle { display: none; font-size: 24px; background: none; border: none; cursor: pointer; }

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start;
    padding: 18px 24px; gap: 16px; box-shadow: var(--shadow-md); transform: translateY(-150%); transition: transform .3s ease; }
  .main-nav.open { transform: translateY(0); }
  .mobile-toggle { display: block; }
}

    opacity .7s ease,
    visibility .7s ease;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.slide.active {
  opacity: 1;
  visibility: visible;
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  z-index: 5;

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,.9);

  cursor: pointer;

  font-size: 20px;

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

  box-shadow: 0 3px 12px rgba(0,0,0,.15);

  transition: .2s ease;
}


.slider-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}


.slider-arrow.prev {
  left: 18px;
}


.slider-arrow.next {
  right: 18px;
}


/* =========================================================
   SLIDER DOTS
   ========================================================= */

.slider-dots {
  position: absolute;

  bottom: 18px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  gap: 8px;

  z-index: 6;
}


.slider-dots button {
  width: 9px;
  height: 9px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,.65);

  cursor: pointer;

  transition: .25s ease;
}


.slider-dots button.active {
  width: 25px;

  border-radius: 8px;

  background: var(--color-accent);
}


/* =========================================================
   RIGHT SIDE BANNERS
   ========================================================= */

.side-banners {
  display: grid;

  grid-template-rows:
    repeat(3, 1fr);

  gap: 14px;

  min-width: 0;
}


.side-banner {
  display: block;

  position: relative;

  overflow: hidden;

  min-height: 0;

  border-radius: 12px;

  background: #f5f5f5;

  box-shadow: var(--shadow-sm);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}


.side-banner:hover {
  transform: translateY(-3px);

  box-shadow: var(--shadow-lg);
}


.side-banner img {
  display: block;

  width: 100%;
  height: 100%;

  min-height: 0;

  object-fit: cover;

  object-position: center;

  transition:
    transform .4s ease;
}


.side-banner:hover img {
  transform: scale(1.04);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .home-hero-layout {
    grid-template-columns: 1fr 280px;
    gap: 10px;

    padding: 12px;
  }


  .hero-slider {
    height: 420px;
    min-height: 420px;
  }


  .side-banners {
    gap: 10px;
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .home-hero-layout {
    display: block;

    padding: 10px;
  }


  .hero-slider {
    height: 300px;
    min-height: 300px;

    border-radius: 10px;
  }


  .side-banners {
    margin-top: 10px;

    display: grid;

    grid-template-columns:
      repeat(3, 1fr);

    grid-template-rows: 120px;

    gap: 8px;
  }


  .side-banner {
    min-height: 120px;

    border-radius: 8px;
  }


  .side-banner img {
    height: 120px;
  }


  .slider-arrow {
    width: 36px;
    height: 36px;

    font-size: 16px;
  }


  .slider-arrow.prev {
    left: 10px;
  }


  .slider-arrow.next {
    right: 10px;
  }


  .slider-dots {
    bottom: 10px;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 450px) {

  .hero-slider {
    height: 240px;
    min-height: 240px;
  }


  .side-banners {
    grid-template-rows: 95px;
  }


  .side-banner {
    min-height: 95px;
  }


  .side-banner img {
    height: 95px;
  }

}
/* ---------- Promo Banner ---------- */
.promo-banner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
  background: linear-gradient(120deg, #fdf3e7, #f7e6d0);
  border-radius: var(--radius); overflow: hidden; margin-top: 40px;
}
.promo-text { padding: 36px; }
.promo-text h3 { font-size: 26px; color: var(--color-primary-dark); }
.promo-banner img { height: 260px; width: 100%; object-fit: cover; }
@media (max-width: 700px) { .promo-banner { grid-template-columns: 1fr; } .promo-banner img { height: 180px; order: -1; } }

/* ---------- Categories ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card {
  background: var(--color-surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); text-align: center; border: 1px solid var(--color-border);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-card img { height: 180px; width: 100%; object-fit: cover; }
.category-card .cat-body { padding: 18px; }
.category-card h3 { font-size: 18px; margin-bottom: 6px; }
.category-card a.shop-now { color: var(--color-primary); font-weight: 600; font-size: 14px; }
@media (max-width: 700px) { .category-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .category-card img { height: 120px; } }

/* ---------- Product Grid & Cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.two-rows { grid-template-rows: repeat(2, auto); }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.product-card {
  background: var(--color-surface); border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--color-border); transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-thumb { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f2ece8; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.wishlist-btn {
  position: absolute; top: 10px; right: 10px; background: #fff; border: none; border-radius: 50%;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-sm); font-size: 17px; color: var(--color-muted); transition: var(--transition); z-index: 2;
}
.wishlist-btn.active { color: var(--color-primary); }
.wishlist-btn:hover { transform: scale(1.1); }
.stock-tag { position: absolute; bottom: 10px; left: 10px; font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 600; z-index: 2; }
.stock-tag.in { background: #e5f5ea; color: var(--color-success); }
.stock-tag.out { background: #fbe7e4; color: var(--color-danger); }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h4 { font-size: 15px; font-weight: 600; font-family: inherit; margin: 0; min-height: 40px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 17px; font-weight: 700; color: var(--color-primary); }
.price-mrp { font-size: 13px; color: var(--color-muted); text-decoration: line-through; }
.add-cart-btn { margin-top: auto; }

/* ---------- Filters / Product listing page ---------- */
.filters-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; background: #fff;
  padding: 16px; border-radius: var(--radius); border: 1px solid var(--color-border); }
.filters-bar input[type=text], .filters-bar select {
  padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: 14px; background: #fff;
}
.filters-bar input[type=text] { flex: 0 1 500px; width: 500px; min-width: 180px; }

/* ---------- Product details page ---------- */
.pd-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
@media (max-width: 800px) { .pd-wrap { grid-template-columns: 1fr; } }
.pd-image { border-radius: var(--radius); overflow: hidden; background: #f2ece8; aspect-ratio: 1/1; }
.pd-image img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: 26px; margin-bottom: 8px; }
.pd-price { font-size: 26px; color: var(--color-primary); font-weight: 700; }
.qty-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--color-border); border-radius: 999px; width: fit-content; }
.qty-selector button { width: 38px; height: 38px; border: none; background: none; font-size: 18px; cursor: pointer; }
.qty-selector input { width: 44px; text-align: center; border: none; font-size: 15px; }
.pd-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Cart / Wishlist tables ---------- */
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--color-border); text-align: left; font-size: 14px; }
.cart-row-product { display: flex; align-items: center; gap: 14px; }
.cart-row-product img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cart-summary { max-width: 380px; margin-left: auto; background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--color-border); margin-top: 24px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.cart-summary .total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--color-border); padding-top: 12px; margin-top: 8px; }

/* ---------- Forms (account, checkout) ---------- */
.form-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--color-border); max-width: 480px; margin: 0 auto; }
.form-tabs { display: flex; margin-bottom: 24px; border-radius: 999px; background: #f2ece8; padding: 4px; }
.form-tabs button { flex: 1; padding: 10px; border: none; background: none; border-radius: 999px; cursor: pointer; font-weight: 600; }
.form-tabs button.active { background: var(--color-primary); color: #fff; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: 14px;
}
.form-error { color: var(--color-danger); font-size: 13px; margin-top: 6px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.form-msg.error { background: #fbe7e4; color: var(--color-danger); }
.form-msg.success { background: #e5f5ea; color: var(--color-success); }

/* ---------- Order success / tracking ---------- */
.status-track { display: flex; flex-wrap: wrap; gap: 0; margin: 24px 0; }
.status-step { flex: 1; min-width: 110px; text-align: center; position: relative; padding-top: 34px; font-size: 12px; color: var(--color-muted); }
.status-step::before { content: ''; position: absolute; top: 10px; left: 0; right: 0; height: 3px; background: var(--color-border); }
.status-step::after { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--color-border); }
.status-step.done { color: var(--color-primary); font-weight: 600; }
.status-step.done::before, .status-step.done::after { background: var(--color-primary); }

/* ---------- Footer ---------- */
.site-footer { background: #1f1414; color: #e9dfdc; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 56px 0 24px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-family: inherit; }
.footer-grid a, .footer-grid p { color: #cdbdb8; font-size: 14px; display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 18px 0; font-size: 13px; color: #a99590; }
.social-icons { display: flex; gap: 12px; margin-top: 10px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1f1414; color: #fff;
  padding: 12px 24px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 999; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Utility ---------- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
/* =========================================================
   HOME HERO
   LEFT LARGE SLIDESHOW + RIGHT 3 BANNERS
   ========================================================= */

.home-hero {
    width: 100%;
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 0 20px;

    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 18px;

    box-sizing: border-box;
}


/* =========================================================
   LEFT SLIDESHOW
   ========================================================= */

.home-hero-slider {
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 430px;

    border-radius: 14px;
    background: #1a1112;
}


.home-slide {
    position: absolute;
    inset: 0;

    opacity: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: opacity .8s ease;
}


.home-slide.active {
    opacity: 1;
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.home-slider-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.9);

    color: #333;

    font-size: 20px;

    cursor: pointer;

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

    box-shadow: 0 3px 12px rgba(0,0,0,.15);

    transition: .2s ease;
}


.home-slider-arrow:hover {
    transform: translateY(-50%) scale(1.08);
}


.home-slider-prev {
    left: 16px;
}


.home-slider-next {
    right: 16px;
}


/* =========================================================
   SLIDER DOTS
   ========================================================= */

.home-slider-dots {
    position: absolute;

    bottom: 16px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 5;

    display: flex;

    gap: 7px;

    padding: 7px 10px;

    border-radius: 20px;

    background: rgba(0,0,0,.25);

    backdrop-filter: blur(4px);
}


.home-slider-dots button {
    width: 9px;
    height: 9px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255,255,255,.65);

    cursor: pointer;

    transition: .25s ease;
}


.home-slider-dots button.active {
    width: 24px;

    border-radius: 10px;

    background: #fff;
}


/* =========================================================
   RIGHT SIDE BANNERS
   ========================================================= */

.side-banners {
    min-width: 0;

    display: grid;

    grid-template-rows: repeat(3, 1fr);

    gap: 18px;
}


.side-banner {
    position: relative;

    overflow: hidden;

    min-height: 0;

    border-radius: 14px;

    background: #f5f5f5;
}


.side-banner img {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 0;

    object-fit: cover;

    transition: transform .35s ease;
}


.side-banner:hover img {
    transform: scale(1.03);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-hero {
        grid-template-columns: 1.6fr 1fr;
        gap: 12px;

        padding: 0 14px;
    }

    .home-hero-slider {
        height: 360px;
    }

    .side-banners {
        gap: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .home-hero {
        display: block;

        margin-top: 14px;

        padding: 0 10px;
    }


    .home-hero-slider {
        height: 280px;

        border-radius: 10px;
    }


    .side-banners {
        margin-top: 12px;

        display: grid;

        grid-template-columns: repeat(3, 1fr);

        grid-template-rows: 110px;

        gap: 8px;
    }


    .side-banner {
        border-radius: 8px;
    }


    .home-slider-arrow {
        width: 36px;
        height: 36px;

        font-size: 16px;
    }


    .home-slider-prev {
        left: 9px;
    }


    .home-slider-next {
        right: 9px;
    }


    .home-slider-dots {
        bottom: 10px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .home-hero-slider {
        height: 240px;
    }


    .side-banners {
        grid-template-rows: 90px;
    }

}

/* =========================================================

/* =========================================================
   KRISHNAVENI HOME HERO
   MAIN SLIDER + TALL BANNER + 2 RIGHT BANNERS
   ========================================================= */

.home-hero-layout {
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
    padding: 0 20px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) minmax(220px, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 12px;

    height: 600px;
}


/* MAIN SLIDER */

.home-hero-layout .hero-slider {
    grid-column: 1;
    grid-row: 1 / 3;

    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    overflow: hidden;
    border-radius: 14px;
    background: #1a1112;
}


/* SLIDES */

.home-hero-layout .slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: opacity .7s ease, visibility .7s ease;
}

.home-hero-layout .slide.active {
    opacity: 1;
    visibility: visible;
}


/* SLIDER ARROWS */

.home-hero-layout .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    z-index: 10;

    width: 44px;
    height: 44px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.9);
    color: #333;

    font-size: 20px;
    cursor: pointer;

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

.home-hero-layout .slider-arrow.prev {
    left: 16px;
}

.home-hero-layout .slider-arrow.next {
    right: 16px;
}


/* SLIDER DOTS */

.home-hero-layout .slider-dots {
    position: absolute;

    left: 50%;
    bottom: 16px;

    transform: translateX(-50%);

    z-index: 10;

    display: flex;
    gap: 7px;
}

.home-hero-layout .slider-dots button {
    width: 9px;
    height: 9px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.7);

    cursor: pointer;
}

.home-hero-layout .slider-dots button.active {
    width: 24px;
    border-radius: 8px;
    background: #a52346;
}


/* SIDE BANNERS CONTAINER */

.home-hero-layout .home-side-banners {
    display: contents;
}


/* BANNER 1 - TALL MIDDLE */

.home-hero-layout .home-side-banners .side-banner:nth-child(1) {
    grid-column: 2;
    grid-row: 1 / 3;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: block;

    overflow: hidden;
    border-radius: 14px;
}


/* BANNER 2 - RIGHT TOP */

.home-hero-layout .home-side-banners .side-banner:nth-child(2) {
    grid-column: 3;
    grid-row: 1;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: block;

    overflow: hidden;
    border-radius: 14px;
}


/* BANNER 3 - RIGHT BOTTOM */

.home-hero-layout .home-side-banners .side-banner:nth-child(3) {
    grid-column: 3;
    grid-row: 2;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: block;

    overflow: hidden;
    border-radius: 14px;
}


/* SIDE IMAGES */

.home-hero-layout .home-side-banners .side-banner img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform .35s ease;
}

.home-hero-layout .home-side-banners .side-banner:hover img {
    transform: scale(1.03);
}


/* CONTENT BELOW HERO */

.home-hero-layout + .container {
    width: 100%;
    max-width: none;
    margin-top: 30px;
}


/* =========================================================
   DESKTOP FULL WIDTH
   ========================================================= */

@media (min-width: 901px) {

    .container {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-left: 30px;
        padding-right: 30px;
        box-sizing: border-box;
    }

    .site-header,
    .main-nav {
        width: 100%;
    }

    .header-inner {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .home-hero-layout {
        height: auto;

        grid-template-columns: 1fr;
        grid-template-rows: auto;

        padding: 0 15px;
    }

    .home-hero-layout .hero-slider {
        grid-column: auto;
        grid-row: auto;

        height: 430px;
    }

    .home-hero-layout .home-side-banners {
        display: grid;

        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 180px;

        gap: 10px;

        margin-top: 10px;
    }

    .home-hero-layout .home-side-banners .side-banner {
        grid-column: auto;
        grid-row: auto;

        height: 180px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .home-hero-layout {
        padding: 0 10px;
    }

    .home-hero-layout .hero-slider {
        height: 280px;
    }

    .home-hero-layout .home-side-banners {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 150px);

        gap: 8px;
    }

    .home-hero-layout .home-side-banners .side-banner {
        height: 150px;
    }

}


/* =========================================================
   HEADER SPACING FIX - KEEP HERO FULL WIDTH
   ========================================================= */

@media (min-width: 901px) {

    .site-header .header-inner {
        width: 100% !important;
        max-width: 1240px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    .site-header .main-nav {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 28px !important;
    }

}


/* =========================================================
   KRISHNAVENI CATEGORY GRID
   6 ITEMS PER ROW - DESKTOP
   ========================================================= */

.category-grid {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}


/* CATEGORY CARD */

.category-card {
    min-width: 0;
    text-align: center;
}


/* CATEGORY IMAGE */

.category-card img {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 14px;

    background: #f5f1ee;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


/* HOVER */

.category-card:hover img {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43,35,35,.12);
}


/* CATEGORY NAME */

.category-card h3,
.category-card .category-name {
    margin: 10px 0 2px;

    font-family: 'Poppins',
        'Segoe UI',
        Arial,
        sans-serif;

    font-size: 14px;
    font-weight: 600;

    line-height: 1.35;

    color: #171313;
}


/* PRODUCT COUNT */

.category-card p,
.category-card .category-count {
    margin: 0;

    font-size: 13px;

    color: #5f5555;

    line-height: 1.4;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .category-grid {
        max-width: 1180px;

        grid-template-columns:
            repeat(6, minmax(0, 1fr));

        gap: 14px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .category-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 10px;
    }

    .category-card img {
        border-radius: 10px;
    }

    .category-card h3,
    .category-card .category-name {
        font-size: 12px;
    }

    .category-card p,
    .category-card .category-count {
        font-size: 11px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

}


/* =========================================================
   FINAL CATEGORY GRID FIX
   6 COLUMNS DESKTOP
   ========================================================= */

/* Close any accidentally unfinished previous rule */
.category-grid {
    display: grid !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

/* Category card */
.category-grid .category-card {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
}

/* Category image */
.category-grid .category-card img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;

    border-radius: 14px !important;
    background: #f5f1ee !important;

    transition: transform .25s ease, box-shadow .25s ease !important;
}

/* Hover */
.category-grid .category-card:hover img {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(43,35,35,.12) !important;
}

/* Category name */
.category-grid .category-card h3,
.category-grid .category-card .category-name {
    margin: 9px 0 2px !important;

    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;

    color: #171313 !important;
}

/* Product count */
.category-grid .category-card p,
.category-grid .category-card .category-count {
    margin: 0 !important;

    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #5f5555 !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .category-grid .category-card img {
        border-radius: 10px !important;
    }

    .category-grid .category-card h3,
    .category-grid .category-card .category-name {
        font-size: 12px !important;
    }

    .category-grid .category-card p,
    .category-grid .category-card .category-count {
        font-size: 11px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

}


/* =========================================================
   CATEGORY GRID - 6 ITEMS PER ROW
   ========================================================= */

.category-grid {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

.category-card {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
}

.category-card img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
}

@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 700px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}


/* =========================================================
   FINAL CATEGORY GRID FIX
   Desktop: 6 per row
   ========================================================= */

.category-grid {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.category-grid .category-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.category-grid .category-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}

.category-grid .category-card .cat-body {
    padding: 12px 4px !important;
}

.category-grid .category-card h3 {
    font-size: 14px !important;
    margin: 0 0 4px !important;
}

.category-grid .category-card .shop-now {
    font-size: 13px !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .category-grid .category-card img {
        aspect-ratio: 1 / 1 !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}


/* =========================================================
   CATEGORY GRID
   ========================================================= */

.category-grid {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 10px;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    display: block;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.category-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.category-card .cat-body {
    padding: 10px 4px;
}

.category-card h3 {
    margin: 0 0 4px;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.category-card .shop-now {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
}

/* Tablet */
@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 700px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .category-card .shop-now {
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   FINAL SIZE SWAP
   Categories = Product Card Size (4 per row)
   Products   = Category Size (6 per row)
   ========================================================= */

/* CATEGORIES */
.category-grid {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
}

.category-grid .category-card {
    width: 100% !important;
    min-width: 0 !important;
}

.category-grid .category-card img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    object-fit: cover !important;
}


/* PRODUCTS */
.product-grid {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.product-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
}


/* TABLET */
@media (max-width: 1100px) {

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

}


/* MOBILE */
@media (max-width: 700px) {

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

}


/* =========================================================
   FINAL HOMEPAGE GRID FIX
   ========================================================= */

/* ---------- CATEGORIES ---------- */

.category-grid {
    width: fit-content !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: repeat(3, 190px) !important;
    gap: 16px !important;
    justify-content: center !important;
}

.category-grid .category-card {
    width: 190px !important;
    min-width: 0 !important;
    margin: 0 !important;
}

.category-grid .category-card img {
    width: 190px !important;
    height: 190px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}


/* ---------- POPULAR PRODUCTS ---------- */

.product-grid,
.product-grid.two-rows {
    width: 100% !important;
    max-width: none !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;

    gap: 14px !important;
}

.product-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
}


/* ---------- TABLET ---------- */

@media (max-width: 1100px) {

    .category-grid {
        grid-template-columns: repeat(3, 180px) !important;
    }

    .category-grid .category-card {
        width: 180px !important;
    }

    .category-grid .category-card img {
        width: 180px !important;
        height: 180px !important;
    }

    .product-grid,
    .product-grid.two-rows {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

    .category-grid {
        width: 100% !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .category-grid .category-card {
        width: 100% !important;
    }

    .category-grid .category-card img {
        width: 100% !important;
        height: auto !important;
    }

    .product-grid,
    .product-grid.two-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

}


/* =========================================================
   FINAL POPULAR PRODUCTS GRID
   DESKTOP = 6 PRODUCTS PER ROW
   ========================================================= */

.product-grid {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.product-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1201px) {

    .product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

}


/* =========================================================
   KRISHNAVENI - POPULAR PRODUCTS
   FORCE 6 PRODUCTS PER ROW ON DESKTOP
   ========================================================= */

section .product-grid,
.section .product-grid,
.product-grid.two-rows {
    display: grid !important;
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 14px !important;
}

section .product-grid .product-card,
.section .product-grid .product-card,
.product-grid.two-rows .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}


/* DESKTOP */
@media (min-width: 1201px) {

    section .product-grid,
    .section .product-grid,
    .product-grid.two-rows {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

}


/* TABLET */
@media (min-width: 701px) and (max-width: 1200px) {

    section .product-grid,
    .section .product-grid,
    .product-grid.two-rows {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

}


/* MOBILE */
@media (max-width: 700px) {

    section .product-grid,
    .section .product-grid,
    .product-grid.two-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

}


/* =========================================================
   KRISHNAVENI - SQUARE CATEGORY & PRODUCT CARDS
   ========================================================= */

/* =========================
   CATEGORY GRID
   ========================= */

.category-grid {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

/* Category card */
.category-grid .category-card {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    border-radius: 14px !important;

    background: #ffffff !important;
}

/* Category image - PERFECT SQUARE */
.category-grid .category-card img {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;

    object-fit: cover !important;

    border-radius: 14px 14px 0 0 !important;
}

/* Category text area */
.category-grid .category-card .cat-body {
    padding: 12px 8px 14px !important;
    text-align: center !important;
}

/* Category title */
.category-grid .category-card h3 {
    margin: 0 0 5px !important;

    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

/* Shop Now */
.category-grid .category-card .shop-now {
    font-size: 12px !important;
    font-weight: 600 !important;
}


/* =========================================================
   POPULAR PRODUCTS
   ========================================================= */

.product-grid,
.product-grid.two-rows {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

/* Product card */
.product-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;

    overflow: hidden !important;
    border-radius: 14px !important;

    background: #ffffff !important;
}

/* Product image container */
.product-grid .product-card .product-image,
.product-grid .product-card .product-img,
.product-grid .product-card > a:first-child {
    width: 100% !important;
}

/* Product image - PERFECT SQUARE */
.product-grid .product-card img {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;

    object-fit: contain !important;

    border-radius: 14px 14px 0 0 !important;
}

/* Product body */
.product-grid .product-card .product-body {
    padding: 12px !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .product-grid,
    .product-grid.two-rows {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .product-grid,
    .product-grid.two-rows {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .category-grid .category-card img,
    .product-grid .product-card img {
        border-radius: 10px 10px 0 0 !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   FINAL HOME CATEGORY + PRODUCT GRID
   ========================================================= */

/* OUR CATEGORIES - CENTER */
.category-grid {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;

    /* 6 equal square cards */
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;

    gap: 16px !important;

    justify-content: center !important;
    justify-items: center !important;
}

/* Category card */
.category-grid .category-card {
    width: 100% !important;
    max-width: 180px !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Square category image + rounded corners */
.category-grid .category-card img {
    width: 100% !important;
    height: 180px !important;

    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;

    display: block !important;

    border-radius: 14px !important;
}

/* POPULAR PRODUCTS - 6 PER ROW */
.product-grid {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;

    gap: 16px !important;
}

/* Product card */
.product-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;
}

/* Product image square */
.product-grid .product-card img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;

    border-radius: 14px 14px 0 0 !important;
    display: block !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .category-grid .category-card {
        max-width: none !important;
    }

    .category-grid .category-card img {
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 10px !important;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
}


/* =========================================================
   FINAL HOMEPAGE CATEGORY + PRODUCT DESIGN
   Reference-style square cards with hover
   ========================================================= */


/* =========================================================
   OUR CATEGORIES
   ========================================================= */

.category-grid {
    width: fit-content !important;
    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;

    /* 3 categories centered */
    grid-template-columns: repeat(3, 190px) !important;

    gap: 16px !important;

    justify-content: center !important;
    align-items: start !important;
}


.category-grid .category-card {
    width: 190px !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    text-align: center !important;

    display: block !important;

    overflow: hidden !important;

    border-radius: 14px !important;

    background: #ffffff !important;

    box-shadow: 0 2px 10px rgba(0,0,0,.06) !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease !important;
}


/* Category hover */
.category-grid .category-card:hover {
    transform: translateY(-6px) !important;

    box-shadow:
        0 12px 28px rgba(0,0,0,.12) !important;
}


/* Category image */
.category-grid .category-card img {
    display: block !important;

    width: 190px !important;
    height: 190px !important;

    aspect-ratio: 1 / 1 !important;

    object-fit: cover !important;

    border-radius: 14px 14px 0 0 !important;

    transition:
        transform .35s ease,
        filter .35s ease !important;
}


/* Image zoom on hover */
.category-grid .category-card:hover img {
    transform: scale(1.05) !important;

    filter: brightness(1.03) !important;
}


/* Category body */
.category-grid .category-card .cat-body {
    padding: 13px 8px 15px !important;

    background: #ffffff !important;
}


/* Category title */
.category-grid .category-card h3 {
    margin: 0 0 5px !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    line-height: 1.35 !important;

    color: #171313 !important;
}


/* Shop now */
.category-grid .category-card .shop-now {
    display: inline-block !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    color: #8d173f !important;

    transition: transform .2s ease !important;
}


.category-grid .category-card:hover .shop-now {
    transform: translateX(3px) !important;
}


/* =========================================================
   POPULAR PRODUCTS
   ========================================================= */

.product-grid {
    width: 100% !important;
    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr)) !important;

    gap: 16px !important;

    align-items: stretch !important;
}


/* Product card */
.product-grid .product-card {
    width: 100% !important;
    min-width: 0 !important;

    overflow: hidden !important;

    border-radius: 14px !important;

    background: #ffffff !important;

    box-shadow:
        0 2px 10px rgba(0,0,0,.06) !important;

    transition:
        transform .25s ease,
        box-shadow .25s ease !important;
}


/* Product card hover */
.product-grid .product-card:hover {
    transform: translateY(-6px) !important;

    box-shadow:
        0 12px 28px rgba(0,0,0,.13) !important;
}


/* Product image wrapper / image */
.product-grid .product-card img {
    display: block !important;

    width: 100% !important;

    aspect-ratio: 1 / 1 !important;

    height: auto !important;

    object-fit: contain !important;

    border-radius: 14px 14px 0 0 !important;

    transition:
        transform .35s ease,
        filter .35s ease !important;
}


/* Product image zoom */
.product-grid .product-card:hover img {
    transform: scale(1.05) !important;

    filter: brightness(1.03) !important;
}


/* Product card text area */
.product-grid .product-card .product-body {
    padding: 12px !important;
}


/* Product title */
.product-grid .product-card h3 {
    line-height: 1.35 !important;
}


/* =========================================================
   DESKTOP - 6 PRODUCTS
   ========================================================= */

@media (min-width: 1101px) {

    .product-grid {
        grid-template-columns:
            repeat(6, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .category-grid {
        grid-template-columns:
            repeat(3, 190px) !important;
    }

    .product-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr)) !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .category-grid {
        width: 100% !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;

        padding: 0 12px !important;

        box-sizing: border-box !important;
    }


    .category-grid .category-card {
        width: 100% !important;
        max-width: none !important;
    }


    .category-grid .category-card img {
        width: 100% !important;
        height: auto !important;

        aspect-ratio: 1 / 1 !important;
    }


    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 12px !important;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

    .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 10px !important;
    }

}


/* PRODUCT IMAGES - PURE WHITE BACKGROUND */

.product-grid .product-card .product-image,
.product-grid .product-card .product-img,
.product-grid .product-card > a:first-child {
    background: #fff !important;
}

.product-grid .product-card img {
    background: #fff !important;
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

.pd-image {
    background: #fff !important;
}

.pd-image img {
    background: #fff !important;
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}


/* Quantity input - remove browser up/down arrows */
.qty-selector input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

.qty-selector input[type="number"]::-webkit-inner-spin-button,
.qty-selector input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}


/* Related Products - stock badge should stay inside product body */
.related-products-section .stock-tag {
    position: static !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
}

.related-products-section .product-body h3 {
    margin-top: 4px !important;
}


/* Password show/hide */
.password-wrap {
    position: relative;
    width: 100%;
}

.password-wrap input {
    width: 100% !important;
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 5px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.password-toggle:hover {
    background: transparent;
}


/* PRODUCT DETAIL - REDUCE IMAGE ZOOM */
.pd-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 500px !important;
    padding: 30px !important;
    overflow: hidden !important;
}

.pd-image img {
    width: auto !important;
    height: auto !important;
    max-width: 85% !important;
    max-height: 500px !important;
    object-fit: contain !important;
}


/* PRODUCT DETAIL IMAGE BOX - SMALLER */
.pd-image {
    min-height: 420px !important;
    max-height: 520px !important;
    padding: 20px !important;
}

.pd-image img {
    max-width: 100% !important;
    max-height: 460px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}


/* PRODUCT DETAIL - COMPACT CENTERED IMAGE */

.pd-image {
    width: 100% !important;
    height: 500px !important;
    min-height: 0 !important;
    max-height: 500px !important;
    padding: 25px !important;

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

    background: #fff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.pd-image img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 75% !important;
    max-height: 75% !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 auto !important;
}



/* =========================================================
   MOBILE RESPONSIVE FIXES - CART & MY ACCOUNT
   ========================================================= */
@media (max-width: 700px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Cart table becomes mobile cards */
    .cart-table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        background: transparent !important;
        border-radius: 0 !important;
    }

    .cart-table thead {
        display: none !important;
    }

    .cart-table tbody {
        display: grid !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .cart-table tbody tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 14px !important;
        background: #fff !important;
        border: 1px solid var(--color-border) !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }

    .cart-table tbody td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid var(--color-border) !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }

    .cart-table tbody td:first-child {
        grid-column: 1 / -1 !important;
        display: block !important;
        padding-top: 2px !important;
    }

    .cart-table tbody td:nth-child(2)::before { content: 'Price'; }
    .cart-table tbody td:nth-child(3)::before { content: 'Quantity'; }
    .cart-table tbody td:nth-child(4)::before { content: 'Subtotal'; }
    .cart-table tbody td:nth-child(5)::before { content: ''; }

    .cart-table tbody td::before {
        flex: 0 0 auto;
        margin-right: 10px;
        color: var(--color-muted);
        font-size: 12px;
        font-weight: 600;
    }

    .cart-table tbody td:last-child {
        grid-column: 1 / -1 !important;
        border-bottom: 0 !important;
        padding-bottom: 2px !important;
        justify-content: stretch !important;
    }

    .cart-table tbody td:last-child .btn {
        width: 100% !important;
    }

    .cart-row-product {
        width: 100% !important;
        min-width: 0 !important;
        gap: 12px !important;
    }

    .cart-row-product img {
        width: 72px !important;
        height: 72px !important;
        flex: 0 0 72px !important;
    }

    .cart-row-product a {
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
        line-height: 1.35 !important;
    }

    .cart-table .qty-selector {
        flex: 0 0 auto !important;
        width: 132px !important;
        max-width: 132px !important;
    }

    .cart-table .qty-selector button {
        width: 36px !important;
        height: 36px !important;
    }

    .cart-table .qty-selector input {
        flex: 1 1 auto !important;
        width: 42px !important;
        min-width: 0 !important;
    }

    .cart-summary {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        box-sizing: border-box !important;
    }

    /* My Account profile/order cards */
    .form-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px 18px !important;
        box-sizing: border-box !important;
    }

    .form-card .cart-table tbody tr {
        display: block !important;
        padding: 8px 14px !important;
    }

    .form-card .cart-table tbody td {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 11px 0 !important;
    }

    .form-card .cart-table tbody td:first-child {
        display: flex !important;
    }

    .form-card .cart-table tbody td::before {
        flex: 0 0 76px !important;
        margin-right: 0 !important;
        color: var(--color-muted) !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    .form-card .cart-table tbody td:nth-child(1)::before { content: 'Order ID'; }
    .form-card .cart-table tbody td:nth-child(2)::before { content: 'Date'; }
    .form-card .cart-table tbody td:nth-child(3)::before { content: 'Amount'; }
    .form-card .cart-table tbody td:nth-child(4)::before { content: 'Payment'; }
    .form-card .cart-table tbody td:nth-child(5)::before { content: 'Status'; }
    .form-card .cart-table tbody td:nth-child(6)::before { content: ''; }

    .form-card .cart-table tbody td:nth-child(6) {
        justify-content: stretch !important;
        border-bottom: 0 !important;
    }

    .form-card .cart-table tbody td:nth-child(6) .btn {
        width: 100% !important;
    }

    .form-card .cart-table tbody td:last-child {
        grid-column: auto !important;
    }
}

@media (max-width: 420px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .cart-table tbody tr {
        padding: 12px !important;
    }

    .cart-table .qty-selector {
        width: 124px !important;
        max-width: 124px !important;
    }

    .form-card {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}
