@font-face {
  font-family: "Miss Stanfort";
  src: url("../Font/Miss Stanfort.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #9e9e9e;
  --gray-600: #555555;
  --gray-800: #1a1a1a;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
  --font-heading: "Poppins", var(--font);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.hidden {
  display: none !important;
}

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

/* ---------- Product page ---------- */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

.product-crumb {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.product-crumb a {
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.product-crumb a:hover {
  color: var(--black);
  text-decoration: underline;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-media {
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: flex-start;
}

.product-name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.product-info .rating {
  color: var(--black);
}

.product-info .price .price-now:only-child {
  color: var(--black);
}

.product-desc {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 1rem;
  max-width: 480px;
}

.product-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
}

.product-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.model-empty {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin: 0;
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--black);
  width: fit-content;
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--white);
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qty-btn:hover {
  background: var(--gray-100);
}

.qty-value {
  min-width: 48px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-left: 2px solid var(--black);
  border-right: 2px solid var(--black);
  padding: 0.6rem 0;
}

.product-add {
  width: 100%;
  max-width: 320px;
  min-height: 52px;
}

.product-perks {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.perk {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray-600);
}

.product-accordion {
  max-width: 820px;
  margin: 3.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-accordion .faq-item {
  border-color: var(--gray-200);
  background: var(--white);
}

.product-accordion .faq-q {
  color: var(--black);
}

.product-accordion .faq-q:hover {
  background: var(--gray-100);
}

.product-accordion .faq-a p {
  color: var(--gray-600);
}

.feature-list {
  padding: 0 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.related {
  margin-top: 4rem;
}

.related .section-title {
  margin-bottom: 2rem;
}

/* ---------- Builder page ---------- */
.builder-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.builder-head {
  text-align: center;
  margin-bottom: 3rem;
}

.builder-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Phone preview — photorealistic 3-layer stack */
.builder-preview {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#phone-preview-container {
  position: relative;
  width: 320px;
  max-width: 70vw;
  aspect-ratio: 1 / 2;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 44px;
  box-shadow: 18px 18px 0 var(--gray-200), 0 30px 60px rgba(0, 0, 0, 0.35);
  background: var(--gray-900, #111114);
  user-select: none;
  touch-action: none;
  cursor: grab;
}

#phone-preview-container.dragging {
  cursor: grabbing;
}

/* Layer 1 — design canvas */
.design-canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

.design-canvas.case-slim {
  background: #fdfdfd;
}

.design-canvas.case-tough {
  background: #1c1c1e;
}

.design-canvas.case-magsafe {
  background: #eef3f7;
}

.live-user-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  pointer-events: none;
}

.live-user-text {
  position: absolute;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 18%;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0 0.6rem;
  word-break: break-word;
  pointer-events: none;
}

/* Layer 2 — transparent device frame */
.phone-frame-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.25s ease;
}

/* Layer 3 — glossy reflection & inner shadow */
.glass-reflection {
  position: absolute;
  inset: 0;
  z-index: 30;
  border-radius: 44px;
  pointer-events: none;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%);
}

/* Mode tabs */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mode-tab {
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mode-tab.active {
  background: var(--black);
  color: var(--white);
}

.image-controls {
  width: min(300px, 70vw);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.controls-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.control-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 0.7rem;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.control-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.zoom-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  min-width: 52px;
  text-align: center;
}

/* Builder panel */
.builder-panel {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.builder-step {
  border: 2px solid var(--black);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

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

.upload-zone {
  border: 2px dashed var(--black);
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.upload-zone.dragover {
  background: var(--gray-100);
  transform: scale(1.02);
}

.upload-text {
  font-weight: 600;
}

.upload-hint {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--gray-600);
}

.upload-thumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.upload-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid var(--black);
  border-radius: 8px;
}

.mini-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mini-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.color-row {
  display: flex;
  gap: 0.7rem;
}

.color-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gray-400);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
}

.color-dot:hover {
  transform: scale(1.1);
}

.color-dot.active {
  box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--black);
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.total-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

.total-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}

.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--gray-600);
}

/* ---------- Shop page ---------- */
.shop-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.shop-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.shop-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.shop-title span {
  background: var(--black);
  color: var(--white);
  padding: 0 0.4rem;
}

