/* =========================================================
   NUVORA — Master Design System (v3 AI-Modern Vibrant Theme)
   ========================================================= */

:root {
  --bg: #F7F7FF;
  --surface: #FFFFFF;
  --ink: #0E0B2B;
  --ink-2: #3D3A62;
  --muted: #6B6890;
  --placeholder: #9C98B8;
  --line: #E8E6F7;
  --line-2: #DAD6F2;

  --violet: #6C4DFF;
  --purple: #B53CFF;
  --pink: #FF4D9D;
  --orange: #FF7A3D;
  --cyan: #16C5FF;
  --lime: #C6F432;
  --yellow: #FFE45C;
  --mint: #0FA968;

  --grad: linear-gradient(120deg, #6C4DFF 0%, #B53CFF 40%, #FF4D9D 72%, #FF8A3D 100%);
  --grad-cool: linear-gradient(125deg, #16C5FF 0%, #6C4DFF 100%);
  --grad-warm: linear-gradient(125deg, #FF4D9D 0%, #FF8A3D 100%);
  --grad-soft: linear-gradient(135deg, #EFEAFF 0%, #FFE7F5 55%, #FFF0E4 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));

  /* vivid pastel image stages */
  --t-peach: #FFE3D3;
  --t-mint: #D5FAE8;
  --t-sky: #D6F1FF;
  --t-lemon: #FFF4C2;
  --t-rose: #FFDDF0;
  --t-sand: #F4ECFF;
  --t-lilac: #E6E0FF;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(14, 11, 43, 0.05);
  --shadow: 0 20px 44px -18px rgba(76, 52, 200, 0.35);
  --shadow-lg: 0 30px 60px -20px rgba(76, 52, 200, 0.45);
  --glow: 0 12px 30px -8px rgba(181, 60, 255, 0.55);
  --glow-warm: 0 12px 30px -8px rgba(255, 77, 157, 0.55);

  --container: 1320px;
  --gutter: 24px;
  --f-display: 'Sora', system-ui, -apple-system, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Aurora background glow */
body::before {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 120vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 8% 6%, rgba(108, 77, 255, 0.22), transparent 70%),
    radial-gradient(34% 30% at 92% 4%, rgba(255, 77, 157, 0.20), transparent 70%),
    radial-gradient(40% 36% at 70% 60%, rgba(22, 197, 255, 0.14), transparent 70%),
    radial-gradient(30% 30% at 15% 80%, rgba(255, 138, 61, 0.12), transparent 70%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Global Placeholder Hierarchy — Non-dominating, soft subtle hint */
::placeholder {
  color: var(--placeholder) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

::-webkit-input-placeholder {
  color: var(--placeholder) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

::-moz-placeholder {
  color: var(--placeholder) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

:-ms-input-placeholder {
  color: var(--placeholder) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

label,
.form-label,
.form-group label {
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 2px;
  border-radius: 8px;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gt {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gt-cool {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gt-warm {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px -8px rgba(108, 77, 255, 0.45);
}

.ai-chip .icon {
  width: 16px;
  height: 16px;
  fill: url(#sparkGrad);
  stroke: none;
}

/* ---------- Image Placeholders ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 75% 15%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%),
    var(--tint, var(--t-lilac));
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ph.contain img {
  object-fit: contain;
}

.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 0;
  font: 600 11px/1 var(--f-body);
  color: rgba(14, 11, 43, 0.55);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 8px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  opacity: 0.25;
  z-index: 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C4DFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.1-3.1a2 2 0 0 0-2.8 0L6 21'/%3E%3C/svg%3E");
}

/* ---------- Buttons & Badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s, background-position 0.5s, box-shadow 0.25s, background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  border: none;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad);
  background-size: 180% 100%;
  background-position: 0 0;
  color: #fff;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 36px -8px rgba(255, 77, 157, 0.6);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(14, 11, 43, 0.6);
}

.btn-dark:hover {
  background: #231D55;
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border: 1.5px solid var(--line-2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--violet);
  color: var(--violet);
}

.btn-sm {
  height: 44px;
  padding: 0 20px;
  font-size: 14.5px;
}

.btn-xs {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 999px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--violet);
}

.link-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: 0.2s;
  color: var(--ink);
}

.round-btn:hover {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
}

/* Badges */
.p-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.p-badge.off {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(255, 77, 157, 0.8);
}

.p-badge.new {
  background: var(--grad-cool);
  color: #fff;
}

.p-badge.best {
  background: var(--yellow);
  color: var(--ink);
}

.p-badge.eco {
  background: #fff;
  color: var(--mint);
  border: 1px solid rgba(15, 169, 104, 0.3);
}

.badge-count {
  position: absolute;
  top: 4px;
  left: 26px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.badge-count.bump {
  animation: bump 0.45s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* ---------- Announcement Bar ---------- */
.announce {
  background: var(--grad);
  background-size: 200% 100%;
  animation: shift 10s ease-in-out infinite alternate;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}

@keyframes shift {
  to { background-position: 100% 0; }
}

.announce .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 16px;
}

.announce b {
  background: #fff;
  color: var(--purple);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.announce-center {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}

.announce-center .icon {
  width: 16px;
  height: 16px;
  color: #fff;
}

.announce-side {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.announce-side a:hover {
  color: #fff;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid rgba(218, 214, 242, 0.7);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 80px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--grad);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: var(--glow);
  flex: none;
}

.logo-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--lime);
  border: 2.5px solid #fff;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search {
  display: flex;
  align-items: center;
  height: 54px;
  border-radius: 999px;
  max-width: 700px;
  width: 100%;
  justify-self: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #DAD6F2, #DAD6F2) border-box;
  border: 1.5px solid transparent;
  transition: box-shadow 0.25s, background 0.25s;
}

.search:focus-within {
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: 0 10px 30px -10px rgba(108, 77, 255, 0.45);
}

.search select {
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 34px 0 22px;
  font-weight: 600;
  font-size: 14px;
  border-right: 1px solid var(--line);
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230E0B2B' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border-radius: 999px 0 0 999px;
  outline: none;
  cursor: pointer;
}

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

.search input::placeholder {
  color: #8E8BAE;
}

.ask-ai {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--violet);
  background: #F0ECFF;
  margin-right: 6px;
  white-space: nowrap;
  transition: 0.2s;
}

.ask-ai:hover {
  background: var(--grad);
  color: #fff;
}

.ask-ai .icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.search button[type=submit] {
  height: 42px;
  width: 42px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
  flex: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h-action {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 12px;
  border-radius: 14px;
  transition: background 0.2s;
  position: relative;
}

.h-action:hover {
  background: #F0ECFF;
}

.h-action .icon {
  width: 24px;
  height: 24px;
}

.h-action small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.1;
}

.h-action strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.cart-btn {
  background: var(--ink);
  color: #fff;
  padding: 0 18px 0 14px;
  margin-left: 6px;
  border-radius: 999px;
  box-shadow: 0 12px 26px -12px rgba(14, 11, 43, 0.6);
}

.cart-btn:hover {
  background: #231D55;
  color: #fff;
}

.cart-btn small {
  color: #B8B3E0;
}

.cart-btn .badge-count {
  border-color: var(--ink);
  background: var(--lime);
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.all-cats {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-right: 12px;
  position: relative;
  transition: 0.25s;
}

.all-cats:hover, .all-cats[aria-expanded="true"] {
  background: var(--grad);
  box-shadow: var(--glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-2);
  transition: 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--violet);
  background: #F0ECFF;
}

.nav-links a.hot {
  color: var(--pink);
}

.nav-links a.hot .icon {
  width: 16px;
  height: 16px;
  fill: var(--yellow);
  stroke: var(--pink);
}

.nav-links a.ai-link {
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  margin: 0 4px;
}

.nav-links a.ai-link span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nav-links a.ai-link .icon {
  width: 16px;
  height: 16px;
  fill: url(#sparkGrad);
  stroke: none;
}

.nav-links .tag {
  font-size: 10.5px;
  font-weight: 800;
  background: var(--lime);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 999px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  white-space: nowrap;
}

.nav-right a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-right a:hover {
  color: var(--violet);
}

.nav-right .icon {
  width: 18px;
  height: 18px;
}

/* Mega Menu */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(76, 52, 200, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.2s;
}

.mega.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega .container {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 40px;
  padding-top: 28px;
  padding-bottom: 32px;
}

.mega-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
}

.mega-cats a:hover, .mega-cats a.active {
  background: #F0ECFF;
  color: var(--violet);
}

.mega-cats a .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.mega-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mega-cols h4 {
  font-family: var(--f-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.mega-cols li a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: var(--ink-2);
}

.mega-cols li a:hover {
  color: var(--violet);
}

.mega-promo {
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--grad-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  position: relative;
  overflow: hidden;
}

.mega-promo .ph {
  position: absolute;
  inset: 0;
  background: transparent;
}

.mega-promo > *:not(.ph) {
  position: relative;
  z-index: 2;
}

.mega-promo h3 {
  font-size: 24px;
  margin: 6px 0 14px;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}

/* Mobile Drawer */
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(14, 11, 43, 0.45);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 86vw);
  background: #fff;
  z-index: 91;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 24px;
  overflow-y: auto;
}

body.drawer-open .drawer {
  transform: none;
}

body.drawer-open .drawer-bg {
  opacity: 1;
  visibility: visible;
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer a.dl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-2);
}

.drawer a.dl:hover {
  color: var(--violet);
}

.drawer a.dl .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap {
  padding: 18px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.breadcrumb a {
  color: var(--ink-2);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--violet);
}

.breadcrumb .sep {
  color: var(--line-2);
  display: flex;
  align-items: center;
}

.breadcrumb span[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- Product Card ---------- */
.pcard {
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(#EAE7F8, #EAE7F8) border-box;
  border: 1.5px solid transparent;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  color: var(--ink);
  position: relative;
}

.pcard:hover {
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  box-shadow: 0 26px 44px -22px rgba(108, 77, 255, 0.55);
  transform: translateY(-6px);
}

.pcard:hover .ph img {
  transform: scale(1.07);
}

.pcard .media {
  position: relative;
  margin: 8px;
  border-radius: 18px;
  overflow: hidden;
}

.pcard .ph {
  aspect-ratio: 1/1;
  border-radius: 18px;
}

.pcard .ph::after {
  font-size: 10px;
}

.p-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.wish {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, color 0.2s;
  color: var(--ink-2);
}

.wish:hover {
  transform: scale(1.12);
}

.wish .icon {
  width: 18px;
  height: 18px;
}

.wish.on {
  color: var(--pink);
}

.wish.on .icon {
  fill: var(--pink);
}

.quick {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  height: 44px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s;
  box-shadow: var(--glow);
}

.pcard:hover .quick, .quick:focus-visible {
  opacity: 1;
  transform: none;
}

.pbody {
  padding: 6px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcat {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.match {
  font-size: 11.5px;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pname {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0 8px;
  font-family: var(--f-body);
  letter-spacing: -0.01em;
}

.pname a:hover {
  color: var(--violet);
}

.prate {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.prate b {
  color: var(--ink);
  font-weight: 700;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: #FFB800;
  vertical-align: -2px;
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.swatches {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.swatches i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-2);
}

.pfoot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  gap: 8px;
}

.price-now {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.price-was {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}

.add {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #F0ECFF;
  color: var(--violet);
  display: grid;
  place-items: center;
  transition: 0.25s;
  flex: none;
}

.add:hover {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
  transform: rotate(90deg);
}

.add.done {
  background: var(--mint);
  color: #fff;
  transform: none;
}

.stock {
  margin-top: 12px;
}

.stock-bar {
  height: 8px;
  border-radius: 8px;
  background: #F0ECFF;
  overflow: hidden;
}

.stock-bar i {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: var(--grad);
  position: relative;
  overflow: hidden;
}

.stock-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: shine 2.2s ease-in-out infinite;
}

@keyframes shine {
  to { transform: translateX(100%); }
}

.stock-txt {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

.stock-txt b {
  color: var(--pink);
  font-weight: 800;
}

/* ---------- Recommendation Row & Compact Cards ---------- */
.recs-section {
  padding: 56px 0 0;
}

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

.recs-nav-wrap .link-arrow {
  margin-right: 6px;
}

.recs-row,
.products-row,
.recs-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 18px;
  position: relative;
}

.recs-row::-webkit-scrollbar,
.products-row::-webkit-scrollbar,
.recs-track::-webkit-scrollbar {
  display: none;
}

.recs-row > *,
.products-row > *,
.recs-track > * {
  scroll-snap-align: start;
}

/* Compact product card proportions for recommendation rows & compact grids */
.recs-row .pcard,
.products-row .pcard,
.recs-track .pcard,
.compact-recs .pcard {
  border-radius: 18px;
  max-width: 225px;
  width: 100%;
  box-shadow: 0 4px 14px rgba(14, 11, 43, 0.04);
}

.recs-row .pcard:hover,
.products-row .pcard:hover,
.recs-track .pcard:hover,
.compact-recs .pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(108, 77, 255, 0.35);
}

.recs-row .pcard .media,
.products-row .pcard .media,
.recs-track .pcard .media,
.compact-recs .pcard .media {
  margin: 6px;
  border-radius: 14px;
  height: 150px;
}

.recs-row .pcard .ph,
.products-row .pcard .ph,
.recs-track .pcard .ph,
.compact-recs .pcard .ph {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 14px;
}

.recs-row .pcard .ph img,
.products-row .pcard .ph img,
.recs-track .pcard .ph img,
.compact-recs .pcard .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recs-row .pcard .wish,
.products-row .pcard .wish,
.recs-track .pcard .wish,
.compact-recs .pcard .wish {
  width: 30px;
  height: 30px;
  top: 8px;
  right: 8px;
}

.recs-row .pcard .wish .icon,
.products-row .pcard .wish .icon,
.recs-track .pcard .wish .icon,
.compact-recs .pcard .wish .icon {
  width: 14px;
  height: 14px;
}

.recs-row .pcard .p-badges,
.products-row .pcard .p-badges,
.recs-track .pcard .p-badges,
.compact-recs .pcard .p-badges {
  top: 8px;
  left: 8px;
  gap: 4px;
}

.recs-row .pcard .p-badge,
.products-row .pcard .p-badge,
.recs-track .pcard .p-badge,
.compact-recs .pcard .p-badge {
  font-size: 10px;
  padding: 3px 7px;
}

.recs-row .pcard .quick,
.products-row .pcard .quick,
.recs-track .pcard .quick,
.compact-recs .pcard .quick {
  height: 32px;
  font-size: 12px;
  bottom: 6px;
  left: 6px;
  right: 6px;
  gap: 4px;
}

.recs-row .pcard .pbody,
.products-row .pcard .pbody,
.recs-track .pcard .pbody,
.compact-recs .pcard .pbody {
  padding: 4px 12px 12px;
}

.recs-row .pcard .pcat,
.products-row .pcard .pcat,
.recs-track .pcard .pcat,
.compact-recs .pcard .pcat {
  font-size: 11px;
}

.recs-row .pcard .match,
.products-row .pcard .match,
.recs-track .pcard .match,
.compact-recs .pcard .match {
  font-size: 10.5px;
}

.recs-row .pcard .pname,
.products-row .pcard .pname,
.recs-track .pcard .pname,
.compact-recs .pcard .pname {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 35px;
}

.recs-row .pcard .prate,
.products-row .pcard .prate,
.recs-track .pcard .prate,
.compact-recs .pcard .prate {
  font-size: 11.5px;
  gap: 4px;
}

.recs-row .pcard .stars svg,
.products-row .pcard .stars svg,
.recs-track .pcard .stars svg,
.compact-recs .pcard .stars svg {
  width: 12px;
  height: 12px;
}

.recs-row .pcard .swatches,
.products-row .pcard .swatches,
.recs-track .pcard .swatches,
.compact-recs .pcard .swatches {
  margin-top: 4px;
  gap: 4px;
}

.recs-row .pcard .swatches i,
.products-row .pcard .swatches i,
.recs-track .pcard .swatches i,
.compact-recs .pcard .swatches i {
  width: 12px;
  height: 12px;
}

.recs-row .pcard .pfoot,
.products-row .pcard .pfoot,
.recs-track .pcard .pfoot,
.compact-recs .pcard .pfoot {
  padding-top: 8px;
  margin-top: auto;
}

.recs-row .pcard .price-now,
.products-row .pcard .price-now,
.recs-track .pcard .price-now,
.compact-recs .pcard .price-now {
  font-size: 16px;
}

.recs-row .pcard .price-was,
.products-row .pcard .price-was,
.recs-track .pcard .price-was,
.compact-recs .pcard .price-was {
  font-size: 11.5px;
}

.recs-row .pcard .add,
.products-row .pcard .add,
.recs-track .pcard .add,
.compact-recs .pcard .add {
  width: 32px;
  height: 32px;
}

.recs-row .pcard .add .icon,
.products-row .pcard .add .icon,
.recs-track .pcard .add .icon,
.compact-recs .pcard .add .icon {
  width: 14px;
  height: 14px;
}

/* ---------- Trust Bar ---------- */
.trust {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 16px 40px -28px rgba(76, 52, 200, 0.4);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item .ti {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(181, 60, 255, 0.7);
}

.trust-item:nth-child(2) .ti {
  background: var(--grad-cool);
  box-shadow: 0 10px 22px -10px rgba(22, 197, 255, 0.7);
}

.trust-item:nth-child(3) .ti {
  background: linear-gradient(125deg, #0FA968, #16C5FF);
  box-shadow: 0 10px 22px -10px rgba(15, 169, 104, 0.7);
}

.trust-item:nth-child(4) .ti {
  background: var(--grad-warm);
  box-shadow: 0 10px 22px -10px rgba(255, 77, 157, 0.7);
}

.trust-item .ti .icon {
  width: 23px;
  height: 23px;
}

.trust-item strong {
  display: block;
  font-size: 15px;
}

.trust-item span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Process Stages & Tracking Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 36px 0 28px;
  position: relative;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
}

/* Connecting line between stages */
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px; /* Half of 36px dot */
  left: 50%;
  width: 100%;
  height: 0;
  border-top: 3px dotted #C4BFD6; /* Gray dotted line for pending */
  z-index: 1;
  transform: translateY(-50%);
}

/* Solid dark line until completed stage */
.timeline-step.done::after {
  border-top: 3px solid var(--ink); /* Dark solid line */
}

.timeline-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
  z-index: 2;
  position: relative;
}

.timeline-step.done .timeline-dot {
  background: var(--mint);
  border-color: var(--mint);
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 134, 90, 0.35);
}

.timeline-step.current .timeline-dot {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow);
}

.timeline-step strong {
  font-size: 13.5px;
  display: block;
}

.timeline-step small {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Newsletter ---------- */
.news {
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(50% 70% at 90% 20%, rgba(255, 228, 92, 0.55), transparent 70%),
    radial-gradient(45% 70% at 10% 100%, rgba(22, 197, 255, 0.55), transparent 70%),
    linear-gradient(120deg, #6C4DFF 0%, #B53CFF 50%, #FF4D9D 100%);
  box-shadow: 0 34px 60px -34px rgba(181, 60, 255, 0.9);
}

.news-copy {
  padding: 56px;
}

.news-copy h2 {
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.045em;
  margin: 10px 0 12px;
}

.news-copy .eyebrow {
  color: var(--yellow);
}

.news-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  max-width: 440px;
  margin-bottom: 28px;
}

.news-form {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  max-width: 520px;
  box-shadow: 0 18px 36px -16px rgba(14, 11, 43, 0.5);
}

.news-form label {
  flex: 1;
  display: flex;
}

.news-form input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0 20px;
  font-size: 15px;
  min-width: 0;
  background: transparent;
  color: var(--ink);
}

.news-small {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  flex-wrap: wrap;
}

.news-small span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-small .icon {
  width: 16px;
  height: 16px;
}

.news-media {
  position: relative;
}

.news-media .ph {
  position: absolute;
  inset: 0;
  background: transparent;
}

.news-media .ph::before {
  filter: brightness(10);
  opacity: 0.5;
}

.news-media .ph::after {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 96px;
  background: #0E0B2B;
  color: #C9C5E8;
  padding: 72px 0 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--grad);
}

footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -240px;
  width: 900px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(108, 77, 255, 0.35), transparent);
  z-index: -1;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}

footer .logo {
  color: #fff;
}

footer .logo-mark::after {
  border-color: #0E0B2B;
}

.foot-about p {
  margin: 18px 0 22px;
  max-width: 320px;
  font-size: 15px;
}

.foot-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  margin-bottom: 10px;
}

.foot-contact .icon {
  width: 18px;
  height: 18px;
  color: var(--pink);
}

footer h4 {
  font-family: var(--f-body);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0;
}

footer li a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  transition: color 0.2s;
}

footer li a:hover {
  color: #fff;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: 0.25s;
  color: #fff;
}

.socials a:hover {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
}

.socials .icon {
  width: 18px;
  height: 18px;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 28px;
  font-size: 13.5px;
  flex-wrap: wrap;
}

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

.pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  line-height: 0;
}
.pay-chip:hover {
  transform: translateY(-2px);
}
.pay-chip svg {
  width: 42px;
  height: 26px;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(14, 11, 43, 0.07));
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 200%);
  opacity: 0;
  visibility: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px -12px rgba(76, 52, 200, 0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2), opacity 0.3s, visibility 0.3s;
  max-width: calc(100% - 32px);
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.toast .tick {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  flex: none;
}

.toast .tick .icon {
  width: 18px;
  height: 18px;
}

.toast p {
  font-size: 14px;
  line-height: 1.3;
}

.toast p b {
  display: block;
}

.toast a {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Shopping Assistant (Nova) ---------- */
.ai-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 36px -10px rgba(181, 60, 255, 0.8);
  transition: transform 0.25s;
}

.ai-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #6C4DFF, #FF4D9D, #FF8A3D, #16C5FF, #6C4DFF);
  z-index: -1;
  filter: blur(10px);
  opacity: 0.7;
  animation: spin 6s linear infinite;
}

.ai-fab:hover {
  transform: scale(1.08);
}

.ai-fab .icon {
  width: 28px;
  height: 28px;
  fill: #fff;
  stroke: none;
}

.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 80;
  width: 350px;
  max-width: calc(100% - 32px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  box-shadow: 0 30px 60px -20px rgba(76, 52, 200, 0.5);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: 0.25s;
}

.ai-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--grad);
  color: #fff;
}

.ai-head .orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.ai-head .orb .icon {
  width: 20px;
  height: 20px;
  fill: #fff;
  stroke: none;
}

.ai-head strong {
  display: block;
  font-size: 15px;
}

.ai-head small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
}

.ai-head small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.ai-head button {
  margin-left: auto;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.ai-head button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-body {
  padding: 18px;
}

.ai-msg {
  background: #F3F0FF;
  border-radius: 18px 18px 18px 6px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 14px;
  line-height: 1.45;
}

.ai-sugs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-sugs button {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  color: var(--violet);
  transition: 0.2s;
}

.ai-sugs button:hover {
  background: var(--grad);
  color: #fff;
}

.ai-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  background: #fff;
}

.ai-input input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  min-width: 0;
  background: transparent;
}

.ai-input button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
}

