/* =============================================
   TinyActiveKids — Main Stylesheet
   Colors: Teal #4EC4BF | Orange #F5874F
   ============================================= */

/* ---- Self-hosted fonts (latin) — no render-blocking Google request ---- */
/* Covers en + common fr/es accents (Latin-1). Rare glyphs fall back to system. */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-400-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-500-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/inter-600-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/inter-700-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/poppins-400-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/poppins-500-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/poppins-600-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/poppins-700-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap; src:url('/fonts/poppins-800-latin.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Accessibility: visible to screen readers, hidden visually */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Keyboard focus visibility (Best Practices) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--teal, #4EC4BF);
    outline-offset: 2px;
}

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

:root {
    --teal:        #4EC4BF;
    --teal-dark:   #3AADA8;
    --teal-light:  #E8F5F5;
    --orange:      #F5874F;
    --orange-dark: #E5743C;
    --text-dark:   #2D3748;
    --text-body:   #4A5568;
    --text-muted:  #5A6677;
    --border:      #E2E8F0;
    --bg-light:    #F7F8FC;
    --white:       #FFFFFF;
    --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
    --shadow-md:   0 4px 16px rgba(0,0,0,.10);
    --radius:      6px;
    --radius-lg:   12px;
    --container:   1280px;
    --transition:  .2s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;   /* stop iOS rescaling text in landscape */
    text-size-adjust: 100%;
}

/* Skip-to-content link: hidden until focused via keyboard (Tab) */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 2000;
    background: var(--teal-dark);
    color: #fff;
    padding: .6rem 1.1rem;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    text-decoration: none;
    transition: top .18s ease;
}
.skip-link:focus { top: 0; outline: 3px solid var(--orange); }
[dir="rtl"] .skip-link { left: auto; right: 1rem; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    background: var(--white);
    font-size: 16px;            /* mobile-readable baseline; avoids iOS input zoom */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* =============================================
   HEADER
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-top: 3px solid var(--teal);          /* matches the footer's teal accent */
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    /* Smart hide-on-scroll: slides up when scrolling down, back when scrolling up */
    transition: transform .3s ease, box-shadow .3s ease;
    will-change: transform;
}
.site-header.header-hidden { transform: translateY(-100%); }
/* Slightly stronger shadow once the page has scrolled, for depth */
.site-header.header-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.10); }

@media (prefers-reduced-motion: reduce) {
    .site-header { transition: none; }
    .site-header.header-hidden { transform: none; }   /* never hide if motion is reduced */
}

.header-top {
    padding: 0.5rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ---- Logo ---- */
.logo-link { flex-shrink: 0; }

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
}
.logo-link:hover .logo-box { transform: scale(1.04); }

.logo-box img {
    max-height: 96px;          /* large, borderless brand logo */
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.logo-icon { color: var(--orange); width: 26px; height: 22px; }

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
}

.logo-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: .02em;
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: .02em;
}

/* ---- Search ---- */
.search-form {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(78,196,191,.15);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    font-family: inherit;
    background: transparent;
}
.search-input::placeholder { color: var(--text-muted); }

.search-btn {
    background: var(--white);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    color: var(--orange);
    transition: background var(--transition);
    border-left: 1px solid var(--border);
}
.search-btn:hover { background: var(--teal-light); }
.search-btn svg { width: 18px; height: 18px; }

/* ---- Header Actions (icons) ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--orange);
    transition: background var(--transition), transform var(--transition);
    position: relative;
}
.action-btn:hover { background: var(--teal-light); transform: translateY(-2px); }
.action-btn svg { width: 22px; height: 22px; }

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--teal);
    color: var(--white);
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ---- Mobile Toggle (burger) ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius);
    background: transparent;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    flex-shrink: 0;
}
.menu-toggle:hover { background: var(--teal-light); border-color: var(--teal); }
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--teal-dark);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
    transform-origin: center;
}
/* Animated X when open */
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Mobile nav overlay ---- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 998;
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none; /* invisible & click-through until the drawer opens */
    transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

/* Drawer-only elements — hidden on desktop */
.nav-drawer-head,
.nav-section-label { display: none; }

/* ---- Site Navigation (desktop) ---- */
.site-nav {
    border-top: 1px solid var(--border);
    background: var(--white);
}

.nav-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.nav-links li a {
    display: inline-block;
    padding: 0.7rem 1.05rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;          /* matches the footer's "Explore" links */
    color: var(--text-dark);
    letter-spacing: .04em;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
    color: #E6258E;                     /* the footer's pink — shared accent */
    border-bottom-color: #E6258E;
}

/* ★ Shop highlighted (keeps the orange brand pop) */
.nav-shop { color: var(--orange) !important; }
.nav-shop:hover, .nav-shop.active { color: var(--orange-dark) !important; border-bottom-color: var(--orange) !important; }

/* Divider + "Categories" label between pages and categories */
.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 0.85rem;
    flex-shrink: 0;
}
.nav-cats-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #E6258E;                 /* shared pink accent (matches footer headings) */
    padding-right: 0.5rem;
    white-space: nowrap;
}

/* =============================================
   HERO SECTION
   ============================================= */
/* =============================================
   HERO — SPLIT LAYOUT (image + text)
   ============================================= */
.hero-split {
    padding: 3rem 0 2.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero-split__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
}

/* ---- LEFT: text ---- */
.hero-split__text { display: flex; flex-direction: column; gap: 1.25rem; }

.hero-split__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--teal-light);
    color: var(--teal-dark);
    border: 1px solid var(--teal);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    width: fit-content;
}
.hero-split__tag svg { width: 13px; height: 13px; }

.hero-split__title {
    font-size: clamp(1.75rem, 3vw, 2.7rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -.02em;
}
.hero-split__title span { color: var(--orange); }

.hero-split__desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 480px;
}

.hero-split__btns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Stats strip */
.hero-split__stats {
    display: flex;
    gap: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.hero-stat strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--teal-dark);
    line-height: 1;
}
.hero-stat span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---- RIGHT: image grid ---- */
.hero-split__images { position: relative; }

.hero-img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 200px;
    gap: 10px;
}

.hero-img-main {
    grid-column: 1;
    grid-row: 1 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero-img-sm1 {
    grid-column: 2;
    grid-row: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero-img-sm2 {
    grid-column: 2;
    grid-row: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero-img-main img,
.hero-img-sm1 img,
.hero-img-sm2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.hero-img-main:hover img,
.hero-img-sm1:hover img,
.hero-img-sm2:hover img { transform: scale(1.04); }

/* floating badge on image grid */
.hero-img-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    pointer-events: none;
}
.hero-img-badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #38A169;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(1.3); }
}

/* Global accessibility: honour users who prefer reduced motion.
   Near-instant instead of fully off so essential state changes still register. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive hero split */
@media (max-width: 900px) {
    .hero-split__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-img-grid {
        grid-template-rows: 180px 160px;
    }
    .hero-split__images { order: -1; }
}

@media (max-width: 600px) {
    .hero-split { padding: 1.75rem 0 2rem; }
    .hero-img-grid {
        grid-template-rows: 150px 130px;
        gap: 8px;
    }
    .hero-split__title { font-size: 1.6rem; }
    .hero-split__desc { font-size: .92rem; }
    .hero-split__stats { gap: 1.25rem; }
    .hero-img-badge { display: none; }
}

/* Legacy .hero (keep for safety) */
.hero { padding: 3rem 0 2.5rem; }
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(245,135,79,.3);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245,135,79,.35);
}
.btn-outline {
    background: transparent;
    color: var(--teal-dark);
    border: 2px solid var(--teal);
}
.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-1px);
}

/* =============================================
   HOME — FEATURED (magazine hero)
   ============================================= */
.home-featured { padding: 2rem 0 0.5rem; }