.shop-subtitle {
  font-weight: 500;
  color: var(--gray-600);
}

.shop-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 2rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  border: 2px solid var(--black);
  background: var(--gray-100);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.filter-close {
  display: none;
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--black);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.filter-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gray-200);
}

.filter-search,
.filter-select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 2px solid var(--black);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  outline: none;
}

.filter-search:focus,
.filter-select:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.filter-check {
  width: 18px;
  height: 18px;
  accent-color: var(--black);
  cursor: pointer;
}

.filter-range {
  width: 100%;
  accent-color: var(--black);
  cursor: pointer;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.shop-toolbar {
  display: none;
}

.result-count {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.shop-card {
  animation: card-in 0.35s ease;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-card.hidden {
  display: none;
}

.no-results {
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  padding: 3rem 0;
}

/* ---------- Announcement bar ---------- */
.announcement {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  padding: 0.6rem 1rem;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--black);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  color: var(--black);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-200);
  transform: scale(1.06);
}
.currency-toggle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  min-width: 64px;
  padding: 0 8px;
  border-radius: 20px;
  border: 2px solid var(--black);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--black);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-count.bump {
  animation: cart-bump 0.35s ease;
}

@keyframes cart-bump {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

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

.brand-name {
  font-family: "Miss Stanfort", var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  font-weight: 800;
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--black);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Hero / Slider ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  max-width: 640px;
  padding: 6rem clamp(5.5rem, 8vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.08;
  margin-bottom: 1.2rem;
}

.hero-title span {
  background: var(--black);
  color: var(--white);
  padding: 0 0.4rem;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 500;
  color: var(--gray-600);
  max-width: 440px;
  margin-bottom: 2rem;
}

.logoH {
  height: 32px;
  width: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-solid:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}


.btn-W:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 255, 38, 0.35);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.85);
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.btn-sm {
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
}

.slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--gray-100);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.55);
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.arrow-prev {
  left: 2rem;
}

.arrow-next {
  right: 2rem;
}

.dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: var(--white);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: var(--black);
  color: var(--white);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
  text-align: center;
}

.section-title span {
  background: var(--black);
  color: var(--white);
  padding: 0 0.4rem;
}

.section-alt .section-title span {
  background: var(--white);
  color: var(--black);
}

.section-text {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 500;
  color: var(--gray-600);
}

.section-alt .section-text {
  color: var(--gray-400);
}

/* ---------- Value props ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-item {
  border: 2px solid var(--gray-200);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  border-color: var(--black);
  box-shadow: 8px 8px 0 var(--gray-100);
}

.value-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border: 2px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: var(--white);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.value-item:hover .value-icon {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-text {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ---------- Product cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 0.75rem 0.75rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: #111111;
}

.card-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #ececec;
  margin-bottom: 0.25rem;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shop-card:hover .card-media img {
  transform: scale(1.03);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #111111;
}

.rating {
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--white);
}

.rating-count {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--gray-400);
}

.card-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #666666;
  flex-grow: 1;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.price-old {
  text-decoration: line-through;
  color: var(--gray-400);
  font-size: 0.95rem;
  font-weight: 500;
}

.price-now {
  color: #000000;
  font-size: 1.15rem;
  font-weight: 800;
}

.card .price .price-now:only-child {
  color: #000000;
}

.model-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
  border: 1px solid var(--gray-600);
  padding: 0.3rem 0.6rem;
  width: fit-content;
  border-radius: 4px;
}

.btn-cart {
  width: 100%;
  margin-top: auto;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-cart:hover {
  background: #ffffff;
  color: #000000;
  border-color: #000000;
  transform: none;
  box-shadow: none;
}

.cards-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ---------- Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.review {
  border: 2px solid var(--gray-200);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--gray-100);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.review-city {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.review .rating {
  color: var(--black);
}

.review-text {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  border: 1px solid #e5e5e5;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.open {
  border-color: #111111;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: none;
  border: none;
  color: #111111;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-q:hover {
  background: #f7f7f7;
}

.faq-chevron {
  flex-shrink: 0;
  color: #111111;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 1.3rem 1.1rem;
  font-weight: 500;
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Newsletter ---------- */
.newsletter {
  border: 2px solid var(--black);
  background: var(--gray-100);
  padding: 3rem 2rem;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.8rem;
}