/* Mobile Bottom Nav */
.bnav {
  display: none;
}

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

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 1480px) {
  .nav-right .hide-lg {
    display: none;
  }
}

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

@media (max-width: 1200px) {
  .header-main {
    gap: 20px;
  }
  .h-action .txt {
    display: none;
  }
  .cart-btn .txt {
    display: block;
  }
  .ask-ai span {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
  .foot-about {
    grid-row: span 2;
  }
}

@media (max-width: 1024px) {
  .nav-right {
    display: none;
  }
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item:nth-child(3) {
    border-left: 0;
  }
  .trust-item:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
  .mega .container {
    grid-template-columns: 220px 1fr;
  }
  .mega-promo {
    display: none;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 16px;
  }
  .announce-side {
    display: none;
  }
  .announce .container {
    justify-content: center;
    font-size: 12.5px;
  }
  .announce-center .long {
    display: none;
  }
  .header-main {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 64px auto;
    height: auto;
    gap: 8px;
    padding-top: 8px;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .menu-toggle .icon {
    width: 24px;
    height: 24px;
  }
  .logo {
    font-size: 23px;
  }
  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .logo-mark svg {
    width: 17px;
    height: 17px;
  }
  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 50px;
    max-width: none;
    margin-bottom: 12px;
  }
  .search select {
    display: none;
  }
  .header-main .logo {
    justify-self: start;
  }
  .header-nav, .mega {
    display: none;
  }
  .h-action.hide-sm {
    display: none;
  }
  .header-actions {
    grid-column: 3;
    grid-row: 1;
  }
  .cart-btn .txt {
    display: none;
  }
  .cart-btn {
    padding: 0 14px;
  }
  .news {
    grid-template-columns: 1fr;
  }
  .news-copy {
    padding: 36px 24px;
  }
  .news-media {
    min-height: 220px;
  }
  .news-form {
    flex-direction: column;
    gap: 6px;
    border-radius: 24px;
  }
  .news-form input {
    height: 48px;
  }
  .news-form .btn {
    width: 100%;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .foot-about {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  footer {
    padding-bottom: 72px;
    border-radius: 26px 26px 0 0;
  }
  .toast {
    bottom: 84px;
    width: calc(100% - 24px);
    max-width: 520px;
    border-radius: 12px;
    padding: 12px 14px;
    gap: 12px;
    justify-content: space-between;
  }
  .toast p {
    flex: 1;
    min-width: 0;
  }
  .toast a {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .ai-fab {
    bottom: 84px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .ai-panel {
    bottom: 150px;
    right: 16px;
  }
  .bnav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bnav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    padding: 6px 0;
    position: relative;
    min-height: 48px;
    justify-content: center;
  }
  .bnav a.active {
    color: var(--violet);
  }
  .bnav .icon {
    width: 22px;
    height: 22px;
  }
  .bnav .badge-count {
    left: calc(50% + 4px);
    top: 0;
    border-color: #fff;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 14px;
  }
  .trust {
    grid-template-columns: 1fr;
  }
  .trust-item + .trust-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .trust-item {
    padding: 16px 18px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .foot-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .pays {
    justify-content: center;
  }
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pbody {
    padding: 4px 10px 12px;
  }
  .pname {
    font-size: 14px;
  }
  .price-now {
    font-size: 17px;
  }
  .toast {
    width: calc(100% - 20px);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 10px;
  }
  .toast a {
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   TAX INVOICE MODAL & PRINT STYLES
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 11, 43, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.invoice-modal {
  background: #fff;
  max-width: 760px;
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: 0 25px 60px -15px rgba(14, 11, 43, 0.35);
  border: 1px solid var(--line);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.open .invoice-modal {
  transform: scale(1);
}

.invoice-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAF9FF;
}
.invoice-modal-header h3 {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.invoice-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 8px rgba(14, 11, 43, 0.08);
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex: none;
  padding: 0;
  outline: none;
}
.invoice-modal-close:hover {
  background: #ffffff;
  border-color: var(--violet);
  color: var(--violet);
  box-shadow: 0 4px 14px rgba(108, 77, 255, 0.22);
  transform: scale(1.08);
}
.invoice-modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.4;
  display: block;
}

.invoice-modal-body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
  font-size: 14px;
  background: #fff;
}

.invoice-sheet {
  background: #fff;
}
.invoice-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.invoice-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.invoice-brand .logo-mark {
  width: 38px;
  height: 38px;
}
.invoice-brand span.title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.invoice-title-block {
  text-align: right;
}
.invoice-title-block h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--violet);
  margin: 0 0 4px;
}
.invoice-title-block p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.invoice-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 13.5px;
}
.invoice-card-box {
  background: #FAF9FF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.invoice-card-box strong.box-title {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--violet);
  margin-bottom: 8px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 20px;
  font-size: 13.5px;
}
.invoice-table th {
  background: #F4F1FA;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-bottom: 1.5px solid var(--line-2);
}
.invoice-table th.num, .invoice-table td.num {
  text-align: right;
}
.invoice-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.invoice-totals-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.invoice-totals {
  width: 280px;
  font-size: 14px;
}
.invoice-totals .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--ink-2);
}
.invoice-totals .row.grand {
  border-top: 2px solid var(--line-2);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.invoice-footer-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.invoice-modal-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #FAF9FF;
}