.featured-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* Large featured */
.featured-main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 440px;
    display: flex;
    background: var(--text-dark);
}
.featured-main__media { position: absolute; inset: 0; display: block; }
.featured-main__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.featured-main:hover .featured-main__media img { transform: scale(1.04); }
.featured-main__ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--teal-light), #FEF3ED);
}
.featured-main__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,30,40,.88) 0%, rgba(20,30,40,.35) 45%, rgba(20,30,40,0) 70%);
}
.featured-main__content {
    position: relative;
    margin-top: auto;
    padding: 1.75rem;
    z-index: 1;
    color: #fff;
}
.featured-badge {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 0.85rem;
}
.featured-badge:hover { background: var(--orange-dark); }
.featured-main__title {
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.6rem;
}
.featured-main__title a { color: #fff; }
.featured-main__title a:hover { color: var(--teal-light); }
.featured-main__excerpt {
    font-size: 0.92rem;
    color: rgba(255,255,255,.82);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-main__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,.7);
}
.featured-read {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}
.featured-read:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.featured-read svg { width: 14px; height: 14px; }

/* Secondary featured (stacked) */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.featured-side__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.featured-side__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.featured-side__media {
    display: block;
    height: 130px;
    overflow: hidden;
    background: var(--teal-light);
    flex-shrink: 0;
}
.featured-side__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.featured-side__item:hover .featured-side__media img { transform: scale(1.05); }
.featured-side__ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--teal-light), #FEF3ED);
}
.featured-side__content { padding: 0.9rem 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.featured-side__cat {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--orange);
}
.featured-side__title {
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-dark);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-side__title a:hover { color: var(--teal-dark); }
.featured-side__date { font-size: 0.74rem; color: var(--text-muted); margin-top: auto; }

@media (max-width: 900px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-main { min-height: 360px; }
    .featured-side { flex-direction: row; }
    .featured-side__item { flex: 1; }
}
@media (max-width: 600px) {
    .featured-side { flex-direction: column; }
    .featured-main { min-height: 300px; }
    .featured-main__content { padding: 1.25rem; }
}

/* 4-up product grid on the home page */
.products-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .products-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .products-grid--4 { grid-template-columns: 1fr; } }

/* 6-up bookshop row (home "From the Shop") — small, dense cards. */
.products-grid--6 { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.products-grid--6 .product-card__name { font-size: .84rem; -webkit-line-clamp: 2; }
.products-grid--6 .product-card__cat,
.products-grid--6 .product-card__desc,
.products-grid--6 .product-card__format { font-size: .73rem; }
.products-grid--6 .product-card__body { gap: .12rem; padding-top: .55rem; }
.products-grid--6 .product-card__quick { padding: .4rem .75rem; font-size: .72rem; }
.products-grid--6 .price-current,
.products-grid--6 .price-free { font-size: .85rem; }
.products-grid--6 .price-original { font-size: .72rem; }
@media (max-width: 1200px) { .products-grid--6 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .products-grid--6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .products-grid--6 { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }

.section--shop, .section--cats { border-top: 1px solid var(--border); }

/* =============================================
   SECTIONS
   ============================================= */
.section {
    padding: 3.5rem 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

.section-link {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}
.section-link:hover { color: var(--orange); }
.section-link svg { width: 14px; height: 14px; }

/* =============================================
   POST GRID & CARDS
   ============================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    position: relative; /* anchor for the stretched title link */
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
/* Lift on hover AND when any link inside is keyboard-focused (focus parity) */
.post-card:hover,
.post-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.post-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--teal-light);
}

.post-card__img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--teal-light), #FEF3ED);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}
.post-card__img-placeholder svg { width: 40px; height: 40px; opacity: .4; }

.post-card__body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--orange);
    margin-bottom: 0.5rem;
}
.post-card__cat:hover { color: var(--teal-dark); }

.post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 0.6rem;
}
.post-card__link {
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
/* Stretch the title link over the whole card so the entire card is clickable */
.post-card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.post-card:hover .post-card__link,
.post-card:focus-within .post-card__link { color: var(--teal-dark); }
/* Keep the real sub-links (category, Read) clickable above the stretched link */
.post-card__cat,
.post-card__read { position: relative; z-index: 2; }

.post-card__excerpt {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 1rem;
}

.post-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
    margin-top: auto;
}

.post-card__date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.post-card__date svg { width: 13px; height: 13px; }

.post-card__read {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal-dark);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.post-card__read:hover { color: var(--orange); }

/* =============================================
   CATEGORY PILLS (home page)
   ============================================= */
.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-body);
    transition: all var(--transition);
}
.category-pill:hover {
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal-dark);
    transform: translateY(-1px);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state svg { width: 60px; height: 60px; opacity: .3; margin: 0 auto 1rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.88rem; }

/* =============================================
   BLOG INDEX PAGE
   ============================================= */
.page-banner {
    background: linear-gradient(135deg, var(--teal-light), #FEF3ED);
    padding: 2.5rem 0;
    margin-bottom: 2.5rem;
}
.page-banner h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}
.page-banner p { color: var(--text-muted); margin-top: 0.4rem; }

/* =============================================
   SINGLE POST PAGE
   ============================================= */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

.post-article { min-width: 0; }

.post-header { margin-bottom: 2rem; }

.post-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.post-cat-badge {
    display: inline-block;
    background: var(--teal-light);
    color: var(--teal-dark);
    border: 1px solid var(--teal);
    border-radius: 50px;
    padding: 0.2rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: all var(--transition);
}
.post-cat-badge:hover { background: var(--teal); color: var(--white); }

.post-title {
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--border);
}
.post-meta-bar span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.post-meta-bar svg { width: 14px; height: 14px; }

.post-featured-img {
    width: 100%;
    height: auto;            /* width/height attrs reserve space (anti-CLS), CSS scales it */
    aspect-ratio: 1200 / 630;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    max-height: 460px;
    object-fit: cover;
}

/* Article body: airy, editorial reading experience.
   Inter for comfortable long-form text; Poppins for calm, spacious headings. */
.post-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.13rem;
    line-height: 1.85;
    color: var(--text-body);
    letter-spacing: -0.003em;
    max-width: 75ch;             /* comfortable reading measure (not edge-to-edge) */
}
.post-content > :first-child { margin-top: 0; }
.post-disclosure {
    font-size: .82rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: .6rem .9rem;
    margin: 0 0 1.5rem;
}
.post-content h2,
.post-content h3,
.post-content h4 { font-family: 'Poppins', sans-serif; color: var(--text-dark); letter-spacing: -0.01em; }
.post-content h2 { font-size: 1.75rem; font-weight: 600; line-height: 1.25; margin: 2.75rem 0 1rem; }
.post-content h3 { font-size: 1.32rem; font-weight: 600; line-height: 1.3; margin: 2rem 0 0.65rem; }
.post-content h4 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1.5rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-content li { margin-bottom: 0.55rem; }
.post-content li::marker { color: var(--teal); }
.post-content a { color: var(--teal-dark); text-decoration: underline; }
.post-content a:hover { color: var(--orange); }
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }

