/* Mirrors apps/web/src/app/globals.css storefront tokens and layout chrome */

:root {
  --color-primary: #0055fe;
  --color-primary-dark: #0044d0;
  --color-bg: #fcfcfc;
  --color-header-bg: #ebeced;
  --color-text: #000000;
  --color-text-muted: rgba(0, 0, 0, 0.75);
  --page-width: 1300px;
  --page-padding-x: 3rem;
  --radius-btn: 40px;
  --radius: 0.5rem;
  --line: rgba(0, 0, 0, 0.08);
  --card-border: rgba(0, 0, 0, 0.08);
}

@media (min-width: 1024px) {
  :root {
    --page-padding-x: 4rem;
  }
}

/* Full-viewport intro (ported from apps/web Preloader.tsx) */
body.has-store-preloader {
  overflow: hidden;
}

.store-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.store-preloader__panel {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--color-primary);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1) 0.35s;
  will-change: transform;
}

.store-preloader__panel--top {
  top: 0;
  height: calc(50% + 1px);
  transform: translateY(0);
}

.store-preloader__panel--bottom {
  bottom: 0;
  height: calc(50% + 1px);
  transform: translateY(0);
}

.store-preloader.is-split .store-preloader__panel--top {
  transform: translateY(-100%);
}

.store-preloader.is-split .store-preloader__panel--bottom {
  transform: translateY(100%);
}

.store-preloader__logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.88);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-preloader.is-ready .store-preloader__logo {
  opacity: 1;
  transform: scale(1);
}

.store-preloader.is-split .store-preloader__logo {
  opacity: 0;
  transform: scale(1.05);
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-preloader__logo img {
  width: 16rem;
  height: auto;
  max-width: min(24rem, 70vw);
  object-fit: contain;
}

@media (min-width: 750px) {
  .store-preloader__logo img {
    width: 24rem;
  }
}

.store-preloader.is-done {
  opacity: 0;
  transition: opacity 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .store-preloader {
    display: none !important;
  }
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 750px) {
  body {
    font-size: 1.6rem;
  }
}

a {
  color: inherit;
}

.page-width {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 var(--page-padding-x);
}

@media (max-width: 749px) {
  .page-width {
    padding: 0 1.6rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.4rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 200ms ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
  background: transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(15, 84, 237, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(15, 84, 237, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 800;
  color: #000;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.8rem;
}

.h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #000;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 2.4rem 0 1.2rem;
}

.h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 600;
  color: #000;
  line-height: 1.4;
}

.muted {
  color: rgba(0, 0, 0, 0.45);
}

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.12), transparent);
  margin: 2.4rem 0;
  border: none;
}

@media (min-width: 768px) {
  .section-divider {
    margin: 3.2rem 0;
  }
}

/* Announcement marquee */
@keyframes storefront-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.announcement-bar {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  height: 3.6rem;
  display: flex;
  align-items: center;
  user-select: none;
}

.announcement-track {
  display: flex;
  animation: storefront-marquee 40s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0 4rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.announcement-item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* Header */
#store-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: #fff;
  transition: box-shadow 300ms ease;
}

#store-header[data-scrolled="true"] {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.identity-bar {
  border-bottom: 1px solid var(--line);
  transition:
    max-height 300ms ease,
    opacity 300ms ease;
  overflow: hidden;
  max-height: 8rem;
  opacity: 1;
}

#store-header[data-scrolled="true"] .identity-bar {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.identity-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6.4rem;
}

@media (min-width: 750px) {
  .identity-inner {
    height: 7.2rem;
  }
}

.identity-logo {
  display: block;
  flex-shrink: 0;
}

.identity-logo img {
  height: 2.2rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .identity-logo img {
    height: 2.6rem;
  }
}

@media (min-width: 750px) {
  .identity-logo img {
    height: 3.2rem;
  }
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  border: none;
  border-radius: 1.2rem;
  background: transparent;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.6);
  transition: background 200ms ease;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.icon-btn svg {
  width: 2.4rem;
  height: 2.4rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .header-actions--mobile {
    display: none;
  }
}

.header-actions--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .header-actions--desktop {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }

  .header-actions--desktop .icon-btn {
    width: 5.6rem;
    height: 5.6rem;
  }

  .header-actions--desktop .icon-btn svg {
    width: 3rem;
    height: 3rem;
  }
}

/* Desktop nav row */
.nav-row {
  display: none;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .nav-row {
    display: block;
  }
}

.nav-row-inner {
  display: flex;
  align-items: center;
  min-height: 6rem;
}

.nav-row-inner .simple-logo-wrap {
  display: none;
  flex-shrink: 0;
  margin-right: 3.2rem;
}

#store-header[data-scrolled="true"] .nav-row-inner .simple-logo-wrap {
  display: block;
}