.newsletter-off {
  color: var(--white);
  background: var(--black);
  padding: 0 0.4rem;
}

.newsletter-text {
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 1.6rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  max-width: 380px;
  min-width: 220px;
  padding: 0.85rem 1rem;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 0.2s ease;
}

.newsletter-input:focus {
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.newsletter-msg {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--black);
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: var(--black);
}

.legal-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--black);
  width: fit-content;
}

.legal-section p,
.legal-section li {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.legal-section p {
  margin-bottom: 0.5rem;
}

.legal-section ul {
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.legal-section a {
  color: var(--black);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.legal-section a:hover {
  opacity: 0.7;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 2px solid var(--black);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-brand-logo {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 0.2rem;
}

.footer-text {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
  color: var(--black);
  padding-left: 4px;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-3px);
}

.payment-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.payment-badge {
  border: 2px solid var(--black);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-align: center;
  letter-spacing: 0.3px;
}

.payment-provider-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-content {
    max-width: 520px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .builder-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .builder-preview {
    position: static;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    width: min(320px, 85vw);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border: none;
    border-right: 2px solid var(--black);
  }

  .filters.open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
  }

  .filters-scrim {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: rgba(10, 10, 10, 0.5);
  }

  .filters-scrim[hidden] {
    display: none;
  }

  .filter-close {
    display: block;
  }

  .shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

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

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

  .cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .reviews {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.7)
    );
  }

  .hero-content {
    background: transparent;
  }

  .hero-title {
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  }

  .hero-subtitle {
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-actions .btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 260px;
  }

  .hero-actions .btn-solid {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
  }

  .hero-actions .btn-solid:hover {
    transform: none;
    box-shadow: none;
  }

  .hero-actions .btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
  }

  .hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: none;
    box-shadow: none;
  }

  .arrow {
    top: auto;
    transform: none;
    bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--black);
  }

  .arrow:hover {
    transform: scale(1.08);
  }

  .arrow-prev {
    left: 1.25rem;
  }

  .arrow-next {
    right: 1.25rem;
  }
}