/* ── Auto Table of Contents ── */
.post-toc {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 0 2rem;
}
.post-toc__title {
    font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-muted); margin: 0 0 .55rem;
}
.post-toc__list { margin: 0; padding-left: 1.15rem; display: grid; gap: .35rem; }
.post-toc__list li { color: var(--text-muted); }
.post-toc__list a { color: var(--teal-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.post-toc__list a:hover { color: var(--orange); text-decoration: underline; }
/* Offset anchored headings so they aren't hidden under the sticky header. */
.post-content h2[id] { scroll-margin-top: 90px; }
.post-content blockquote {
    border-left: 4px solid var(--teal);
    padding: 1rem 1.5rem;
    background: var(--teal-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-dark);
}
/* Tables: scroll within their own box on mobile instead of breaking the page */
.post-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    white-space: nowrap;
}
.post-content th,
.post-content td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.85rem;
    text-align: left;
    vertical-align: top;
}
.post-content thead th {
    background: var(--teal-light);
    color: var(--text-dark);
    font-weight: 700;
}
.post-content tbody tr:nth-child(even) { background: var(--bg-light); }
.post-content code {
    background: var(--bg-light);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--orange-dark);
}
.post-content pre {
    background: var(--text-dark);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
}
.post-content pre code { background: none; color: inherit; padding: 0; }

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.post-tag {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 50px;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all var(--transition);
}
.post-tag:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ---- Sidebar ---- */
.sidebar { position: sticky; top: 90px; }

.sidebar-widget {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--teal);
}

.sidebar-cats li {
    border-bottom: 1px solid var(--border);
}
.sidebar-cats li:last-child { border-bottom: none; }
.sidebar-cats li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0;
    font-size: 0.84rem;
    color: var(--text-body);
    transition: color var(--transition);
}
.sidebar-cats li a:hover { color: var(--teal-dark); }
.sidebar-cats li a svg { width: 14px; height: 14px; color: var(--text-muted); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination-wrap nav { display: flex; gap: 0.4rem; }
.pagination-wrap .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius);
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-body);
    border: 1px solid var(--border);
    transition: all var(--transition);
    padding: 0 0.5rem;
}
.pagination-wrap .page-item.active .page-link {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}
.pagination-wrap .page-item .page-link:hover:not(.active .page-link) {
    background: var(--teal-light);
    border-color: var(--teal);
    color: var(--teal-dark);
}
.pagination-wrap .page-item.disabled .page-link { opacity: 0.4; }

/* =============================================
   SEARCH RESULTS BANNER
   ============================================= */
.search-banner {
    background: var(--teal-light);
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
    color: var(--teal-dark);
}
.search-banner strong { color: var(--text-dark); }

/* =============================================
   FOOTER
   ============================================= */