.nav-row-inner .simple-logo-wrap img {
  height: 3.4rem;
  width: auto;
  object-fit: contain;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.7);
  transition: color 200ms ease;
  padding: 1rem 1.6rem;
  font-size: 1.4rem;
}

.nav-link:hover {
  color: #000;
}

.nav-link--compact {
  padding: 1.2rem 1rem;
  font-size: 1.35rem;
}

.nav-link.is-active {
  color: var(--color-primary);
}

.nav-link .chev {
  width: 1.3rem;
  height: 1.3rem;
  opacity: 0.4;
  transition: transform 200ms ease;
}

.nav-item:hover .nav-link .chev {
  transform: rotate(180deg);
}

.nav-underline {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 999px;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  padding-top: 0.8rem;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-panel {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
  padding: 0.6rem 0;
  min-width: 18.8rem;
}

.nav-dropdown-panel a {
  display: block;
  padding: 1rem 1.6rem;
  font-size: 1.35rem;
  color: rgba(0, 0, 0, 0.65);
  text-decoration: none;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav-dropdown-panel a:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.04);
}

.nav-dropdown-divider {
  margin: 0.6rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.nav-dropdown-viewall {
  font-weight: 600;
  color: var(--color-primary) !important;
}

.nav-dropdown-viewall:hover {
  background: rgba(0, 85, 254, 0.06) !important;
}

.nav-row-actions {
  display: none;
  align-items: center;
  gap: 0.8rem;
  margin-left: auto;
}

#store-header[data-scrolled="true"] .nav-row-actions {
  display: flex;
}

/* Mobile sticky row (compact logo when scrolled) */
.mobile-nav-row {
  display: none;
  overflow: hidden;
  transition:
    max-height 300ms ease,
    opacity 300ms ease;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  border-bottom: 1px solid transparent;
}

@media (max-width: 1023px) {
  .mobile-nav-row {
    display: block;
  }
}

#store-header[data-scrolled="true"] .mobile-nav-row {
  max-height: 10rem;
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: var(--line);
  transition-delay: 300ms;
}

.mobile-nav-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6rem;
}

.mobile-nav-row-inner img {
  height: 2.6rem;
  width: auto;
  object-fit: contain;
}

/* Mobile drawer */
.mobile-drawer-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:has(#site-mobile-nav:checked) {
  overflow: hidden;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

body:has(#site-mobile-nav:checked) .mobile-drawer {
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 200ms ease;
}

body:has(#site-mobile-nav:checked) .mobile-drawer .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(32rem, 88vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 220ms ease;
  overflow-y: auto;
  padding: 2rem 1.6rem;
}

body:has(#site-mobile-nav:checked) .mobile-drawer .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-drawer-close label {
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-primary);
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list a {
  display: block;
  padding: 1.4rem 0;
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.75);
}

.mobile-nav-list a:hover {
  color: var(--color-primary);
}

.mobile-nav-sub {
  list-style: none;
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.mobile-nav-sub a {
  padding: 0.9rem 0;
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.55);
}

/* Main */
.store-main {
  padding: 3.2rem 0 6.4rem;
}

@media (min-width: 768px) {
  .store-main {
    padding: 4rem 0 8rem;
  }
}

/* Product grid cards (Next-like) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
  gap: 2.4rem;
}

@media (max-width: 749px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
  }
}

.product-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 1.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

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

.product-card a.product-card-media {
  display: block;
  aspect-ratio: 1;
  background: #f3f4f6;
  overflow: hidden;
}

.product-card a.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 1.6rem 1.8rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-name {
  font-weight: 600;
  font-size: 1.45rem;
  color: #000;
  text-decoration: none;
}

.product-card-name:hover {
  color: var(--color-primary);
}

.product-card-price {
  font-weight: 700;
  font-size: 1.5rem;
  color: #000;
  margin-top: auto;
}

.pagination-bar {
  margin-top: 2.4rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.pagination-bar a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.pagination-bar a:hover {
  text-decoration: underline;
}

/* Product detail */
.breadcrumb {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-hero-price {
  font-size: 1.6rem;
  margin: 0.5rem 0 1rem;
}

.product-hero-price strong {
  color: #000;
}

.compare-at {
  text-decoration: line-through;
  margin-left: 0.8rem;
  color: rgba(0, 0, 0, 0.45);
}

.product-desc {
  margin-top: 1rem;
  max-width: 65ch;
}

.product-meta {
  margin-top: 1rem;
  font-size: 1.3rem;
}

.product-thumb-wrap {
  margin-top: 1.6rem;
  max-width: 48rem;
}

.product-thumb-wrap img {
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
}

/* Newsletter strip */
.newsletter-strip {
  background: #fff;
  border-top: 1px solid var(--line);
}

.newsletter-inner {
  padding: 3.2rem 0;
}

@media (min-width: 750px) {
  .newsletter-inner {
    padding: 3.6rem 0;
  }
}

.newsletter-flex {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

@media (min-width: 750px) {
  .newsletter-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.newsletter-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.newsletter-sub {
  font-size: 1.4rem;
  color: rgba(0, 0, 0, 0.5);
  margin: 0.4rem 0 0;
}

.newsletter-form {
  display: flex;
  width: 100%;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (min-width: 750px) {
  .newsletter-form {
    max-width: 52rem;
    flex-wrap: nowrap;
  }
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 1.2rem 1.6rem;
  border-radius: 1.2rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 1.4rem;
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 85, 254, 0.2);
}

/* Footer */
.site-footer {
  background: #000;
  color: #fff;
}

.footer-main {
  padding: 5rem 0 3.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem;
}

@media (min-width: 750px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3.2rem 4.8rem;
  }
}

.footer-brand-mobile {
  margin-bottom: 2.4rem;
}

@media (min-width: 750px) {
  .footer-brand-mobile {
    display: none;
  }
}

.footer-brand-desktop {
  display: none;
}

@media (min-width: 750px) {
  .footer-brand-desktop {
    display: block;
  }
}

.footer-logo {
  height: 6.4rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 0.8rem;
}

@media (min-width: 750px) {
  .footer-logo {
    height: 7.2rem;
  }
}

.footer-tagline {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  margin: 0;
}

.social-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.social-row a {
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition:
    color 200ms ease,
    border-color 200ms ease;
}

.social-row a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-col-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.6rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 200ms ease;
}

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

.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: #fff;
}

