/* ============================================================
   DESIGN 3  —  "Curated"  (faithful replica of the supplied design)
   Cairo type · turquoise / pink / lime · soft rounded cards.
   Loaded after style.css only when the admin selects Design 3.
   ============================================================ */

:root {
    /* base tokens (recolour the design-1 inner pages too) */
    --bg: #f5f9fa; --card: #ffffff; --ink: #26333d; --muted: #66757f;
    --line: #dbe6e8; --brand: #1eb2b7; --brand-ink: #ffffff;
    /* design-3 palette */
    --primary: #1eb2b7; --primary-ink: #0a2a2b;
    --accent: #ef4c93; --accent-ink: #ffffff;
    --lime: #a4e635; --lime-ink: #33420f;
    --secondary: #e9f1f2; --secondary-ink: #38474f; --band: #eef4f5;
    --header-bg: rgba(245,249,250,.82);
    --r3: 1.65rem; --r2: 1.15rem; --r-lg: .85rem;
    --shadow-sm: 0 1px 3px rgba(20,40,45,.06);
    --shadow-md: 0 10px 30px rgba(20,40,45,.12);
    --cairo: "Cairo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap3: 72rem;
}
[data-theme="dark"] {
    --bg: #12181a; --card: #1b2325; --ink: #eef4f5; --muted: #94a6a9;
    --line: #2a3538; --brand: #26c0c5; --brand-ink: #06231f;
    --primary: #26c0c5; --primary-ink: #06231f;
    --accent: #f2589a; --accent-ink: #ffffff;
    --lime: #a4e635; --lime-ink: #16220a;
    --secondary: #212b2d; --secondary-ink: #d8e3e4; --band: #171f21;
    --header-bg: rgba(18,24,26,.82);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 12px 34px rgba(0,0,0,.5);
}
html, [data-theme="dark"] { background: var(--bg); }
body.d3 { font-family: var(--cairo); background: var(--bg); color: var(--ink); }
body.d3 a { color: var(--primary); }
body.d3 h1, body.d3 h2, body.d3 h3, body.d3 .section-title { font-family: var(--cairo); }

.d3-wrap { width: 100%; max-width: var(--wrap3); margin: 0 auto; padding: 0 clamp(16px,4vw,24px); }
.d3-section { padding-top: clamp(56px,8vw,96px); padding-bottom: clamp(56px,8vw,96px); }
.d3-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band);
    padding-top: clamp(56px,8vw,80px); padding-bottom: clamp(56px,8vw,80px); }

/* ---- Buttons ---- */
.d3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600;
    border: 1.5px solid transparent; cursor: pointer; transition: opacity .15s, background .15s, border-color .15s; }
.d3-btn:hover { text-decoration: none; }
.d3-btn-primary { background: var(--primary); color: var(--primary-ink); }
.d3-btn-primary:hover { opacity: .9; }
.d3-btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.d3-btn-outline:hover { background: var(--secondary); }
.d3-btn-lg { height: 44px; padding: 0 24px; border-radius: 999px; font-size: .95rem; }
.d3-btn-sm { height: 38px; padding: 0 18px; border-radius: 999px; font-size: .85rem; }
.d3-arrow { transition: transform .15s; }
.d3-btn:hover .d3-arrow { transform: translateX(2px); }
[dir="rtl"] .d3-arrow { transform: scaleX(-1); }
[dir="rtl"] .d3-btn:hover .d3-arrow { transform: scaleX(-1) translateX(2px); }

/* ---- Logo ---- */
.d3-logo { display: inline-flex; align-items: center; gap: 9px; }
.d3-logo:hover { text-decoration: none; }
.d3-logo-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
    background: var(--primary); color: var(--primary-ink); font-weight: 800; font-size: .95rem; }
.d3-logo-text { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* ---- Header ---- */
.d3-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line);
    background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.d3-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.d3-nav { display: flex; align-items: center; gap: 32px; }
.d3-nav a { font-size: .9rem; font-weight: 500; color: var(--muted); }
.d3-nav a:hover { color: var(--ink); text-decoration: none; }
.d3-head-actions { display: flex; align-items: center; gap: 10px; }
.d3-langbtn { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .78rem;
    font-weight: 700; color: var(--ink); }
.d3-langbtn:hover { background: var(--secondary); text-decoration: none; }
.d3-tgl { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.d3-tgl:hover { background: var(--secondary); }
.d3-tgl .icon-sun { display: none; }
[data-theme="dark"] .d3-tgl .icon-moon { display: none; }
[data-theme="dark"] .d3-tgl .icon-sun { display: block; }

/* ---- Hero ---- */
.d3-hero { position: relative; overflow: hidden; }
.d3-hero-grid { display: grid; gap: clamp(32px,5vw,48px); align-items: center;
    padding: clamp(48px,8vw,96px) 0; }
.d3-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.d3-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
    background: rgba(164,230,53,.22); color: var(--lime-ink); border-radius: 999px; padding: 6px 13px;
    font-size: .76rem; font-weight: 700; }
