@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-outer: #eef2f7;
  --bg-app: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-input: #eef2f7;
  --navy: #0a2e73;
  --navy-dark: #0a2458;
  --blue: #1d5fd6;
  --blue-bright: #2563eb;
  --blue-soft: #dbeafe;
  --blue-tint: #f0f6ff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e6ecf3;
  --red: #ef4444;
  --gold: #f59e0b;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe57;
  --shadow-card: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-nav: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-outer);
  color: var(--text-main);
  line-height: 1.4;
  min-height: 100vh;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Mobile-First Centered App Shell */
.app-shell {
  max-width: 430px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg-app);
  position: relative;
  padding-top: 64px;
  padding-bottom: 24px;
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
  overflow-x: clip;
}

/* Fixed Top Header (Mobile stays pinned on scroll, search inline in header) */
.top-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 9px 12px;
  border-bottom: 1px solid rgba(230, 236, 243, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.header-bar {
  display: contents;
}

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

.brand-logo-img {
  height: 30px;
  width: auto;
  max-width: 105px;
  object-fit: contain;
  display: block;
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.desktop-sidebar {
  display: none;
}

.desktop-main {
  width: 100%;
}

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background-color: var(--bg-input);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}

/* Search Bar */
.search-row {
  order: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border-radius: 6px;
  padding: 0 9px;
  height: 36px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}

.search-box:focus-within {
  background: #fff;
  border-color: var(--blue);
}

.search-box svg {
  color: #475569;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text-main);
}

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

.filter-btn {
  width: 32px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: background-color 0.2s;
}

.filter-btn:hover {
  background-color: var(--blue-tint);
}

/* Main Content */
.main-content {
  padding: 4px 16px 16px;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 178px;
  background: linear-gradient(122deg, #dbeafe 0%, #eff6ff 42%, #3b82f6 76%, #1d4ed8 100%);
  box-shadow: 0 8px 20px rgba(29, 95, 214, 0.16);
  margin-bottom: 16px;
  animation: slideInFromLeft 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.22) 0%, transparent 45%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.15) 56%, rgba(13, 71, 161, 0.28) 100%);
  pointer-events: none;
}

.hero-slide {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 14px 16px;
}

.hero-image-wrap {
  width: 44%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
}

.hero-image-wrap img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.hero-copy {
  width: 58%;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0e3a8a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.hero-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.15;
  white-space: pre-line;
}

.hero-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: #1e293b;
}

.hero-cta {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy-dark);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(10, 36, 88, 0.25);
  transition: transform 0.15s ease, background-color 0.2s;
}

.hero-cta:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.hero-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 10px;
  height: 2.5px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
}

.hero-dot.active {
  width: 18px;
  height: 3px;
  border-radius: 0;
  background: #000000;
  box-shadow: none;
}

/* Category Strip */
.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 18px;
  animation: slideInFromRight 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.category-card {
  background: #f5f7fb;
  border: 1.5px solid transparent;
  border-radius: 6px;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  transition: all 0.2s ease;
  text-align: center;
}

.category-card:hover {
  background: var(--blue-tint);
}

.category-card.active {
  background: var(--blue-tint);
  border-color: var(--blue-bright);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.12);
}

.category-icon {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 45%, #edf2fa 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-name {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-bar {
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue);
}

.section-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
}

.view-all-btn:hover {
  text-decoration: underline;
}

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

.product-card {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

.product-card.anim-from-left {
  animation-name: slideInFromLeft;
}

.product-card.anim-from-right {
  animation-name: slideInFromRight;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.09);
}

.product-thumb {
  position: relative;
  height: 152px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.product-thumb img.img-switching {
  opacity: 0.25;
  transform: scale(0.97);
}

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

.badge-top-left {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  z-index: 2;
  transition: transform 0.15s ease, color 0.2s;
}

.wishlist-btn:active {
  transform: scale(0.9);
}

.wishlist-btn.liked {
  color: var(--red);
}

.badge-bottom-left {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}

.product-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.product-rating .star {
  color: var(--gold);
  font-size: 12px;
}

.product-rating .score {
  font-weight: 700;
  color: #334155;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-top: 1px;
}

.price-group {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--blue);
}

.price-old {
  font-size: 11px;
  color: var(--text-light);
  text-decoration: line-through;
}

.discount-pill {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.discount-pill.soft {
  background: var(--blue-soft);
  color: var(--blue);
}

.discount-pill.solid {
  background: var(--blue);
  color: #ffffff;
}

.size-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}

.size-chip {
  font-size: 9.5px;
  font-weight: 600;
  color: #334155;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 4px;
  padding: 1.5px 6.5px;
  transition: all 0.15s ease;
}