.footer-contact-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #66a3ff;
}

.footer-wa {
  margin-top: 1.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  padding: 1.6rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer-designed {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0.4rem 0 0;
}

.footer-legal {
  display: flex;
  gap: 1.6rem;
}

.footer-legal a {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp FAB */
.wa-fab {
  position: fixed;
  bottom: 2.4rem;
  right: 2.4rem;
  z-index: 50;
}

.wa-fab-ping {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #4ade80;
  animation: storefront-ping 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.55;
}

@keyframes storefront-ping {
  75%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.wa-fab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.6rem;
  height: 5.6rem;
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
  transition:
    transform 200ms ease,
    background 200ms ease,
    box-shadow 200ms ease;
}

.wa-fab-btn:hover {
  transform: scale(1.08);
  background: #16a34a;
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.45);
}

.wa-fab-btn svg {
  width: 2.8rem;
  height: 2.8rem;
  fill: #fff;
}

/* Simple content pages */
.content-page .page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 0;
}

@media (min-width: 750px) {
  .content-page .page-hero {
    padding: 5.6rem 0;
  }
}

.content-page .page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.content-page .page-hero p {
  margin: 1.2rem 0 0;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 52rem;
}

.content-page .page-body {
  padding: 3.2rem 0 4rem;
}

.content-page .page-body .prose {
  max-width: 72rem;
}

.content-page .page-body .prose p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.65);
  margin: 0 0 1.2rem;
}

.content-page .page-body .prose a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.content-page .page-body .prose a:hover {
  text-decoration: underline;
}

.home-cta-row {
  margin-top: 1.5rem;
}

/* About page */
.about-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 5rem 0 6rem;
}

@media (min-width: 750px) {
  .about-hero {
    padding: 7rem 0 8.8rem;
  }
}

.about-hero-kicker {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.6rem;
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 6.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 42rem;
}

.about-hero-lead {
  margin: 1.6rem 0 0;
  font-size: 1.6rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 36rem;
}

.about-stats {
  border-bottom: 1px solid var(--line);
}

.about-stats-inner {
  padding: 4rem 0;
}

@media (min-width: 750px) {
  .about-stats-inner {
    padding: 4.8rem 0;
  }
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.2rem;
  text-align: center;
}

@media (min-width: 750px) {
  .about-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.about-stat-val {
  font-size: clamp(3.2rem, 4vw, 4.4rem);
  font-weight: 900;
  color: #000;
  line-height: 1;
  margin: 0;
}

.about-stat-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
  margin: 0.8rem 0 0;
}

.about-stat-sub {
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.4);
  margin: 0.4rem 0 0;
}

.about-story {
  padding: 4rem 0 5.6rem;
}

@media (min-width: 1024px) {
  .about-story {
    padding: 6rem 0 8rem;
  }
}

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5.6rem;
  }
}

.about-kicker {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 1.6rem;
}

.about-story h2 {
  margin: 0 0 2.4rem;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  font-weight: 900;
  color: #000;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.about-story-prose p {
  font-size: 1.5rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 1.6rem;
}

.about-story-prose strong {
  color: #000;
  font-weight: 600;
}

.about-visual {
  position: relative;
}

.about-visual-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2.4rem;
  overflow: hidden;
  background: #e8ecf4;
}

.about-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-cta {
  padding: 4rem 0 5.6rem;
  text-align: center;
}

