/* ==========================================================================
   MOTHERDUCKERS — Minimalist Editorial Streetwear Stylesheet
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f5f2;
  --ink: #111111;
  --ink-dark: #111111;
  --ink-muted: #666660;
  --border: #e6e6e0;
  --border-strong: #d1d1c9;
  --accent: #111111;
  --accent-hover: #2b2b28;
  --brand-yellow: #ffd400;
  --brand-yellow-hover: #ecc200;
  --brand-yellow-soft: #fff8d6;
  --brand-yellow-deep: #b88400;
  --whatsapp: #189d4e;
  --whatsapp-hover: #138240;
  --shopee: #ee4d2d;
  --tokopedia: #00aa5b;
  --tiktok: #111111;
  --danger: #b42318;
  --warning: #b54708;
  --success: #15803d;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(20, 20, 19, 0.05);
  --shadow-lg: 0 20px 50px rgba(20, 20, 19, 0.14);
  --container: 1200px;
  --transition: 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--brand-yellow);
  color: var(--ink);
  text-align: center;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--brand-yellow-hover);
}

.announcement-bar p {
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: start;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-sep {
  display: none;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-links a:hover {
  color: var(--ink);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  line-height: 1;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.brand-logo-img {
  display: block;
  height: 25px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

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

.text-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition);
}

.text-btn:hover {
  color: var(--ink);
}

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.cart-icon {
  display: block;
  flex-shrink: 0;
}

.bag-btn:hover {
  background: var(--brand-yellow-soft);
}

.bag-count {
  background: var(--brand-yellow);
  color: var(--ink);
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
}

.mobile-size-guide-pill {
  display: none;
}

/* Typography & Buttons */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--brand-yellow);
  color: var(--ink);
}

.btn-primary:disabled {
  background: #bcb9b0;
  color: #ffffff;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

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

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-whatsapp.disabled-link {
  background: #a4b8ac;
  pointer-events: none;
}

.full-width {
  width: 100%;
}

/* Banner Slide Image (1920x1080 Landscape 16:9) */
.banner-slider-section {
  padding: 16px 0 2px;
}

.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: var(--shadow-md);
}

.banner-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: block;
}

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

.banner-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(17, 17, 17, 0.16);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.banner-nav-btn:hover {
  background: var(--brand-yellow);
  color: var(--ink);
  transform: translateY(-50%) scale(1.06);
}

.banner-prev {
  left: 16px;
}

.banner-next {
  right: 16px;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(6px);
}

.banner-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: width var(--transition), background var(--transition);
}

.banner-dot.active {
  width: 24px;
  background: var(--brand-yellow);
}

.banner-nav-btn[hidden],
.banner-dots[hidden] {
  display: none;
}

/* Google-Style Search Section */
.search-hero-section {
  padding: 16px 0 8px;
}

/* Category Sub-Header Bar */
.catalog-subbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 0 12px;
}

.search-bar-shell {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.google-search-wrap {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(22, 22, 20, 0.05);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.google-search-wrap:hover,
.google-search-wrap:focus-within {
  border-color: var(--brand-yellow-hover);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.22), 0 6px 22px rgba(22, 22, 20, 0.08);
}

.search-icon {
  display: inline-flex;
  align-items: center;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.google-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.96rem;
  outline: none;
}

.google-search-input::placeholder {
  color: var(--ink-muted);
}

.google-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--surface-muted);
  color: var(--ink-muted);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.search-clear-btn[hidden] {
  display: none;
}

.search-clear-btn:hover {
  background: var(--border);
  color: var(--ink);
}

.search-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.search-filter-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.search-filter-btn:hover,
.search-filter-btn[aria-expanded="true"],
.search-filter-btn.has-active {
  background: var(--surface-muted);
  color: var(--ink);
}

.filter-active-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-yellow);
  border: 1.5px solid var(--ink-dark);
}

.filter-active-dot[hidden] {
  display: none;
}

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 12px;
}

.filter-popover[hidden] {
  display: none;
}

.filter-popover-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.filter-sort-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-sort-option {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}

.filter-sort-option:hover {
  background: var(--surface-muted);
}

.filter-sort-option.active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 700;
}

.filter-popover-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.popover-ready-toggle {
  padding: 4px 2px;
}

/* Catalog Section */
.catalog-section {
  padding: 10px 0 76px;
}

.catalog-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.catalog-meta-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-size-guide-link {
  display: none;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-count {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}

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

.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

.section-subtitle {
  margin: 12px 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.sync-status.is-fallback .sync-dot {
  background: #d97706;
}

.sync-status.is-error .sync-dot {
  background: var(--danger);
}

.sync-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.92rem;
  padding: 0 2px;
}

.sync-refresh-btn:hover {
  opacity: 0.7;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
  padding: 2px 0;
}

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

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.tab-btn:hover {
  border-color: var(--brand-yellow-hover);
  background: var(--brand-yellow-soft);
  color: var(--ink);
}

.tab-btn.active {
  background: var(--brand-yellow);
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 700;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--ink-muted);
  cursor: pointer;
  user-select: none;
}

.sort-select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
}

.sort-select:focus {
  outline: none;
  border-color: var(--ink);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-yellow-hover);
  box-shadow: var(--shadow-sm);
}

.product-card.is-sold-out .product-thumb img {
  opacity: 0.58;
  filter: grayscale(20%);
}

