
:root {
  --red: #ed001b;
  --dark-red: #650008;
  --black: #111111;
  --white: #ffffff;
  --grey: #f5f5f3;
  --muted: #777777;
  --border: #e6e6e6;
  --font: "Plus Jakarta Sans", "DM Sans", -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

[hidden] {
  display: none !important;
}

/* ========================================================
   FLOATING CAPSULE NAVBAR (D:\UI\Navbar1.jpg)
   ======================================================== */
.floating-header-wrapper {
  position: sticky;
  top: 14px;
  z-index: 100;
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.header-floating {
  pointer-events: auto;
  width: 100%;
  max-width: 1060px;
  height: 56px;
  background: #111317;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0,0,0,0.06);
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #111317;
  padding: 6px 16px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.brand-pill:hover {
  transform: scale(1.02);
}

.brand-pill-icon {
  color: #ed001b;
  font-size: 13px;
}

.nav-pills-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-pill {
  color: #d1d5db;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-pill.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 700;
}

.nav-pill.sale-nav-pill {
  color: #ff4d61;
}

.header-action-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.pill-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}

.cart-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #111317;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: all 0.2s;
}

.cart-pill-btn:hover {
  background: #f4f5f8;
  transform: translateY(-1px);
}

.cart-pill-bubble {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #111317;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
}

/* Floating Search Bar */
.floating-search-bar {
  display: none;
  max-width: 600px;
  margin: 10px auto 0;
  padding: 0 16px;
  position: sticky;
  top: 76px;
  z-index: 99;
}

.floating-search-bar.open {
  display: block;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 8px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: #111317;
}

.search-input-wrap button {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #64748b;
  cursor: pointer;
}

/* ========================================================
   CLEAN HERO SECTION (D:\UI\Portfolio.jpg)
   ======================================================== */
.hero-clean {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 600px;
  padding: 100px 5% 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  opacity: 0.82;
  filter: brightness(0.96) contrast(1.1) saturate(1.12);
  transform: scale(1.03);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.hero-clean:hover .hero-bg-wrap img {
  transform: scale(1.06);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Top to bottom cinematic gradient for crystal-clear text readability */
    linear-gradient(180deg, rgba(11, 13, 18, 0.72) 0%, rgba(11, 13, 18, 0.38) 32%, rgba(11, 13, 18, 0.32) 65%, rgba(11, 13, 18, 0.88) 100%),
    /* Warm amber spotlight glow centering on the shoes */
    radial-gradient(ellipse at 50% 55%, rgba(234, 88, 12, 0.16) 0%, transparent 62%),
    /* Vignette darkening the corners */
    radial-gradient(ellipse at center, transparent 38%, rgba(11, 13, 18, 0.58) 100%);
}

.hero-clean-inner {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.hero-clean-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #f8fafc;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.hero-clean-title {
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.85);
}

.title-dot {
  color: #ed001b;
}

.hero-clean-desc {
  font-size: 17.5px;
  line-height: 1.65;
  color: #e2e8f0;
  max-width: 660px;
  margin: 0 auto 34px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-clean-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn-hero-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0b0d12;
  padding: 15px 36px;
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-solid:hover {
  background: #f8fafc;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 255, 255, 0.35);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 13px 30px;
  background: rgba(11, 13, 18, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  width: auto;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.hero-stat-pill .stat-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

@media (max-width: 920px) {
  .header-floating {
    position: relative;
    gap: 8px;
  }

  .header-action-pills {
    gap: 6px;
  }

  .nav-pills-list {
    display: none;
    position: absolute;
    top: 66px;
    left: 12px;
    right: 12px;
    background: #111317;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 14px;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 9999;
  }

  .nav-pills-list.open {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-pill {
    padding: 10px 14px;
    width: 100%;
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 14px;
  }

  .nav-pill:hover,
  .nav-pill.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }
}

@media (max-width: 600px) {
  .floating-header-wrapper {
    top: 8px;
    padding: 0 10px;
  }

  .header-floating {
    height: 50px;
    padding: 5px 7px;
    gap: 6px;
  }

  .brand-pill {
    gap: 5px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .mobile-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }

  .header-action-pills {
    gap: 5px;
  }

  .header-action-pills .pill-icon-btn {
    width: 32px;
    height: 32px;
  }

  .cart-pill-btn {
    gap: 5px;
    padding: 6px 9px;
    font-size: 11px;
  }

  .cart-pill-btn > span:not(.cart-pill-bubble) {
    display: none;
  }

  .cart-pill-bubble {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .nav-pills-list {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
  }
}

@media (max-width: 360px) {
  .floating-header-wrapper {
    padding: 0 7px;
  }

  .header-floating {
    gap: 4px;
    padding: 5px;
  }

  .brand-pill {
    padding: 6px 8px;
    font-size: 11px;
  }

  .header-action-pills {
    gap: 4px;
  }

  .header-action-pills .pill-icon-btn {
    width: 30px;
    height: 30px;
  }
}

/* Sections */

.section {
  padding: 70px 5%;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.newsletter h2 {
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.section-heading .eyebrow {
  margin-bottom: 9px;
}

.text-link {
  font-size: 11px;
  font-weight: 800;
}

#sortSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 13px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 10px 38px 10px 18px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 42px;
  width: auto;
  min-width: 155px;
}

#sortSelect:hover {
  border-color: #0f172a;
  background-color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

#sortSelect:focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.filter-message {
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 15px;
}

/* ========================================================
   MODERN CATEGORY GRID (D:\UI Jobgio / Portfolio Style)
   ======================================================== */
.categories {
  padding: 56px 5% 36px;
}

.category-reset-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 9999px;
  background: #f1f4f9;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.category-reset-link:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* ========================================================
   4 BIG CATEGORY CARDS WITH BOTTOM BLACK SHADE EFFECT
   ======================================================== */
.category-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.cat-card-shade {
  position: relative;
  height: 380px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  user-select: none;
  background: #0f172a;
}

.cat-card-shade:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.cat-card-shade.active {
  box-shadow: 0 0 0 3px #0f172a, 0 20px 45px rgba(0, 0, 0, 0.25);
}

.cat-card-shade:focus-visible {
  outline: 3px solid #0f172a;
  outline-offset: 3px;
}

.cat-card-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card-shade:hover .cat-card-media img {
  transform: scale(1.08);
}

/* The Black Shade Effect at the bottom of the card */
.cat-card-shade-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.02) 25%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
  transition: background 0.3s ease;
}

.cat-card-shade:hover .cat-card-shade-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.cat-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cat-count-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cat-arrow-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.cat-card-shade:hover .cat-arrow-circle {
  transform: scale(1.1) rotate(45deg);
  background: #ffffff;
}

.cat-card-bottom {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.cat-card-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #ffffff;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cat-card-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .category-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cat-card-shade {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .category-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cat-card-shade {
    height: 280px;
  }
}

/* Category Filter Pills (In Products Section) */
.category-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  border-color: #94a3b8;
  color: #0f172a;
  background: #f8fafc;
}

.cat-pill.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.cat-pill .pill-cnt {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
}

.cat-pill.active .pill-cnt {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cat-pill-sale {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.cat-pill-sale:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}

.cat-pill-sale.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

@media (max-width: 580px) {
  .category-tile {
    flex-basis: 68px;
  }
  .category-tile-media {
    width: 58px;
    height: 44px;
  }
  .category-filter-pills {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .category-filter-pills::-webkit-scrollbar {
    display: none;
  }
}

/* Product gallery */

.products {
  padding-top: 15px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 17px;
}

.product-card {
  min-width: 0;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-image {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #f4f6fa;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.055);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #111317;
  color: #ffffff;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-badge.sale {
  background: #ed001b;
  color: #fff;
}

.product-badge.sold-out {
  background: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.product-card.is-sold-out .product-image img {
  filter: grayscale(45%) opacity(0.85);
}

.product-card.is-sold-out:hover .product-image img {
  transform: none;
}

.stock-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: 5px;
  width: max-content;
}

.stock-tag.sold-out {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.stock-tag.low-stock {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #111317;
  z-index: 3;
  transition: all 0.2s ease;
}

.wishlist-btn:hover {
  background: #ffffff;
  transform: scale(1.08);
}

.wishlist-btn.active {
  color: #ed001b;
  background: #fff;
}

.product-info {
  padding: 10px 4px 0;
}

.product-category {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 3px 0 5px;
  line-height: 1.3;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.old-price {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}

.center-button {
  text-align: center;
  margin-top: 38px;
}

.empty-state {
  padding: 45px 0;
  text-align: center;
  color: #777;
  font-size: 13px;
}

/* ========================================================
   MODERN LUXURY SALE BANNER (Unified & Seamless)
   ======================================================== */
.sale-banner-modern {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  margin: 10px 5% 50px;
  border-radius: 28px;
  background: #0f1217;
  color: #ffffff;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.sale-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sale-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: brightness(0.92);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sale-banner-modern:hover .sale-banner-bg img {
  transform: scale(1.03);
}

.sale-banner-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 18, 23, 0.98) 0%,
    rgba(15, 18, 23, 0.94) 38%,
    rgba(15, 18, 23, 0.72) 65%,
    rgba(15, 18, 23, 0.25) 100%
  );
  pointer-events: none;
}

.sale-banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.sale-banner-text {
  max-width: 540px;
}

.sale-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(237, 0, 27, 0.18);
  border: 1px solid rgba(237, 0, 27, 0.35);
  color: #ff4d5e;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.sale-title {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: #ffffff;
  margin-bottom: 14px;
}

.sale-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 26px;
  max-width: 460px;
}

.sale-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sale-badge-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  min-width: 200px;
}

