/* ─────────────────────────────────────────────
   Payodigi — modern store stylesheet
   Pure CSS, no framework. Edit tokens below to
   re-theme the whole site.
   ───────────────────────────────────────────── */

:root {
    --bg:        #ffffff;
    --bg-alt:    #f6f6fb;
    --text:      #14141f;
    --muted:     #676d7e;
    --line:      #e8e8f0;
    --accent:    #6d28d9;
    --accent-2:  #db2777;
    --accent-dk: #5b21b6;
    --grad:      linear-gradient(120deg, #6d28d9, #9333ea 45%, #db2777);
    --success:   #16a34a;
    --danger:    #dc2626;
    --radius:    16px;
    --shadow:    0 1px 3px rgba(20, 20, 40, .06);
    --shadow-lg: 0 18px 45px -12px rgba(60, 30, 140, .22);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.container.narrow { max-width: 680px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }

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

/* ---------- Announcement bar ---------- */

.announce {
    background: var(--grad);
    background-size: 200% 200%;
    animation: gradShift 8s ease infinite;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    padding: 9px 16px;
    letter-spacing: .01em;
}

@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(20, 20, 60, .18); }

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--grad);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 14px -4px rgba(109, 40, 217, .5);
    transition: transform .25s;
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }

.main-nav { display: flex; gap: 6px; }

.main-nav a {
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
    transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--text); background: var(--bg-alt); }

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

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.cart-link:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px -6px rgba(109, 40, 217, .35);
    transform: translateY(-1px);
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #fff;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    animation: badgePop .35s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes badgePop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 650;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--grad);
    background-size: 150% 150%;
    color: #fff;
    box-shadow: 0 8px 22px -8px rgba(109, 40, 217, .55);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(109, 40, 217, .6);
    background-position: 100% 50%;
}

.btn-ghost { border-color: var(--line); color: var(--text); background: var(--bg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--accent-dk); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35); }

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; text-align: center; }