/* ── Comments ─────────────────────────────── */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.comments__title { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.25rem; }
.comments__count { font-size: .8rem; font-weight: 700; background: var(--bg-light); color: var(--text-muted); padding: .15rem .6rem; border-radius: 999px; }
.comments__alert { background: #ECFDF3; border: 1px solid #A7F3C8; color: #1A7F45; padding: .7rem 1rem; border-radius: var(--radius); font-size: .85rem; margin-bottom: 1.25rem; }
.comments__login { font-size: .9rem; color: var(--text-muted); background: var(--bg-light); padding: 1rem 1.25rem; border-radius: var(--radius); }
.comments__login a { color: var(--teal-dark); font-weight: 600; }
.comments__empty { color: var(--text-muted); font-size: .9rem; padding: 1rem 0; }

.comment-form { margin-bottom: 2rem; }
.comment-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-form__label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-dark); margin-bottom: .5rem; }
.comment-form__input { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: .9rem; color: var(--text-dark); resize: vertical; outline: none; transition: border-color .15s, box-shadow .15s; }
.comment-form__input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(78,196,191,.15); }
.comment-form__input.is-error { border-color: #FC8181; }
.comment-form__error { font-size: .78rem; color: #E53E3E; margin-top: .35rem; }
.comment-form__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; flex-wrap: wrap; }
.comment-form__as { font-size: .8rem; color: var(--text-muted); }

.comment-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.comment { display: flex; gap: .9rem; }
.comment__avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .25rem; flex-wrap: wrap; }
.comment__author { font-weight: 600; font-size: .88rem; color: var(--text-dark); }
.comment__date { font-size: .75rem; color: var(--text-muted); }
.comment__text { font-size: .9rem; line-height: 1.6; color: var(--text-body); word-break: break-word; margin: 0; }
.comment__delete { margin-top: .35rem; }
.comment__delete-btn { background: none; border: none; color: #E53E3E; font-size: .76rem; font-weight: 600; cursor: pointer; padding: 0; }
.comment__delete-btn:hover { text-decoration: underline; }
.comments__pagination { margin-top: 1.5rem; }
[dir="rtl"] .comment { flex-direction: row-reverse; }

/* ===== Footer — white, 3-column, brand-coloured ===== */
.site-footer {
    position: relative;
    background: var(--white);
    margin-top: 4rem;
    border-top: 1px solid var(--teal);
}

.footer-top {
    padding: 3rem 0 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
/* Thin vertical dividers between the three columns */
.footer-top > * + * { border-left: 1px solid var(--border); padding-left: 2.5rem; }

/* Shared heading look (pink/magenta, bold, rounded display feel) */
.footer-social h4,
.footer-explore h4 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #E6258E;
    margin: 0 0 .75rem;
    letter-spacing: -.01em;
}

/* Column 1 — keep in touch */
.footer-social p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    max-width: 22ch;
    margin: 0 0 1.4rem;
}
.footer-socials { display: flex; gap: .85rem; flex-wrap: wrap; }
.fsoc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid currentColor;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.fsoc svg { width: 19px; height: 19px; color: #2D3748; }
/* Brand-coloured rings (matches the reference's multi-colour circles) */
.fsoc--ig  { color: #F5874F; }
.fsoc--yt  { color: #8DC63F; }
.fsoc--fb  { color: #2BA89F; }
.fsoc--tw  { color: #C7D300; }
.fsoc--pin { color: #E6258E; }
.fsoc:hover { transform: translateY(-3px); background: currentColor; }

/* ── Pinterest "Save" overlay button ──
   Sits on an image inside a `.pin-save-wrap` (position:relative) parent —
   Pinterest's own brand red, top-right, shown on hover (always visible on
   touch/coarse-pointer devices since there's no hover there). */
.pin-save-wrap { position: relative; }
.pin-save-btn {
    position: absolute;
    top: .75rem; right: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .9rem;
    background: #E60023;
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    text-decoration: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.pin-save-wrap:hover .pin-save-btn,
.pin-save-btn:focus-visible { opacity: 1; transform: translateY(0); }
.pin-save-btn:hover { background: #ad081b; }
.pin-save-btn svg { width: 15px; height: 15px; }
@media (hover: none) {
    /* Touch devices have no hover — keep the button visible, just subtler. */
    .pin-save-btn { opacity: .92; transform: none; }
}
.fsoc:hover svg { color: #fff; }

/* Column 2 — centred logo */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-brand .logo-box {
    background: transparent;
    border: none;
    padding: 0;
}
.footer-brand .logo-box img { max-width: 240px; max-height: none; height: auto; }
.footer-brand .logo-name { color: var(--teal-dark); }
.footer-brand .logo-sub { color: var(--orange); }

/* Column 3 — explore links in two sub-columns */
.footer-explore__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem 1.5rem;
}
.footer-explore ul { list-style: none; padding: 0; margin: 0; }
.footer-explore li { margin-bottom: .65rem; }
.footer-explore a {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #2D3748;
    transition: color .15s ease;
}
.footer-explore a:hover { color: #E6258E; }

/* Teal bottom bar */
.footer-bottom {
    background: var(--teal-dark);
    color: rgba(255,255,255,.92);
    padding: 1rem 0;
    font-size: 0.85rem;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a {
    color: rgba(255,255,255,.9);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
}
.footer-legal a:hover { color: #fff; }

/* RTL + responsive */
[dir="rtl"] .footer-top > * + * { border-left: none; border-right: 1px solid var(--border); padding-left: 0; padding-right: 2.5rem; }

/* Tablet: tighten the gaps/dividers so 3 columns still breathe */
@media (max-width: 1024px) and (min-width: 861px) {
    .footer-top { gap: 1.5rem; }
    .footer-top > * + * { padding-left: 1.5rem; }
    [dir="rtl"] .footer-top > * + * { padding-right: 1.5rem; }
    .footer-social h4, .footer-explore h4 { font-size: 1.4rem; }
    /* Tablet: centre the footer logo and make it a touch smaller */
    .footer-brand { justify-content: center; }
    .footer-brand .logo-box img { max-width: 150px; }
    .footer-explore__cols { gap: .4rem 1rem; }
}

/* Small tablet / phone: stack into one centred column, drop dividers */
@media (max-width: 860px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 2.5rem 0 2rem;
    }
    .footer-top > * + * { border-left: none; padding-left: 0; }
    [dir="rtl"] .footer-top > * + * { border-right: none; padding-right: 0; }
    /* Logo first, then keep-in-touch, then explore — visual order */
    .footer-brand { order: -1; }
    .footer-social p { max-width: none; margin-left: auto; margin-right: auto; }
    .footer-socials { justify-content: center; }
    .footer-explore__cols { display: inline-grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; text-align: left; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}

/* Phones: hide the footer logo to save vertical space */
@media (max-width: 640px) {
    .footer-brand { display: none; }
}

/* Very small phones: explore links go single column, centred */
@media (max-width: 420px) {
    .footer-explore__cols { grid-template-columns: 1fr; text-align: center; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .post-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 1024px) {
    /* Switch to the burger + drawer on tablets too — the full horizontal nav
       (pages + 5 category pills) overflows/wraps below ~1024px, which looked
       unprofessional. The drawer is the clean pattern at this width. */
    .menu-toggle { display: flex; }
    .nav-overlay { display: block; }

    /* Header row: logo (left) … search … actions + burger (right). */
    .header-inner { flex-wrap: nowrap; gap: 0.75rem; }
    .logo-link { flex-shrink: 0; }
    .logo-box img { max-height: 72px; }
    .search-form { flex: 1; min-width: 0; }
    .header-actions { flex-shrink: 0; gap: 0.35rem; }

    /* ══════════ Mobile / tablet drawer (redesigned) ══════════ */
    .site-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: min(340px, 88vw);
        height: 100dvh;
        background: var(--white);
        z-index: 999;
        border-top: none;
        box-shadow: 8px 0 40px rgba(0,0,0,.18);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: left .32s cubic-bezier(.4,0,.2,1);
        display: flex;
        flex-direction: column;
        padding-bottom: 1.5rem;
    }
    .site-nav.is-open { left: 0; }

    /* RTL: slide from the right */
    [dir="rtl"] .site-nav { left: auto; right: -100%; }
    [dir="rtl"] .site-nav.is-open { right: 0; }

    /* ── Branded header ── */
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: 1rem 1.1rem;
        border-bottom: 1px solid var(--border);
        position: sticky; top: 0;
        background: var(--white);
        z-index: 2;
    }
    .nav-drawer-brand { display: flex; align-items: center; }
    .nav-drawer-brand img { max-height: 52px; width: auto; display: block; }
    .nav-drawer-brand span { font-weight: 800; color: var(--teal-dark); font-size: 1.05rem; }
    .nav-drawer-title { display: none; }
    .nav-drawer-close {
        width: 40px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%;
        color: var(--text-dark);
        background: var(--bg-light);
        transition: background var(--transition), color var(--transition);
        cursor: pointer; border: none; flex-shrink: 0;
    }
    .nav-drawer-close:hover { background: var(--teal-light); color: var(--teal-dark); }
    .nav-drawer-close svg { width: 20px; height: 20px; }

    /* ── Sections ── */
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .75rem 0 0;
        max-width: none;
    }

    .nav-section-label {
        display: block;
        padding: 1.1rem 1.25rem .5rem;
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .1em;
        color: #E6258E;                 /* shared brand accent (matches header/footer) */
    }

    .nav-divider { display: none; }
    .nav-cats-label { display: none; }

    /* ── Links: big, tappable rows with a chevron ── */
    .nav-links { flex-direction: column; gap: 0; width: 100%; }
    .nav-links li { padding: 0 .75rem; }
    .nav-links li a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.9rem 1rem;
        min-height: 48px;               /* comfortable tap target */
        font-size: 0.98rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        border: none;
        border-radius: 12px;
        color: var(--text-dark);
        transition: background var(--transition), color var(--transition);
    }
    /* chevron affordance on the right */
    .nav-links li a::after {
        content: "";
        width: 7px; height: 7px;
        margin-left: auto;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: rotate(-45deg);
        opacity: .5;
        transition: transform var(--transition), border-color var(--transition);
    }
    .nav-links li a:hover,
    .nav-links li a:active { background: var(--teal-light); color: var(--teal-dark); }
    .nav-links li a:hover::after { border-color: var(--teal-dark); transform: translateX(2px) rotate(-45deg); }
    .nav-links li a.active {
        background: rgba(78,196,191,.14);
        color: var(--teal-dark);
        font-weight: 700;
    }
    .nav-links li a.active::after { border-color: var(--teal-dark); opacity: 1; }

    .nav-shop { color: var(--orange) !important; }
    .nav-shop:hover, .nav-shop.active { background: rgba(245,135,79,.1) !important; color: var(--orange-dark) !important; }
    .nav-shop:hover::after, .nav-shop.active::after { border-color: var(--orange-dark) !important; }

    /* RTL: flip the chevron */
    [dir="rtl"] .nav-links li a::after { margin-left: 0; margin-right: auto; transform: rotate(135deg); }
    [dir="rtl"] .nav-links li a:hover::after { transform: translateX(-2px) rotate(135deg); }

    /* Category rows: slightly smaller, indented feel */
    .nav-links--cats li a { font-size: 0.9rem; font-weight: 500; padding: 0.8rem 1rem; }

    /* Rest of page layout */
    .hero { padding: 2.5rem 0 2rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 260px; justify-content: center; }
    .section-header { flex-direction: column; gap: 0.5rem; }
    .posts-grid { grid-template-columns: 1fr; }
}

/* True mobile: hide the header search (crowds the bar); logo left, actions right */
@media (max-width: 768px) {
    .header-inner { justify-content: space-between; gap: 0.6rem; }
    .logo-link { margin-right: auto; }
    .search-form { display: none; }

    /* iOS zooms in when a tapped input is < 16px — force 16px on mobile so the
       page doesn't jump. Applies to every text field across the site. */
    input[type="text"], input[type="email"], input[type="search"],
    input[type="password"], input[type="number"], textarea, select,
    .shop-search__input, .comment-form__input, .nl-box__input, .ainput {
        font-size: 16px !important;
    }

    /* Comfortable, airy reading on phones (proportional to the desktop scale) */
    .post-content { font-size: 1.08rem; line-height: 1.8; max-width: none; }
    .post-content h2 { font-size: 1.5rem; margin-top: 2.25rem; }
    .post-content h3 { font-size: 1.22rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .logo-box img { max-height: 64px; }
    .logo-name, .logo-sub { font-size: 0.75rem; }
    .action-btn { width: 36px; height: 36px; }
    .action-btn svg { width: 20px; height: 20px; }
}

/* =============================================
   SHOP — BADGES
   ============================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.4;
}
.badge-digital  { background: var(--teal-light); color: var(--teal-dark); border: 1px solid var(--teal); }
.badge-affiliate{ background: #FEF3ED;            color: var(--orange-dark); border: 1px solid var(--orange); }
.badge-sale     { background: #FFF0F0;            color: #E53E3E; border: 1px solid #FC8181; }
.badge-free     { background: #F0FFF4;            color: #276749; border: 1px solid #68D391; }
.badge-featured { background: #FFFFF0;            color: #975A16; border: 1px solid #F6E05E; }

/* =============================================
   SHOP — FILTER BAR (top)
   ============================================= */
.shop-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

/* Shop search box (class-based; was inline-styled) */
.shop-search {
    display: flex;
    flex: 1;
    min-width: 180px;
    max-width: 300px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.shop-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(78,196,191,.15); }
.shop-search__input {
    flex: 1; min-width: 0;
    padding: .45rem .8rem;
    border: none; outline: none;
    font-family: inherit; font-size: .85rem; color: var(--text-dark);
    background: transparent;
}
.shop-search__btn {
    display: flex; align-items: center;
    padding: .45rem .8rem;
    background: var(--white);
    border: none; border-left: 1px solid var(--border);
    color: var(--orange); cursor: pointer;
}
.shop-search__btn svg { width: 15px; height: 15px; }
.shop-search__btn:hover { background: var(--teal-light); }
.shop-count {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-right: auto;
}
.shop-count strong { color: var(--text-dark); }

.type-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.type-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.38rem 0.9rem;
    border-radius: 50px;
    border: 1.5px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
    background: var(--white);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.type-pill:hover               { border-color: var(--teal); color: var(--teal-dark); }
.type-pill.active              { background: var(--teal); border-color: var(--teal); color: var(--white); }
.type-pill.type-digital.active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.type-pill.type-affiliate.active{ background: var(--orange); border-color: var(--orange); color: var(--white); }

.sort-select {
    padding: 0.38rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}
.sort-select:focus { border-color: var(--teal); }

/* =============================================
   SHOP — LAYOUT (sidebar + grid)
   ============================================= */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}

/* ---- Filter Sidebar ---- */
.filter-sidebar {
    position: sticky;
    top: 90px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.filter-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
}
.filter-sidebar-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: .05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.filter-sidebar-header h3 svg { width: 15px; height: 15px; color: var(--teal-dark); }

.filter-clear {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
}
.filter-clear:hover { color: var(--orange-dark); text-decoration: underline; }

.filter-group {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; }
.filter-group-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 0.75rem;
}

.filter-options { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.42rem 0.65rem;
    border-radius: var(--radius);
    font-size: 0.83rem;
    color: var(--text-body);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    border: 1.5px solid transparent;
}
.filter-option:hover                     { background: var(--bg-light); color: var(--text-dark); }
.filter-option.active                    { background: var(--teal-light); color: var(--teal-dark); border-color: var(--teal); font-weight: 600; }
.filter-option.active.type-affiliate-opt { background: #FEF3ED; color: var(--orange-dark); border-color: var(--orange); }

.filter-option-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-all       { background: var(--text-muted); }
.dot-digital   { background: var(--teal); }
.dot-affiliate { background: var(--orange); }
.dot-free      { background: #38A169; }

.filter-option-count {
    font-size: 0.7rem;
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.1rem 0.45rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    margin-left: auto;
}
.filter-option.active .filter-option-count { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Mobile filter toggle */
.filter-toggle-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}
.filter-toggle-btn svg { width: 16px; height: 16px; }
.filter-toggle-btn:hover { border-color: var(--teal); color: var(--teal-dark); }

/* =============================================
   SHOP — PRODUCT CARDS
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* ── Product / book cards — clean bookshop style (cover-first) ──
   No card box: the uncropped cover IS the card, with a quiet left-aligned
   text stack underneath (title → category → blurb → format → price). */
.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    background: #F4F2EE;
    transition: box-shadow var(--transition);
}
.product-card:hover .product-card__thumb { box-shadow: var(--shadow-md); }
.product-card__cover { display: block; width: 100%; height: 100%; }
.product-card__thumb img {
    width: 100%; height: 100%;
    object-fit: contain;               /* never crop product art */
    transition: transform .3s ease;
}
.product-card--book .product-card__thumb img { object-fit: cover; } /* book covers are exactly 3:4 */
.product-card:hover .product-card__thumb img { transform: scale(1.03); }

/* Quick action — slides up over the cover on hover; always visible on touch. */
.product-card__quick {
    position: absolute;
    left: 50%; bottom: .75rem;
    transform: translate(-50%, 8px);
    opacity: 0;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.05rem;
    border: 0;
    border-radius: var(--radius);
    background: var(--teal-dark);
    color: #fff;
    font-family: inherit;
    font-size: .8rem; font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    text-decoration: none;
    transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.product-card__quick svg { width: 15px; height: 15px; }
.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick {
    opacity: 1;
    transform: translate(-50%, 0);
}
.product-card__quick:hover { background: var(--orange-dark); }
@media (hover: none) {
    .product-card__quick { opacity: 1; transform: translate(-50%, 0); }
}

.product-card__thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
}
.product-card__thumb-placeholder svg { width: 42px; height: 42px; }

.product-card__badges {
    position: absolute;
    top: .6rem; left: .6rem;
    display: flex; flex-direction: column; gap: .3rem;
    pointer-events: none;
}

/* Details stack — bookshop typography, no box around it. */
.product-card__body {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    padding: .7rem .1rem 0;
    min-width: 0;
}

.product-card__name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__name:hover { color: var(--teal-dark); }

.product-card__cat {
    font-size: .82rem;
    font-weight: 600;
    color: var(--teal-dark);
    text-decoration: none;
    width: fit-content;
}
.product-card__cat:hover { text-decoration: underline; }

.product-card__desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__format {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: .18rem;
}

/* ---- Price ---- */
.price-wrap { display: flex; align-items: baseline; gap: .45rem; margin-top: .12rem; }
.price-current {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}
.price-current.is-sale { color: var(--orange-dark); font-weight: 700; }
.price-original {
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1.2;
}
.price-free {
    font-size: .95rem;
    font-weight: 700;
    color: #276749;
}

/* ---- CTA Button on card ---- */
.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}
.btn-card svg { width: 13px; height: 13px; }
.btn-card-digital {
    background: var(--teal);
    color: var(--white);
}
.btn-card-digital:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-card-affiliate {
    background: var(--orange);
    color: var(--white);
}
.btn-card-affiliate:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-card-free {
    background: #38A169;
    color: var(--white);
}
.btn-card-free:hover { background: #276749; transform: translateY(-1px); }

/* =============================================
   SHOP — SINGLE PRODUCT PAGE
   ============================================= */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding: 2.5rem 0;
}

.product-gallery { position: sticky; top: 90px; }

.product-main-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
/* Book products: portrait cover shown whole, styled as a real book —
   kept modest in size so the info column leads the page. */
.product-gallery--book .product-main-img {
    aspect-ratio: 3/4;
    max-height: 400px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    border: none;
    border-radius: 4px 12px 12px 4px;
    border-left: 4px solid rgba(0, 0, 0, .18);
    box-shadow: -12px 14px 30px rgba(0, 0, 0, .28);
}
.product-gallery--book {
    background: linear-gradient(135deg, #f6f1e7, #e9e2d3);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
}
.product-main-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--teal-light), #FEF3ED);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
}
.product-main-img-placeholder svg { width: 64px; height: 64px; }

.product-gallery-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.thumb-btn {
    padding: 0; border: 2px solid var(--border); border-radius: var(--radius);
    background: none; cursor: pointer; line-height: 0; overflow: hidden;
    transition: border-color var(--transition);
}
.thumb-btn img { width: 68px; height: 68px; object-fit: cover; display: block; }
.thumb-btn:hover { border-color: var(--teal); }
.thumb-btn.is-active { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-light); }
.thumb-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Trust badges (icon + label) */
.trust-badges {
    list-style: none; padding: 0; margin: 1.25rem 0 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
}
.trust-badge {
    display: flex; flex-direction: column; align-items: center; gap: .4rem;
    text-align: center; padding: .85rem .5rem;
    background: var(--bg-light); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.trust-badge__icon { color: var(--teal); }
.trust-badge__icon svg { width: 22px; height: 22px; }
.trust-badge__label { font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; line-height: 1.3; }

/* Inline badge / pill icons */
.badge-ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.pill-ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
[dir="rtl"] .badge-ic, [dir="rtl"] .pill-ic { margin-right: 0; margin-left: 3px; }

.product-info { display: flex; flex-direction: column; gap: 1.25rem; }

.product-info__cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}
.product-info__cat a:hover { color: var(--teal-dark); }

.product-info__title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.product-info__badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.product-info__price-block {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.product-info__price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}
.product-info__price.is-sale { color: var(--orange-dark); }
.product-info__price.is-free { color: #276749; }
.product-info__original {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-info__save {
    font-size: 0.8rem;
    font-weight: 700;
    color: #E53E3E;
    background: #FFF0F0;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    border: 1px solid #FC8181;
}

.product-info__short-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.75;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 3px solid var(--teal);
}

.product-info__cta-group { display: flex; flex-direction: column; gap: 0.75rem; }

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 700;
    transition: all var(--transition);
    text-decoration: none;
    width: 100%;
}
.btn-cta svg { width: 18px; height: 18px; }

.btn-cta-digital {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(78,196,191,.35);
}
.btn-cta-digital:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(78,196,191,.4); }

.btn-cta-affiliate {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245,135,79,.35);
}
.btn-cta-affiliate:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,135,79,.4); }

.btn-cta-free {
    background: #38A169;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(56,161,105,.3);
}
.btn-cta-free:hover { background: #276749; transform: translateY(-2px); }

.product-info__note {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.product-info__note svg { width: 14px; height: 14px; color: var(--teal); }

.product-info__meta-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}
.product-info__meta-list dt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}
.product-info__meta-list dd {
    font-size: 0.84rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

/* ---- Product Description ---- */
.product-desc-section { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.product-desc-section h2 {
    font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
    margin-bottom: 1.25rem; padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
}
.product-description { font-size: 0.95rem; color: var(--text-body); line-height: 1.85; }
.product-description h3 { font-size: 1.05rem; font-weight: 600; color: var(--text-dark); margin: 1.25rem 0 0.5rem; }
.product-description p { margin-bottom: 1rem; }
.product-description ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.product-description li { margin-bottom: 0.4rem; }

/* ---- Related Products ---- */
.related-section { padding: 2rem 0 3rem; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* =============================================
   SHOP — RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 200px 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .product-layout { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; display: none; }
    .filter-sidebar.is-open { display: block; }
    .filter-toggle-btn { display: flex; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-toolbar { gap: 0.5rem; }
    /* 2-up, not 1-up: full-width cards (especially book covers) are huge
       on a phone — two compact cards per row reads like a real bookshop. */
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
    .product-layout { padding: 1rem 0 1.5rem; gap: 1.25rem; }

    /* Product detail, phone-sized: compact gallery + tighter info column. */
    .product-gallery--book { padding: 1rem .75rem; }
    .product-gallery--book .product-main-img { max-height: 300px; }
    .product-main-img { aspect-ratio: 16/10; }
    .product-info { gap: .9rem; }
    .product-info__title { font-size: 1.3rem; }
    .product-info__price { font-size: 1.7rem; }
    .product-info__short-desc { font-size: .88rem; line-height: 1.6; padding: .75rem; }
    .related-section { margin-top: 1.5rem; }
    .related-section .section-title { font-size: 1.15rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .related-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .product-info__price { font-size: 1.5rem; }
    .product-gallery--book .product-main-img { max-height: 250px; }
    /* Cards stay 2-up — the cover-first design scales down cleanly. */
    .product-card__name { font-size: .84rem; }
    .product-card__cat, .product-card__desc, .product-card__format { font-size: .74rem; }
    .product-card__quick { padding: .45rem .8rem; font-size: .72rem; }
    .price-current, .price-free { font-size: .88rem; }
}

/* =============================================
   ACCOUNT DROPDOWN (header)
   ============================================= */
.account-menu { position: relative; }

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1100;
}
.account-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* little arrow */
.account-dropdown::before {
    content: '';
    position: absolute;
    top: -6px; right: 14px;
    width: 12px; height: 12px;
    background: var(--white);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
    transform: rotate(45deg);
}

.account-dropdown__head {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.account-dropdown__name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}
.account-dropdown__user {
    font-size: 0.75rem;
    color: var(--teal-dark);
    font-weight: 500;
}

.account-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-body);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.account-dropdown__item svg { width: 16px; height: 16px; flex-shrink: 0; }
.account-dropdown__item:hover { background: var(--teal-light); color: var(--teal-dark); }
.account-dropdown__item--logout { color: #E53E3E; }
.account-dropdown__item--logout:hover { background: #FFF0F0; color: #C53030; }

/* =============================================
   ACCOUNT SETTINGS PAGE
   ============================================= */
.settings-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 2.5rem 0 3.5rem;
}

.settings-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.settings-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
}

.settings-field { margin-bottom: 1.25rem; }
.settings-field:last-child { margin-bottom: 0; }
.settings-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.settings-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.settings-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(78,196,191,.15); }
.settings-input:disabled { background: var(--bg-light); color: var(--text-muted); cursor: not-allowed; }
.settings-input.is-error { border-color: #FC8181; }

.settings-hint {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    line-height: 1.5;
}
.settings-error {
    font-size: 0.76rem;
    color: #E53E3E;
    margin-top: 0.35rem;
    display: flex;
    align-items: flex-start;
    gap: 0.3rem;
}
.settings-error svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }

.settings-alert {
    border-radius: var(--radius);
    padding: 0.8rem 1.1rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.settings-alert svg { width: 17px; height: 17px; flex-shrink: 0; }
.settings-alert--success { background: #F0FFF4; border: 1px solid #68D391; color: #276749; }
.settings-alert--info    { background: var(--teal-light); border: 1px solid var(--teal); color: var(--teal-dark); }
.settings-alert--error   { background: #FFF0F0; border: 1px solid #FC8181; color: #C53030; }

.settings-cooldown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin-top: 0.4rem;
}
.settings-cooldown svg { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }

.btn-settings {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.7rem 1.5rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.btn-settings:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* =============================================
   CART DRAWER + OVERLAY
   ============================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
    z-index: 1200;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0; right: 0;
    height: 100%;
    width: 380px;
    max-width: 90vw;
    background: var(--white);
    box-shadow: -8px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1300;
    display: flex;
    flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-drawer__head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}
.cart-drawer__head h3 svg { width: 19px; height: 19px; color: var(--teal-dark); }
.cart-drawer__close {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}
.cart-drawer__close:hover { background: var(--bg-light); color: var(--text-dark); }
.cart-drawer__close svg { width: 18px; height: 18px; }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }

.cart-drawer__note {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
    font-size: 0.74rem;
    color: var(--text-muted);
}
.cart-drawer__note svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; }

/* ---- Cart items ---- */
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.cart-empty svg { width: 48px; height: 48px; opacity: .3; margin: 0 auto 1rem; }
.cart-empty p { font-size: 0.9rem; margin-bottom: 1.25rem; }

.cart-list { display: flex; flex-direction: column; gap: 0.85rem; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.cart-item__img {
    width: 52px; height: 52px;
    object-fit: cover;
    border-radius: var(--radius);
    flex-shrink: 0;
    background: var(--teal-light);
}
.cart-item__img--ph {
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--teal-light), #FEF3ED);
}
.cart-item__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.cart-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-item__name:hover { color: var(--teal-dark); }
.cart-item__price { font-size: 0.82rem; font-weight: 700; color: var(--orange-dark); }
.cart-item__remove {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}
.cart-item__remove:hover { background: #FFF0F0; color: #E53E3E; }
.cart-item__remove svg { width: 15px; height: 15px; }

.cart-footer { margin-top: 1.25rem; }
.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    border-top: 2px solid var(--border);
    margin-bottom: 1rem;
}
.cart-total span { font-size: 0.9rem; color: var(--text-body); }
.cart-total strong { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); }

.pay-methods { display: flex; flex-direction: column; gap: .6rem; }
.pay-method {
    display: flex; align-items: center; gap: .7rem;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    background: var(--white);
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.pay-method:hover { border-color: #cbd5e0; }
.pay-method:has(input:checked) {
    border-color: var(--teal);
    background: var(--teal-light);
    box-shadow: 0 0 0 1px var(--teal);
}
.pay-method input {
    accent-color: var(--teal);
    width: 18px; height: 18px;
    flex-shrink: 0;
    margin: 0;
}
.pay-method__brand {
    display: flex; align-items: center; gap: .6rem;
    flex: 1; min-width: 0;
}
.pay-method__label { font-size: .9rem; font-weight: 600; color: var(--text-dark); }
/* Brand icons */
.pay-ico { display: block; flex-shrink: 0; }
.pay-ico--paypal { height: 20px; width: auto; }
.pay-ico--card { width: 26px; height: 26px; color: var(--text-muted); }
/* Selected checkmark on the right */
.pay-method__check {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal);
    opacity: 0;
    transition: opacity .15s;
}
.pay-method__check svg { width: 15px; height: 15px; }
.pay-method:has(input:checked) .pay-method__check { opacity: 1; }
[dir="rtl"] .pay-method { flex-direction: row-reverse; }

/* Trust / security row under the pay button */
.checkout-trust {
    display: flex; flex-wrap: wrap; gap: .35rem 1.1rem;
    justify-content: center;
    margin-top: 1rem;
}
.checkout-trust__item {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 600; color: var(--text-muted);
}
.checkout-trust__item svg { width: 13px; height: 13px; color: var(--teal); }

.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
.btn-checkout:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-checkout svg { width: 16px; height: 16px; }

/* ---- Toast ---- */
.cart-toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-dark);
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 1400;
    max-width: 90vw;
}
.cart-toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cart-toast--error { background: #C53030; }

/* =============================================
   CHECKOUT PAGES
   ============================================= */
.checkout-wrap { max-width: 900px; margin: 0 auto; padding: 2.5rem 0 3.5rem; }
.checkout-title { font-size: 1.7rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.3rem; }
.checkout-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 2rem; }