.sale-badge-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.sale-badge-num {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.sale-badge-num .pct {
  font-size: 34px;
  font-weight: 800;
  color: #ed001b;
  margin-left: 2px;
}

.sale-badge-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #e2e8f0;
  margin-top: 6px;
  white-space: nowrap;
}

/* Benefits */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit {
  text-align: center;
}

.benefit > span {
  font-size: 26px;
}

.benefit h3 {
  margin: 12px 0 6px;
  font-size: 12px;
}

.benefit p {
  color: #777;
  font-size: 10px;
}

/* Newsletter */

.newsletter {
  padding: 65px 20px 55px;
  text-align: center;
  background: #f5f5f3;
}

.newsletter .eyebrow {
  margin-bottom: 10px;
}

.newsletter > p {
  margin-top: 12px;
  color: #777;
  font-size: 12px;
}

.newsletter form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 25px auto 0;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ddd;
  background: #fff;
  outline: none;
  font-size: 11px;
}

.form-message {
  min-height: 18px;
}

/* ========================================================
   MODERN LUXURY FOOTER (Inspired by D:\UI)
   ======================================================== */
.footer {
  background: #0f1115;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(237, 0, 27, 0.08), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255, 255, 255, 0.02), transparent 45%);
  color: #ffffff;
  padding: 64px 5% 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font);
}