@media (max-width: 640px) {
  .announcement {
    font-size: 0.78rem;
  }

  .shop-page {
    padding: 2.5rem 1.25rem 4rem;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .shop-toolbar {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content {
    max-width: none;
    padding: 5rem clamp(4.75rem, 12vw, 5.5rem) 6rem;
  }

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

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

  .newsletter {
    padding: 2.5rem 1.25rem;
  }

  .newsletter-input {
    min-width: 100%;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    gap: 0;
    max-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: calc(100vh - 80px);
  }

  .nav-links li {
    border-top: 1px solid var(--gray-200);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
  }

  .nav-links a::after {
    display: none;
  }

  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* ---------- Builder: CSS phone silhouette (no external frame asset) ---------- */
.phone-frame-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 3px solid rgba(20, 22, 26, 0.85);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.25s ease;
}

/* Back-glass Pro camera module (top-left, triple lens + flash + LiDAR) */
.phone-frame-overlay .camera-module {
  position: absolute;
  top: 6%;
  left: 6%;
  width: 33%;
  aspect-ratio: 1;
  border-radius: 18%;
  background: linear-gradient(180deg, #2b2f37, #191c22);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.07), 0 3px 10px rgba(0, 0, 0, 0.55);
}

.phone-frame-overlay .camera-module .lens {
  position: absolute;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #454c5a, #161a20 68%);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-frame-overlay .camera-module .lens::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, #0c0e12 0%, #1d2129 70%);
}

.phone-frame-overlay .camera-module .lens-1 {
  top: 9%;
  left: 9%;
}

.phone-frame-overlay .camera-module .lens-2 {
  top: 9%;
  right: 9%;
  left: auto;
}

.phone-frame-overlay .camera-module .lens-3 {
  bottom: 9%;
  left: 9%;
}

.phone-frame-overlay .camera-module .camera-flash {
  position: absolute;
  bottom: 12%;
  right: 14%;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff7da, #f4d68c 55%, #b3903f);
  box-shadow: 0 0 6px rgba(255, 220, 120, 0.45);
}

.phone-frame-overlay .camera-module .camera-lidar {
  position: absolute;
  bottom: 14%;
  right: 36%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a3446, #0d1015);
  box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.18), 0 0 5px rgba(130, 150, 255, 0.4);
}

/* ---------- Shared cart drawer ---------- */
.no-scroll {
  overflow: hidden;
}

/* ---------- modal (public pages) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px 40px;
  overflow-y: auto;
  z-index: 9990;
}
.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.modal-title { font-size: 18px; margin: 0; }
.modal-x { background: none; border: 0; font-size: 18px; cursor: pointer; color: #555; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; margin: -12px -12px -12px 0; }
.modal-body { font-size: 14px; color: #333; }
.modal-text { margin: 6px 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- order success popup ---------- */
.order-success {
  text-align: center;
  padding: 10px 6px 4px;
}
.order-success-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  display: block;
  animation: success-pop 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.order-success-check circle {
  fill: none;
  stroke: #22c55e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: success-draw 0.6s ease forwards;
}
.order-success-check path {
  fill: none;
  stroke: #22c55e;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: success-draw 0.4s 0.4s ease forwards;
}
@keyframes success-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes success-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.order-success-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
  margin-bottom: 6px;
}
.order-success-sub {
  color: #666666;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 18px;
}
.order-success-details {
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 10px 16px;
  text-align: left;
}
.order-success-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #555555;
  border-bottom: 1px dashed #e5e5e5;
}
.order-success-row:last-child { border-bottom: 0; }
.order-success-row span:last-child {
  font-weight: 700;
  color: #111111;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-wrap {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 500;
  height: 100%;
  width: min(380px, 92vw);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

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

.cart-drawer {
  height: 100%;
  background: var(--white);
  border-left: 2px solid var(--black);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-head h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
}

.cart-close {
  border: 2px solid var(--black);
  background: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-empty {
  color: var(--gray-600);
  font-weight: 500;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1 1 auto;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--gray-200);
  padding: 0.6rem 0.7rem;
}

.cart-item-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

.cart-item-variant {
  font-size: 0.78rem;
  color: var(--gray-600);
  font-weight: 500;
}

.cart-item-price {
  color: var(--gray-600);
  font-size: 0.8rem;
}

.cart-item-qty {
  font-weight: 700;
  font-size: 0.85rem;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gray-600);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 800;
  border-top: 2px solid var(--black);
  padding-top: 0.8rem;
}

.cart-total-price {
  font-size: 1.1rem;
}

.cart-clear {
  width: 100%;
}

/* ---------- cart toast ---------- */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 500;
  max-width: 90vw;
}

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