.about-cta h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 900;
  color: #000;
  letter-spacing: -0.02em;
}

.about-cta p {
  margin: 0 auto 2.4rem;
  font-size: 1.5rem;
  color: rgba(0, 0, 0, 0.5);
  max-width: 42rem;
  line-height: 1.6;
}

.about-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .about-cta-row {
    flex-direction: row;
    justify-content: center;
  }
}

/* Home hero (matches Next HeroSlideshow) */
.home-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.home-hero-viewport {
  position: relative;
  width: 100%;
}

.home-hero-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .home-hero-track {
    aspect-ratio: 16 / 6;
  }
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.home-hero-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.home-hero-aspect {
  position: relative;
  width: 100%;
  height: 100%;
}

.home-hero-aspect img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.home-hero-caption-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.home-hero-caption {
  display: none;
  position: absolute;
  inset: 0;
  align-items: flex-end;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .home-hero-caption {
    align-items: center;
    padding-bottom: 0;
  }
}

.home-hero-caption.is-active:not(.home-hero-caption--empty) {
  display: flex;
}

.home-hero-caption-inner {
  width: 100%;
  pointer-events: none;
}

.home-hero-caption-box {
  max-width: 28rem;
  pointer-events: auto;
}

.home-hero-caption-box--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-hero-caption-box--right {
  margin-left: auto;
  text-align: right;
}

