/* ============================================================
  Novalis Digital — Main Stylesheet
  ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --sage: #A8C3A0;
  --sage-deep: #7FA075;
  --sage-dark: #5F7A56;
  --terracotta: #C97C5D;
  --terracotta-light: #D9A5A5;
  --cream: #FFF8F1;
  --gray-light: #F5F2ED;
  --gray-medium: #E8E3DB;
  --gray-border: #D6D0C6;
  --text-dark: #2F2F2F;
  --text-muted: #767676;
  --white: #fff;
  --star-color: #E29578;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-header: 0 4px 24px rgba(0, 0, 0, 0.06);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 250ms var(--ease-out);

  --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover {
  opacity: 0.85;
}

ul {
  list-style: none;
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Typography (Fluid & Responsive) ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw + 0.2rem, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

h3 {
  font-size: clamp(1.2rem, 2vw + 0.1rem, 1.45rem);
  margin-bottom: 0.4rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

p.lead {
  font-size: clamp(1rem, 1.5vw + 0.2rem, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.highlight {
  position: relative;
  white-space: nowrap;
}

.highlight svg {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.text-center {
  text-align: center;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section-tight {
  padding: 60px 0;
}

section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head.left {
  text-align: left;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: all 250ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--text-dark);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  opacity: 1;
}

.btn-outline {
  border: 1.5px solid var(--gray-border);
  color: var(--text-dark);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text-dark);
  background: var(--gray-light);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-ghost-light {
  border: 1.5px solid var(--gray-border);
  color: var(--text-dark);
  background: transparent;
}

.btn-ghost-light:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  opacity: 1;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* ---------- Site Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 227, 219, 0.7);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
  background: rgba(255, 255, 255, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.02);
  opacity: 1;
}

.logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: rotate(6deg);
}

.logo span {
  line-height: 1.1;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 4px 2px;
  transition: color 200ms ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  transition: left 250ms var(--ease-out), right 250ms var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 0;
  right: 0;
}

.nav-links a:hover {
  color: var(--terracotta);
  opacity: 1;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-nav .divider {
  width: 1px;
  height: 22px;
  background: var(--gray-border);
  margin-right: 2px;
}

@media (max-width: 640px) {
  .auth-nav .divider {
    display: none;
  }
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all 200ms var(--ease-out);
}

.icon-btn:hover {
  background: var(--gray-light);
  transform: scale(1.08);
  opacity: 1;
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 200ms ease;
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--terracotta);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(201, 124, 93, 0.4);
  animation: badgePop 300ms var(--ease-out);
}

@keyframes badgePop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, transform 200ms ease;
}

.nav-toggle:hover {
  background: var(--gray-light);
}

.nav-toggle:active {
  transform: scale(0.92);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Mobile Off-Canvas Drawer ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 1.35rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out), visibility 300ms;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-menu a {
  color: var(--white);
  padding: 8px 24px;
  border-radius: var(--radius-md);
  transition: transform 200ms ease, background 200ms ease;
  transform: translateY(12px);
  opacity: 0;
}

.mobile-menu.open a {
  transform: translateY(0);
  opacity: 1;
  transition: transform 300ms var(--ease-out), opacity 300ms ease, background 200ms ease;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: transform 200ms ease, background 200ms ease;
}

.close-menu:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.close-menu svg {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 72px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  margin-top: 14px;
}

.hero-trust {
  display: flex;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-trust > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--sage-deep);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-art svg {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.07));
  transition: transform 0.5s var(--ease-out);
}

.hero-art:hover svg {
  transform: scale(1.02) rotate(-0.5deg);
}

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  padding: 11px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.float-card svg {
  width: 18px;
  height: 18px;
}

.float-card.c1 {
  bottom: 24px;
  left: 40px;
  animation: floatSmooth 4.5s ease-in-out infinite;
}

.float-card.c2 {
  top: 24px;
  right: 30px;
  animation: floatSmoothRev 5s ease-in-out infinite;
}

@keyframes floatSmooth {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes floatSmoothRev {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(10px) rotate(-1deg); }
}

/* ---------- Product Card ---------- */
/* ---------- Product Card ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms ease;
  border: 1px solid rgba(214, 208, 198, 0.4);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(201, 124, 93, 0.3);
}

.product-thumb {
  position: relative;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-thumb img,
.product-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms var(--ease-out);
}

.product-card:hover .product-thumb img,
.product-card:hover .product-thumb svg {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-best {
  background: var(--sage);
  color: var(--white);
}

.badge-new {
  background: var(--terracotta);
  color: var(--white);
}

.badge-sale {
  background: var(--terracotta-light);
  color: var(--white);
}

.badge-download {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.badge-download svg {
  width: 13px;
  height: 13px;
}

.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.icon-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 250ms var(--ease-out);
}

.icon-round:hover {
  background: var(--white);
  transform: scale(1.12);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12);
}

.icon-round:active {
  transform: scale(0.92);
}

.icon-round svg {
  width: 17px;
  height: 17px;
  transition: transform 250ms ease, fill 250ms ease;
}

.icon-round.active svg,
.icon-round.wishlist-active svg {
  fill: var(--terracotta);
  color: var(--terracotta);
  animation: heartBounce 400ms var(--ease-out);
}

@keyframes heartBounce {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

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

.diff {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage-deep);
  margin-bottom: 4px;
}

.product-info h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-weight: 600;
  transition: color 200ms ease;
}

.product-card:hover .product-info h4 {
  color: var(--terracotta);
}

.stars {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.starrow {
  color: var(--star-color);
  letter-spacing: 2px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.price .old {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 8px;
}

.add-cart-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 250ms var(--ease-out);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.add-cart-mini:hover {
  background: var(--sage-dark);
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 4px 12px rgba(95, 122, 86, 0.35);
}

.add-cart-mini:active {
  transform: scale(0.92);
}

.add-cart-mini svg {
  width: 17px;
  height: 17px;
}

/* ---------- Category Grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 208, 198, 0.3);
  transition: all 300ms var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cat-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: rgba(168, 195, 160, 0.4);
}

.cat-icon {
  margin-bottom: 12px;
  transition: transform 350ms var(--ease-out);
}

.cat-card:hover .cat-icon {
  transform: scale(1.15) translateY(-2px);
}

.cat-icon svg {
  width: 36px;
  height: 36px;
}

.cat-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cat-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Thread Divider ---------- */
.thread-divider {
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
}