.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

.checkout-summary, .checkout-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.checkout-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--teal);
    display: inline-block;
}
.checkout-items { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1rem; }
.checkout-items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
}
.checkout-item-name { color: var(--text-body); }
.checkout-item-price { font-weight: 700; color: var(--text-dark); white-space: nowrap; }
.checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
}
.checkout-total span { font-size: 0.9rem; color: var(--text-body); }
.checkout-total strong { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.checkout-back { display: inline-block; margin-top: 1rem; font-size: 0.82rem; color: var(--teal-dark); }
.checkout-back:hover { color: var(--orange); }

/* ---- Success ---- */
.success-hero { text-align: center; padding: 1rem 0 2rem; }
.success-check {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    background: #F0FFF4;
    border: 2px solid #68D391;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #38A169;
}
.success-check svg { width: 30px; height: 30px; }
.success-hero h1 { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; }
.success-hero p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 460px; margin: 0 auto; }

.success-downloads {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.download-list { display: flex; flex-direction: column; gap: 0.75rem; }
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.download-item__info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.download-item__name { font-size: 0.86rem; font-weight: 600; color: var(--text-dark); }
.download-item__price { font-size: 0.78rem; color: var(--text-muted); }
.download-item__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--teal);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s;
}
.download-item__btn:hover { background: var(--teal-dark); }
.download-item__btn svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .cart-drawer { width: 100%; }
}