.footer-inner-wrap {
  max-width: 1220px;
  margin: 0 auto;
}

.footer-perks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  margin-bottom: 48px;
}

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

.footer-perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
}

.footer-perk-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}

.footer-perk-text span {
  font-size: 11px;
  color: #94a3b8;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 44px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #111317;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
  width: max-content;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.footer-brand-pill .brand-spark {
  color: #ed001b;
}

.footer-brand-pill .brand-tag {
  font-size: 9px;
  background: #111317;
  color: #fff;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 1px;
  margin-left: 2px;
}

.footer-brand-desc {
  max-width: 340px;
  color: #94a3b8;
  font-size: 13.5px;
  line-height: 1.65;
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.social-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.social-circle-btn:hover {
  background: #ffffff;
  color: #111317;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.dispatch-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  width: max-content;
  margin-top: 6px;
}

.dispatch-live-chip .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

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

.footer-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-heading::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 12px;
  background: #ed001b;
  border-radius: 2px;
}

.footer-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s ease;
  width: max-content;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-newsletter-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-newsletter-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-subscribe-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 4px 6px 4px 16px;
  transition: border-color 0.2s;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

.footer-subscribe-box:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-subscribe-box input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  padding-right: 8px;
}

.footer-subscribe-box input::placeholder {
  color: #64748b;
}