.ficon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ficon svg {
  width: 20px;
  height: 20px;
  color: var(--sage-deep);
}

.feature-card h4 {
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.step {
  text-align: center;
  max-width: 220px;
  flex-shrink: 0;
}

.step svg {
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
}

.step h4 {
  margin-bottom: 4px;
}

.step p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.step-connector {
  flex: 0 0 80px;
}

.step-connector svg {
  width: 100%;
  height: 24px;
}

/* ---------- Testimonial Slider ---------- */
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
}

.testimonial .stars {
  margin-bottom: 10px;
}

.quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 16px;
}

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

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.name {
  font-weight: 600;
  font-size: 0.9rem;
}

.loc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 6px;
}

.newsletter p {
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--sage);
}

.newsletter-form button {
  padding: 12px 28px;
  background: var(--text-dark);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #444;
}

/* ---------- Instagram Grid ---------- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.insta-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.insta-item svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: var(--sage);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.cta-banner .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--text-dark);
}

.cta-banner .btn-primary:hover {
  background: var(--cream);
}

.cta-banner .btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.cta-banner .btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--cream);
  padding: 40px 0 36px;
}

.page-hero h1 {
  margin-bottom: 6px;
}

.page-hero p {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-hero p svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--text-dark);
}

/* ---------- Shop Layout ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: flex-start;
}

.filter-panel {
  position: sticky;
  top: 90px;
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  transition: var(--transition);
}

.filter-search:focus-within {
  border-color: var(--sage);
}

.filter-search svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.filter-search input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
}

.check-row {
  display: block;
  font-size: 0.88rem;
  padding: 3px 0;
  cursor: pointer;
}

.check-row input {
  margin-right: 6px;
  vertical-align: middle;
}

.range-row {
  padding-top: 4px;
}

.range-row input {
  width: 100%;
  accent-color: var(--sage-deep);
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--gray-light);
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.tag-pill:hover {
  background: var(--sage);
  color: var(--white);
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.result-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.shop-toolbar select {
  padding: 6px 12px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
  outline: none;
}

/* ---------- Product Detail ---------- */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

.pd-gallery-main {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pd-gallery-main svg {
  width: 100%;
  height: auto;
  display: block;
}

.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pd-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-light);
}

.pd-thumb.active {
  border-color: var(--sage-deep);
}

.pd-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pd-info h1 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.pd-info .stars {
  margin-bottom: 12px;
}

.pd-price-row {
  margin-bottom: 16px;
}

.pd-price-row .price {
  font-size: 1.6rem;
}

.pd-meta-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.pd-meta-table div {
  display: flex;
  gap: 6px;
}