/* =============================================
   STATIC / LEGAL PAGES
   ============================================= */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 0 3.5rem;
}
.legal-page__updated {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 2rem;
}
.legal-page h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 0.75rem;
    padding-top: 0.5rem;
}
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.5rem;
}
.legal-page p { font-size: 0.92rem; line-height: 1.8; color: var(--text-body); margin-bottom: 1rem; }
.legal-page ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.legal-page li { font-size: 0.92rem; line-height: 1.7; color: var(--text-body); margin-bottom: 0.45rem; }
.legal-page a { color: var(--teal-dark); text-decoration: underline; }
.legal-page a:hover { color: var(--orange); }
.legal-page strong { color: var(--text-dark); }
.legal-callout {
    background: var(--teal-light);
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 1.5rem 0;
}

/* ---- Contact page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 0 3.5rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info__lead { font-size: 0.95rem; color: var(--text-body); line-height: 1.8; }
.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-method__icon {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: var(--radius);
    background: var(--teal-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-dark);
}
.contact-method__icon svg { width: 18px; height: 18px; }
.contact-method__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.contact-method__value { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}
.contact-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

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

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-menu { position: relative; }
.lang-menu .action-btn { width: auto; padding: 0 0.6rem; gap: 0.3rem; border-radius: 50px; }
.lang-code { font-size: 0.72rem; font-weight: 700; color: var(--text-body); letter-spacing: .03em; }
.lang-menu .action-btn:hover .lang-code { color: var(--teal-dark); }

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1100;
}
.lang-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown::before {
    content: ''; position: absolute; top: -6px; right: 16px;
    width: 12px; height: 12px; background: var(--white);
    border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.lang-item {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-body);
    transition: background var(--transition), color var(--transition);
}
.lang-item:hover { background: var(--teal-light); color: var(--teal-dark); }
.lang-item.is-active { color: var(--teal-dark); font-weight: 700; }
.lang-item--unavailable { opacity: .5; cursor: not-allowed; }
.lang-item--unavailable:hover { background: transparent; color: inherit; }
.lang-unavailable-note { margin-left: auto; font-size: .68rem; color: var(--text-muted); font-style: italic; }
[dir="rtl"] .lang-unavailable-note { margin-left: 0; margin-right: auto; }
.lang-flag { font-size: 1.1rem; line-height: 1; }
.lang-check { width: 15px; height: 15px; margin-left: auto; color: var(--teal); }

/* =============================================
   RTL (Arabic)
   ============================================= */