/* ---------- account dropdown ---------- */
.account-menu {
  position: fixed;
  z-index: 300;
  background: var(--white);
  border: 2px solid var(--black);
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.account-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-menu a {
  padding: 0.55rem 0.8rem;
  color: var(--black);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.account-menu a:hover {
  background: var(--gray-100);
}

.account-menu .account-hello {
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0.2rem;
}

.account-menu button.account-logout {
  background: none;
  border: none;
  text-align: left;
  padding: 0.55rem 0.8rem;
  color: var(--black);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
}

.account-menu button.account-logout:hover {
  background: var(--gray-100);
}

/* Legacy admin panel styles removed — superseded by css/admin.css (see git history). */

/* Storefront loading/empty states (rendered by JS on index/shop/product pages) */
.admin-loading,
.admin-empty {
  border: 2px dashed var(--gray-400);
  background: var(--white);
  padding: 1.6rem;
  text-align: center;
  font-weight: 600;
  color: var(--gray-600);
}

/* ---------- Auth page ---------- */
.auth-page {
  max-width: 460px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.auth-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.auth-card {
  border: 2px solid var(--black);
  padding: 1.6rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.auth-tab {
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 0.5rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.auth-tab.active {
  background: var(--black);
  color: var(--white);
}

/* Two-tab auth layout: centered, equal-width, balanced above the card. */
.auth-card .auth-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.auth-card .auth-tab {
  flex: 1 1 0;
  max-width: 230px;
  min-width: 0;
  padding: 0.72rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-600);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.auth-card .auth-tab:hover {
  border-color: var(--gray-800);
  color: var(--gray-800);
}

.auth-card .auth-tab.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

@media (max-width: 420px) {
  .auth-card .auth-tabs {
    gap: 0.5rem;
  }

  .auth-card .auth-tab {
    font-size: 0.8rem;
    padding: 0.65rem 0.6rem;
  }
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.auth-field input.filter-search {
  width: 100%;
  box-sizing: border-box;
}

.auth-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.auth-forgot {
  font-size: 0.8rem;
  color: var(--gray-600);
  font-weight: 500;
}

.auth-submit {
  width: 100%;
  margin-top: 0.4rem;
}

.auth-msg {
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  min-height: 1.3em;
}

.auth-msg.ok {
  color: #1e7e34;
}

.auth-msg.err {
  color: #c62828;
}

.auth-note {
  margin-top: 1.2rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.auth-note a {
  color: var(--black);
  text-decoration: underline;
}

.session-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.session-hello {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
}

.session-meta {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.panel-note {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ---------- Checkout page (editorial) ---------- */
.checkout-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5.5rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.25rem;
  align-items: start;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* ---------- page header ---------- */
.checkout-head {
  text-align: left;
  max-width: 720px;
  margin-bottom: 2.75rem;
}

.checkout-eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.checkout-head .shop-title {
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

.checkout-head .shop-title span {
  background: none;
  color: inherit;
  font-style: italic;
  font-weight: 500;
}

/* ---------- form cards ---------- */
.checkout-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.checkout-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.6rem;
}

.checkout-step {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.checkout-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.checkout-card-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  font-weight: 500;
  margin: 0;
}

.checkout-fields {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gray-800);
}

.checkout-label .req {
  color: var(--gray-400);
  font-weight: 500;
}

.checkout-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-800);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkout-input::placeholder {
  color: var(--gray-400);
  font-weight: 500;
}

.checkout-input:focus {
  border-color: var(--gray-800);
  box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.06);
}

/* ---------- payment options ---------- */
.pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pay-option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.pay-option:hover {
  border-color: var(--gray-400);
  background: #fcfcfc;
}

.pay-option:has(input:checked) {
  border-color: var(--gray-800);
  background: #fafafa;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option-radio {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  border: 1.5px solid var(--gray-400);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-option-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  transform: scale(0);
  transition: transform 0.15s ease, background 0.15s ease;
}

.pay-option:has(input:checked) .pay-option-radio {
  border-color: var(--gray-800);
}

.pay-option:has(input:checked) .pay-option-radio::after {
  background: var(--gray-800);
  transform: scale(1);
}

.pay-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pay-option-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}

.pay-option-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--gray-800);
}

.pay-option-icon svg {
  width: 100%;
  height: 100%;
}

.pay-option-desc {
  font-size: 0.84rem;
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.45;
  padding-left: 2.1rem;
}

.stripe-box {
  margin-top: 1.35rem;
}

#stripeErrors {
  margin-top: 0.25rem;
}

/* ---------- trust bar ---------- */
.checkout-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}

.checkout-trust .trust-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gray-600);
}

.checkout-trust .trust-badge svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--gray-800);
}

/* ---------- order summary ---------- */
.checkout-summary {
  min-width: 0;
}

.summary-card {
  position: sticky;
  top: 2rem;
  background: #fafafa;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.75rem;
}

.summary-head {
  margin-bottom: 1.25rem;
}

.summary-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

.summary-sub {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
  margin: 0;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 280px;
  overflow-y: auto;
}

.summary-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.88rem;
}

.summary-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-400);
}

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

.summary-item-name {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.summary-item-variant {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-600);
}

.summary-item-qty {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
}

.summary-item-price {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
}

.coupon-row {
  display: flex;
  gap: 0.6rem;
  margin: 1.1rem 0 0.35rem;
}

.coupon-input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.coupon-input::placeholder {
  color: var(--gray-400);
}

.coupon-input:focus {
  border-color: var(--gray-800);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
}