.size-chip.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.click-here-btn {
  margin-top: auto;
  width: 100%;
  height: 35px;
  border-radius: 5px;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.2s, transform 0.15s;
}

.click-here-btn:hover {
  background: var(--blue);
}

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

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  background: var(--bg-subtle);
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.reset-btn {
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 62px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-nav);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 50;
  padding: 0 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--blue);
}

.nav-center-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-center-btn {
  width: 52px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d5fd6, #0d47a1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 16px rgba(29, 95, 214, 0.35);
  transition: transform 0.2s ease;
}

.nav-center-btn:hover {
  transform: translateY(-2px);
}

/* ================= PRODUCT DETAIL PAGE ================= */
body.detail-page .app-shell {
  padding-top: 0;
}

.detail-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.detail-header-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-dark);
}

.detail-hero-card {
  position: relative;
  background: var(--bg-subtle);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.detail-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail-hero-card.is-zoomed img {
  transform: scale(1.65);
  cursor: zoom-out;
}

.zoom-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.15s ease, background-color 0.2s;
}

.zoom-toggle-btn:hover {
  background: #ffffff;
  transform: scale(1.06);
}

.img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background-color 0.18s, transform 0.15s;
}

.img-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.img-prev-btn {
  left: 10px;
}

.img-next-btn {
  right: 10px;
}

.img-counter-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.68);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  z-index: 4;
}

.label-count-badge {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  background: var(--blue-tint);
  color: var(--blue);
  padding: 1px 5px;
  border-radius: 999px;
}

.detail-under-pic {
  padding: 14px 16px 4px;
}

.detail-price-row-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-price-inline {
  padding: 8px 12px;
  gap: 8px;
  flex: 1 1 auto;
  justify-content: space-between;
}

.detail-size-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.detail-label-mini {
  width: 78px;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}

.detail-label-mini img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.detail-label-mini span {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.1;
}

.detail-size-card {
  margin-top: 0;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 0 1 auto;
}

.detail-size-card-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy-dark);
}

.detail-price-compact {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.detail-price-compact .detail-price-main {
  font-size: 19px;
}

.detail-price-compact .detail-price-old {
  font-size: 12px;
  margin-left: 0;
}

.detail-sizes-inline {
  margin-bottom: 0;
  gap: 6px;
  justify-content: flex-start;
}

.detail-sizes-inline .detail-size-btn {
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  font-size: 11.5px;
  border-radius: 8px;
}

.detail-full-description {
  padding: 0 16px 104px;
}

.detail-content {
  padding: 16px 16px 14px;
}

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

.detail-label-pill {
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.detail-stock {
  font-size: 11.5px;
  font-weight: 600;
  color: #16a34a;
  background: #dcfce7;
  padding: 4px 10px;
  border-radius: 999px;
}

.detail-title {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.detail-rating-sku {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.detail-price-box {
  background: var(--blue-tint);
  border: 1px solid #dbeafe;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-price-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
}

.detail-price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}

.detail-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.detail-sizes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.detail-size-btn {
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.detail-size-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.spec-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 11px;
}

.spec-key {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.spec-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

.detail-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
}

.order-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Sticky Contact Action Bar on Product Detail */
.contact-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  z-index: 50;
}

.btn-whatsapp {
  height: 46px;
  border-radius: 6px;
  background: var(--whatsapp);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: background-color 0.2s, transform 0.15s;
}

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

.btn-call {
  height: 46px;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(10, 46, 115, 0.28);
  transition: background-color 0.2s, transform 0.15s;
}

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

/* Modal / Sheet for Filter & Store Contact */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 70;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px 26px;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.15);
  animation: slideUp 0.22s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-dark);
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
}

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

.filter-pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 600px) {
  .detail-under-pic {
    padding: 10px 12px 2px;
  }
  .detail-price-row-wrap {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 6px;
    align-items: stretch;
  }
  .detail-label-mini {
    width: 58px;
    padding: 4px 3px;
    border-radius: 5px;
  }
  .detail-label-mini img {
    width: 22px;
    height: 22px;
  }
  .detail-label-mini span {
    font-size: 8.5px;
  }
  .detail-price-inline {
    padding: 6px 8px;
    border-radius: 5px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
  }
  .detail-price-compact .detail-price-main {
    font-size: 14.5px;
  }
  .detail-price-compact .detail-price-old {
    font-size: 10px;
  }
  .detail-price-inline .discount-pill {
    font-size: 8.5px;
    padding: 1.5px 6px;
  }
  .detail-size-card {
    padding: 6px 8px;
    border-radius: 5px;
    max-width: 138px;
    gap: 4px;
  }
  .detail-size-card-label {
    font-size: 10.5px;
  }
  .detail-sizes-inline {
    gap: 3px;
  }
  .detail-size-tag {
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    font-size: 9.5px;
    border-radius: 5px;
  }
}