@media (max-width: 640px) {
  .invoice-modal {
    max-height: 94vh;
    border-radius: var(--r);
  }
  .invoice-modal-header {
    padding: 14px 18px;
  }
  .invoice-modal-body {
    padding: 20px 16px;
  }
  .invoice-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .invoice-title-block {
    text-align: left;
  }
  .invoice-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .invoice-card-box {
    padding: 12px 16px;
  }
  .invoice-table {
    font-size: 12.5px;
  }
  .invoice-table th, .invoice-table td {
    padding: 8px 10px;
  }
  .invoice-totals {
    width: 100%;
  }
  .invoice-modal-actions {
    padding: 14px 18px;
  }
}

/* Print Rules */
@media print {
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  body * {
    visibility: hidden !important;
  }
  .modal-backdrop, .modal-backdrop * {
    visibility: visible !important;
  }
  .modal-backdrop {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    opacity: 1 !important;
  }
  .invoice-modal {
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
    max-height: none !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .invoice-modal-header, .invoice-modal-actions, .announce, .header, footer, .bnav, .ai-fab, .ai-panel {
    display: none !important;
  }
  .invoice-modal-body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .invoice-sheet {
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .invoice-brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .invoice-brand .logo-mark,
  .invoice-sheet .logo-mark {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    background: #FF5A5F !important;
    background: linear-gradient(135deg, #FF5A5F 0%, #FF9A3D 100%) !important;
    border: 1px solid #FF5A5F !important;
    box-shadow: none !important;
    display: inline-grid !important;
    place-items: center !important;
    position: relative !important;
    flex: none !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .invoice-brand .logo-mark::after,
  .invoice-sheet .logo-mark::after {
    background: #10B981 !important;
    border: 2px solid #ffffff !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .invoice-brand .logo-mark svg,
  .invoice-sheet .logo-mark svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2.4 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: block !important;
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .invoice-card-box {
    background: #FAF9FF !important;
    border: 1px solid #E2DEED !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .invoice-table th {
    background: #F4F1FA !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  @page {
    margin: 12mm;
    size: A4 portrait;
  }
}

/* =========================================================
   Global Form Elements & Placeholders
   ========================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14.5px;
  font-family: var(--f-body);
  color: var(--ink);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 16px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(108, 77, 255, 0.14);
}

.form-input::placeholder,
.form-textarea::placeholder,
.form-select::placeholder {
  color: var(--placeholder) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}



