*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --surface-2: #eeeeee;
  --border: #e6e6e6;
  --border-strong: #cfcfcf;
  --text: #0a0a0a;
  --muted: #666666;
  --black: #0a0a0a;
  --white: #ffffff;
  --success: #111111;
  --danger: #b91c1c;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

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

/* Guest Top Login / Register Bar (shown only when not logged in) */
.guest-auth-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 9px 16px;
}

.guest-auth-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.guest-auth-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.guest-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--black);
  transition: all 0.16s ease;
}

.guest-auth-btn.is-login {
  background: var(--white);
  color: var(--black);
}

.guest-auth-btn.is-login:hover {
  background: var(--surface);
}

.guest-auth-btn.is-register {
  background: var(--black);
  color: var(--white);
}

.guest-auth-btn.is-register:hover {
  background: #222;
}

.mini-spinner {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: taSpin 0.65s linear infinite;
  display: inline-block;
}

@keyframes taSpin {
  to { transform: rotate(360deg); }
}

/* Announcement Banner */
.banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 9px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Sticky Header — Clean 3-column professional alignment */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
  max-width: 190px;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav button {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.header-nav button:hover {
  color: var(--black);
  background: var(--surface);
}

.header-nav button.is-active {
  background: var(--black);
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.btn-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--black);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  padding: 10px 16px 14px;
  background: var(--white);
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav button {
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-nav button.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover:not(:disabled) {
  background: #242424;
  border-color: #242424;
}

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

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover:not(:disabled) {
  background: var(--surface);
  border-color: var(--black);
}

.btn-bag-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--black);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-bag-mini:hover {
  border-color: var(--black);
  background: var(--surface);
}

.bag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.btn-buy-header {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
}

/* Main Container */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px;
}

/* Offer Strip */
.offer-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.offer-card.offer-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.offer-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.offer-sub {
  font-size: 12px;
  color: var(--muted);
}

.offer-dark .offer-sub {
  color: #cfcfcf;
}

.offer-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero */
.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 32px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 14px;
  font-weight: 900;
}

.hero p {
  margin: 0 0 24px;
  max-width: 460px;
  color: var(--muted);
  font-size: 15.5px;
}

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

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 340px;
  justify-self: center;
}

.hero-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(6px);
  color: var(--white);
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recommended-section {
  margin-bottom: 36px;
}

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

.recommended-head h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rec-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
}

/* Section Heading & Controls */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 850;
}

.result-count {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.collection-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill-btn {
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.pill-btn:hover {
  border-color: var(--black);
  background: var(--surface);
}

.pill-btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.controls input,
.controls select {
  border: 1px solid var(--border-strong);
  background: var(--white);
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease;
}

.controls input {
  flex: 2;
  min-width: 220px;
}

.controls select {
  flex: 1;
  min-width: 170px;
  cursor: pointer;
}

.controls input:focus,
.controls select:focus {
  border-color: var(--black);
}

/* Product Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.item:hover {
  border-color: var(--black);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

/* Card Photo Slider */
.card-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
  user-select: none;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.34s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  -webkit-user-drag: none;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.slide-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-50%) scale(1.06);
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

.slide-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: rgba(10, 10, 10, 0.8);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.48);
  max-width: 85%;
  overflow: hidden;
}

.slider-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.slider-dot.is-active {
  background: var(--white);
  transform: scale(1.3);
}

/* Card Info */
.info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--black);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
}

.info h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 2px 0;
  line-height: 1.3;
  cursor: pointer;
}

.info h3:hover {
  text-decoration: underline;
}

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

.price {
  font-weight: 850;
  font-size: 17px;
  color: var(--black);
}

.compare-price {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

/* Color Swatches on Cards & Quick View */
.color-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}

.swatch-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.swatch-btn:hover {
  transform: scale(1.12);
}

.swatch-btn.is-active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.8px #0a0a0a;
}

.color-name-label {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}

.card-actions {
  margin-top: auto;
  padding-top: 6px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
}

.card-actions .btn-bag-icon {
  height: 40px;
  width: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.16s ease;
}

.card-actions .btn-bag-icon:hover:not(:disabled) {
  border-color: var(--black);
  background: var(--surface);
}

.card-actions .btn-buy-now {
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
}

/* Modals */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay.on {
  display: flex;
}

.modal {
  background: var(--white);
  color: var(--text);
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  border-radius: 22px;
  padding: 24px;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--black);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.modal-close:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Product Detail Modal */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.modal-photo-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.thumbs::-webkit-scrollbar {
  display: none;
}

.thumb-btn {
  flex: 0 0 58px;
  width: 58px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.thumb-btn.is-active {
  border-color: var(--black);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 6px 0 8px;
}

.field-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 16px 0 8px;
}

.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  min-width: 46px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.size-btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0;
  width: 100%;
}

.similar-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.similar-title {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

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

.similar-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.similar-card:hover {
  border-color: var(--black);
  transform: translateY(-2px);
}

.similar-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--surface);
}

.similar-card-info {
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.similar-card-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.similar-card-price {
  font-size: 13px;
  font-weight: 850;
}

.detail-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 16px;
}

/* Shopping Bag */
.bag-modal {
  max-width: 560px;
}

.bag-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.bag-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.bag-item img {
  width: 68px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}

.bag-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  cursor: pointer;
}

.bag-summary {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 850;
}

/* Dedicated Your Orders Modal */
.orders-modal {
  max-width: 640px;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: var(--white);
}

.order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.order-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 8px;
}