.pd-meta-table span {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .container {
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-icons {
    gap: 6px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .hero-art {
    order: -1;
  }

  .float-card.c1 {
    left: 18px;
    bottom: 8px;
  }

  .float-card.c2 {
    right: 18px;
    top: 8px;
  }

  .product-grid {
    gap: 18px;
  }

  .product-card {
    border-radius: 12px;
  }

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

  .filter-panel {
    position: relative;
    top: auto;
    margin-bottom: 18px;
  }

  .pd-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pd-thumbs {
    gap: 8px;
    justify-content: center;
  }

  .pd-thumb {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .logo span {
    font-size: 1rem;
  }

  .nav-icons {
    gap: 8px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-trust {
    flex-direction: column;
    gap: 10px;
  }

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

  .product-thumb {
    aspect-ratio: 1 / 1;
  }

  .pd-gallery-main img,
  .pd-gallery-main svg {
    width: 100%;
    height: auto;
  }

  .newsletter {
    padding: 28px 18px;
  }

  .cta-banner {
    padding: 28px 18px;
  }

  .mobile-menu {
    padding-top: 48px;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .logo svg {
    width: 28px;
    height: 28px;
  }

  .logo span {
    font-size: 0.95rem;
  }

  .pd-thumb {
    width: 48px;
    height: 48px;
  }

  .pd-price-row .price {
    font-size: 1.25rem;
  }

  .btn {
    padding: 10px 16px;
  }
}

.pd-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pd-trust {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pd-trust>div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pd-trust svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Product Tabs */
.pd-tabs {
  margin-top: 48px;
}

.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1.5px solid var(--gray-medium);
  margin-bottom: 24px;
}

.tab-nav button {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tab-nav button.active,
.tab-nav button:hover {
  color: var(--text-dark);
  border-bottom-color: var(--terracotta);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel p {
  max-width: 660px;
}

.tab-panel ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1rem;
}

.tab-panel ul li {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tab-panel p strong {
  color: var(--text-dark);
}

/* ---------- Cart ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: flex-start;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-medium);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--gray-light);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-thumb svg {
  width: 100%;
  height: 100%;
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

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

.cart-item-price {
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--terracotta);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.empty-state h3 {
  margin-bottom: 4px;
}

.empty-state p {
  margin-bottom: 20px;
}

/* ---------- Order Summary ---------- */
.order-summary {
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.order-summary h3 {
  margin-bottom: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 6px 0;
}

.summary-line.total {
  border-top: 1.5px solid var(--gray-border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 600;
  font-size: 1.1rem;
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.coupon-row input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
}

.coupon-row input:focus {
  border-color: var(--sage);
}

/* ---------- Checkout ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--white);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--sage);
}

.form-field textarea {
  resize: vertical;
}

.pd-trust {
  margin-top: 12px;
}

/* ---------- Contact ---------- */
.js-contact-sent {
  display: none;
}

/* ---------- FAQ Accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--gray-medium);
}

.accordion-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}

.accordion-q:hover {
  opacity: 0.7;
}

.accordion-q svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.accordion-q.open svg {
  transform: rotate(45deg);
}

.accordion-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease, padding 250ms ease;
}

.accordion-a.open {
  max-height: 300px;
  padding: 0 0 16px;
}

.accordion-a p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.blog-thumb svg {
  width: 100%;
  height: auto;
  display: block;
}

.blog-body {
  padding: 18px 20px;
}

.blog-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage-deep);
  margin-bottom: 4px;
}

.blog-body h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.blog-body p {
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 24px;
  margin-top: 20px;
}

.site-footer .logo {
  color: var(--white);
}

.site-footer .about-p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 320px;
  margin: 14px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--sage);
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
}

.footer-social a:hover {
  border-color: var(--sage);
  background: rgba(255, 255, 255, 0.05);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 36px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.payment-icons {
  display: flex;
  gap: 14px;
}

/* ---------- Scroll Reveal & Stagger Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 300ms; }
.reveal.delay-4 { transition-delay: 400ms; }

/* Shimmer Loading Skeleton */
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(214, 208, 198, 0.3);
}

.skeleton-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0ede8 25%, #f8f6f2 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line {
  height: 14px;
  margin: 12px 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0ede8 25%, #f8f6f2 50%, #f0ede8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-line.short { width: 45%; }
.skeleton-line.medium { width: 70%; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-art {
    margin-top: 10px;
  }

  .float-card.c1 {
    bottom: 12px;
    left: 12%;
  }

  .float-card.c2 {
    top: 12px;
    right: 12%;
  }

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

  .filter-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
  }

  .pd-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section-tight {
    padding: 44px 0;
  }

  section {
    padding: 56px 0;
  }

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

  .product-info {
    padding: 12px 14px 14px;
  }

  .product-info h4 {
    font-size: 0.95rem;
  }

  .price {
    font-size: 1.05rem;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .cat-card {
    padding: 20px 12px;
  }

  .steps {
    flex-direction: column;
    gap: 24px;
  }

  .step {
    max-width: 100%;
  }

  .step-connector {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .pd-meta-table {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .tab-nav {
    overflow-x: auto;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .tab-nav button {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  .cta-banner {
    padding: 40px 20px;
    text-align: center;
  }

  .newsletter {
    padding: 36px 20px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }

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

  .product-card {
    border-radius: var(--radius-md);
  }

  .badge {
    top: 8px;
    left: 8px;
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .badge-download {
    display: none;
  }

  .product-actions {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .icon-round {
    width: 32px;
    height: 32px;
  }

  .icon-round svg {
    width: 15px;
    height: 15px;
  }

  .add-cart-mini {
    width: 32px;
    height: 32px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .float-card {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .float-card.c1 {
    left: 4px;
    bottom: 8px;
  }

  .float-card.c2 {
    right: 4px;
    top: 8px;
  }

  .pd-actions {
    flex-direction: column;
    width: 100%;
  }

  .pd-actions .btn {
    width: 100%;
  }

  /* Responsive Cart and Orders Table as Stacked Cards on Small Screens */
  .cart-table thead,
  .orders-table thead {
    display: none;
  }

  .cart-table tr,
  .orders-table tr {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
  }

  .cart-table td,
  .orders-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-medium);
  }

  .cart-table td:last-child,
  .orders-table td:last-child {
    border-bottom: none;
  }
}

/* ---------- Enhanced Form Inputs & Accessibility ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-size: 16px; /* Minimum 16px prevents iOS Safari automatic page zoom */
  transition: border-color 200ms ease, box-shadow 200ms ease;
  background: var(--white);
  color: var(--text-dark);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3.5px rgba(127, 160, 117, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
}

.form-error {
  display: block;
  font-size: 0.85rem;
  color: #dc3545;
  margin-top: 4px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  margin-bottom: 18px;
  animation: slideDown 300ms var(--ease-out);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-error {
  background: #fdf2f2;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.alert-success {
  background: #f3faf7;
  color: #03543f;
  border: 1px solid #84e1bc;
}

.alert-warning {
  background: #fdf6b2;
  color: #723b13;
  border: 1px solid #fce96b;
}

.alert-info {
  background: #edf5fd;
  color: #1e429f;
  border: 1px solid #a4cafe;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-dark);
}

.form-field small {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn.loading::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 600ms linear infinite;
}

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

/* Accessibility Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2.5px solid var(--sage-deep);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--text-dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 200ms ease;
}

.skip-link:focus {
  top: 12px;
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print styles */
@media print {
  .nav-toggle,
  .site-header,
  .mobile-menu,
  .cta-banner,
  .site-footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* ==========================================================================
   Comprehensive Mobile & Small Device Responsiveness (Down to 320px)
   ========================================================================== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    text-align: center;
  }
  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .pd-layout {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .pd-gallery-main img {
    max-height: 400px;
    object-fit: cover;
    margin: 0 auto;
  }
  .article-container {
    padding: 30px 16px 50px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 0;
  }
  .logo svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .logo span {
    font-size: 1.05rem;
  }
  .nav-icons {
    gap: 6px;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
  .icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .auth-nav .btn {
    display: none;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.6rem, 5.5vw, 2rem) !important;
    line-height: 1.25;
  }
  h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.6rem) !important;
  }
  .container {
    padding: 0 14px;
  }
  .hero {
    padding: 24px 0 36px;
  }
  .hero-trust {
    font-size: 0.78rem;
    gap: 8px 12px;
  }
  .float-card {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .product-card .card-body {
    padding: 10px !important;
  }
  .product-card .card-title {
    font-size: 0.88rem !important;
    margin-bottom: 4px;
  }
  .product-card .card-price {
    font-size: 0.95rem !important;
  }
  .product-card .btn-sm {
    padding: 5px 8px !important;
    font-size: 0.75rem !important;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .cat-card {
    padding: 14px 8px !important;
  }
  .auth-card {
    padding: 24px 16px !important;
    border-radius: var(--radius-lg);
  }
  .auth-card input {
    font-size: 1rem;
  }
  .pd-specs-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .spec-item {
    padding: 10px 12px !important;
  }
  .spec-item strong {
    font-size: 0.72rem !important;
  }
  .spec-item span {
    font-size: 0.9rem !important;
  }
  .pd-details-box {
    padding: 20px 14px !important;
  }
  .category-hero {
    padding: 30px 0 20px !important;
  }
  .category-hero h1 {
    font-size: 1.55rem !important;
  }
  .category-nav-chips {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-nav-chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    white-space: nowrap !important;
    flex-shrink: 0;
    font-size: 0.8rem;
    padding: 5px 12px;
  }
  .article-header h1 {
    font-size: 1.6rem !important;
  }
  .article-body {
    font-size: 0.98rem !important;
    line-height: 1.75;
  }
  .article-body h2 {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  .cat-grid {
    grid-template-columns: 1fr !important;
  }
  .logo span {
    font-size: 0.92rem;
  }
  .logo svg {
    width: 26px;
    height: 26px;
  }
  .nav-icons {
    gap: 4px;
  }
}