.footer-subscribe-box button {
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  min-height: 40px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.footer-subscribe-box button:hover {
  background: #f8fafc;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.footer-subscribe-box button:active {
  transform: scale(0.97);
}

.payment-chips-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.payment-chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.footer-bottom {
  padding: 24px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #64748b;
  font-size: 12px;
}

.footer-bottom-copy {
  color: #94a3b8;
}

.footer-bottom-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-size: 11px;
  color: #cbd5e1;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-bottom-links a {
  color: #94a3b8;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

@media (max-width: 960px) {
  .footer-perks-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand,
  .footer-newsletter-wrap {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-perks-row {
    grid-template-columns: 1fr;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px 18px;
  }
  .footer-brand,
  .footer-newsletter-wrap {
    grid-column: 1 / -1;
  }
  .footer-link {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    overflow-wrap: anywhere;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cart drawer */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: min(440px, 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.drawer-heading .eyebrow {
  margin-bottom: 5px;
}

.drawer-heading h2 {
  font-size: 23px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 80px;
  height: 85px;
  object-fit: cover;
  background: #f5f5f3;
}

.cart-item h3 {
  font-size: 12px;
  margin: 4px 0;
}

.cart-item p {
  font-size: 10px;
  color: #777;
}

.cart-item-price {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.quantity-control {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 9px;
  border: 1px solid var(--border);
}

.quantity-control button {
  width: 27px;
  height: 27px;
  border: 0;
  background: #fff;
}

.quantity-control span {
  font-size: 11px;
}

.remove-item {
  display: block;
  border: 0;
  background: transparent;
  margin-top: 7px;
  font-size: 10px;
  text-decoration: underline;
}

.cart-empty {
  padding: 55px 10px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.cart-footer > p {
  margin: 10px 0 18px;
  color: #777;
  font-size: 10px;
}

.checkout-btn {
  width: 100%;
}

.continue-shopping {
  display: block;
  margin: 15px auto 0;
  background: none;
  border: 0;
  font-size: 11px;
  text-decoration: underline;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 200;
  width: max-content;
  max-width: 90%;
  padding: 13px 20px;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 15px);
  transition: .2s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.checkout-dialog {
  width: min(470px, calc(100% - 28px));
  max-height: min(90vh, 760px);
  padding: 0;
  border: 1px solid #e6e6e6;
  background: #fff;
  color: #111;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.checkout-dialog::backdrop {
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
}

.checkout-form {
  display: grid;
  gap: 13px;
  padding: 24px;
}

.checkout-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 4px;
}

.checkout-heading .eyebrow {
  margin-bottom: 5px;
}

.checkout-heading h2 {
  font-size: 21px;
  letter-spacing: 0;
}

.checkout-form > label {
  display: grid;
  gap: 6px;
  color: #555;
  font-size: 11px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 10px 11px;
  color: #111;
  font-size: 12px;
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--red);
  outline: 2px solid rgba(237, 0, 27, .12);
}

.checkout-payment-note {
  margin: 2px 0 0;
  padding: 10px;
  background: #f6f6f4;
  color: #666;
  font-size: 10px;
}

.checkout-error {
  min-height: 15px;
  margin: 0;
  color: #b00018;
  font-size: 10px;
}

.checkout-submit {
  width: 100%;
  min-height: 46px;
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: .65;
}

/* Tablet */

@media (max-width: 1050px) {
  .header {
    gap: 18px;
    padding: 0 3%;
  }

  .logo-main {
    font-size: 29px;
  }

  .nav {
    gap: 13px;
  }

  .nav-link {
    font-size: 11px;
  }

  .header-actions {
    gap: 9px;
  }

  .hero {
    min-height: 660px;
  }

  .hero h1 {
    font-size: 74px;
  }

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

/* Mobile */

@media (max-width: 700px) {
  .header {
    height: 68px;
    padding: 0 15px;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 0;
    font-size: 22px;
  }

  .header > .logo {
    margin-right: auto;
  }

  .logo-main {
    font-size: 26px;
    letter-spacing: -1.5px;
  }

  .logo-sub {
    font-size: 7px;
    letter-spacing: 5px;
    margin-top: 4px;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-btn {
    font-size: 22px;
    min-width: 24px;
  }

  .cart-trigger svg {
    width: 22px;
    height: 22px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    padding: 13px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
  }

  .nav-link::after {
    display: none;
  }

  .hero-clean {
    min-height: 500px;
    padding: 75px 18px 50px;
  }

  .hero-clean-title {
    font-size: clamp(30px, 8.5vw, 44px);
    letter-spacing: -1.2px;
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .hero-clean-desc {
    font-size: 14.5px;
    line-height: 1.55;
    padding: 0 6px;
    margin-bottom: 24px;
  }

  .hero-clean-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 26px;
  }

  .hero-clean-ctas .btn-hero-solid,
  .hero-clean-ctas .btn-hero-ghost {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero-stats-strip {
    flex-direction: column;
    gap: 10px;
    border-radius: 20px;
    padding: 14px 18px;
    width: 100%;
    max-width: 340px;
  }

  .section {
    padding: 45px 17px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }

  .section-heading h2,
  .newsletter h2 {
    font-size: 28px;
  }

  .categories {
    padding-top: 34px;
    padding-bottom: 24px;
  }

  .products {
    padding-top: 10px;
  }

  #sortSelect {
    max-width: 100%;
    width: auto;
    font-size: 13px;
    padding: 9px 36px 9px 16px;
    min-height: 40px;
  }

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

  .product-image {
    height: 170px;
    border-radius: 16px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    font-size: 8.5px;
    padding: 3px 8px;
  }

  .wishlist-btn {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .product-info h3 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
  }

  .product-price {
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
  }

  .sale-banner-modern {
    margin: 10px 16px 36px;
    border-radius: 22px;
  }

  .sale-banner-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 22px;
    gap: 24px;
  }

  .sale-banner-gradient {
    background: linear-gradient(
      to bottom,
      rgba(15, 18, 23, 0.96) 0%,
      rgba(15, 18, 23, 0.88) 55%,
      rgba(15, 18, 23, 0.65) 100%
    );
  }

  .sale-title {
    font-size: 26px;
  }

  .sale-badge-card {
    align-self: flex-start;
    padding: 16px 22px;
    min-width: 160px;
    flex-direction: row;
    gap: 12px;
  }

  .sale-badge-num {
    font-size: 40px;
  }

  .benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 12px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .newsletter {
    padding: 48px 17px;
  }

  .newsletter form {
    flex-direction: column;
  }

  .newsletter input,
  .newsletter form .btn {
    width: 100%;
    min-height: 44px;
  }

  .footer {
    padding: 40px 20px 0;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }

  .footer-brand,
  .footer-newsletter-wrap {
    grid-column: 1 / -1;
  }

  .footer-subscribe-box {
    width: 100%;
    max-width: 440px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .cart-drawer {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .footer-subscribe-box {
    padding: 3px 4px 3px 14px;
  }

  .footer-subscribe-box input {
    font-size: 12.5px;
  }

  .footer-subscribe-box button {
    padding: 9px 18px;
    font-size: 12.5px;
    min-height: 38px;
  }
}

@media (max-width: 360px) {
  .header {
    padding: 0 10px;
    gap: 6px;
  }

  .header-actions {
    gap: 5px;
  }

  .logo-main {
    font-size: 23px;
  }

  .hero-buttons .btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .footer-subscribe-box {
    padding: 3px 4px 3px 10px;
  }

  .footer-subscribe-box input {
    font-size: 11.5px;
  }

  .footer-subscribe-box button {
    padding: 8px 14px;
    font-size: 11.5px;
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ========================================================
   MODERN UI POLISH (Aligned with D:\UI modern aesthetic)
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.3px;
  border-radius: 9999px;
  padding: 13px 28px;
  min-height: 46px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
  -webkit-font-smoothing: antialiased;
}

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

.btn-outline-dark {
  background: #ffffff;
  color: #0f172a;
  border-color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.btn-outline-dark:hover {
  background: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
}

.btn-dark:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-white {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #f8fafc;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.center-button {
  text-align: center;
  margin-top: 42px;
}

.center-button .btn {
  font-size: 14px;
  padding: 14px 34px;
  min-height: 48px;
}

.product-image {
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover .product-image {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.product-badge {
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.quick-add {
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.category-pill,
.category-btn,
.filter-btn,
.tab-btn {
  border-radius: 9999px !important;
}

.search-input,
.search-box input {
  border-radius: 9999px;
}

.cart-drawer {
  border-radius: 24px 0 0 24px;
}

.checkout-dialog {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.checkout-dialog input,
.checkout-dialog textarea {
  border-radius: 12px;
}


/* Size Modal */
.size-modal-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: #ffffff;
  padding: 26px 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.size-modal-dialog::backdrop {
  background: rgba(18, 19, 22, 0.45);
  backdrop-filter: blur(8px);
}

.size-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.size-modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #111317;
  margin-top: 2px;
}

.size-product-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: #f6f8fb;
  border-radius: 16px;
  margin-bottom: 18px;
}

.size-product-preview img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.size-product-preview h3 {
  font-size: 14px;
  font-weight: 800;
  color: #111317;
}

.size-dialog-price {
  font-size: 13px;
  font-weight: 700;
  color: #555e6d;
  margin-top: 2px;
}

.size-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.size-pill {
  height: 40px;
  border: 1.5px solid #e5e8ef;
  border-radius: 12px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #3b424e;
  cursor: pointer;
  transition: all 0.15s;
}

.size-pill:hover {
  border-color: #111317;
  background: #f8f9fb;
}

.size-pill.active {
  border-color: #111317;
  background: #111317;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(17, 19, 23, 0.18);
}

/* ========================================================
   CUSTOMER LOGIN / REGISTER & USER ACCOUNT STYLES
   ======================================================== */

.auth-pill-wrapper {
  position: relative;
}

.auth-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 12px;
}

.auth-nav-btn.is-logged-in {
  background: #111317;
  color: #ffffff;
  border-color: #111317;
}

.auth-nav-btn.is-logged-in svg {
  color: #ffffff;
}

.user-pill-name {
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  padding: 10px;
  z-index: 999;
  animation: userMenuPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes userMenuPop {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-menu-header {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-menu-header strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.user-menu-header span {
  font-size: 11.5px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-items {
  padding: 6px 0 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.user-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.user-menu-item svg {
  color: #64748b;
  flex-shrink: 0;
}

.user-menu-item:hover svg {
  color: #0f172a;
}

.user-menu-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 6px;
}

.user-menu-logout {
  color: #dc2626;
}

.user-menu-logout svg {
  color: #dc2626;
}

.user-menu-logout:hover {
  background: #fee2e2;
  color: #b91c1c;
}

/* Auth Dialog Modal */
.auth-modal-dialog {
  width: min(440px, calc(100% - 28px));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.auth-modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
}

.auth-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-modal-close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.auth-nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 18px;
  gap: 4px;
}

.auth-tab-btn {
  padding: 9px 0;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.auth-field-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 44px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.auth-field-box:focus-within {
  border-color: #0f172a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.auth-field-box svg {
  color: #94a3b8;
  flex-shrink: 0;
}

.auth-field-box:focus-within svg {
  color: #0f172a;
}

.auth-field-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #0f172a;
}

.btn-toggle-pwd {
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease;
  flex-shrink: 0;
}

.btn-toggle-pwd:hover {
  color: #0f172a;
}

.btn-auth-submit {
  margin-top: 6px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  border: none;
  background: #0f172a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
}

.btn-auth-submit:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-switch-note {
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  margin: 6px 0 0;
}

.auth-link-btn {
  background: transparent;
  border: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: underline;
}

.auth-feedback-box {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.auth-feedback-box.error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-feedback-box.success {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* Orders Modal Styling */
.orders-modal-dialog {
  width: min(640px, calc(100% - 24px));
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.orders-list-body {
  overflow-y: auto;
  max-height: calc(85vh - 120px);
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-history-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  transition: all 0.15s ease;
}

.order-history-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.order-history-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.order-history-number {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.order-history-date {
  font-size: 11px;
  color: #64748b;
  display: block;
}

.order-status-pill {
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status-pill.pending { background: #fef3c7; color: #b45309; }
.order-status-pill.confirmed { background: #e0f2fe; color: #0369a1; }
.order-status-pill.shipped { background: #f3e8ff; color: #7e22ce; }
.order-status-pill.delivered { background: #dcfce7; color: #15803d; }
.order-status-pill.cancelled { background: #fee2e2; color: #dc2626; }

.order-history-items {
  border-top: 1px dashed #f1f5f9;
  border-bottom: 1px dashed #f1f5f9;
  padding: 10px 0;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-history-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #334155;
}

.order-history-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.order-history-total {
  font-weight: 800;
  color: #0f172a;
  font-size: 14.5px;
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-image {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .sale-badge-card {
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    gap: 8px;
  }

  .sale-badge-card .sale-badge-num {
    font-size: 34px;
  }

  .sale-badge-card .sale-badge-num .pct {
    font-size: 22px;
  }

  .sale-badge-card .sale-badge-sub {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
}