.prog-step {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 6px;
  border-top: 3px solid var(--border);
}

.prog-step.is-done {
  color: var(--black);
  border-top-color: var(--black);
}

.prog-step.is-ship {
  color: #15803d;
  border-top-color: #16a34a;
}

.shipping-eta-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 8px;
}

.pending-eta-box {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #854d0e;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 8px;
}

/* Multi-Step Address + Payment Gateway Modal */
.checkout-modal {
  max-width: 680px;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 20px;
  padding-right: 36px;
}

.step-pill {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.step-pill.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.step-pill.is-done {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.checkout-item img {
  width: 50px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--white);
}

.checkout-form {
  display: grid;
  gap: 12px;
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-field label span {
  color: var(--muted);
  font-weight: 500;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.checkout-form input:focus,
.checkout-form select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

.addr-type-row {
  display: flex;
  gap: 8px;
}

.addr-type-btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.addr-type-btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.form-error {
  color: var(--danger);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: none;
}

.form-error.show {
  display: block;
}

/* Payment Plan Cards (BOGO vs 40% COD Advance) */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.plan-card {
  text-align: left;
  padding: 15px;
  border-radius: 14px;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.16s ease;
}

.plan-card:hover {
  border-color: var(--black);
}

.plan-card.is-selected {
  border-color: var(--black);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--black);
}

.plan-badge {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
}

.plan-title {
  font-size: 15px;
  font-weight: 850;
}

.plan-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}

.plan-price {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 900;
}

/* BOGO Free Gift Picker Box */
.bogo-box {
  border: 1.5px solid var(--black);
  border-radius: 14px;
  padding: 14px;
  background: var(--white);
  margin-bottom: 16px;
}

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

.bogo-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
}

.bogo-row select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--white);
  font-size: 13.5px;
}

/* Gateway Tabs */
.gateway-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
  margin-bottom: 16px;
}

.gateway-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.gw-tab {
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.gw-tab.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

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

.gateway-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--black);
}

.gateway-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: 3px 9px;
  border-radius: 999px;
}

.upi-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.upi-app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.upi-app-card:hover {
  border-color: var(--black);
}

.upi-app-card.is-active {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--black);
}

.upi-app-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.upi-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upi-radio {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upi-app-card.is-active .upi-radio {
  border-color: var(--black);
}

.upi-app-card.is-active .upi-radio::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--black);
}

.upi-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 4px 0 10px;
}

.upi-divider::before,
.upi-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 600;
}

.bill-lines {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-size: 13.5px;
}

.bill-line {
  display: flex;
  justify-content: space-between;
}

.bill-line.bill-bold {
  font-weight: 900;
  font-size: 16px;
  padding-top: 4px;
}

/* Order Confirmation */
.order-success {
  text-align: center;
  padding: 12px 6px;
}

.order-success-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.receipt-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin: 16px 0;
  font-size: 13.5px;
  display: grid;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 200;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
  margin-top: 64px;
  background: var(--black);
  color: var(--white);
  padding: 40px 20px;
}

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

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 6px 14px;
  border-radius: 10px;
}

.footer-logo {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-note {
  color: #a3a3a3;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1080px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }
  .header-nav {
    display: none;
  }
  .btn-menu-toggle {
    display: inline-flex;
  }
  .offer-strip,
  .hero,
  .detail,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  .banner {
    font-size: 10.5px;
    padding: 8px 10px;
    letter-spacing: 0.04em;
  }
  .header-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  .brand-logo {
    height: 28px;
    max-width: 135px;
  }
  .btn-bag-mini {
    height: 36px;
    padding: 0 9px;
  }
  .btn-buy-header {
    height: 36px;
    padding: 0 11px;
    font-size: 12px;
  }
  .btn-menu-toggle {
    width: 36px;
    height: 36px;
  }
  .container {
    padding: 14px 12px;
  }
  .offer-card {
    padding: 11px 13px;
  }
  .hero {
    padding: 18px 14px;
    border-radius: 18px;
    gap: 16px;
    margin-bottom: 22px;
  }
  .hero-visual {
    max-width: 100%;
  }
  .hero-visual img {
    height: 360px;
  }
  .modal-photo-wrap {
    height: 330px;
  }
  .similar-card img {
    height: 155px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .collection-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .collection-pills::-webkit-scrollbar {
    display: none;
  }
  .pill-btn {
    flex-shrink: 0;
    padding: 7px 13px;
    font-size: 12.5px;
  }
  .controls {
    margin-bottom: 16px;
  }
  .controls input,
  .controls select {
    min-width: 100%;
    font-size: 14px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .info {
    padding: 10px;
    gap: 4px;
  }
  .info h3 {
    font-size: 13.5px;
  }
  .price {
    font-size: 15px;
  }
  .card-actions {
    grid-template-columns: 38px 1fr;
    gap: 6px;
  }
  .card-actions .btn-bag-icon {
    width: 38px;
    height: 38px;
  }
  .card-actions .btn-buy-now {
    height: 38px;
    font-size: 12px;
    padding: 0 8px;
  }
  .modal {
    padding: 16px;
    border-radius: 18px;
    max-height: 94dvh;
  }
  .checkout-steps {
    padding-right: 32px;
    gap: 5px;
  }
  .step-pill {
    font-size: 10.5px;
    padding: 6px 4px;
  }
  .checkout-row,
  .bogo-row,
  .upi-apps-grid {
    grid-template-columns: 1fr;
  }
  .similar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .slide-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}