[dir="rtl"] .account-dropdown,
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .account-dropdown::before,
[dir="rtl"] .lang-dropdown::before { right: auto; left: 16px; }
[dir="rtl"] .lang-check { margin-left: 0; margin-right: auto; }
[dir="rtl"] .search-btn { border-left: none; border-right: 1px solid var(--border); }
[dir="rtl"] .nav-shop { letter-spacing: 0; }
[dir="rtl"] .hero-split__desc,
[dir="rtl"] .post-content,
[dir="rtl"] .legal-page { text-align: right; }
[dir="rtl"] .cart-item__remove { margin-left: 0; margin-right: auto; }
[dir="rtl"] .section-title::after { left: auto; right: 0; }
[dir="rtl"] .featured-main__content { text-align: right; }

/* =============================================
   BLOG POST — rich sections
   ============================================= */
.post-gallery { display: grid; gap: 0.75rem; margin: 2rem 0; }
.post-gallery__item {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}
.post-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.post-gallery__item:hover img { transform: scale(1.05); }

/* 1 image — single, contained */
.post-gallery--1 { grid-template-columns: 1fr; max-width: 680px; }
.post-gallery--1 .post-gallery__item { aspect-ratio: 16 / 9; }

/* 2 images — side by side */
.post-gallery--2 { grid-template-columns: 1fr 1fr; }
.post-gallery--2 .post-gallery__item { aspect-ratio: 4 / 3; }

/* 3 images — one big (left, spans 2 rows) + two small (right) */
.post-gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 140px 140px; }
.post-gallery--3 .post-gallery__item:first-child { grid-row: 1 / 3; }