@media (max-width: 460px) {
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
  .top-header,
  .bottom-nav,
  .contact-bar,
  .modal-sheet {
    max-width: 100%;
  }
}

/* ================= LAPTOP / COMPUTER / PC LAYOUT (>= 900px) ================= */
@media (min-width: 900px) {
  body {
    background: #f4f7fb;
  }

  .app-shell {
    max-width: 100%;
    display: flex;
    padding-top: 0;
    padding-bottom: 32px;
    box-shadow: none;
    background: #f4f7fb;
  }

  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    z-index: 45;
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    padding: 4px 8px 18px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
  }

  .sidebar-brand .brand-logo-img {
    height: 48px;
    max-width: 100%;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    transition: all 0.18s ease;
    text-align: left;
  }

  .sidebar-link:hover {
    background: var(--blue-tint);
    color: var(--blue);
  }

  .sidebar-link.active {
    background: var(--blue-tint);
    color: var(--blue);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--blue);
  }

  .sidebar-footer {
    background: linear-gradient(135deg, #0a2e73, #1d5fd6);
    color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
  }

  .sidebar-footer-title {
    font-size: 13.5px;
    font-weight: 700;
  }

  .sidebar-footer-sub {
    font-size: 11.5px;
    opacity: 0.85;
    margin: 3px 0 10px;
  }

  .sidebar-contact-btn {
    width: 100%;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ffffff;
    color: var(--navy-dark);
    font-size: 12.5px;
    font-weight: 700;
    transition: transform 0.15s ease;
  }

  .sidebar-contact-btn:hover {
    transform: translateY(-1px);
  }

  .desktop-main {
    flex: 1;
    min-width: 0;
    margin-left: 240px;
  }

  .top-header {
    position: sticky;
    top: 0;
    left: auto;
    transform: none;
    max-width: 100%;
    background: rgba(244, 247, 251, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .top-header .header-bar {
    order: 2;
    margin-bottom: 0;
  }

  .top-header .brand {
    display: none;
  }

  .top-header .search-row {
    order: 1;
    flex: 1;
    max-width: none;
  }

  .top-header .search-box {
    background: #ffffff;
    border: 1px solid var(--border);
    height: 46px;
  }

  .top-header .search-box input {
    font-size: 14px;
  }

  .main-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 24px 36px;
  }

  .hero-category-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 24px;
  }

  .hero-banner {
    height: 270px;
    border-radius: 10px;
    margin-bottom: 0;
  }

  .hero-slide {
    padding: 18px 34px;
  }

  .hero-image-wrap {
    width: 40%;
  }

  .hero-copy {
    width: 60%;
    gap: 10px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 5px 13px;
  }

  .hero-title {
    font-size: 29px;
  }

  .hero-subtitle {
    font-size: 14.5px;
  }

  .hero-cta {
    padding: 11px 22px;
    font-size: 13.5px;
  }

  .category-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 0;
    height: 270px;
  }

  .category-card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    padding: 10px 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  .category-icon {
    width: 44px;
    height: 44px;
    padding: 6px;
    flex-shrink: 0;
  }

  .category-name {
    font-size: 13.5px;
    text-align: left;
  }

  .section-title {
    font-size: 20px;
  }

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

  .product-thumb {
    height: 210px;
  }

  .product-name {
    font-size: 14.5px;
  }

  .price-current {
    font-size: 16px;
  }

  .click-here-btn {
    height: 38px;
    font-size: 13px;
  }

  .bottom-nav {
    display: none;
  }

  /* Product Detail Page on Desktop */
  body.detail-page .app-shell {
    display: flex;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    background: #f4f7fb;
    box-shadow: none;
    overflow: visible;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 32px;
  }

  body.detail-page .detail-header {
    background: rgba(244, 247, 251, 0.96);
    padding: 14px 28px;
  }

  body.detail-page .detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 28px;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 28px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  }

  body.detail-page .detail-left-col {
    position: static;
  }

  body.detail-page .detail-full-description {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding: 20px 0 0;
    margin-top: 4px;
  }

  body.detail-page .detail-full-description .detail-desc {
    font-size: 14.5px;
    line-height: 1.75;
    margin-bottom: 0;
  }

  body.detail-page .detail-hero-card {
    height: 390px;
    border-radius: 6px;
    border: 1px solid var(--border);
  }

  body.detail-page .detail-under-pic {
    padding: 14px 0 0;
  }

  body.detail-page .detail-content {
    padding: 4px 0 0;
  }

  body.detail-page .contact-bar {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 18px 0 0;
    border-top: none;
    box-shadow: none;
    background: transparent;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
