/* Best Cart Discount - styles
   A clean, professional discount store in charcoal, crimson and teal on warm white.
   Tasteful plain CSS 3D: a hero with a real 3D wire shopping cart that rolls gently while deal boxes
   drop into it, a spinning 3D % price tag and floating real shopping photos, department cards whose
   icon cube rolls over on hover, gently tilting cards, framed photos that slide into view and small
   turning 3D carts on page banners. */
:root {
  --char: #16191F;
  --char-d: #0E1014;
  --char-l: #262B35;
  --red: #E0263A;
  --red-d: #B5162A;
  --red-l: #FDE8EA;
  --teal: #0F9D8F;
  --teal-d: #0B7A6F;
  --teal-l: #DDF3EF;
  --gold: #F4B740;
  --green: #138A5B;
  --bg: #F8F6F3;
  --paper: #FFFFFF;
  --ink: #1A1C22;
  --line: #E9E5DF;
  --muted: #62636B;
  --head: "Montserrat", Arial, sans-serif;
  --body: "Open Sans", Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 25, 31, .06), 0 10px 28px rgba(22, 25, 31, .08);
  --shadow-h: 0 2px 4px rgba(22, 25, 31, .08), 0 22px 44px rgba(22, 25, 31, .16);
  --darkbg: radial-gradient(circle at 90% 0%, rgba(224, 38, 58, .38), transparent 45%), radial-gradient(circle at 0% 100%, rgba(15, 157, 143, .22), transparent 42%), var(--char);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16.5px; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--head); font-weight: 800; color: var(--ink); line-height: 1.16; margin: 0 0 .6em; letter-spacing: -.5px; }
h3 { font-weight: 700; letter-spacing: -.2px; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 18px; height: 18px; }
@keyframes spinY { to { transform: rotateY(360deg); } }
@keyframes bob { to { transform: translateY(-12px); } }
@keyframes float { to { translate: 0 -14px; } }

/* ---------- Generic 3D box: five faces sized by --w (x), --h (y) and --d (z); the bottom sits on y = 0 ---------- */
.bx { position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; }
.bx > i { position: absolute; display: block; left: calc(var(--w) / -2); top: calc(var(--h) * -1); width: var(--w); height: var(--h); font-style: normal; background: var(--c); }
.bx > .f { transform: translateZ(calc(var(--d) / 2)); }
.bx > .k { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.bx > .l { left: calc(var(--d) / -2); width: var(--d); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.8); }
.bx > .r { left: calc(var(--d) / -2); width: var(--d); transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); filter: brightness(.9); }
.bx > .t { top: calc(var(--h) * -1 - var(--d) / 2); height: var(--d); transform: rotateX(90deg); filter: brightness(1.1); }
.at { position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; }