.btn-mini {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 10px;
    background: var(--text);
    color: #fff;
    border: 0;
}
.btn-mini:hover { background: var(--accent); transform: translateY(-1px); }
.btn-incart { background: #f0fdf4; color: var(--success); }
.btn-incart:hover { background: #dcfce7; }

.btn-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.link-muted {
    background: none;
    border: 0;
    color: var(--muted);
    font-size: 13.5px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.link-muted:hover { color: var(--danger); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 110px 0 90px;
    text-align: center;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    animation: float 14s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: #c4b5fd; top: -140px; left: -100px; }
.blob-2 { width: 360px; height: 360px; background: #fbcfe8; top: 20px; right: -120px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #ddd6fe; bottom: -160px; left: 40%; animation-delay: -9s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(30px, -30px) scale(1.08); }
    66%      { transform: translate(-25px, 20px) scale(.95); }
}

.hero-content { position: relative; }

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    background: #f3eefe;
    border: 1px solid #e4d9fb;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
    animation: fadeUp .7s ease both;
}

.hero h1 {
    font-size: clamp(36px, 6.5vw, 64px);
    font-weight: 850;
    margin-bottom: 20px;
    animation: fadeUp .7s ease .1s both;
}

.hero-sub {
    font-size: 18.5px;
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 34px;
    animation: fadeUp .7s ease .2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp .7s ease .3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 72px);
    margin-top: 64px;
    flex-wrap: wrap;
    animation: fadeUp .7s ease .45s both;
}
.hero-stats div { display: grid; gap: 2px; }
.hero-stats strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .8, .36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section-tight { padding: 48px 0 84px; }
.section-alt { background: var(--bg-alt); }

.section-kicker {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 38px;
    gap: 16px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }

.section-head-center {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 34px;
}
.section-head-center h2 {
    font-size: clamp(28px, 4.2vw, 40px);
    font-weight: 800;
    margin: 18px 0 12px;
}
.section-head-center p { color: var(--muted); font-size: 16px; }

.filter-bar-center { justify-content: center; margin-bottom: 40px; }
.filter-bar-center .chip { background: var(--bg); cursor: pointer; font-family: inherit; }
.filter-bar-center .chip-active { background: var(--accent); border-color: var(--accent); }

.product-card.filtered-out { display: none; }

.grid-more { text-align: center; margin-top: 40px; }

.link-arrow { color: var(--accent); font-weight: 650; font-size: 14.5px; white-space: nowrap; }
.link-arrow::after { content: " →"; transition: margin-left .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Product cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s cubic-bezier(.22, .8, .36, 1), box-shadow .25s, border-color .25s;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #d9d0f5;
}

.product-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-alt);
    overflow: hidden;
    display: block;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22, .8, .36, 1);
}
.product-card:hover .product-thumb img { transform: scale(1.06); }

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
}
.badge-sale { background: linear-gradient(120deg, #dc2626, #f97316); }
.badge-hot  { background: linear-gradient(120deg, #d946ef, #8b5cf6); }
.badge-new  { background: linear-gradient(120deg, #059669, #14b8a6); }

.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.product-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--accent);
}

.product-body h3 { font-size: 17.5px; font-weight: 750; transition: color .15s; }
.product-body a:hover h3 { color: var(--accent); }
.product-body > p { font-size: 14px; color: var(--muted); flex: 1; }

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.product-price { display: flex; align-items: center; gap: 10px; }
.product-price strong { font-size: 19px; font-weight: 800; }
.product-price s { color: var(--muted); font-size: 13.5px; }

.badge-off {
    font-size: 12px;
    font-weight: 700;
    color: var(--success);
    background: #f0fdf4;
    padding: 3px 10px;
    border-radius: 999px;
}

/* ---------- Category cards ---------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.category-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.category-icon { font-size: 26px; display: block; margin-bottom: 12px; }
.category-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.category-count { font-size: 13px; color: var(--muted); }

/* ---------- Why us ---------- */

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    background: var(--bg);
    transition: transform .25s, box-shadow .25s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.why-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    font-size: 22px;
    border-radius: 13px;
    background: #f3eefe;
    margin-bottom: 16px;
}
.why-card h3 { font-size: 16.5px; font-weight: 750; margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* ---------- Testimonials ---------- */

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

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform .25s, box-shadow .25s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.stars { color: #f59e0b; letter-spacing: 2px; font-size: 15px; }

.testimonial-card blockquote {
    font-size: 15px;
    color: #3c3c48;
    flex: 1;
}

.testimonial-card figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial-card figcaption div { display: grid; line-height: 1.35; }
.testimonial-card figcaption strong { font-size: 14.5px; }
.testimonial-card figcaption span { font-size: 13px; color: var(--muted); }

.avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

/* ---------- How it works ---------- */

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

.step {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    background: var(--bg);
    transition: transform .25s, box-shadow .25s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-num {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px -6px rgba(109, 40, 217, .55);
}

.step h3 { font-size: 17px; font-weight: 750; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band {
    background: var(--grad);
    background-size: 200% 200%;
    animation: gradShift 10s ease infinite;
    color: #fff;
    margin-top: 40px;
}

.cta-inner {
    text-align: center;
    padding: 72px 24px;
}
.cta-inner h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.cta-inner p { opacity: .9; margin-bottom: 28px; font-size: 16px; }

/* ---------- Page head / filters ---------- */

.page-head { padding: 52px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.5vw, 38px); font-weight: 800; margin-bottom: 6px; }
.page-head p { color: var(--muted); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }

.chip {
    padding: 8px 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 550;
    color: var(--muted);
    transition: all .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip-active { background: var(--text); border-color: var(--text); color: #fff; }
.chip-active:hover { color: #fff; border-color: var(--text); transform: none; }

.empty-note { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Product detail ---------- */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

.product-detail-media { position: relative; }
.product-detail-media img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    width: 100%;
    box-shadow: var(--shadow-lg);
}
.product-detail-media .badge { top: 16px; left: 16px; }

.product-detail-info h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; margin: 8px 0 14px; }
.product-price-lg strong { font-size: 30px; }
.product-lead { color: var(--muted); font-size: 16.5px; margin: 14px 0 24px; }

.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }

.buy-assurance {
    list-style: none;
    margin: 22px 0 30px;
    display: grid;
    gap: 9px;
}
.buy-assurance li {
    font-size: 14px;
    color: var(--muted);
    padding-left: 26px;
    position: relative;
}
.buy-assurance li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 11px;
    border-radius: 999px;
    background: #f0fdf4;
    color: var(--success);
    font-weight: 800;
}

.product-description {
    border-top: 1px solid var(--line);
    padding-top: 26px;
    font-size: 15px;
    color: #3c3c48;
}
.product-description h2 { font-size: 18px; font-weight: 750; margin-bottom: 12px; }

/* ---------- Cart ---------- */

.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 40px;
    align-items: start;
}

.cart-items { display: grid; gap: 14px; }

.cart-row {
    display: grid;
    grid-template-columns: 110px 1fr auto auto;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px 14px 14px;
    background: var(--bg);
    transition: box-shadow .2s, border-color .2s;
}
.cart-row:hover { box-shadow: var(--shadow-lg); border-color: #d9d0f5; }

.cart-row img { border-radius: 10px; border: 1px solid var(--line); }
.cart-row-info h3 { font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.cart-row-info a:hover h3 { color: var(--accent); }

.cart-row-price { display: grid; text-align: right; }
.cart-row-price strong { font-size: 17px; font-weight: 800; }
.cart-row-price s { color: var(--muted); font-size: 13px; }

.cart-remove {
    background: none;
    border: 1.5px solid var(--line);
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    transition: all .2s;
}
.cart-remove:hover { border-color: var(--danger); color: var(--danger); transform: rotate(90deg); }

.cart-clear-form { text-align: right; }

.empty-cart {
    text-align: center;
    padding: 60px 24px;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius);
}
.empty-cart-icon { font-size: 44px; margin-bottom: 14px; }
.empty-cart h2 { font-size: 22px; font-weight: 750; margin-bottom: 8px; }
.empty-cart p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; margin-top: 24px; }

.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 650; }

.form input, .form textarea {
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}

.form input:focus, .form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(109, 40, 217, .12);
}

.form small { font-weight: 400; color: var(--muted); }

.secure-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- Checkout ---------- */

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 48px;
    align-items: start;
}

.checkout-form-wrap h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.checkout-note { color: var(--muted); font-size: 15px; }

.order-summary {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    background: var(--bg-alt);
    position: sticky;
    top: 110px;
}
.order-summary h2 { font-size: 18px; font-weight: 750; margin-bottom: 16px; }

.summary-product {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.summary-product img { width: 68px; border-radius: 10px; border: 1px solid var(--line); }
.summary-product h3 { font-size: 14.5px; font-weight: 700; }
.summary-product > div { flex: 1; }
.summary-item-price { font-size: 14.5px; white-space: nowrap; }

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    color: var(--muted);
}
.summary-row.summary-total {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 14px;
    margin-bottom: 16px;
    color: var(--text);
    font-weight: 800;
    font-size: 17px;
}
.summary-save span:last-child { color: var(--success); font-weight: 700; }

.coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.coupon-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 13px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    text-transform: uppercase;
    background: var(--bg);
}
.coupon-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}
.coupon-form .btn { padding: 10px 18px; font-size: 14px; }

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--success);
    font-size: 13.5px;
    font-weight: 650;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.coupon-alert { margin: 0 0 14px; padding: 10px 14px; font-size: 13px; }