.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #efefef;
  overflow: hidden;
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-yellow);
  color: var(--ink-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--brand-yellow-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.product-badge.is-discount {
  padding: 5px 7px;
  border-radius: 999px;
}

.product-badge[hidden] {
  display: none;
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 249, 246, 0.45);
}

.sold-out-overlay span {
  background: var(--ink);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 8px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.stock-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--success);
}

.stock-pill.low {
  background: var(--brand-yellow-soft);
  color: #946800;
}

.stock-pill.out {
  background: #fef3f2;
  color: var(--danger);
}

.product-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}

.product-name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.product-price {
  font-size: 0.98rem;
  font-weight: 700;
}

.product-compare {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.card-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-detail-btn {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.82rem;
}

.card-mp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-mini-btn {
  flex: 1;
  min-width: 64px;
  text-align: center;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  transition: all var(--transition);
}

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

.mp-mini-btn.shopee:hover {
  border-color: var(--shopee);
  color: var(--shopee);
}

.mp-mini-btn.tokopedia:hover {
  border-color: var(--tokopedia);
  color: var(--tokopedia);
}

.mp-mini-btn.tiktok:hover {
  border-color: var(--tiktok);
  background: var(--tiktok);
  color: #ffffff;
}

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

/* Official Marketplaces Pill Strip (Yellow Dominant + Black) */
.marketplace-section {
  padding: 20px 0 48px;
}

.marketplace-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 740px;
  margin: 0 auto;
}

.mp-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 0 var(--ink);
}

.mp-pill:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--brand-yellow);
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.16);
}

.mp-pill-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mp-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.mp-pill-text strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.mp-pill-text small {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.82;
}

.mp-pill-arrow {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand-yellow);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.mp-pill:hover .mp-pill-arrow {
  background: var(--brand-yellow);
  color: var(--ink);
}

@media (max-width: 640px) {
  .marketplace-pills {
    grid-template-columns: 1fr;
  }
}

/* Footer (Centered & Minimal: White + Yellow + Black) */
.site-footer {
  background: #ffffff;
  color: var(--ink);
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 24px;
}

.footer-social-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.footer-social-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--brand-yellow);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.footer-bottom-bar {
  background: var(--brand-yellow);
  color: var(--ink);
  padding: 13px 0;
  border-top: 2px solid var(--ink);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom #footerCopyrightBrand {
  color: var(--ink);
}

/* Modals */
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(22, 22, 20, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden],
.drawer-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}

.product-modal {
  max-width: 880px;
}

.size-guide-modal {
  max-width: 820px;
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close.static-close {
  position: static;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.modal-image-wrap {
  position: relative;
  background: #efefef;
  min-height: 360px;
}

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

.modal-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-sku {
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.18;
}

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

.modal-price {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-compare-price {
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.modal-material {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.modal-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 600;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-decoration: underline;
  cursor: pointer;
}

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

.size-pill {
  padding: 8px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.size-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.size-pill:disabled {
  opacity: 0.45;
  text-decoration: line-through;
  cursor: not-allowed;
}

.qty-section {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.qty-control button {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
}

.qty-control span {
  min-width: 32px;
  text-align: center;
  font-size: 0.88rem;
}

.modal-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.modal-marketplace-wrap {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mp-label {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.modal-mp-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-mp-btn {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg);
}

.modal-mp-btn:hover {
  border-color: var(--ink);
}

/* Size Chart Images */
.size-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 18px;
}

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

.size-chart-grid.is-single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.size-chart-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.size-chart-card[hidden] {
  display: none;
}

.size-chart-card img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .size-chart-grid {
    grid-template-columns: 1fr;
  }
}

/* Slide-Over Cart Drawer */
.drawer-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.cart-drawer {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.drawer-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  margin: auto;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

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

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-item-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cart-remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.76rem;
  cursor: pointer;
  padding: 0;
}

.drawer-footer {
  padding: 18px 22px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}

.cart-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.clear-cart-btn {
  align-self: center;
  margin-top: 2px;
}

/* Toast */
.toast {
  position: fixed;
  top: 82px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--brand-yellow);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}

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

@media (max-width: 820px) {
  .nav-links,
  .size-guide-trigger {
    display: none;
  }

  .mobile-size-guide-link {
    display: inline-block;
  }

  .brand-logo {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }

  .brand-logo-img {
    height: 21px;
  }

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

  .search-hero-section {
    padding: 14px 0 6px;
  }

  .banner-slider-section {
    padding: 12px 0 2px;
  }

  .banner-slider {
    border-radius: 12px;
  }

  .banner-nav-btn {
    width: 34px;
    height: 34px;
  }

  .banner-prev {
    left: 10px;
  }

  .banner-next {
    right: 10px;
  }

  .google-search-wrap {
    height: 46px;
    padding: 0 6px 0 14px;
  }

  .catalog-section {
    padding: 8px 0 36px;
  }

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

@media (max-width: 520px) {
  .header-inner {
    gap: 10px;
  }

  .brand-logo-img {
    height: 15px;
  }

  .banner-nav-btn {
    width: 30px;
    height: 30px;
  }

  .banner-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .banner-dots {
    bottom: 10px;
    padding: 4px 8px;
    gap: 5px;
  }

  .banner-dot {
    width: 6px;
    height: 6px;
  }

  .banner-dot.active {
    width: 18px;
  }

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

  .product-info {
    padding: 12px;
  }

  .mp-pill {
    padding: 9px 14px;
    font-size: 0.82rem;
  }

  .modal-body {
    padding: 22px 18px;
  }
}