[data-theme="dark"] .d3-badge { color: #cde98a; }
.d3-hero-title { font-size: clamp(2.3rem,5.4vw,3.9rem); font-weight: 800; line-height: 1.08;
    letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.d3-hero-sub { max-width: 30rem; font-size: clamp(1rem,2vw,1.15rem); line-height: 1.7; color: var(--muted); margin: 0; }
.d3-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.d3-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; width: 100%; max-width: 28rem;
    border-top: 1px solid var(--line); padding-top: 22px; margin: 6px 0 0; }
.d3-stats dt { font-size: 1.5rem; font-weight: 800; margin: 0; }
.d3-stats dd { font-size: .74rem; color: var(--muted); margin: 2px 0 0; }
.d3-stat-rate { display: flex; align-items: center; gap: 5px; }
.d3-star { fill: var(--accent); color: var(--accent); }

.d3-hero-media { position: relative; }
.d3-hero-img { overflow: hidden; border-radius: var(--r3); border: 1px solid var(--line);
    background: var(--card); box-shadow: var(--shadow-sm); }
.d3-hero-img img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.d3-hero-float { position: absolute; bottom: -16px; inset-inline-start: 24px; display: flex; align-items: center;
    gap: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 94%, transparent);
    border-radius: var(--r2); padding: 11px 16px; box-shadow: var(--shadow-md); backdrop-filter: blur(6px); }
.d3-float-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px;
    background: rgba(30,178,183,.12); color: var(--primary); }
.d3-float-t { font-size: .88rem; font-weight: 700; margin: 0; }
.d3-float-s { font-size: .74rem; color: var(--muted); margin: 0; }

/* ---- Section heads ---- */
.d3-head-center { max-width: 42rem; margin: 0 auto; text-align: center; }
.d3-head-start { max-width: 40rem; }
.d3-eyebrow { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent); margin: 0 0 12px; }
.d3-h2 { font-size: clamp(1.6rem,3.4vw,2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.d3-lead { margin: 16px 0 0; line-height: 1.7; color: var(--muted); }

/* ---- Trusted stores ---- */
.d3-stores { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; margin-top: 48px; }
.d3-store { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
    border: 1px solid var(--line); background: var(--card); border-radius: var(--r2); padding: 20px;
    transition: border-color .15s; }
.d3-store:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.d3-store-mono { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px;
    background: rgba(30,178,183,.12); color: var(--primary); font-weight: 800; font-size: .9rem; }
.d3-store-name { font-size: .88rem; font-weight: 700; margin: 0; }
.d3-store-loc { font-size: .74rem; color: var(--muted); margin: 2px 0 0; }
.d3-store-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--primary); }

/* ---- Collections ---- */
.d3-coll-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.d3-coll { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
    background: var(--card); border-radius: var(--r3); transition: box-shadow .2s; }
.d3-coll:hover { box-shadow: var(--shadow-md); text-decoration: none; }
.d3-coll-img { overflow: hidden; background: var(--secondary); }
.d3-coll-img img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.d3-coll:hover .d3-coll-img img { transform: scale(1.05); }
.d3-coll-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 24px; }
.d3-coll-count { font-size: .74rem; font-weight: 600; color: var(--muted); }
.d3-coll-title { font-size: 1.25rem; font-weight: 800; margin: 0; color: var(--ink); }
.d3-coll-desc { font-size: .9rem; line-height: 1.6; color: var(--muted); margin: 0; }
.d3-coll-view { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 700; color: var(--primary); }

/* ---- Products ---- */
.d3-prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.d3-prod { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
    background: var(--card); border-radius: var(--r3); transition: box-shadow .2s; }
.d3-prod:hover { box-shadow: var(--shadow-md); }
.d3-prod-img { position: relative; overflow: hidden; background: var(--secondary); }
.d3-prod-img img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s ease; }
.d3-prod:hover .d3-prod-img img { transform: scale(1.05); }
.d3-prod-cat { position: absolute; inset-block-start: 16px; inset-inline-start: 16px; border-radius: 999px;
    background: color-mix(in srgb, var(--card) 90%, transparent); color: var(--ink); backdrop-filter: blur(4px);
    padding: 4px 12px; font-size: .72rem; font-weight: 600; }
