:root {
  --primary: #d10f1b;
  --primary-dark: #99090f;
  --ink: #1f2430;
  --muted: #667085;
  --surface: #f8f9fc;
  --line: #e6e8f0;
  --accent: #1f6b5f;
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.09);
  --radius: 18px;
  --wa-icon-url: url("assets/icons/whatsapp-icon.png");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff5f5 0%, #ffffff 45%, #f8fafc 100%);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}


header {
  background: #050505;
  backdrop-filter: blur(5px);
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #1c1c1c;
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 175px;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.brand img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-weight: 600;
  color: #f1f3f7;
}

header nav a {
  padding: 9px 2px;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
}

header nav a:hover,
header nav a.active {
  color: var(--primary);
  border-color: var(--primary);
}

@media (min-width: 1025px) {
  header nav ul {
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
  }
}

@media (min-width: 821px) {
  .menu-toggle {
    display: none !important;
  }

  header nav {
    display: block !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Keep top header minimal: menu + cart only */
.header-actions .icon-btn-whatsapp,
.header-actions .js-bottom-search {
  display: none !important;
}
.menu-toggle {
  display: none;
}

.icon-btn {
  border: 1px solid #3a3a3a;
  background: #161616;
  color: #ffffff;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  font-size: 0.96rem;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.icon-btn-whatsapp {
  color: #22c55e;
  border-color: #2f5f48;
}

.icon-btn-whatsapp > * {
  display: none !important;
}

.icon-btn-whatsapp::before {
  content: "";
  width: 20px;
  height: 20px;
  background-image: var(--wa-icon-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding-inline: 5px;
}

section {
  padding: 68px 0;
}

.hero {
  padding: 26px 0 12px;
}

.banner-showcase .container {
  position: relative;
}

.banner-slider {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  position: relative;
}

.banner-slide {
  display: none;
}

.banner-slide.is-active {
  display: block;
}

.banner-slide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.banner-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.banner-control.prev {
  left: 12px;
}

.banner-control.next {
  right: 12px;
}

.banner-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 7px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.banner-dot.is-active {
  background: var(--primary);
  border-color: var(--primary-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.hero-copy {
  background: linear-gradient(130deg, #fff, #fff5fb);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  font-family: "Outfit", "Segoe UI", sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 10px 0;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.hero-copy p {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  font-family: inherit;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: #fff;
  border: 1px solid var(--line);
  color: #253041;
}

.btn-light:hover {
  border-color: #bdc4d2;
}

.hero-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 100%;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-head {
  text-align: center;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--muted);
  max-width: 60ch;
  margin: 8px auto 0;
}

.categories {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid,
.product-grid,
.blogs-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(5, 1fr);
}

.category-card,
.panel,
.product-card,
.blog-card,
.cart-panel,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.category-card {
  padding: 16px;
  text-align: center;
  transition: 0.25s;
  display: block;
  color: inherit;
  text-decoration: none;
}

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

.category-card-parent {
  cursor: pointer;
  width: 100%;
  border-radius: 18px;
  padding: 12px 10px;
  min-height: 112px;
  background: #fff;
}

.category-card-parent .category-emoji {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  border: 1px solid #eadfcb;
  background: linear-gradient(135deg, #fff8ea, #fff);
}

.category-card-parent h3 {
  font-size: 0.92rem;
  line-height: 1.25;
}

.category-card-parent.is-active {
  border-color: #cab692;
  box-shadow: 0 8px 18px rgba(89, 65, 31, 0.12);
}

.subcategory-panel {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
}

.subcategory-panel.is-open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.subcategory-panel h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.subcategory-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.home-sections-wrap {
  padding-top: 14px;
  padding-bottom: 18px;
}

.home-category-sections {
  display: grid;
  gap: 16px;
}

.home-category-block {
  content-visibility: visible;
  contain: none;
  margin: 0;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.home-category-block h2 {
  font-size: 1.72rem;
  font-weight: 800;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  text-align: left;
}

.home-heading-icon {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  border: 1px solid #ecd9b5;
  background: linear-gradient(140deg, #fff7e7, #fff);
}

.home-view-all {
  font-size: 0.87rem;
  font-weight: 700;
  color: #e11d48;
  white-space: nowrap;
}

.home-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  grid-auto-rows: auto;
  align-items: start;
  justify-content: stretch;
}

.home-subcard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ebeff6;
  border-radius: 14px;
  padding: 6px;
  min-height: 164px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-subcard:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.home-subcard:active {
  transform: scale(0.99);
}

.home-subcard-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 1px solid #edf0f5;
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-subcard:hover .home-subcard-media {
  transform: translateY(-1px);
}

.home-subcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.home-subcard-title {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.22;
  font-weight: 600;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.22em * 2);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #ced4e2;
}

.category-thumb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffecec, #fff6f6);
  border: 1px solid #f0dada;
}

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

.product-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
  cursor: pointer;
  position: relative;
}

.product-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.product-wishlist-btn.is-active {
  color: #e11d48;
  border-color: #fecdd3;
  background: #fff1f4;
}

.live-search-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}

.live-search-wrap input {
  flex: 1;
}

.live-search-wrap .btn {
  min-width: 84px;
}

.floating-whatsapp-btn {
  position: fixed;
  right: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 96;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(34, 197, 94, 0.35);
}

.floating-whatsapp-btn:hover {
  background: #16a34a;
}

@media (min-width: 821px) {
  .floating-whatsapp-btn {
    bottom: 20px;
  }
}

.js-wishlist-count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding-inline: 3px;
}

.product-card img,
.blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-info {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.product-title {
  font-weight: 700;
  font-size: 1.03rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  color: var(--primary-dark);
  font-weight: 800;
}

.old-price {
  color: #9099ab;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.chip {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  background: #e9f7f3;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-info .btn {
  margin-top: 6px;
  width: 100%;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: center;
}

.product-detail-media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.product-detail-body h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}

.product-detail-category {
  color: var(--muted);
  margin-bottom: 8px;
}

.product-detail-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail-actions .btn {
  min-width: 180px;
}

.show-all-wrap {
  margin-top: 22px;
  text-align: center;
}

.page-hero {
  padding: 38px 0;
}

.page-hero .panel {
  padding: 30px;
  box-shadow: var(--shadow);
}

.about-grid,
.contact-grid,
.cart-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.auth-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.panel {
  padding: 24px;
  box-shadow: 0 7px 16px rgba(16, 24, 40, 0.04);
}

.panel p,
.blog-body p,
.list-muted {
  color: var(--muted);
}

.api-status {
  margin: 10px 0 12px;
  font-size: 0.94rem;
  color: #475467;
}

.api-status.success {
  color: #087443;
}

.api-status.warn {
  color: #9a6700;
}

.api-status.error {
  color: #b42318;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  background: #fcfdff;
}

.stat strong {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.blogs-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card {
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.05);
}

.blog-card img {
  aspect-ratio: 16 / 10;
}

.blog-body {
  padding: 16px;
}

.read-link {
  color: var(--primary-dark);
  font-weight: 700;
}

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

.contact-list {
  display: grid;
  gap: 12px;
  color: #344054;
}

form,
.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form {
  padding: 24px;
}

.auth-form {
  padding: 24px;
}

.auth-form h3 {
  margin-bottom: 4px;
}

.auth-form p {
  color: var(--muted);
  margin-bottom: 4px;
}

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

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 0.95rem;
}

.auth-check input {
  width: auto;
}

.auth-link {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.94rem;
}

.auth-link:hover {
  color: var(--primary);
}

.auth-alt {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
  text-align: center;
  color: #475467;
  font-size: 0.94rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  color: #111827;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.cart-panel {
  padding: 22px;
}

.checkout-fields {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(160deg, #141414 0%, #1e2025 100%);
  color: #d9deea;
  padding: 44px 0 24px;
  margin-top: 32px;
}

.footer-grid-premium {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 22px;
}

.footer-brand-panel p {
  color: #b2b8c6;
  margin-top: 12px;
  max-width: 32ch;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #383d4a;
}

.footer-brand-row h3 {
  color: #f8f9fc;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer-brand-row h3 span {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f6fb;
  border: 1px solid #353b48;
  transition: 0.2s ease;
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.85rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: #c2cad9;
  font-size: 1.24rem;
}

.footer-col a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  color: #9aa4b5;
  border-top: 1px solid #30384a;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.9rem;
}

.fixed-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(16, 24, 40, 0.12);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}