@media (max-width: 600px) {
    .post-gallery--2, .post-gallery--3 { grid-template-columns: 1fr; grid-template-rows: none; }
    .post-gallery--3 .post-gallery__item:first-child { grid-row: auto; }
    .post-gallery--3 .post-gallery__item { aspect-ratio: 16 / 9; }
}

/* ── Affiliate product card (inside blog posts) ───────────────────── */
.aff-card {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.5rem;
    align-items: center;
    margin: 2.25rem 0;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(45, 55, 72, 0.08);
}
.aff-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: #f7fafc;
    border-radius: 12px;
    overflow: hidden;
}
.aff-card__media img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.aff-card__ph { font-size: 3rem; }
.aff-card__body { display: flex; flex-direction: column; gap: 1rem; }
.aff-card__title {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-dark);
}
.aff-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.aff-card__brand {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .95rem;
}
.aff-card__brand svg { color: var(--orange); }
.aff-card__price { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); }
.aff-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.5rem;
    background: var(--text-dark);
    color: #fff;
    font-weight: 700;
    font-size: 1.02rem;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s ease, transform .15s ease;
}
.aff-card__btn:hover { background: #1a202c; transform: translateY(-1px); }
.aff-card__btn svg { transition: transform .2s ease; }
.aff-card__btn:hover svg { transform: translateX(3px); }
@media (max-width: 560px) {
    .aff-card { grid-template-columns: 1fr; text-align: center; }
    .aff-card__media { max-width: 220px; margin: 0 auto; }
    .aff-card__meta { justify-content: center; gap: 1.5rem; }
    .aff-card__title { font-size: 1.3rem; }
}

.post-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.25rem;
    background: var(--teal-light);
    border: 1px solid var(--teal);
    border-radius: var(--radius-lg);
}
.post-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    background: var(--orange);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    transition: background .2s, transform .15s;
}
.post-cta__btn:hover { background: var(--orange-dark); transform: translateY(-1px); color: #fff; }
.post-cta__btn svg { width: 16px; height: 16px; }

.post-related { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-related__title { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1.25rem; }

.related-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 768px) { .related-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .related-posts { grid-template-columns: 1fr; } }
.related-post {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.related-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-post img, .related-post__ph { width: 100%; height: 110px; object-fit: cover; background: var(--teal-light); }
.related-post__ph { display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.related-post__title { padding: 0.75rem 0.85rem; font-size: 0.86rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }
.related-post:hover .related-post__title { color: var(--teal-dark); }

/* ── Author byline card (E-E-A-T) ── */
.author-bio {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.35rem;
    margin: 2.5rem 0 0;
}
.author-bio + .author-bio { margin-top: 1rem; }
.author-bio__avatar-link { flex-shrink: 0; line-height: 0; }
.author-bio__avatar,
.author-bio__initial {
    width: 72px; height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}
.author-bio__initial {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #fff; font-size: 1.7rem; font-weight: 800;
}
.author-bio__body { display: flex; flex-direction: column; gap: .15rem; }
.author-bio__label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.author-bio__name { font-size: 1.05rem; font-weight: 800; color: var(--text-dark); text-decoration: none; }
.author-bio__name:hover { color: var(--teal-dark); }
.author-bio__role { font-size: .82rem; font-weight: 600; color: var(--teal-dark); }
.author-bio__text { margin-top: .35rem; font-size: .88rem; color: var(--text-body); line-height: 1.65; }
.author-bio__more {
    margin-top: .55rem;
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .8rem; font-weight: 700; color: var(--orange-dark); text-decoration: none;
}
.author-bio__more svg { width: 15px; height: 15px; }
.author-bio__more:hover { gap: .5rem; }
[dir="rtl"] .author-bio__more svg { transform: scaleX(-1); }
@media (max-width: 480px) {
    .author-bio { flex-direction: column; align-items: center; text-align: center; }
    .author-bio__more { align-self: center; }
}

/* ── Cluster → pillar uplink (topical authority) ── */
.pillar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding: 1.1rem 1.35rem;
    border: 1px solid var(--teal);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--teal-light), #FFF4EC);
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition);
}
.pillar-link:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pillar-link__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border-radius: 50%; color: var(--teal-dark);
    box-shadow: var(--shadow-sm);
}
.pillar-link__icon svg { width: 22px; height: 22px; }
.pillar-link__body { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.pillar-link__label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-dark); }
.pillar-link__name { font-size: 1.08rem; font-weight: 800; color: var(--text-dark); line-height: 1.2; }
.pillar-link__count { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.pillar-link__cta {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .85rem; font-weight: 700; color: var(--orange-dark);
    white-space: nowrap;
}
.pillar-link__cta svg { width: 16px; height: 16px; }
[dir="rtl"] .pillar-link__cta svg { transform: scaleX(-1); }
@media (max-width: 560px) {
    .pillar-link { flex-wrap: wrap; }
    .pillar-link__cta { width: 100%; justify-content: flex-end; }
}

/* ── Pillar page: explore other topics (cross-pillar linking) ── */
.pillar-more { margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.pillar-more__title { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1.1rem; }
.pillar-more__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.pillar-more__item {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .85rem 1.1rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--white); text-decoration: none;
    font-weight: 700; color: var(--text-dark); font-size: .92rem;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.pillar-more__item:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }
.pillar-more__item span { font-size: .78rem; font-weight: 600; color: var(--text-muted); }

[dir="rtl"] .post-cta__btn svg { transform: scaleX(-1); }

/* =============================================
   RESPONSIVE FIXES — missing breakpoints
   ============================================= */

/* Tablet 768px–1024px */
@media (max-width: 1024px) and (min-width: 769px) {
    .section-title { font-size: 1.25rem; }
}

/* Hero images: add 768px breakpoint */
@media (max-width: 768px) {
    .hero-img-grid { grid-template-rows: 140px 120px; gap: 8px; }
    .hero-split__title { font-size: 1.75rem; }
    .hero-split__desc { font-size: 0.9rem; }
    .hero-split__stats { gap: 1rem; flex-wrap: wrap; }
    .section-title { font-size: 1.2rem; }
}

/* Featured side: fix asymmetric at 768px */
@media (max-width: 768px) {
    .featured-side { flex-direction: column; }
    .featured-side__item { flex: unset; }
}

/* Small mobile 360px–480px */
@media (max-width: 480px) {
    .hero-split__title { font-size: 1.5rem; }
    .hero-split__btns { flex-direction: column; align-items: stretch; }
    .hero-split__btns .btn { width: 100%; justify-content: center; }
    .footer-top { gap: 1.5rem; }
    .section-title { font-size: 1.1rem; }
    .posts-grid { gap: 1rem; }
    .products-grid { gap: 1rem; }
    .post-card__title { font-size: 1rem; }
    .product-card__name { font-size: 0.9rem; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .shop-search { max-width: none; }
    .shop-count { margin-right: 0; }
    .type-pills { flex-wrap: wrap; gap: 0.3rem; }
    .type-pill { font-size: 0.72rem; padding: 0.3rem 0.7rem; }
}

/* Very small phones 360px */
@media (max-width: 380px) {
    .container { padding: 0 0.75rem; }
    .logo-name { font-size: 0.7rem; }
    .logo-sub { display: none; }
    .hero-split__title { font-size: 1.35rem; }
    .hero-split__stats { gap: 0.75rem; }
    .action-btn { width: 34px; height: 34px; }
    .nav-links li a { font-size: 0.82rem; padding: 0.65rem 0.85rem; }
    .footer-top { gap: 2rem; }
    .btn { font-size: 0.82rem; padding: 0.6rem 1.2rem; }
    .posts-grid { gap: 0.85rem; }
    .products-grid { gap: 0.85rem; }
}