.home-hero-heading {
  margin: 0 0 0.8rem;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-hero-heading--white {
  color: #fff;
}

.home-hero-heading--dark {
  color: #000;
}

.home-hero-sub {
  margin: 0 0 2rem;
  font-size: 1.35rem;
  line-height: 1.55;
}

@media (max-width: 639px) {
  .home-hero-sub {
    display: none;
  }
}

.home-hero-sub--white {
  color: rgba(255, 255, 255, 0.85);
}

.home-hero-sub--dark {
  color: rgba(0, 0, 0, 0.7);
}

.home-hero-cta.btn {
  font-size: 1.3rem;
  padding: 0.9rem 2rem;
}

/* Size variants */
.home-hero-cta--sm.btn { font-size: 1rem;  padding: 0.6rem 1.4rem; }
.home-hero-cta--md.btn { font-size: 1.3rem; padding: 0.9rem 2rem; }
.home-hero-cta--lg.btn { font-size: 1.6rem; padding: 1.1rem 2.6rem; }
.home-hero-cta--xl.btn { font-size: 1.9rem; padding: 1.3rem 3.2rem; }

/* Absolutely positioned button (X/Y mode) */
.home-hero-cta--abs {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 3;
}

.home-hero-cta--white {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.home-hero-cta--white:hover {
  background: #f0f0f0;
  color: #000;
}

.home-hero-cta--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.home-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 4rem;
  height: 4rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

@media (min-width: 768px) {
  .home-hero-nav {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .home-hero:hover .home-hero-nav {
    opacity: 1;
  }
}

.home-hero-nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: #fff;
}

.home-hero-nav--prev {
  left: 1.2rem;
}

.home-hero-nav--next {
  right: 1.2rem;
}

.home-hero-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  z-index: 10;
}

@media (min-width: 768px) {
  .home-hero-dots {
    bottom: 1.6rem;
    padding: 0 1.6rem;
    gap: 0.4rem;
  }
}

.home-hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.home-hero-dot.is-active {
  width: 2rem;
  border-radius: 0.4rem;
  background: #fff;
}

@media (min-width: 768px) {
  .home-hero-dot {
    flex: 1;
    height: 0.2rem;
    border-radius: 999px;
    max-width: none;
  }

  .home-hero-dot.is-active {
    width: auto;
    flex: 1.2;
    height: 0.2rem;
  }
}

/* Category tiles */
.home-category-section {
  padding: 3.2rem 0 3.6rem;
}

@media (min-width: 768px) {
  .home-category-section {
    padding: 4.8rem 0 5.2rem;
  }
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

@media (min-width: 1024px) {
  .home-category-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.home-category-card {
  display: block;
  border-radius: 1.6rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
}

.home-category-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.home-category-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

@media (min-width: 640px) {
  .home-category-media {
    aspect-ratio: 4 / 5;
  }
}

.home-category-media--primary {
  background: linear-gradient(180deg, #0055fe 0%, #0039b0 100%);
}

.home-category-media--slate {
  background: linear-gradient(180deg, #334155 0%, #0f172a 100%);
}

.home-category-media--sky {
  background: linear-gradient(180deg, #0284c7 0%, #0c4a6e 100%);
}

.home-category-media--emerald {
  background: linear-gradient(180deg, #059669 0%, #064e3b 100%);
}

.home-category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

.home-category-card:hover .home-category-media img {
  transform: scale(1.05);
}

.home-category-body {
  padding: 1.2rem 1.4rem 1.4rem;
}

@media (min-width: 768px) {
  .home-category-body {
    padding: 1.4rem 1.6rem 1.6rem;
  }
}

.home-category-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .home-category-title {
    font-size: 1.8rem;
  }
}

.home-category-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.home-category-card:hover .home-category-cta {
  color: var(--color-primary-dark);
}

.home-category-cta svg {
  transition: transform 0.2s ease;
}

.home-category-card:hover .home-category-cta svg {
  transform: translateX(3px);
}

/* Home product sections */
.home-products-section {
  padding: 3.6rem 0 4.8rem;
}

@media (min-width: 768px) {
  .home-products-section {
    padding: 5rem 0 5.6rem;
  }
}

.home-products-section--tight {
  padding-top: 2.4rem;
}

.home-section-head,
.home-new-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.6rem;
  margin-bottom: 3.2rem;
}

.home-new-head {
  margin-bottom: 2rem;
}

.home-new-kicker {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-section-link:hover {
  color: var(--color-primary-dark);
}

.home-section-link svg {
  transition: transform 0.2s ease;
}

.home-section-link:hover svg {
  transform: translateX(2px);
}

.home-new-grid-wrap {
  padding-bottom: 3.2rem;
}

/* Testimonials */
.home-testimonials {
  padding: 4rem 0 5rem;
  background: #f7f8fc;
}

@media (min-width: 768px) {
  .home-testimonials {
    padding: 5rem 0 6rem;
  }
}

.home-testimonials-head {
  text-align: center;
  margin-bottom: 3.2rem;
}

.home-testimonials-kicker {
  margin: 0 0 1.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-testimonials-title {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  font-weight: 900;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.home-testimonials-stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.6rem;
}

.home-testimonials-star {
  color: #fbbf24;
}

.home-testimonials-score {
  margin-left: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
}

.home-testimonials-count {
  font-size: 1.3rem;
  color: rgba(0, 0, 0, 0.4);
  margin-left: 0.4rem;
}

.home-testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

@media (min-width: 640px) {
  .home-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .home-testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-testimonial-card {
  background: #fff;
  border-radius: 1.6rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.home-testimonial-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.home-testimonial-top {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.home-testimonial-avatar {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 900;
}

.home-testimonial-avatar--sl {
  background: #dce8ff;
  color: #0055fe;
}

.home-testimonial-avatar--ar {
  background: #e0fce8;
  color: #16a34a;
}

.home-testimonial-avatar--na {
  background: #fce8e8;
  color: #dc2626;
}

.home-testimonial-avatar--wm {
  background: #fef9e0;
  color: #ca8a04;
}

.home-testimonial-avatar--pn {
  background: #f3e8ff;
  color: #7c3aed;
}

.home-testimonial-avatar--hr {
  background: #e8f4fc;
  color: #0284c7;
}

.home-testimonial-meta {
  flex: 1;
  min-width: 0;
}

.home-testimonial-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-testimonial-name {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.home-testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(0, 85, 254, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.home-testimonial-loc {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.4);
}

.home-testimonial-rating {
  display: flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

.home-testimonial-star {
  color: rgba(0, 0, 0, 0.15);
}

.home-testimonial-star.is-on {
  color: #fbbf24;
}

.home-testimonial-quote-wrap {
  position: relative;
  flex: 1;
}

.home-testimonial-quote-icon {
  position: absolute;
  top: -0.2rem;
  left: -0.2rem;
  color: rgba(0, 85, 254, 0.12);
}

.home-testimonial-quote {
  margin: 0;
  padding-left: 1.6rem;
  font-size: 1.4rem;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.7);
}

.home-testimonial-product {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-testimonial-product-label {
  margin: 0;
  font-size: 1.15rem;
  color: rgba(0, 0, 0, 0.4);
  font-weight: 500;
}

.home-testimonial-product-name {
  margin: 0.4rem 0 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #000;
}

/* ─── Cart count badge ─────────────────────────────────────────── */
.cart-icon-btn { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--color-primary, #0050d0); color: #fff;
  font-size: 0.65rem; font-weight: 700; line-height: 1;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; display: flex; align-items: center; justify-content: center;
}

/* ─── Shared form styles ───────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; }
.form-input {
  width: 100%; padding: 0.6rem 0.85rem; border: 1.5px solid #d1d5db;
  border-radius: 8px; font-size: 0.9375rem; background: #fff;
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--color-primary, #0050d0); }
.form-input.is-error { border-color: #e53e3e; }
.form-optional { color: #9ca3af; font-weight: 400; font-size: 0.8rem; }
.form-error { font-size: 0.8rem; color: #e53e3e; margin-top: 0.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 600px) { .form-row, .form-row--3 { grid-template-columns: 1fr; } }
.form-check-row { margin-bottom: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.form-check input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; }
.form-alert {
  padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1.25rem; font-size: 0.9rem;
}
.form-alert--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.btn-full { width: 100%; justify-content: center; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; border: 2px solid var(--color-primary, #0050d0);
  color: var(--color-primary, #0050d0); border-radius: 8px; font-weight: 600;
  font-size: 0.9375rem; background: transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--color-primary, #0050d0); color: #fff; }

/* ─── Auth pages ───────────────────────────────────────────────── */
.auth-wrap { display: flex; justify-content: center; padding: 3rem 1rem; }
.auth-card { width: 100%; max-width: 420px; }
.auth-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.4rem; }
.auth-sub { font-size: 0.9rem; color: #6b7280; margin-bottom: 1.5rem; }
.auth-sub a { color: var(--color-primary, #0050d0); font-weight: 600; }
.auth-form { display: flex; flex-direction: column; }
.auth-footer-link { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: #6b7280; }
.auth-footer-link a { color: var(--color-primary, #0050d0); }

/* ─── Cart page ────────────────────────────────────────────────── */
.cart-empty { text-align: center; padding: 4rem 1rem; color: #6b7280; }
.cart-empty svg { margin-bottom: 1rem; display: block; margin-inline: auto; }
.cart-empty p { margin-bottom: 1.5rem; font-size: 1.1rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; margin-top: 1.5rem; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-item {
  display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.cart-item-img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #f9fafb; }
.cart-item-img--placeholder { background: #f3f4f6; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; text-decoration: none; color: inherit; }
.cart-item-name:hover { color: var(--color-primary, #0050d0); }
.cart-item-variant, .cart-item-sku { font-size: 0.8125rem; margin-top: 0.2rem; }
.cart-item-price { font-size: 0.9375rem; font-weight: 500; margin-top: 0.4rem; }
.cart-item-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; }
.cart-qty-form { display: flex; align-items: center; gap: 0; border: 1.5px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.qty-btn { width: 32px; height: 32px; border: none; background: #f9fafb; cursor: pointer; font-size: 1.1rem; line-height: 1; flex-shrink: 0; }
.qty-btn:hover { background: #f3f4f6; }
.qty-input { width: 44px; height: 32px; border: none; text-align: center; font-size: 0.9rem; -moz-appearance: textfield; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cart-item-subtotal { font-weight: 600; font-size: 0.9375rem; }
.cart-remove-btn { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 0.2rem; }
.cart-remove-btn:hover { color: #e53e3e; }
.cart-summary {
  background: #f9fafb; border: 1.5px solid #f3f4f6;
  border-radius: 12px; padding: 1.5rem;
}
.cart-summary-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 0.9375rem; margin-bottom: 0.75rem; }
.cart-summary-total { font-weight: 700; font-size: 1.05rem; padding-top: 0.75rem; border-top: 1.5px solid #e5e7eb; margin-top: 0.25rem; }
.cart-continue-link { display: block; text-align: center; margin-top: 1rem; font-size: 0.875rem; color: #6b7280; }

/* ─── Checkout ─────────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; margin-top: 1.5rem; align-items: start; }
@media (max-width: 960px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-section { margin-bottom: 2rem; }
.checkout-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1.5px solid #f3f4f6; }
.checkout-section-note { font-size: 0.875rem; color: #6b7280; margin-bottom: 1rem; }
.saved-addresses { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.saved-address-option { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; }
.saved-address-label { font-size: 0.875rem; line-height: 1.4; }
.badge-default { display: inline-block; font-size: 0.7rem; font-weight: 600; background: #e0e7ff; color: #3730a3; border-radius: 6px; padding: 0.1em 0.5em; margin-left: 0.5rem; }
.payment-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem; border: 1.5px solid #e5e7eb; border-radius: 8px; cursor: pointer; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.payment-option input:checked + .payment-option-label { font-weight: 600; }
.payment-option:has(input:checked) { border-color: var(--color-primary, #0050d0); background: #eff6ff; }
.checkout-note { font-size: 0.8125rem; margin-top: 0.5rem; }
.checkout-summary { background: #f9fafb; border: 1.5px solid #f3f4f6; border-radius: 12px; padding: 1.5rem; position: sticky; top: 100px; }
.checkout-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; }
.checkout-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.checkout-item-info { flex: 1; }
.checkout-item-name { font-size: 0.875rem; font-weight: 500; margin-bottom: 0.1rem; }
.checkout-item-variant { font-size: 0.78rem; }
.checkout-item-price { font-size: 0.9rem; font-weight: 600; flex-shrink: 0; }
.checkout-summary-divider { border: none; border-top: 1.5px solid #e5e7eb; margin: 1rem 0; }
.checkout-summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.6rem; }
.checkout-summary-total { font-weight: 700; font-size: 1.05rem; padding-top: 0.6rem; border-top: 1.5px solid #e5e7eb; margin-top: 0.2rem; margin-bottom: 1.25rem; }

/* ─── Order confirmation ───────────────────────────────────────── */
.confirmation-wrap { max-width: 600px; margin: 3rem auto; text-align: center; }
.confirmation-icon { color: #22c55e; margin-bottom: 1rem; }
.confirmation-icon svg { display: inline-block; }
.confirmation-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.4rem; }
.confirmation-number { font-size: 1.05rem; margin-bottom: 0.5rem; }
.confirmation-notice { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; text-align: left; font-size: 0.9rem; }
.confirmation-notice strong { display: block; margin-bottom: 0.5rem; }
.confirmation-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ─── Order status badges ──────────────────────────────────────── */
.order-status { display: inline-block; font-size: 0.78rem; font-weight: 600; border-radius: 6px; padding: 0.15em 0.6em; }
.order-status--pending    { background: #fef3c7; color: #92400e; }
.order-status--processing { background: #dbeafe; color: #1e40af; }
.order-status--shipped    { background: #e0e7ff; color: #3730a3; }
.order-status--delivered  { background: #dcfce7; color: #166534; }
.order-status--cancelled  { background: #fee2e2; color: #991b1b; }
.order-status--unpaid     { background: #fef3c7; color: #92400e; }
.order-status--paid       { background: #dcfce7; color: #166534; }

/* ─── Order detail ─────────────────────────────────────────────── */
.order-detail-card { background: #f9fafb; border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0; text-align: left; }
.order-detail-meta { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.order-detail-row { display: flex; gap: 1rem; font-size: 0.9rem; }
.order-detail-row .label { min-width: 90px; color: #6b7280; font-weight: 500; flex-shrink: 0; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .order-detail-grid { grid-template-columns: 1fr; } }
.order-detail-address-card { background: #f9fafb; border-radius: 10px; padding: 1rem 1.25rem; }
.order-detail-address-card h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; }
.order-items-list { display: flex; flex-direction: column; gap: 0; }
.order-item-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; }
.order-item-row:last-child { border-bottom: none; }
.order-item-name { flex: 1; font-size: 0.9rem; font-weight: 500; }
.order-item-row--total { border-top: 2px solid #e5e7eb; font-weight: 700; font-size: 1rem; }
.order-item-row--sub { font-size: 0.875rem; color: #6b7280; }
.order-item-row--sub span:first-child { flex: 1; }

/* ─── Account portal ───────────────────────────────────────────── */
.account-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; margin-top: 2rem; margin-bottom: 3rem; align-items: start; }
@media (max-width: 768px) { .account-wrap { grid-template-columns: 1fr; } }
.account-sidebar { background: #f9fafb; border: 1.5px solid #f3f4f6; border-radius: 12px; padding: 1.5rem; }
.account-sidebar-user { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.account-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary, #0050d0);
  color: #fff; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.account-sidebar-name { font-weight: 600; font-size: 0.9rem; margin: 0; }
.account-sidebar-email { font-size: 0.78rem; margin: 0; }
.account-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.account-nav-link {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.75rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: #374151;
  transition: background 0.12s, color 0.12s;
}
.account-nav-link:hover { background: #f3f4f6; }
.account-nav-link.is-active { background: #eff6ff; color: var(--color-primary, #0050d0); font-weight: 600; }
.account-logout-form { margin-top: 1.5rem; padding-top: 1rem; border-top: 1.5px solid #f3f4f6; }
.account-logout-btn { background: none; border: none; cursor: pointer; font-size: 0.875rem; color: #6b7280; padding: 0; }
.account-logout-btn:hover { color: #e53e3e; }
.account-content { min-width: 0; }
.account-page-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.account-stat { background: #f9fafb; border: 1.5px solid #f3f4f6; border-radius: 10px; padding: 1rem; text-align: center; }
.account-stat-value { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.2rem; }
.account-stat-label { font-size: 0.8125rem; color: #6b7280; margin: 0; }
.account-section { margin-bottom: 2rem; }
.account-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.account-section-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.account-section-link { font-size: 0.875rem; color: var(--color-primary, #0050d0); font-weight: 600; text-decoration: none; }
.account-back-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; color: #6b7280; text-decoration: none; }
.account-back-link:hover { color: #374151; }
.pagination-wrap { margin-top: 1.5rem; }
.profile-form { max-width: 520px; }

/* ─── Orders table ─────────────────────────────────────────────── */
.orders-table-wrap { overflow-x: auto; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.orders-table th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid #e5e7eb; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; white-space: nowrap; }
.orders-table td { padding: 0.75rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.order-number-link { font-weight: 600; color: var(--color-primary, #0050d0); text-decoration: none; }
.order-number-link:hover { text-decoration: underline; }

/* ─── Address book ─────────────────────────────────────────────── */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.address-card { border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.address-card--default { border-color: var(--color-primary, #0050d0); background: #eff6ff; }
.address-card--add { border-style: dashed; display: flex; align-items: center; justify-content: center; min-height: 160px; }
.address-add-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; background: none; border: none; cursor: pointer; color: #6b7280; font-size: 0.9rem; padding: 1rem; }
.address-add-btn:hover { color: var(--color-primary, #0050d0); }
.address-card-body p { margin: 0.2rem 0; font-size: 0.875rem; }
.address-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.address-action-btn { background: none; border: 1px solid #d1d5db; border-radius: 6px; padding: 0.3rem 0.75rem; font-size: 0.8rem; cursor: pointer; color: #374151; }
.address-action-btn:hover { border-color: #6b7280; }
.address-action-btn--danger { color: #e53e3e; }
.address-action-btn--danger:hover { border-color: #e53e3e; background: #fef2f2; }
/* Address modal */
.address-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; }
.address-modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #fff; border-radius: 14px; padding: 2rem;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; z-index: 201; box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}
.address-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.address-modal-header h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.address-modal-close { background: none; border: none; cursor: pointer; color: #6b7280; padding: 0.25rem; }
.address-modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
@media (max-width: 540px) { .address-modal { padding: 1.25rem; } }

/* ─── Product detail page ──────────────────────────────────────── */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 1.5rem; align-items: start; }
@media (max-width: 768px) { .product-detail-layout { grid-template-columns: 1fr; } }
.product-main-img-wrap { background: #f9fafb; border-radius: 12px; overflow: hidden; }
.product-main-img-wrap img { width: 100%; height: auto; display: block; }
.product-main-img-wrap video { width: 100%; height: auto; display: block; max-height: 540px; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.gallery-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; cursor: pointer; background: #f9fafb; overflow: hidden; }
.gallery-thumb.is-active { border-color: var(--color-primary, #0050d0); }
.gallery-thumb img { width: 72px; height: 72px; object-fit: cover; display: block; }
.gallery-thumb-video-icon { width: 72px; height: 72px; background: #1e293b; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); }
.product-content-section { margin-top: 3rem; border-top: 1.5px solid #f3f4f6; padding-top: 2rem; }
.product-specs { margin-bottom: 2rem; }
.product-specs-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.product-specs-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.product-specs-table th,
.product-specs-table td { padding: 0.6rem 1rem; border-bottom: 1px solid #f3f4f6; text-align: left; }
.product-specs-table th { width: 35%; font-weight: 600; color: #374151; background: #f9fafb; }
.product-specs-table td { color: #1f2937; }
.product-rich-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 0.5rem 0; }
.product-rich-desc h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.product-rich-desc h3 { font-size: 1rem; font-weight: 700; margin-top: 1.25rem; margin-bottom: 0.4rem; }
.product-rich-desc ul, .product-rich-desc ol { padding-left: 1.5rem; margin: 0.75rem 0; }
.product-rich-desc li { margin-bottom: 0.25rem; }
.product-rich-desc a { color: var(--color-primary, #0050d0); text-decoration: underline; }
.product-rich-desc blockquote { border-left: 3px solid #e5e7eb; padding-left: 1rem; color: #6b7280; margin: 1rem 0; }
.product-detail-price { margin: 0.75rem 0 1rem; }
.price-main { font-size: 1.5rem; font-weight: 700; }
.compare-at { text-decoration: line-through; font-size: 1rem; margin-left: 0.4rem; }
.product-short-desc { color: #374151; margin-bottom: 1rem; }
.variant-selector { margin-bottom: 1rem; }
.variant-selector-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; }
.variant-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variant-option {
  padding: 0.35rem 0.9rem; border: 1.5px solid #d1d5db; border-radius: 6px;
  background: #fff; cursor: pointer; font-size: 0.875rem;
}
.variant-option:hover { border-color: #6b7280; }
.variant-option.is-selected { border-color: var(--color-primary, #0050d0); background: #eff6ff; color: var(--color-primary, #0050d0); font-weight: 600; }
.variant-stock-msg { font-size: 0.8rem; margin-top: -0.5rem; margin-bottom: 0.75rem; }
.product-add-row { display: flex; gap: 1rem; align-items: center; margin-top: 0.5rem; }
.qty-control { display: flex; border: 1.5px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.product-add-btn { flex: 1; }
.product-meta { font-size: 0.8rem; margin-top: 0.75rem; }
.product-desc { margin-top: 1.25rem; font-size: 0.9375rem; line-height: 1.7; }
.product-rich-desc { font-size: 0.9375rem; line-height: 1.7; }

/* ─── Track order ──────────────────────────────────────────────── */
.track-order-wrap { max-width: 540px; margin: 3rem auto; }
.track-form { margin: 1.5rem 0 2rem; }
.track-result { margin-top: 1.5rem; border: 1.5px solid #e5e7eb; border-radius: 12px; padding: 1.5rem; }
.track-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.track-result-header h2 { font-size: 1.1rem; font-weight: 700; margin: 0; }