.fixed-bottom-nav .nav-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 2px;
  height: 50px;
  border-radius: 11px;
  border-bottom: none !important;
  padding: 0;
  color: #1f2937;
  transition: background 0.2s ease, color 0.2s ease;
}

.fixed-bottom-nav .nav-icon.active {
  color: var(--primary);
  background: #f1f4f9;
}

.fixed-bottom-nav .nav-icon:hover {
  transform: translateY(-1px);
}

.fixed-bottom-nav .nav-svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fixed-bottom-nav .nav-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}

.fixed-bottom-nav .nav-icon-whatsapp {
  color: #22c55e;
}

.fixed-bottom-nav .nav-icon-whatsapp .nav-label {
  font-weight: 700;
}

.fixed-bottom-nav .nav-icon-whatsapp .nav-svg {
  display: none;
}

.fixed-bottom-nav .nav-icon-whatsapp::before {
  content: "";
  width: 19px;
  height: 19px;
  background-image: var(--wa-icon-url);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media (min-width: 821px) {
  .home-subcategory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .home-subcategory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 88px;
  }

  .fixed-bottom-nav {
    display: grid;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .cart-layout,
  .auth-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }

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

  .blogs-grid,
  .footer-grid-premium {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .brand {
    min-width: 0;
    justify-content: center;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    gap: 10px 18px;
    padding-bottom: 0;
  }

  .header-actions {
    width: auto;
    display: flex;
    gap: 8px;
    align-items: center;
  }
}

@media (max-width: 820px) {
  .container {
    width: 95%;
  }

  h1 {
    font-size: 2rem;
  }

  section {
    padding: 42px 0;
  }

  .blogs-grid,
  .footer-grid-premium,
  .stat-row {
    grid-template-columns: 1fr;
  }

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

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

  .category-card-parent {
    min-height: 96px;
    padding: 8px 6px;
    border-radius: 12px;
  }

  .category-card-parent .category-emoji {
    width: 42px;
    height: 42px;
    margin-bottom: 6px;
    font-size: 1.1rem;
  }

  .category-card-parent h3 {
    font-size: 0.78rem;
    line-height: 1.2;
  }

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

  #featured .product-card {
    min-width: 0;
    width: 100%;
  }

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

  .categories .category-grid-parent {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .categories .category-grid-parent .category-card-parent {
    flex: 0 0 calc((100% - 24px) / 4);
  }

  .home-sections-wrap {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .home-category-sections {
    gap: 14px;
  }

  .home-category-block h2 {
    font-size: 1.12rem;
  }

  .home-section-head {
    margin-bottom: 8px;
  }

  .home-subcategory-grid {
    gap: 8px;
  }

  .home-subcard {
    min-height: 152px;
    padding: 6px;
  }

  .home-subcard-title {
    font-size: 0.78rem;
  }

  .brand img {
    width: 130px;
  }

  .header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-content: start;
    width: fit-content;
  }

  .brand img {
    width: 116px;
  }

  .brand {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .menu-toggle {
    display: grid;
  }

  header nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    border-top: 1px solid #2a2a2a;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  body.menu-open header nav {
    display: block;
  }

  header nav ul {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }

  header nav a {
    display: block;
    width: 100%;
    padding: 8px 0;
    font-size: 1rem;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .cart-count {
    min-width: 18px;
    height: 18px;
    font-size: 0.67rem;
    top: -5px;
    right: -5px;
  }

  .banner-slide img {
    aspect-ratio: 4 / 3;
  }

  .banner-control {
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
  }

  .banner-control.prev {
    left: 8px;
  }

  .banner-control.next {
    right: 8px;
  }

  .banner-dots {
    bottom: 8px;
  }

  .product-card img {
    aspect-ratio: 16 / 10;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .section-head p {
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .category-card {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .category-thumb {
    width: 56px;
    height: 56px;
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .category-card h3 {
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .product-info,
  .blog-body {
    padding: 10px;
    gap: 6px;
  }

  .product-title {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .chip {
    font-size: 0.66rem;
    padding: 3px 8px;
  }

  .price {
    font-size: 1.07rem;
  }

  .old-price {
    font-size: 0.85rem;
  }

  .btn {
    padding: 10px 12px;
  }

  .product-info .btn {
    font-size: 0.95rem;
  }

  .product-detail-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .panel,
  .cart-panel,
  .contact-form {
    padding: 18px;
  }

  .site-footer {
    padding: 36px 0 20px;
  }

  .footer-brand-row h3 {
    font-size: 1.45rem;
  }

  .footer-brand-panel p {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .footer-col h3 {
    font-size: 1rem;
  }

  .footer-col ul {
    font-size: 0.7rem;
  }

  .social-links a {
    width: 25px;
    height: 25px;
  }

  .social-links svg {
    width: 16px;
    height: 16px;
  }

  .copyright {
    font-size: 0.83rem;
  }
}

/* Strong mobile override to ensure footer sizes apply consistently */
@media (max-width: 900px) {
  .footer-logo {
    display: none !important;
  }

  .site-footer .footer-brand-row h3 {
    font-size: 1.45rem !important;
  }

  .site-footer .footer-brand-panel p {
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
  }

  .site-footer .footer-col h3 {
    font-size: 1rem !important;
  }

  .site-footer .footer-col ul {
    font-size: 0.7rem !important;
  }

  .site-footer .social-links a {
    width: 25px !important;
    height: 25px !important;
  }

  .site-footer .social-links svg {
    width: 16px !important;
    height: 16px !important;
  }

  .site-footer .copyright {
    font-size: 0.83rem !important;
  }
}

/* Final mobile header lock: menu | centered logo | cart */
@media (max-width: 1024px) {
  .header-main {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  .brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 230px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .brand img {
    width: 170px !important;
  }

  .header-actions {
    display: contents !important;
  }

  .header-actions .menu-toggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    display: grid !important;
  }

  .header-actions .icon-btn-whatsapp,
  .header-actions .js-bottom-search {
    display: none !important;
  }

  .header-actions > a.icon-btn:not(.icon-btn-whatsapp) {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
  }
}

/* Home-page polished header + cards override */
.home-page .brand {
  min-width: 0;
}

.home-page .brand img {
  width: 152px;
}

.home-page .header-actions .js-bottom-search,
.home-page .header-actions .icon-btn-whatsapp {
  display: grid !important;
}

.home-page .header-actions .icon-btn {
  width: 37px;
  height: 37px;
}

.home-page .header-actions .icon-btn-whatsapp {
  color: #1fb655;
  border-color: #87d8a6;
  background: #ffffff;
}

.home-page .header-actions .js-bottom-search {
  color: #111827;
}

.home-page .fixed-bottom-nav .nav-label {
  font-size: 0.67rem;
}

@media (max-width: 1024px) {
  .home-page .header-main {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  .home-page .brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 310px !important;
    margin: 0 auto !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    border: 1px solid #f7a9b6 !important;
    background: #ffffff !important;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.12) !important;
  }

  .home-page .brand img {
    width: 176px !important;
  }

  .home-page .header-actions {
    display: grid !important;
    grid-template-columns: auto auto auto auto;
    align-items: center;
    gap: 7px;
    grid-column: 1 / 4 !important;
    grid-row: 1 !important;
  }

  .home-page .header-actions .menu-toggle {
    grid-column: 1 !important;
    justify-self: start !important;
    display: grid !important;
  }

  .home-page .header-actions .js-bottom-search {
    grid-column: 2 !important;
    justify-self: end !important;
    margin-left: auto;
  }

  .home-page .header-actions > a.icon-btn:not(.icon-btn-whatsapp) {
    grid-column: 3 !important;
    justify-self: end !important;
  }

  .home-page .header-actions .icon-btn-whatsapp {
    grid-column: 4 !important;
    justify-self: end !important;
  }

  .home-page .header-actions .icon-btn-whatsapp,
  .home-page .header-actions .js-bottom-search {
    display: grid !important;
  }

  .home-page header nav {
    display: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    border-top: 1px solid #252525;
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .home-page.menu-open header nav {
    display: block !important;
  }

  .home-page header nav ul {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .home-page header nav a {
    width: 100%;
    padding: 8px 2px;
  }
}

@media (max-width: 440px) {
  .home-page .brand {
    max-width: 230px !important;
    padding: 6px 8px !important;
  }

  .home-page .brand img {
    width: 150px !important;
  }

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

/* Home page - match reference screenshot */
.home-page {
  background: #f4f6fb;
}

.home-page header {
  background: #ffffff !important;
  border-bottom: 1px solid #e8ecf3 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
}

.home-page .header-main {
  grid-template-columns: 40px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  gap: 10px !important;
  padding: 8px 0 !important;
}

.home-page .menu-toggle {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  display: grid !important;
  border-color: #d8deea;
  background: #fff;
  color: #0f172a;
}

.home-page .brand {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: center !important;
  max-width: 286px !important;
  width: 100% !important;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  border: 1px solid #f06b8e !important;
  background: #fff !important;
  box-shadow: 0 4px 10px rgba(233, 63, 112, 0.12) !important;
}

.home-page .brand img {
  width: 168px !important;
}

.home-page .header-actions {
  grid-column: 3 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.home-page .header-actions .icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #0f172a;
}

.home-page .header-actions .icon-btn-whatsapp,
.home-page .header-actions .js-bottom-search {
  display: grid !important;
}

.home-page .header-actions .icon-btn-whatsapp {
  border-color: #90d8ac;
}

.home-page nav {
  display: none !important;
  grid-column: 1 / -1;
  grid-row: 2;
  border-top: 1px solid #eef1f6;
  padding-top: 8px;
}

.home-page.menu-open nav {
  display: block !important;
}

.home-page nav ul {
  color: #0f172a;
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.home-page nav a {
  width: 100%;
  padding: 8px 2px;
}

.home-page nav a:hover,
.home-page nav a.active {
  color: #e11d48;
  border-color: #e11d48;
}

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

.home-page .banner-slider {
  border-radius: 14px;
  border: 1px solid #e8ecf3;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.home-page .banner-slide img {
  aspect-ratio: 16 / 6;
}

.home-page .banner-control {
  display: none;
}

.home-page .banner-dots {
  bottom: 8px;
}

.home-page .banner-dot {
  width: 8px;
  height: 8px;
  background: #d3d8e3;
  border: 0;
}

.home-page .banner-dot.is-active {
  background: #ef476f;
}

.home-page .categories {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.home-page .home-sections-wrap {
  padding-top: 6px;
  padding-bottom: 12px;
}

.home-page .home-category-sections {
  gap: 16px;
}

.home-page .home-section-head {
  margin-bottom: 8px;
}

.home-page .home-category-block h2 {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  gap: 6px;
}

.home-page .home-heading-icon {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-size: 1rem;
}

.home-page .home-view-all {
  color: #ef476f;
  font-size: 0.88rem;
}

.home-page .home-view-all-arrow {
  font-size: 1rem;
  vertical-align: -0.5px;
}

.home-page .home-subcategory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-page .home-subcard {
  border-radius: 12px;
  padding: 5px;
  min-height: 162px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
  border-color: #e8ecf3;
}

.home-page .home-subcard-media {
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  background: #f9fafc;
}

.home-page .home-subcard-title {
  font-size: 0.79rem;
  line-height: 1.24;
}

.home-page .fixed-bottom-nav {
  display: grid;
  background: #fff;
  border-top: 1px solid #e6ebf3;
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
}

.home-page .fixed-bottom-nav .nav-icon {
  height: 52px;
  border-radius: 10px;
}

.home-page .fixed-bottom-nav .nav-icon.active {
  background: #ffe8ef;
  color: #ef476f;
}

.home-page .fixed-bottom-nav .nav-label {
  font-size: 0.68rem;
  font-weight: 600;
}

.home-page .fixed-bottom-nav .nav-icon[data-nav="wishlist"] {
  position: relative;
}

.home-page .fixed-bottom-nav .nav-mini-badge {
  position: absolute;
  top: 4px;
  right: 15px;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ef476f;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 3px;
}

@media (max-width: 900px) {
  .home-page .container {
    width: 94%;
  }
}

@media (max-width: 640px) {
  .home-page .home-subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-subcard {
    min-height: 174px;
  }
}

/* Home mobile shell aligned to shared app reference */
@media (max-width: 1024px) {
  .home-page {
    background: #f3edf2;
  }

  .home-page header {
    background: #050505 !important;
    border-bottom: 1px solid #1b1b1b !important;
    box-shadow: none !important;
  }

  .home-page .header-main {
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    grid-template-rows: auto auto !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .home-page .menu-toggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    display: grid !important;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #474747 !important;
    background: #121212 !important;
    color: #f7f7f7 !important;
  }

  .home-page .brand {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    width: 100% !important;
    max-width: 260px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-page .brand img {
    width: min(100%, 202px) !important;
  }

  .home-page .header-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  .home-page .header-actions .js-bottom-search,
  .home-page .header-actions .icon-btn-whatsapp {
    display: none !important;
  }

  .home-page .header-actions > a.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #474747 !important;
    background: #121212 !important;
    color: #f7f7f7 !important;
  }

  .home-page .header-actions > a.icon-btn .cart-count {
    top: -6px;
    right: -5px;
    background: #ef232b;
    color: #fff;
  }

  .home-page header nav {
    display: none !important;
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid #232323;
    padding-top: 8px;
  }

  .home-page.menu-open header nav {
    display: block !important;
  }

  .home-page nav ul {
    color: #f3f4f6;
  }

  .home-page .fixed-bottom-nav {
    display: grid;
    background: #ffffff;
    border-top: 1px solid #e4e8ef;
    box-shadow: none;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
  }

  .home-page .fixed-bottom-nav .nav-icon {
    height: 56px;
    border-radius: 12px;
    gap: 3px;
    color: #1f2937;
  }

  .home-page .fixed-bottom-nav .nav-icon.active {
    background: #eceff4;
    color: #e11d48;
  }

  .home-page .fixed-bottom-nav .nav-label {
    font-size: 0.69rem;
    font-weight: 600;
  }

  .home-page .fixed-bottom-nav .nav-icon-whatsapp {
    color: #22c55e;
  }

  .home-page .fixed-bottom-nav .nav-icon-whatsapp .nav-label {
    font-weight: 700;
  }
}

/* Final premium polish: keep structure, improve visual quality */
@media (max-width: 1024px) {
  .home-page {
    background: #f1eaef;
  }

  .home-page .container {
    width: 92%;
  }

  .home-page .header-main {
    grid-template-columns: 40px minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 8px 0 !important;
  }

  .home-page .menu-toggle,
  .home-page .header-actions > a.icon-btn,
  .home-page .header-actions > button.icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #3f3f3f !important;
    background: #0f0f0f !important;
    color: #f8fafc !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .home-page .brand {
    max-width: 236px !important;
  }

  .home-page .brand img {
    width: min(100%, 184px) !important;
  }

  .home-page .header-actions {
    gap: 6px;
    align-items: center;
  }

  .home-page .header-actions .js-bottom-search {
    display: grid !important;
  }

  .home-page .header-actions .icon-btn-whatsapp {
    display: none !important;
  }

  .home-page .header-actions > a.icon-btn .cart-count {
    min-width: 18px;
    height: 18px;
    top: -5px;
    right: -5px;
    font-size: 0.63rem;
    background: #ef232b;
  }

  .home-page .hero {
    padding: 8px 0 4px;
  }

  .home-page .banner-slider {
    border-radius: 12px;
    border: 1px solid #e2e6ee;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
  }

  .home-page .banner-slide img {
    aspect-ratio: 16 / 6.3;
  }

  .home-page .banner-showcase .container::after {
    content: "Premium Finish   \2022   Fast Delivery   \2022   WhatsApp Support";
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #e2e7f0;
    background: #fff;
    color: #475467;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-page .home-sections-wrap {
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .home-page .home-category-sections {
    gap: 12px;
  }

  .home-page .home-section-head {
    margin-bottom: 6px;
  }

  .home-page .home-category-block h2 {
    font-size: 1.1rem;
    font-weight: 800;
  }

  .home-page .home-view-all {
    font-size: 0.86rem;
  }

  .home-page .home-subcategory-grid {
    gap: 9px;
  }

  .home-page .home-subcard {
    position: relative;
    border-radius: 12px;
    border: 1px solid #e3e8f0;
    padding: 5px 5px 8px;
    min-height: 0;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  }

  .home-page .home-subcard-media {
    aspect-ratio: 1 / 0.88;
    border-radius: 10px;
    border: 1px solid #e7ebf2;
    background: #f6f7fa;
  }

  .home-page .home-subcard-media img {
    object-fit: cover;
    background: #f6f7fa;
    filter: saturate(0.92) contrast(1.03);
  }

  .home-page .home-subcard-title {
    margin-top: 2px;
    font-size: 0.8rem;
    line-height: 1.22;
    min-height: auto;
  }

  .home-page .home-subcard::after {
    content: "Customize Now";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px auto 1px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #ffd8e1;
    background: #fff3f7;
    color: #e11d48;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
  }

  .home-page .fixed-bottom-nav {
    gap: 4px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid #e4e9f1;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }

  .home-page .fixed-bottom-nav .nav-icon {
    height: 52px;
    border-radius: 11px;
    gap: 2px;
    color: #334155;
  }

  .home-page .fixed-bottom-nav .nav-svg {
    width: 17px;
    height: 17px;
  }

  .home-page .fixed-bottom-nav .nav-label {
    font-size: 0.66rem;
    font-weight: 600;
  }

  .home-page .fixed-bottom-nav .nav-icon.active {
    background: #eef1f6;
    color: #e11d48;
    box-shadow: inset 0 0 0 1px #e2e8f0;
  }
}

/* Pixel-level header + bottom-nav polish (no structural changes) */
@media (max-width: 1024px) {
  .home-page .header-main {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    align-items: center !important;
    column-gap: 8px !important;
    row-gap: 8px !important;
  }

  .home-page .menu-toggle {
    align-self: center;
    justify-self: start;
  }

  .home-page .brand {
    align-self: center;
  }

  .home-page .brand img {
    width: min(100%, 178px) !important;
    image-rendering: auto;
    filter: contrast(1.04) saturate(1.03);
  }

  .home-page .header-actions {
    grid-column: 3 !important;
    justify-self: end;
    align-self: center;
    min-width: 40px;
    justify-content: flex-end;
  }

  .home-page .header-actions > a.icon-btn,
  .home-page .header-actions > button.icon-btn {
    align-self: center;
  }

  .home-page .header-actions > a.icon-btn .cart-count {
    min-width: 15px;
    height: 15px;
    font-size: 0.56rem;
    top: -4px;
    right: -4px;
    padding-inline: 3px;
  }

  .home-page .fixed-bottom-nav .nav-icon {
    gap: 1px;
    justify-content: center;
    align-items: center;
  }

  .home-page .fixed-bottom-nav .nav-label {
    line-height: 1;
  }

  .home-page .fixed-bottom-nav .nav-icon.active {
    background: #f1f3f7;
    box-shadow: inset 0 0 0 1px #e4e8ef, 0 1px 0 rgba(255, 255, 255, 0.75);
  }
}

@media (max-width: 420px) {
  .home-page .header-main {
    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
  }

  .home-page .menu-toggle,
  .home-page .header-actions > a.icon-btn,
  .home-page .header-actions > button.icon-btn {
    width: 34px;
    height: 34px;
  }

  .home-page .fixed-bottom-nav .nav-icon {
    height: 50px;
  }
}

/* Final safety: always show 4-tab bottom nav on mobile */
@media (max-width: 1024px) {
  .home-page .fixed-bottom-nav {
    display: grid !important;
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .home-page {
    padding-bottom: 92px !important;
  }
}

/* Header final request: 120px logo, no search, cart clearly visible */
@media (max-width: 1024px) {
  .home-page .brand img {
    width: min(100%, 120px) !important;
  }

  .home-page .header-actions .js-bottom-search {
    display: none !important;
  }

  .home-page .header-actions {
    min-width: 40px !important;
    gap: 0 !important;
  }

  .home-page .header-actions > a.icon-btn[href*="cart.html"] {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    color: #ffffff !important;
    border-color: #4b4b4b !important;
    background: #101010 !important;
    place-items: center;
  }

  .home-page .header-actions > a.icon-btn[href*="cart.html"] .nav-svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    stroke: #ffffff !important;
    opacity: 1 !important;
  }
}

@media (max-width: 420px) {
  .home-page .header-actions > a.icon-btn[href*="cart.html"] {
    width: 34px !important;
    height: 34px !important;
  }
}

/* Requested cleanup: center last category item, circular subcategory image, remove CTA + floating WA */
@media (max-width: 1024px) {
  .home-page .home-subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-page .home-subcard-media {
    aspect-ratio: 1 / 1 !important;
    border-radius: 999px !important;
    overflow: hidden;
  }

  .home-page .home-subcard::after {
    content: none !important;
    display: none !important;
  }
}

.floating-whatsapp-btn {
  display: none !important;
}

#featured .product-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

#featured .product-actions-row .btn {
  margin-top: 0 !important;
  width: auto !important;
}

#featured .product-actions-row .js-view-product {
  flex: 1;
  min-width: 0;
}

#featured .product-actions-row .js-add-to-cart-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

#featured .product-actions-row .js-add-to-cart-icon .nav-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Remove trust strip + remove square bg behind subcategory circle images */
@media (max-width: 1024px) {
  .home-page .banner-showcase .container::after {
    content: none !important;
    display: none !important;
  }

  .home-page .home-subcard-media {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-page .home-subcard {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 4px 6px !important;
  }
}

/* Requested final subcategory sizing */
@media (max-width: 1024px) {
  .home-page .home-subcategory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .home-page .home-subcard {
    border-radius: 8px !important;
    padding: 4px 4px 6px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .home-page .home-subcard-media {
    aspect-ratio: 1 / 1 !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }
}

/* Requested mobile sizing: Shop By Categories + All Products */
@media (max-width: 820px) {
  .categories-strip .section-head h2,
  #featured .section-head h2 {
    font-size: 25px !important;
  }

  .categories-strip .section-head p {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  #featured .section-head p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

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

  .categories-strip .category-card {
    padding: 10px 8px !important;
    border-radius: 10px !important;
  }

  .categories-strip .category-thumb {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 6px !important;
  }

  .categories-strip .category-card h3 {
    font-size: 11px !important;
    line-height: 13px !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  #subcategoryPanel.panel {
    padding: 15px !important;
    border-radius: 10px !important;
  }

  #subcategoryPanel input {
    padding: 10px !important;
    border-radius: 10px !important;
  }

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

  #featured .product-card {
    border-radius: 15px !important;
  }

  #featured .product-card img {
    aspect-ratio: 15 / 12 !important;
  }

  #featured .product-info {
    padding: 8px !important;
    gap: 3px !important;
  }

  #featured .product-title {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  #featured .price {
    font-size: 8px !important;
  }

  #featured .old-price {
    font-size: 6px !important;
  }

  #featured .product-info .btn {
    padding: 8px 10px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  #featured .product-actions-row {
    gap: 6px;
  }

  #featured .product-actions-row .js-add-to-cart-icon {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  /* Shop By Categories: single-line row */
  .categories-strip .category-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .categories-strip .category-grid .category-card {
    flex: 0 0 150px;
  }
}

/* Products page premium spacing polish */
.products-page .categories-strip {
  border-top: 0;
}

.products-page #featured.categories {
  border-top: 0;
}

.products-page .section-head {
  margin-bottom: 12px;
}

.products-page .section-head p {
  margin-top: 4px;
}

.products-page #subcategoryPanel {
  margin-bottom: 10px !important;
}

.products-page #featuredProducts {
  margin-top: 2px;
}

.products-page #featuredProducts > .product-card:only-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 210px;
  justify-self: center;
}

.products-page .categories-strip .category-card h3 {
  display: none !important;
}

.products-page .categories-strip .category-card {
  padding: 8px 6px !important;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.products-page .categories-strip .category-thumb {
  width: 46px !important;
  height: 46px !important;
  margin: 0 auto !important;
}

.products-page .categories-strip .category-grid {
  gap: 6px !important;
  justify-content: flex-start;
  padding-inline: 2px;
}

.products-page .categories-strip .category-grid .category-card {
  flex: 0 0 108px !important;
}

@media (max-width: 1024px) {
  .products-page section {
    padding: 20px 0 !important;
  }

  .products-page .categories-strip {
    padding-top: 18px !important;
    padding-bottom: 12px !important;
  }

  .products-page #featured.categories {
    padding-top: 10px !important;
    padding-bottom: 14px !important;
  }

  .products-page #featured .product-card {
    border-radius: 14px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  }
}

/* Shop By Categories mobile sizing (products page) */
@media (max-width: 1024px) {
  .home-page .categories .section-head h2 {
    font-size: 25px !important;
  }

  .home-page .categories .section-head p {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

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

  .home-page .categories .category-card {
    padding: 12px 10px !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-page .categories .category-thumb {
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 8px;
  }

  .home-page .categories .category-card h3 {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
  }
}