.summary-row span:last-child {
  color: var(--gray-800);
  font-weight: 600;
}

.summary-grand {
  padding-top: 0.55rem;
  border-top: 1px solid var(--gray-200);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.summary-grand-price {
  font-size: 1.15rem;
}

.summary-submit {
  width: 100%;
  margin-top: 1.35rem;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.summary-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.summary-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

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

  .checkout-trust {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* ---------- Visibility & interaction states ---------- */
[hidden] {
  display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gray-400);
  outline-offset: 2px;
}

.btn:active,
.icon-btn:active,
.hamburger:active,
.cart-item-remove:active {
  transform: translateY(1px);
}

/* ---------- Discount badge on product cards ---------- */
.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c62828;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  letter-spacing: 0.3px;
}

/* ---------- Review cards (product page) ---------- */
.review-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: var(--white);
}

.review-card .review-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.review-card .review-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-card .review-body {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Star ratings (rendered by dom.js stars()) ---------- */
.rating-star {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.rating-count,
.review-author {
  color: var(--gray-600);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- WhatsApp order button in cart drawer ---------- */
.wa-order {
  width: 100%;
  margin-top: 0.5rem;
}

/* ---------- Favorites / addresses layout helpers ---------- */
.fav-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.panel-card {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  background: var(--white);
}

/* ---------- Account name display ---------- */
.account-name {
  font-weight: 600;
  color: var(--gray-800);
}

/* ============================================================
   Responsive safety net — horizontal overflow guard
   Guarantees NO horizontal scroll at any viewport (320px – 2560px+),
   including transient reveal/parallax/drawer motion, WITHOUT creating
   a scroll container, so position:sticky (navbar, builder preview,
   co-aside, user side nav) keeps working.
   (overflow-x: clip ≥ Chrome/Edge 90, Safari 16, FF 81;
    hidden applied as fallback only when clip is unsupported.)
   ============================================================ */
html,
body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

/* Grid/flex children may never stretch their track past available space */
.builder-layout > *,
.co-layout > * {
  min-width: 0;
}

/* ---------- toast (public pages; admin.css keeps its own copy) ---------- */
.toast-root {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 92vw;
}
.toast {
  background: #1d1d1d;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 340px;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast-success {
  background: #2e7d32;
}
.toast-error {
  background: #c53030;
}
.toast-close {
  background: none;
  border: 0;
  color: inherit;
  font-size: 14px;
  margin-left: auto;
  cursor: pointer;
}

/* ---------- Small screens (<=480px) ---------- */
@media (max-width: 480px) {
  .section {
    padding: 3.25rem 1.15rem;
  }

  .hero-content {
    padding: 4rem 1.5rem 5rem;
  }

  .hero-actions .btn {
    max-width: 100%;
  }

  .product-page,
  .builder-page,
  .shop-page,
  .checkout-page,
  .legal-page,
  .auth-page,
  .admin-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-logo {
    height: 48px;
  }

  .nav-actions {
    gap: 0.15rem;
  }

  .product-layout {
    gap: 1.5rem;
  }

  .product-name {
    font-size: 1.55rem;
  }

  .product-accordion {
    margin-top: 2.5rem;
  }

  .faq-q {
    padding: 0.95rem 1.05rem;
  }

  .newsletter {
    padding: 2.25rem 1rem;
  }

  .footer {
    padding: 2.75rem 1.15rem 1.75rem;
  }

  .checkout-card,
  .summary-card,
  .auth-card,
  .builder-step {
    padding: 1.25rem;
  }

  .checkout-page {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .checkout-trust {
    padding: 1.15rem;
  }

  .coupon-row {
    flex-wrap: wrap;
  }

  .coupon-row .coupon-input {
    flex: 1 1 100%;
  }

  .pay-option {
    padding: 0.9rem;
  }

  .modal-overlay {
    padding: 20px 12px;
  }

  .modal-card {
    padding: 18px;
  }

  .cart-drawer {
    padding: 1.1rem;
  }

  .toast-root {
    right: 12px;
    left: 12px;
  }
}

/* SEO: short intro text above the shop grid (no visual redesign) */
.shop-intro {
  max-width: 760px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