/* ---------- 3D shopping cart: a wire basket (see-through grid faces), base tray, chassis, legs, wheels and handle ---------- */
.cart3d { position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; }
.basket { --w: 250px; --h: 120px; --d: 150px; --c: transparent; }
.basket > i { background: repeating-linear-gradient(90deg, var(--red) 0 3px, transparent 3px 21px), repeating-linear-gradient(0deg, var(--red) 0 3px, transparent 3px 20px); box-shadow: inset 0 0 0 5px var(--red-d); filter: none !important; }
.basket > .t { display: none; }
.tray { --w: 250px; --h: 6px; --d: 150px; --c: var(--red-d); }
.chassis { --w: 220px; --h: 8px; --d: 120px; --c: var(--char-l); }
.leg { --w: 8px; --h: 56px; --d: 8px; --c: #3A404C; }
.post { --w: 8px; --h: 50px; --d: 8px; --c: var(--char); }
.handle { --w: 280px; --h: 14px; --d: 14px; --c: var(--char); }
.handle > .f, .handle > .t { background: linear-gradient(180deg, #3A404C, var(--char)); }
.wheel { --s: 34px; position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; transform: rotateY(90deg); }
.wheel > i { position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #D9DCE2 0 22%, #2B2F38 24% 100%); }
.wheel > .w1 { transform: translateZ(-4px); } .wheel > .w2 { transform: translateZ(-1.5px); background: #2B2F38; } .wheel > .w3 { transform: translateZ(1.5px); background: #2B2F38; } .wheel > .w4 { transform: translateZ(4px); }
/* deal boxes that drop into the basket one after another */
.gift { --c: var(--teal); }
.gift > i { background: linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, .85) 42% 58%, transparent 58%), var(--c); }
.gift > .t { background: linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, .85) 42% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, .85) 42% 58%, transparent 58%), var(--c); }
.gift.g1 { --w: 84px; --h: 84px; --d: 84px; --c: var(--teal); }
.gift.g2 { --w: 70px; --h: 62px; --d: 70px; --c: var(--gold); }
.gift.g3 { --w: 64px; --h: 96px; --d: 54px; --c: #FFFFFF; }
.gift.g3 > i { background: linear-gradient(90deg, transparent 42%, var(--red) 42% 58%, transparent 58%), #fff; }
.gift.g3 > .t { background: linear-gradient(90deg, transparent 42%, var(--red) 42% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, var(--red) 42% 58%, transparent 58%), #fff; }
.drop { animation: drop 1.2s cubic-bezier(.3, 1.35, .5, 1) both; }
.drop.d2 { animation-delay: .6s; } .drop.d3 { animation-delay: 1.2s; }
.cam .drop { animation-delay: 1s; } .cam .drop.d2 { animation-delay: 1.6s; } .cam .drop.d3 { animation-delay: 2.2s; }
@keyframes drop { 0% { translate: 0 -320px; scale: 0; } 8% { scale: 1; } 100% { translate: 0 0; scale: 1; } }

/* ---------- 3D % price tag: two tag-shaped faces and four edge layers, spinning on its axis ---------- */
.ptag3d { --s: 96px; position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; animation: spinY 7s linear infinite; }
.ptag3d > i { position: absolute; display: grid; place-items: center; left: calc(var(--s) * -.7); top: calc(var(--s) / -2); width: calc(var(--s) * 1.4); height: var(--s); padding-left: calc(var(--s) * .3); font: 800 calc(var(--s) * .44)/1 var(--head); font-style: normal; color: #fff;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%); background: var(--teal-d); }
.ptag3d > .tf { background: radial-gradient(circle at 20% 50%, var(--char) 0 6%, transparent 6.5%), linear-gradient(135deg, #2CC4B4, var(--teal) 55%, var(--teal-d)); transform: translateZ(5px); }
.ptag3d > .tb { transform: rotateY(180deg) translateZ(5px); }
.ptag3d > .e1 { transform: translateZ(-3.5px); } .ptag3d > .e2 { transform: translateZ(-1.2px); } .ptag3d > .e3 { transform: translateZ(1.2px); } .ptag3d > .e4 { transform: translateZ(3.5px); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 700 15px var(--head); text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(224, 38, 58, .28); transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--red-d); box-shadow: 0 12px 26px rgba(224, 38, 58, .35); }
.btn.ghost { background: #fff; color: var(--char); box-shadow: inset 0 0 0 2px var(--char); }
.btn.ghost:hover { background: var(--char); color: #fff; box-shadow: inset 0 0 0 2px var(--char); }
.btn.small { padding: 10px 18px; font-size: 14.5px; }
.btn.full { width: 100%; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--char); color: #D5D8DE; font-size: 14px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; color: #D5D8DE; text-decoration: none; }
.topbar .ic { color: var(--teal); }
.topbar a:hover { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }
.logo img { height: 64px; width: auto; }
.main-nav { display: flex; gap: 8px; }
.main-nav a { position: relative; padding: 10px 14px; color: var(--char); text-decoration: none; font: 600 15px var(--head); transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--red); transform: scaleX(0); transition: transform .3s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--char); color: #fff; transition: background .2s; }
.cart-link:hover { background: var(--red); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font: 700 12px/22px var(--body); text-align: center; }
.cart-count.bump { animation: bump .5s; }
@keyframes bump { 40% { scale: 1.4; } }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--bg); color: var(--char); cursor: pointer; place-items: center; }

/* ---------- Hero: warm white with a soft crimson glow ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 60px; background: radial-gradient(circle at 74% 48%, rgba(224, 38, 58, .12), transparent 42%), radial-gradient(circle at 6% 10%, rgba(15, 157, 143, .10), transparent 35%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(22, 25, 31, .12) 1.2px, transparent 1.6px) 0 0 / 28px 28px; -webkit-mask: linear-gradient(90deg, transparent 40%, #000); mask: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 7px 15px; border-radius: 8px; background: var(--red-l); color: var(--red-d); font: 700 13.5px var(--head); animation: wordUp .8s both; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); color: var(--char); letter-spacing: -1.6px; }
.hero h1 .w { display: inline-block; animation: wordUp .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--i, 0) * .12s); }
.hero h1 .w:nth-child(2) { --i: 1; } .hero h1 .w:nth-child(3) { --i: 2; } .hero h1 .w:nth-child(4) { --i: 3; } .hero h1 .w:nth-child(5) { --i: 4; }
.hero h1 .hl { color: var(--red); position: relative; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 6px; bottom: 4px; height: 10px; background: rgba(15, 157, 143, .28); z-index: -1; transform-origin: left; animation: grow .7s 1s both; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes wordUp { from { opacity: 0; transform: translateY(30px); } }
.hero-text > p { font-size: 18px; max-width: 540px; color: var(--muted); animation: wordUp .8s .55s both; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 36px; animation: wordUp .8s .7s both; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; padding: 24px 0 0; margin: 0; list-style: none; border-top: 1px solid var(--line); animation: wordUp .8s .85s both; }
.hero-stats strong { display: block; font: 800 30px var(--head); color: var(--char); }
.hero-stats span { font-size: 14px; color: var(--muted); }

/* ---------- Hero 3D showcase: a turning floor, a rolling 3D cart, deal boxes, a % tag and floating photos ---------- */
.stage { position: relative; height: 580px; perspective: 1700px; perspective-origin: 50% 30%; }
.cam { --sc: .86; position: absolute; left: 50%; top: 78%; transform-style: preserve-3d; scale: var(--sc); transform: rotateX(-16deg) rotateY(calc(-28deg + var(--px, 0) * 24deg)); transition: transform .7s ease-out; }
.cam > span { position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; }
.cam .floor { width: 580px; height: 580px; margin: -290px 0 0 -290px; border-radius: 50%; transform: rotateX(-90deg);
  background: radial-gradient(circle, rgba(22, 25, 31, .16), transparent 40%), radial-gradient(circle, transparent 0 52%, rgba(224, 38, 58, .45) 52% 52.6%, transparent 53%), repeating-conic-gradient(rgba(22, 25, 31, .07) 0 6deg, transparent 6deg 12deg); -webkit-mask: radial-gradient(circle, #000 55%, transparent 70%); mask: radial-gradient(circle, #000 55%, transparent 70%); animation: floorSpin 60s linear infinite; }
@keyframes floorSpin { to { transform: rotateX(-90deg) rotateZ(360deg); } }
.cam .roll { animation: roll 6s ease-in-out infinite alternate; }
@keyframes roll { from { translate: -26px 0 0; } to { translate: 26px 0 0; } }
.cam .tag-at { transform: translate3d(240px, -330px, 40px); }
.tag-at .ptag3d { animation: spinY 7s linear infinite, bob 3s ease-in-out infinite alternate; }
.p-card { position: absolute; left: -92px; top: -120px; display: block; width: 184px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(22, 25, 31, .22); animation: float 3.6s ease-in-out infinite alternate; }
.p-card.pc1 { transform: translate3d(-260px, -420px, -120px) rotateY(28deg); }
.p-card.pc2 { transform: translate3d(150px, -470px, -170px) rotateY(16deg); animation-delay: -1.2s; }
.p-card.pc3 { transform: translate3d(-250px, -110px, 40px) rotateY(30deg); animation-delay: -2.4s; }
.p-card img { width: 100%; height: 112px; object-fit: cover; border-radius: 8px; }
.p-card b { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 4px 2px; color: var(--char); font: 700 14px var(--head); }
.p-card b em { padding: 2px 8px; border-radius: 6px; background: var(--red-l); color: var(--red-d); font: 700 11px var(--body); font-style: normal; }
.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #fff; color: var(--char); font: 600 14px var(--head); box-shadow: 0 14px 30px rgba(22, 25, 31, .16); animation: bob 3.4s ease-in-out infinite alternate; }
.chip .ic { color: var(--red); }
.chip.c1 { left: 4%; top: 88%; animation-delay: -.8s; } .chip.c2 { right: 2%; top: 88%; animation-delay: -1.7s; } .chip.c2 .ic { color: var(--teal); }

/* ---------- Trust bar ---------- */
.trust-band { position: relative; overflow: hidden; padding: 17px 0; background: var(--char); border-bottom: 3px solid var(--red); }
.band-track { display: flex; width: max-content; animation: band 40s linear infinite; }
.band-track > span { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; color: #EDEEF1; font: 600 15.5px var(--head); white-space: nowrap; }
.band-track > span::after { content: "%"; color: var(--red); font-weight: 800; }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 96px 0; }
.section.tint { background: var(--bg); }
.section.dark-sec { background: var(--darkbg); color: #C9CDD5; }
.section.dark-sec h2, .section.dark-sec .split-text h2 { color: #fff; }
.sec-title { text-align: center; font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 52px; }
.sec-title::after { content: ""; display: block; width: 72px; height: 6px; margin: 16px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--red) 0 64%, transparent 64% 74%, var(--teal) 74%); }
.sec-title { letter-spacing: -1px; }
.grid { display: grid; gap: 26px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text h2 { font-size: clamp(30px, 3.4vw, 40px); }

/* ---------- Reveal: soft rise with a slight 3D tip ---------- */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * .1s); }
@keyframes rise { from { opacity: 0; transform: perspective(900px) translateY(36px) rotateX(10deg); } to { opacity: 1; transform: none; } }

/* ---------- Tilt + spotlight ---------- */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .3s; }
.js .tilt.reveal.in { animation-fill-mode: backwards; }
/* ---------- Shop, blog post and forms ---------- */
.dept-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 42px; }
.dept-nav a { padding: 9px 18px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15.5px; transition: background .2s, color .2s, border-color .2s; }
.dept-nav a:hover, .dept-nav a.active { background: var(--char); color: #fff; border-color: var(--char); }
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; margin-bottom: 24px; box-shadow: var(--shadow); border: 8px solid #fff; outline: 2px solid var(--red); }
.article .lead { font-size: 20px; color: var(--ink); }
.article h2 { font-size: 26px; margin-top: 30px; }
.aside { display: grid; gap: 22px; position: sticky; top: 100px; }
.aside-box { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 2px solid var(--line); }
.aside-box h3 { font: 600 19px var(--head); }
.aside-box ul { padding-left: 18px; margin: 0; }
.aside-box li + li { margin-top: 10px; }
.policy h2 { font-size: 25px; margin-top: 30px; }
.credits { margin: 40px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.info-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 30px 18px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.info-card h3 { font-size: 19px; margin: 18px 0 6px; }
.info-card p { margin: 0; color: var(--muted); word-break: break-word; }
.form { display: grid; gap: 14px; padding: 30px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border-top: 6px solid var(--red); }
.form h3 { margin: 6px 0 0; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { color: var(--ink); font-weight: 700; }
input, textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 10px; font: 500 16px var(--body); color: var(--ink); background: #fff; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(224, 38, 58, .2); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.news-box { padding: 40px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; border-top: 6px solid var(--red); }
.news-box .inline-form { justify-content: center; }
.empty { text-align: center; padding: 50px 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.cart-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.cart-table th, .cart-table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table th { font: 600 15px var(--head); color: #fff; background: var(--char); }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table input { width: 74px; padding: 8px 10px; }
.remove-btn { border: 0; background: none; color: var(--red); font-weight: 700; cursor: pointer; font-size: 15px; }
.summary { padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); display: grid; gap: 12px; border-top: 6px solid var(--red); }
.summary h3 { margin: 0 0 6px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; }
.summary-line.total { padding-top: 12px; border-top: 2px dashed var(--line); font-weight: 700; font-size: 19px; color: var(--ink); }
.note { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 14px; background: var(--ink); color: #fff; border: 2px solid var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transform: translate(-50%, 140%); visibility: hidden; transition: transform .4s, visibility .4s; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast a { color: var(--teal); font-weight: 700; white-space: nowrap; }

.article-img { border-radius: var(--radius); outline-color: var(--red); }
.form, .summary, .news-box { border-top-color: var(--red); }
/* ---------- Icon tiles (perks, values, contact): the tile turns in 3D on hover ---------- */
.itile { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 16px; background: var(--teal-l); color: var(--teal-d); transition: transform .5s cubic-bezier(.2, .8, .2, 1), background .3s, color .3s; }
.itile .ic { width: 28px; height: 28px; }
.perk:hover .itile, .info-card:hover .itile { transform: perspective(300px) rotateY(180deg); background: var(--teal); color: #fff; }
.perk:hover .itile .ic, .info-card:hover .itile .ic { transform: scaleX(-1); }
.perk { padding: 34px 24px 30px; border-radius: var(--radius); background: #fff; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); border-bottom: 3px solid var(--red); }
.perk:hover { box-shadow: var(--shadow-h); border-bottom-color: var(--teal); }
.perk h3 { font-size: 18px; margin: 20px 0 8px; }
.perk p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Departments: the icon sits on a 3D cube that rolls over on hover to show a % face ---------- */
.dept-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 20px 0; text-decoration: none; color: inherit; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.dept-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.cube-wrap { width: 68px; height: 68px; margin-bottom: 6px; perspective: 500px; }
.cube { position: relative; display: block; width: 68px; height: 68px; transform-style: preserve-3d; transform: translateZ(-34px); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.cube > i { position: absolute; inset: 0; backface-visibility: hidden; display: grid; place-items: center; border-radius: 14px; font: 800 28px var(--head); font-style: normal; }
.cube > .c-f { background: var(--red-l); color: var(--red); transform: translateZ(34px); }
.cube > .c-t { background: var(--red); color: #fff; transform: rotateX(90deg) translateZ(34px); }
.cube > .c-b { background: var(--red-d); transform: rotateX(-90deg) translateZ(34px); }
.cube .ic { width: 30px; height: 30px; }
.dept-card:hover .cube { transform: translateZ(-34px) rotateX(-90deg); }
.fc-name { color: var(--char); font: 700 18px/1.25 var(--head); text-align: center; }
.fc-num { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.fold { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; align-self: stretch; height: 50px; margin: auto -20px 0; border-top: 1px solid var(--line); color: var(--char); font: 700 14.5px var(--head); transition: color .3s; }
.fold::before { content: ""; position: absolute; inset: 0; background: var(--char); transform: scaleY(0); transform-origin: bottom; transition: transform .35s; z-index: 0; }
.fold > * , .fold { z-index: 1; }
.fold span, .fold .ic { position: relative; z-index: 1; }
.fold .ic { transition: transform .3s; }
.dept-card:hover .fold { color: #fff; }
.dept-card:hover .fold::before { transform: scaleY(1); }
.dept-card:hover .fold .ic { transform: translateX(4px); color: var(--red); }

/* ---------- Product cards ---------- */
.product { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.product:hover { box-shadow: var(--shadow-h); }
.product-img { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product-img img { transform: scale(1.06); }
.ptag { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 4px 10px; border-radius: 6px; background: var(--char); color: #fff; font: 700 11.5px var(--head); letter-spacing: .3px; }
.stamp { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 4px 10px; border-radius: 6px; background: var(--red); color: #fff; font: 700 11.5px var(--head); opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
.product:hover .stamp { opacity: 1; transform: none; }
.shine { position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .35), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.product:hover .shine { opacity: 1; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.p-meta { font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); }
.product h3 { font-size: 16px; margin: 6px 0 8px; line-height: 1.35; color: var(--ink); }
.product-body p { flex: 1; font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font: 800 21px var(--head); color: var(--char); }
.add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 9px; background: var(--char); color: #fff; font: 700 13.5px var(--head); cursor: pointer; transition: background .2s, transform .15s; }
.add-btn:hover { background: var(--red); transform: translateY(-1px); }
.add-btn.added { background: var(--teal); }
.price { color: var(--red-d) !important; }

/* ---------- Framed photos: offset outline frame and a slide-in reveal ---------- */
.frame-wrap { position: relative; padding: 0 0 22px 22px; }
.frame-wrap::before { content: ""; position: absolute; left: 0; bottom: 0; width: 70%; height: 74%; border-radius: 22px; background: linear-gradient(135deg, var(--red), var(--red-d)); }
.frame-wrap::after { content: ""; position: absolute; right: -14px; top: -14px; width: 110px; height: 90px; background: radial-gradient(circle, var(--teal) 0 2px, transparent 2.5px) 0 0 / 15px 15px; opacity: .7; }
.frame { position: relative; z-index: 1; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-h); background: var(--char); border: 6px solid #fff; }
.frame img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.js .frame-wrap:not(.in) .frame img { opacity: 0; }
.reveal.in .frame img { animation: slideIn 1.1s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes slideIn { from { opacity: 0; transform: perspective(900px) rotateY(-14deg) translateX(-40px) scale(1.08); } to { opacity: 1; transform: none; } }
.frame figcaption { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; background: rgba(255, 255, 255, .96); color: var(--char); font: 700 14px var(--head); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.frame figcaption .ic { color: var(--red); }

/* ---------- Under $20: cards rise one after another ---------- */
.js .slide.reveal.in { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * .12s); }

/* ---------- How it works: numbered steps on a progress line ---------- */
.steps { position: relative; }
.steps .trail { position: absolute; left: 17%; right: 17%; top: 40px; height: 2px; background: var(--line); overflow: hidden; }
.steps .trail::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s .3s; }
.steps.in-view .trail::after, .reveal.in ~ .trail::after, .steps:has(.reveal.in) .trail::after { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 22px; background: #fff; color: var(--red); font: 800 28px var(--head); box-shadow: 0 0 0 2px var(--line), var(--shadow); }
.reveal.in .step-num { animation: numOn .5s forwards; animation-delay: calc(.4s + var(--d) * .4s); }
@keyframes numOn { to { background: var(--red); color: #fff; box-shadow: 0 0 0 6px var(--red-l), var(--shadow); } }
.step h3 { font-size: 19px; }
.step p { color: var(--muted); }

/* ---------- Reviews ---------- */
.review { position: relative; margin: 0; display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--teal); }
.review::before { content: "\201C"; position: absolute; right: 22px; top: 6px; color: var(--red-l); font: 800 96px/1 var(--head); }
.stars { display: flex; gap: 3px; color: var(--gold); font-size: 19px; }
.stars i { font-style: normal; }
.review blockquote { position: relative; flex: 1; margin: 14px 0 22px; font-size: 16px; color: #33363E; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.initial { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font: 700 18px var(--head); }
.review.rv2 .initial { background: var(--char); } .review.rv3 .initial { background: var(--teal-d); }
.review strong { display: block; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 15.5px; }
.review small { color: var(--muted); }
.verified { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--green); font: 600 12.5px var(--head); }

/* ---------- Blog cards: the category sits on the photo ---------- */
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.post-card:hover { box-shadow: var(--shadow-h); }
.post-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.post-body h3 { font-size: 19px; margin: 8px 0 10px; line-height: 1.35; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { color: var(--red); }
.post-body p { flex: 1; color: var(--muted); font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 6px; font: 700 15px var(--head); text-decoration: none; color: var(--teal-d); }
.more .ic { transition: transform .2s; }
.more:hover .ic { transform: translateX(4px); }

/* ---------- Newsletter: a charcoal panel with a photo ---------- */
.news-panel { padding: 56px; border-radius: 28px; background: var(--darkbg); color: #C9CDD5; box-shadow: var(--shadow-h); }
.news-panel h2 { color: #fff; }
.news-photo { position: relative; }
.news-photo img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.news-badge { position: absolute; left: -18px; bottom: 26px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: #fff; color: var(--char); font: 700 15px var(--head); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); animation: bob 3.4s ease-in-out infinite alternate; }
.news-badge .ic { color: var(--teal); }
.news .inline-form input { border-color: transparent; }
.news .btn { background: var(--teal); box-shadow: 0 8px 20px rgba(15, 157, 143, .3); }
.news .btn:hover { background: var(--teal-d); }

/* ---------- Page banners: charcoal with a dot grid and two small turning 3D carts ---------- */
.banner { position: relative; overflow: hidden; padding: 86px 0; text-align: center; background: var(--darkbg); }
.banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .09) 1.2px, transparent 1.6px) 0 0 / 26px 26px; }
.banner .container { position: relative; z-index: 2; }
.banner h1 { display: inline-block; max-width: min(860px, 74%); margin: 0; font-size: clamp(32px, 4.4vw, 52px); color: #fff; animation: wordUp .8s cubic-bezier(.2, .8, .2, 1) both; }
.ban-scene { position: absolute; z-index: 1; top: 70%; width: 0; height: 0; perspective: 900px; }
.ban-scene.l { left: 12%; } .ban-scene.r { right: 12%; }
.mini { position: absolute; left: 0; top: 0; display: block; transform-style: preserve-3d; scale: .36; transform: rotateX(-14deg); animation: miniSpin 16s linear infinite; }
.mini.m-r { animation-direction: reverse; scale: .3; }
@keyframes miniSpin { from { transform: rotateX(-14deg) rotateY(0); } to { transform: rotateX(-14deg) rotateY(360deg); } }
.mini .basket > i { background: repeating-linear-gradient(90deg, #FF5A6E 0 4px, transparent 4px 21px), repeating-linear-gradient(0deg, #FF5A6E 0 4px, transparent 4px 20px); box-shadow: inset 0 0 0 6px var(--red); }
.mini .handle, .mini .post, .mini .chassis { --c: #8A93A3; }
.mini .handle > .f, .mini .handle > .t { background: #8A93A3; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow-x: clip; padding: 76px 0 26px; background: var(--char-d); color: #A9AEB8; border-top: 4px solid var(--red); }
.foot-top { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.foot-top p { max-width: 560px; margin: 0; }
.foot-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 0; }
.foot-col h3 { font: 700 17px var(--head); color: #fff; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { color: #A9AEB8; text-decoration: none; transition: color .2s; }
.foot-col a:hover { color: var(--teal); }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact .ic { flex: none; margin-top: 3px; color: var(--teal); }
.foot-bottom { position: relative; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; font-size: 14.5px; }
.cart-table th { color: #fff; background: var(--char); font: 700 15px var(--head); }
.form, .summary, .news-box, .info-card, .table-wrap, .aside-box { border-radius: var(--radius); }
.toast { border-radius: 12px; background: var(--char); border-color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; }
  .stage { height: 540px; }
}
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .main-nav { position: absolute; left: 0; right: 0; top: 80px; display: none; flex-direction: column; padding: 14px 16px 20px; border-radius: 0; background: #fff; box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3); }
  .main-nav.open { display: flex; }
  .split, .article-wrap, .cart-layout { grid-template-columns: 1fr; gap: 44px; }
  .grid.three { grid-template-columns: 1fr; }
  .steps .trail { display: none; }
  .aside { position: static; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .ban-scene { display: none; }
  .banner h1 { max-width: none; }
  .news-panel { padding: 36px 24px; }
}
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero { padding: 48px 0 20px; }
  .topbar a { display: none; }
  .topbar-in { justify-content: center; }
  .grid.four { grid-template-columns: 1fr; }
  .depts { grid-template-columns: 1fr 1fr !important; gap: 14px; }
  .dept-card { padding: 24px 12px 0; }
  .fold { margin: auto -12px 0; }
  .fc-name { min-height: 2.5em; display: flex; align-items: center; }
  .fc-num { margin-bottom: 12px; }
  .fc-name { font-size: 15.5px; }
  .fc-icon { width: 52px; height: 52px; }
  .stage { height: 400px; }
  .cam { --sc: .5; top: 84%; }
  .p-card.pc3 { transform: translate3d(-225px, -100px, 140px) rotateY(30deg); }
  .p-card.pc2 { transform: translate3d(140px, -470px, -170px) rotateY(16deg); }
  .stage { margin-top: -30px; }
  .chip { display: none; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 25px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo img { height: 42px; }
  .news-badge { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; }
}