.d3-prod-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 20px; }
.d3-prod-rate { display: flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.d3-prod-name { font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 2px 0 0; }
.d3-prod-store { font-size: .85rem; color: var(--muted); margin: 0; }
.d3-prod-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d3-prod-price { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.d3-prod-add { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
    background: var(--primary); color: var(--primary-ink); border-radius: 999px; padding: 8px 14px;
    font-size: .76rem; font-weight: 700; transition: opacity .15s; }
.d3-prod-add:hover { opacity: .9; }

/* ---- How it works ---- */
.d3-how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 48px; }
.d3-how { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: var(--r3); padding: 32px; }
.d3-how-num { position: absolute; inset-inline-end: 24px; top: 20px; font-size: 3rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.d3-how-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; }
.d3-how-ic.a-primary { background: rgba(30,178,183,.15); color: var(--primary); }
.d3-how-ic.a-accent { background: rgba(239,76,147,.15); color: var(--accent); }
.d3-how-ic.a-lime { background: rgba(164,230,53,.25); color: var(--lime-ink); }
[data-theme="dark"] .d3-how-ic.a-lime { color: #bfe873; }
.d3-how-title { font-size: 1.1rem; font-weight: 800; margin: 20px 0 0; }
.d3-how-desc { font-size: .9rem; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }

/* ---- Newsletter ---- */
.d3-cta-wrap { padding-bottom: clamp(56px,8vw,96px); }
.d3-cta { overflow: hidden; border-radius: var(--r3); background: var(--primary); color: var(--primary-ink);
    padding: clamp(40px,6vw,56px) clamp(24px,5vw,48px); text-align: center; }
.d3-cta-title { max-width: 36rem; margin: 0 auto; font-size: clamp(1.6rem,3.4vw,2.3rem); font-weight: 800;
    letter-spacing: -.02em; text-wrap: balance; }
.d3-cta-sub { max-width: 28rem; margin: 16px auto 0; line-height: 1.7; color: color-mix(in srgb, var(--primary-ink) 78%, transparent); }
.d3-cta-form { display: flex; flex-direction: column; gap: 12px; max-width: 28rem; margin: 28px auto 0; }
.d3-cta-form input { height: 48px; flex: 1; border-radius: 999px; padding: 0 20px; font: inherit; font-size: .9rem;
    border: 1px solid color-mix(in srgb, var(--primary-ink) 22%, transparent);
    background: color-mix(in srgb, var(--primary-ink) 12%, transparent); color: var(--primary-ink); }
.d3-cta-form input::placeholder { color: color-mix(in srgb, var(--primary-ink) 55%, transparent); }
.d3-cta-form input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-ink) 25%, transparent); }
.d3-cta-form button { height: 48px; border: 0; cursor: pointer; border-radius: 999px; padding: 0 26px;
    background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .9rem; transition: opacity .15s; }
.d3-cta-form button:hover { opacity: .9; }
.d3-cta-note { margin: 16px 0 0; font-size: .74rem; color: color-mix(in srgb, var(--primary-ink) 60%, transparent); }

/* ---- Footer ---- */
.d3-footer { border-top: 1px solid var(--line); background: var(--band); }
.d3-footer .d3-wrap { padding-top: 56px; padding-bottom: 56px; }
.d3-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.d3-foot-brand p { margin: 16px 0 0; max-width: 20rem; font-size: .9rem; line-height: 1.7; color: var(--muted); }
.d3-foot-col h3 { font-size: .88rem; font-weight: 700; margin: 0 0 16px; }
.d3-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.d3-foot-col a { font-size: .88rem; color: var(--muted); }
.d3-foot-col a:hover { color: var(--ink); text-decoration: none; }
.d3-foot-bottom { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; text-align: center;
    font-size: .78rem; color: var(--muted); }
.d3-foot-bottom a { color: var(--muted); }

/* ---- Inner (design-1 markup) cohesion under design 3 ---- */
body.d3 .btn-solid, body.d3 .btn-go { background: var(--primary); color: var(--primary-ink); }
body.d3 .section-head { text-align: start; }

/* ---- Sync the header theme-toggle icon (shared #themeToggle) ---- */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
    .d3-stores { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
    .d3-hero-grid { grid-template-columns: 1fr; }
    .d3-coll-grid, .d3-prod-grid, .d3-how-grid { grid-template-columns: repeat(2,1fr); }
    .d3-nav { display: none; }
    .d3-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
    .d3-hero-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .d3-stores { grid-template-columns: repeat(2,1fr); }
    .d3-prod-grid, .d3-coll-grid, .d3-how-grid { grid-template-columns: 1fr; }
    .d3-cta-form { flex-direction: column; }
    .d3-foot-grid { grid-template-columns: 1fr 1fr; }
    .d3-foot-brand { grid-column: 1 / -1; }
}