.summary-edit { display: inline-block; margin-top: 14px; }

/* ---------- Alerts / success ---------- */

.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin: 16px 0;
}
.alert-error   { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.alert a { font-weight: 700; text-decoration: underline; }

.success-card {
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 52px 36px;
    box-shadow: var(--shadow-lg);
    background: var(--bg);
}

.success-icon {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: #f0fdf4;
    color: var(--success);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 18px;
    animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) both;
}
.fail-icon { background: #fef2f2; color: var(--danger); }

@keyframes popIn {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

.success-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 12px; }
.success-card > p { color: var(--muted); font-size: 15px; }
.success-card form { margin-top: 18px; }

.order-details {
    text-align: left;
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 16px 22px;
    margin: 26px 0;
}

.download-list { display: grid; gap: 12px; margin: 20px 0 8px; }

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    transition: border-color .2s, box-shadow .2s;
}
.download-item:hover { border-color: #d9d0f5; box-shadow: var(--shadow); }
.download-item h3 { font-size: 15px; font-weight: 700; }
.download-item-info span { font-size: 12.5px; color: var(--muted); }
.download-item .btn { padding: 9px 18px; font-size: 14px; }

.download-meta { font-size: 13px; color: var(--muted); margin-top: 14px; }
.recover-hint { font-size: 13px; margin-top: 26px; color: var(--muted); }
.recover-hint a { color: var(--accent); font-weight: 650; }

/* ---------- Added-to-cart modal ---------- */

.modal-overlay[hidden] { display: none; } /* keep display:grid below from overriding the hidden attribute */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 12, 30, .45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .22s ease;
}
.modal-overlay.open { opacity: 1; }

.modal {
    background: var(--bg);
    border-radius: 20px;
    padding: 36px 32px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px -20px rgba(20, 10, 60, .45);
    transform: translateY(18px) scale(.96);
    transition: transform .25s cubic-bezier(.34, 1.4, .64, 1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #f0fdf4;
    color: var(--success);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
    animation: popIn .45s cubic-bezier(.34, 1.56, .64, 1) both;
}

.modal h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.modal-product { font-size: 14.5px; color: var(--muted); }
.modal-total { font-size: 14px; color: var(--muted); margin: 10px 0 22px; }
.modal-total strong { color: var(--text); font-weight: 800; }

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.modal-actions .btn { flex: 1; min-width: 150px; padding: 12px 18px; font-size: 14.5px; }

/* ---------- Legal ---------- */

.legal-page h1 { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal-page h2 { font-size: 19px; font-weight: 750; margin: 28px 0 10px; }
.legal-page p, .legal-page li { font-size: 15px; color: #3c3c48; }
.legal-page ul { padding-left: 22px; display: grid; gap: 8px; margin: 10px 0; }
.legal-page a { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg-alt);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 60px 24px 44px;
}

.footer-logo { margin-bottom: 14px; }
.footer-tagline { font-size: 14px; color: var(--muted); max-width: 280px; }

.footer-grid h4 {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-grid a { display: block; font-size: 14px; color: var(--text); padding: 4.5px 0; transition: color .15s, transform .15s; }
.footer-grid a:hover { color: var(--accent); transform: translateX(2px); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid, .steps-grid { grid-template-columns: 1fr; }
    .product-detail, .checkout-layout, .cart-layout { grid-template-columns: 1fr; gap: 32px; }
    .order-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        padding: 12px 24px 20px;
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }
    .hero { padding: 72px 0 56px; }
    .section { padding: 56px 0; }
    .hero-stats { gap: 28px; }
    .cart-row { grid-template-columns: 80px 1fr auto; }
    .cart-row form { grid-column: 3; }
}

@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .cart-link span:not(.cart-badge) { display: none; }
    .download-item { flex-direction: column; align-items: flex-start; }
}
