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

/* 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:  #718096;
    --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; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-body);
    background: var(--white);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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 {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

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

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

.logo-box {
    border: 2px solid var(--teal);
    padding: 0.45rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    min-height: 58px;
    transition: border-color var(--transition);
}
.logo-box:hover { border-color: var(--teal-dark); }

.logo-box img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.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);
    position: relative;
}
.action-btn:hover { background: var(--teal-light); }
.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 ---- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    margin-left: auto;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--teal-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ---- Site Navigation ---- */
.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.65rem 1.1rem;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--text-body);
    letter-spacing: .01em;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--teal-dark);
    border-bottom-color: var(--teal);
}

/* ★ Shop highlighted */
.nav-shop { color: var(--orange) !important; font-weight: 600; }
.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: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    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); }
}

/* 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; } }

.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 {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.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: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card__title:hover { color: var(--teal-dark); }

.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.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 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;
}

.post-content {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-body);
}
.post-content h2 { font-size: 1.4rem; font-weight: 700; color: var(--text-dark); margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-dark); margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: 0.4rem; }
.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; }
.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);
}
.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; }

.site-footer {
    position: relative;
    background: linear-gradient(180deg, #1f2733 0%, var(--text-dark) 100%);
    color: #A0AEC0;
    margin-top: 4rem;
}
/* Accent strip along the very top of the footer */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--orange) 100%);
}

.footer-top {
    padding: 3.5rem 0 2.25rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand .logo-box {
    border-color: rgba(78,196,191,.5);
    margin-bottom: 1rem;
}
.footer-brand .logo-name { color: var(--teal); }
.footer-brand .logo-sub { color: var(--orange); }

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.75;
    max-width: 290px;
    color: #8995A6;
}

.footer-col h4 {
    position: relative;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
}
/* Short accent underline beneath each heading */
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 26px; height: 2px;
    border-radius: 2px;
    background: var(--orange);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    font-size: 0.84rem;
    color: #8995A6;
    transition: color .18s ease, transform .18s ease, padding-left .18s ease;
}
.footer-col ul li a::before {
    content: "›";
    margin-right: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    color: var(--teal);
    transition: width .18s ease, margin-right .18s ease, opacity .18s ease;
}
.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 2px;
}
.footer-col ul li a:hover::before {
    width: 12px;
    margin-right: 5px;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1.35rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #718096;
}
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-legal a {
    position: relative;
    color: #8995A6;
    transition: color .18s ease;
}
.footer-legal a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 1.5px;
    background: var(--teal);
    transition: width .2s ease;
}
.footer-legal a:hover { color: var(--white); }
.footer-legal a:hover::after { width: 100%; }

/* RTL: flip the link arrow + heading underline + legal underline origin */
[dir="rtl"] .footer-col h4::after { left: auto; right: 0; }
[dir="rtl"] .footer-col ul li a::before { content: "‹"; margin-right: 0; }
[dir="rtl"] .footer-col ul li a:hover { padding-left: 0; padding-right: 2px; }
[dir="rtl"] .footer-col ul li a:hover::before { margin-right: 0; margin-left: 5px; }
[dir="rtl"] .footer-legal a::after { left: auto; right: 0; }

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

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .header-inner { flex-wrap: wrap; }

    .logo-link { order: 1; }

    .header-actions { order: 2; margin-left: auto; }

    .search-form { order: 3; width: 100%; flex-basis: 100%; }

    .site-nav { display: none; }
    .site-nav.is-open { display: block; }

    /* Stack pages, divider, label, categories vertically */
    .nav-inner { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-links { flex-direction: column; gap: 0; width: 100%; }
    .nav-links li a { display: block; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); border-left: 2px solid transparent; }
    .nav-links li a.active, .nav-links li a:hover { border-left-color: var(--teal); border-bottom-color: var(--border); }

    /* Divider becomes a full-width line; label becomes a section header */
    .nav-divider { width: 100%; height: 1px; margin: 0; }
    .nav-cats-label {
        display: block;
        padding: 0.7rem 1rem 0.3rem;
        background: var(--bg-light);
        border-bottom: 1px solid var(--border);
    }

    .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; }

    .footer-top { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .logo-box { min-width: 78px; min-height: 50px; }
    .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-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-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.product-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--teal-light);
}
.product-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.product-card:hover .product-card__thumb img { transform: scale(1.04); }

.product-card__thumb-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--teal); font-size: 2.5rem;
}

.product-card__badges {
    position: absolute;
    top: 0.65rem; left: 0.65rem;
    display: flex; flex-direction: column; gap: 0.3rem;
}

.product-card__wishlist {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    width: 30px; height: 30px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}
.product-card__wishlist:hover { color: var(--orange); background: var(--white); }
.product-card__wishlist svg { width: 14px; height: 14px; }

.product-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

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

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

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    gap: 0.5rem;
}

/* ---- Price ---- */
.price-wrap { display: flex; flex-direction: column; gap: 0.05rem; }
.price-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}
.price-current.is-sale { color: var(--orange-dark); }
.price-original {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1;
}
.price-free {
    font-size: 1rem;
    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);
}
.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; }
    .related-grid { grid-template-columns: 1fr; }
    .product-layout { padding: 1.5rem 0; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-info__price { font-size: 1.6rem; }
}

/* =============================================
   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: .5rem; }
.pay-method {
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: .9rem; font-weight: 600; color: var(--text-dark);
    transition: border-color .15s, background .15s;
}
.pay-method:has(input:checked) { border-color: var(--teal); background: var(--teal-light); }
.pay-method input { accent-color: var(--teal); width: 16px; height: 16px; }
[dir="rtl"] .pay-method { flex-direction: row-reverse; }

.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); }

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