/* ═══════════════════════════════════════════════════
   تشكيل — tashkeel.css
   Part A: Reset, :root custom properties, dark mode,
           ::selection, scrollbar, body, html
   ═══════════════════════════════════════════════════ */

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

:root {
    --p: #006666;
    --pd: #004d4d;
    --pl: #e0f0f0;
    --a: #FFA200;
    --bg: #F8FAFA;
    --tx: #0d2b2b;
    --tx2: #4d7070;
    --bd: #daeaea;
    --card: #ffffff;
    --surface-dark: #0d2b2b;
    --nav-bg: color-mix(in oklch, var(--bg) 60%, transparent);
    --font-ar: 'Tajawal', sans-serif;
    --font-en: 'Space Grotesk', sans-serif;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --error-bd: #fecaca;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --success-bd: #bbf7d0;
    --code-green: #7effd4;
    --badge-plugin-bg: #fff7e6;
    --badge-plugin-tx: #a06000;
    --on-primary: #ffffff;
    --on-accent: var(--tx);
    /* Brand transparency tokens */
    --p-06: color-mix(in oklch, var(--p) 6%, transparent);
    --p-08: color-mix(in oklch, var(--p) 8%, transparent);
    --p-10: color-mix(in oklch, var(--p) 10%, transparent);
    --p-12: color-mix(in oklch, var(--p) 12%, transparent);
    --p-15: color-mix(in oklch, var(--p) 15%, transparent);
    --p-60: color-mix(in oklch, var(--p) 60%, transparent);
    --p-90: color-mix(in oklch, var(--p) 90%, transparent);
    --a-06: color-mix(in oklch, var(--a) 6%, transparent);
    --a-07: color-mix(in oklch, var(--a) 7%, transparent);
    --a-10: color-mix(in oklch, var(--a) 10%, transparent);
    --a-20: color-mix(in oklch, var(--a) 20%, transparent);
    --a-30: color-mix(in oklch, var(--a) 30%, transparent);
    /* Surface-dark text — tinted toward teal hue, not desaturated white */
    --surface-tx:  oklch(93% 0.04 180);
    --surface-tx2: oklch(76% 0.05 180);
    --surface-tx3: oklch(63% 0.05 180);
    --surface-bd:  color-mix(in oklch, white 8%, transparent);
    --surface-bd2: color-mix(in oklch, white 18%, transparent);
    --surface-over: color-mix(in oklch, white 3%, transparent);
}

[data-dark="true"] {
    --bg: #0a1616;
    --tx: #dff0f0;
    --tx2: #6a9898;
    --bd: #1a3030;
    --pl: #0d3333;
    --card: #0f2020;
    --surface-dark: #051212;
    --nav-bg: color-mix(in oklch, var(--bg) 95%, transparent);
    --badge-plugin-bg: #2a1400;
    --badge-plugin-tx: #ffb733;
    --error-bg: #2d1215;
    --error-bd: #5c1d22;
    --success-bg: #0d2818;
    --success-bd: #1a4530;
}

html {
    scroll-behavior: smooth;
}

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--tx);
    overflow-x: clip;
    transition: background .3s, color .3s;
}

html.js-cursor body {
    cursor: none;
}

::selection {
    background: var(--p);
    color: var(--on-primary);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--p);
    border-radius: 2px;
}

/* Skip nav */
.skip-nav {
    position: fixed;
    top: -100px;
    inset-inline-start: 20px;
    z-index: 9999;
    background: var(--p);
    color: var(--on-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-ar);
    font-weight: 700;
    text-decoration: none;
    transition: top .2s;
}

.skip-nav:focus-visible {
    top: 16px;
}

/* Custom cursor */
#cursor {
    width: 8px;
    height: 8px;
    background: var(--p);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(calc(var(--x, 0px) - 4px), calc(var(--y, 0px) - 4px)) scale(1);
    transition: transform .15s, background .15s;
}

#cursor-ring {
    width: 24px;
    height: 24px;
    border: 1px solid var(--p);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(calc(var(--rx, 0px) - 12px), calc(var(--ry, 0px) - 12px)) scale(1);
    transition: transform .06s ease, opacity .2s;
    opacity: .35;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
    transform: translate(calc(var(--x, 0px) - 4px), calc(var(--y, 0px) - 4px)) scale(2);
    background: var(--p);
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
    transform: translate(calc(var(--rx, 0px) - 12px), calc(var(--ry, 0px) - 12px)) scale(1.5);
    opacity: .15;
}

@media (pointer: coarse) {
    body {
        cursor: auto;
    }
    #cursor,
    #cursor-ring {
        display: none;
    }
}

/* Global focus-visible */
:focus-visible {
    outline: 3px solid var(--p);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-inner {
        animation: none !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════════════
   Part B: Typography, Buttons, Cards, Forms, Grid
   ═══════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    color: var(--tx);
    line-height: 1.2;
}

h1 {
    font-size: clamp(52px, 8.5vw, 120px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.05;
}

h2 {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

h3 {
    font-size: 18px;
    font-weight: 700;
}

h4 {
    font-size: 15px;
    font-weight: 700;
}

p {
    line-height: 1.8;
    color: var(--tx2);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

html.js-cursor a,
html.js-cursor button,
html.js-cursor input,
html.js-cursor select,
html.js-cursor textarea,
html.js-cursor .tsk-select,
html.js-cursor .nav-hamburger,
html.js-cursor .dark-toggle,
html.js-cursor .nav-icon-btn,
html.js-cursor .nav-drawer__close,
html.js-cursor .testimonial-dot,
html.js-cursor .faq-toggle,
html.js-cursor .license-copy-btn,
html.js-cursor .comment-respond .form-submit input[type="submit"],
html.js-cursor .search-form .search-submit {
    cursor: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-label {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    color: var(--p);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

/* Buttons */
.btn-primary,
button.btn-primary {
    background: var(--p);
    color: var(--on-primary);
    border: none;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 15px;
    font-family: var(--font-ar);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background .25s, color .25s, transform .25s;
}

.btn-primary:hover,
button.btn-primary:hover {
    background: var(--pd);
    transform: scale(1.04);
}

.btn-ghost,
button.btn-ghost {
    background: transparent;
    color: var(--tx);
    border: 1.5px solid var(--bd);
    padding: 15px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-family: var(--font-ar);
    font-weight: 500;
    transition: border-color .25s, color .25s, background .25s;
}

.btn-ghost:hover,
button.btn-ghost:hover {
    border-color: var(--p);
    color: var(--p);
}

.btn-cta {
    background: var(--p);
    color: var(--on-primary);
    border: none;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 13px;
    font-family: var(--font-ar);
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .2s, color .2s, transform .2s;
    display: inline-flex;
    align-items: center;
}

.btn-cta:hover {
    background: var(--pd);
    transform: scale(1.04);
}

/* Product Card */
.product-card {
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--bd);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s cubic-bezier(.22, 1, .36, 1), border-color .35s cubic-bezier(.22, 1, .36, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px var(--p-08);
}

.product-card__visual {
    flex: 1;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    position: relative;
    transition: background .35s;
}

.product-card__body {
    padding: 20px 22px 22px;
}

/* Badge */
.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--p);
    color: var(--on-primary);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}

.badge--new {
    background: var(--a);
    color: var(--tx);
}

.badge--expired {
    background: var(--tx2);
    opacity: .7;
}

/* Form Inputs */
.tsk-input,
.tsk-select,
.tsk-textarea {
    width: 100%;
    background: var(--card);
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: var(--font-ar);
    color: var(--tx);
    transition: border-color .2s;
    appearance: none;
}

.tsk-input:focus:not(:focus-visible),
.tsk-select:focus:not(:focus-visible),
.tsk-textarea:focus:not(:focus-visible) {
    outline: none;
}

.tsk-input:focus,
.tsk-select:focus,
.tsk-textarea:focus {
    border-color: var(--p);
}

.tsk-input--error,
.tsk-textarea--error,
.tsk-input[aria-invalid="true"],
.tsk-textarea[aria-invalid="true"] {
    border-color: var(--error);
}

.tsk-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.7;
}

.tsk-select {
}

/* Grid utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Hero trust strip */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--bd);
    background: var(--card);
    transition: border-color .2s;
}

.hero-trust-item:hover {
    border-color: var(--p);
}

.hero-trust-num {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    color: var(--p);
}

.hero-trust-label {
    font-size: 12px;
    color: var(--tx2);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   Part C: Nav, Footer, Responsive, Animations
   ═══════════════════════════════════════════════════ */

/* ── Nav ── */
.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 0 48px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background-color .3s, border-color .3s;
}

.site-nav.nav--scrolled {
    background: var(--nav-bg);
    border-bottom-color: var(--bd);
}

.site-nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
}

.site-nav__logo img {
    height: 34px;
}

.site-nav__logo-text {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 15px;
    color: var(--p);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
    list-style: none;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--tx2);
    transition: color .2s;
}

.nav-links a:hover,
.nav-links a.nav-link--active {
    color: var(--p);
}

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

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 100px;
    border: 1.5px solid var(--bd);
    color: var(--tx2);
    background: none;
    transition: border-color .2s, color .2s;
    position: relative;
    text-decoration: none;
}

.nav-icon-btn:hover {
    border-color: var(--p);
    color: var(--p);
}

.nav-icon-btn--active {
    border-color: var(--p);
    color: var(--p);
}

.nav-icon-btn svg {
    width: 14px;
    height: 14px;
}

.nav-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--a);
    color: var(--on-primary);
    font-size: 9px;
    font-family: var(--font-en);
    font-weight: 700;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-toggle {
    background: none;
    border: 1.5px solid var(--bd);
    border-radius: 100px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx2);
    transition: border-color .2s, color .2s;
}

.dark-toggle:hover {
    border-color: var(--p);
    color: var(--p);
}

.dark-toggle svg {
    width: 15px;
    height: 15px;
}

/* ── Footer ── */
.site-footer {
    background: var(--surface-dark);
    padding: 60px 48px 32px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    max-height: 30px;
    width: auto;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    color: var(--surface-tx3);
    line-height: 1.9;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--surface-tx2);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col a,
.footer-col span {
    display: block;
    font-size: 14px;
    color: var(--surface-tx2);
    margin-bottom: 10px;
    transition: color .2s;
}

.footer-col a:hover,
.footer-col span:hover {
    color: var(--on-primary);
}

.footer-bottom {
    border-top: 1px solid var(--surface-bd);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-size: 12px;
    color: var(--surface-tx3);
}

.footer-label {
    font-size: 12px;
    color: var(--surface-tx3);
    font-family: var(--font-en);
    letter-spacing: 2px;
}

/* ── Marquee ── */
@keyframes marqueeRTL {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

.marquee-inner {
    display: flex;
    gap: 0;
    animation: marqueeRTL 18s linear infinite;
    white-space: nowrap;
}

.marquee-wrap {
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ── Fade-in-up animation ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp .7s cubic-bezier(.22, 1, .36, 1) both;
}

.fade-up-d1 {
    animation-delay: .1s;
}

.fade-up-d2 {
    animation-delay: .22s;
}

.fade-up-d3 {
    animation-delay: .36s;
}

.fade-up-d4 {
    animation-delay: .5s;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 900px) {
    .nav-links,
    .nav-cta-desktop,
    .nav-hide-mobile {
        display: none;
    }

    .hero-grid,
    .products-bento,
    .custom-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-trust {
        gap: 6px;
    }

    section,
    .hero-pad {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        letter-spacing: -1px;
    }

    .site-nav {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    .site-footer {
        padding: 60px 20px 32px;
    }
}

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

@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    a,
    button,
    input,
    select,
    textarea {
        cursor: auto;
    }

    #cursor,
    #cursor-ring {
        display: none;
    }
}

/* ── Hamburger & Mobile Drawer ── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 6px;
    border: 1.5px solid var(--bd);
    border-radius: 100px;
    background: none;
    transition: border-color .2s;
}

.nav-hamburger:hover {
    border-color: var(--p);
}

.nav-hamburger__bar {
    display: block;
    height: 1.5px;
    background: var(--tx);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

.nav-hamburger.is-open .nav-hamburger__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.is-open .nav-hamburger__bar:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.is-open .nav-hamburger__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    justify-content: flex-end;
}

.nav-drawer[hidden] {
    display: none;
}

.nav-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in oklch, var(--tx) 40%, transparent);
    animation: drawerFadeIn .25s ease both;
}

.nav-drawer__panel {
    position: relative;
    z-index: 1;
    width: min(340px, 85vw);
    height: 100%;
    background: var(--card);
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn .3s cubic-bezier(.22, 1, .36, 1) both;
    overflow-y: auto;
}

@keyframes drawerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes drawerSlideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.nav-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--bd);
}

.nav-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 100px;
    border: 1.5px solid var(--bd);
    background: none;
    color: var(--tx2);
    transition: border-color .2s, color .2s;
}

.nav-drawer__close:hover {
    border-color: var(--p);
    color: var(--p);
}

.nav-drawer__links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 16px;
    gap: 4px;
}

.nav-drawer__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--tx2);
    text-decoration: none;
    transition: background .2s, color .2s;
}

.nav-drawer__link:hover,
.nav-drawer__link--active {
    background: var(--pl);
    color: var(--p);
    font-weight: 700;
}

.nav-drawer__divider {
    height: 1px;
    background: var(--bd);
    margin: 8px 16px;
}

.nav-cart-count--inline {
    position: static;
    margin-right: auto;
    width: auto;
    height: auto;
    padding: 1px 7px;
    border-radius: 100px;
    font-size: 11px;
}

.nav-drawer__footer {
    padding: 20px 24px 32px;
    border-top: 1px solid var(--bd);
}

@media (max-width: 900px) {
    .nav-hamburger {
        display: flex;
    }
}

/* ═══════════════════════════════════════════════════
   Part D: Archive grid, Single product, Checkout
   ═══════════════════════════════════════════════════ */

/* ── Products Archive Grid ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.products-grid .product-card {
    border-radius: 18px;
    overflow: hidden;
}

.products-grid .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--p-08);
}

.tab-filter {
    display: flex;
    gap: 4px;
    background: var(--card);
    padding: 4px;
    border-radius: 100px;
    border: 1px solid var(--bd);
}

.tab-btn {
    background: transparent;
    color: var(--tx2);
    border: none;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-family: var(--font-ar);
    font-weight: 400;
    transition: background .2s, color .2s;
    min-height: 44px;
}

.tab-btn:hover {
    color: var(--p);
}

.tab--active {
    background: var(--p) !important;
    color: var(--on-primary) !important;
    font-weight: 700 !important;
}

/* ── Single Product ── */
.product-main-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
    padding: 32px 48px 0;
}

.screenshot-main {
    background: repeating-linear-gradient(45deg, var(--bg), var(--bg) 10px, var(--pl) 10px, var(--pl) 20px);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 60px;
}

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

.product-related-wrap {
    background: var(--card);
    border-top: 1px solid var(--bd);
    padding: 60px 48px;
}

.related-grid a:hover {
    border-color: var(--p) !important;
    background: var(--card) !important;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.custom-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
}

/* ── EDD Checkout Overrides ── */
.edd-checkout input[type="text"],
.edd-checkout input[type="email"],
.edd-checkout input[type="password"],
.edd-checkout input[type="tel"],
.edd-checkout select,
.edd-checkout textarea {
    width: 100%;
    background: var(--card);
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: var(--font-ar);
    color: var(--tx);
    transition: border-color .2s;
}

.edd-checkout input[type="text"]:focus,
.edd-checkout input[type="email"]:focus,
.edd-checkout input[type="password"]:focus,
.edd-checkout input[type="tel"]:focus,
.edd-checkout select:focus,
.edd-checkout textarea:focus {
    border-color: var(--p);
}

.edd-checkout label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 6px;
}

.edd-checkout .edd-submit.button {
    background: var(--p);
    color: var(--on-primary);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    width: 100%;
}

.edd-checkout .edd-submit.button:hover {
    background: var(--tx);
    transform: scale(1.02);
}

.edd_purchase_submit_wrapper {
    margin-bottom: 12px;
}

.edd_purchase_submit_wrapper .edd-submit.button {
    width: 100%;
    background: var(--p);
    color: var(--on-primary);
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.edd_purchase_submit_wrapper .edd-submit.button:hover {
    background: var(--tx);
    transform: scale(1.02);
}

/* Hide EDD's native variable price selector — replaced by custom tier selector */
.single-download .edd_price_options,
.single-download .edd_price_options_form .edd_price_options,
.single-download .edd_price_options_wrap,
.single-download .edd_variable_prices_wrapper,
.single-download .edd_purchase_link .edd_price_options,
.single-download .edd-variation-price {
    display: none !important;
}

/* ── Responsive: Product & Checkout ── */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-main-grid {
        grid-template-columns: 1fr;
    }

    .product-sticky {
        position: relative;
        top: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static !important;
        order: -1;
    }

    .checkout-summary__toggle {
        display: flex !important;
    }

    .checkout-summary-grid {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1);
    }

    .checkout-summary-grid.is-open {
        grid-template-rows: 1fr;
    }

    #checkout-summary-body {
        overflow: hidden;
    }

    #checkout-summary-body:not(.is-open) {
        padding: 0 !important;
    }

    #checkout-summary-body.is-open {
        padding: 28px !important;
    }

    .checkout-grid {
        display: flex;
        flex-direction: column-reverse;
    }
}

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

    .related-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-thumbs {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════
   Part E: Homepage Section Styles
   ═══════════════════════════════════════════════════ */

/* Hero */
.hero-pad {
    padding: 0 48px 80px;
}

.hero-bg-letter {
    transition: transform .1s ease;
}

.hero-dot-grid {
    pointer-events: none;
}

.trust-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.trust-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--surface-bd2);
    border-radius: 16px;
    overflow: hidden;
}

.trust-item {
    padding: 28px;
    background: var(--p-60);
    transition: background .2s;
}

.trust-item:hover {
    background: var(--p-90) !important;
}

/* Products bento */
.products-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.products-bento .product-card {
    position: relative;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.testimonial-featured {
    grid-row: span 2;
}

.testimonial-dot {
    border: none;
    width: 8px;
    height: 8px;
    border-radius: 100px;
    padding: 0;
    background: var(--bd);
    transition: width .3s, background .3s;
    position: relative;
}

.testimonial-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
}

.dot--active {
    width: 32px;
    background: var(--p);
}

.product-sticky {
    position: sticky;
    top: 88px;
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Pricing cards hover */
.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px var(--p-15);
}

.pricing-card--highlight:hover {
    box-shadow: 0 24px 48px var(--a-30);
}

/* Custom order form */
.custom-order-submit:hover {
    background: var(--p) !important;
    transform: scale(1.02);
}

/* Newsletter */
.newsletter-submit:hover {
    background: var(--a) !important;
}

#newsletter_email::placeholder {
    color: var(--surface-tx2);
    opacity: 1;
}

/* FAQ */
.faq-toggle {
    font-family: var(--font-ar);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s cubic-bezier(.22, 1, .36, 1);
}

.faq-answer.is-open {
    grid-template-rows: 1fr;
}

.faq-answer > div {
    overflow: hidden;
}

/* ── Responsive: Homepage ── */
@media (max-width: 900px) {
    .hero-pad {
        padding: 0 20px 80px;
    }

    .products-bento {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-featured {
        grid-row: auto;
    }

    .custom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .products-bento {
        grid-template-columns: 1fr;
    }

    .newsletter-section > div > div {
        flex-direction: column;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════════════
   Part F — Account / Login / Order Confirmation
   ══════════════════════════════════════════════════════════════ */

/* ── Account Page ── */
.acc-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.acc-pad {
    padding: 88px 48px 64px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.profile-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.confirm-grid {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* ── Login page — standalone ── */

.login-standalone { margin: 0; }

.login-wrap {
    position: relative;
    min-height: 100vh;
    background: var(--p);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px;
    overflow: hidden;
}

.login-geo {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-back {
    position: fixed;
    top: 20px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: oklch(100% 0 0 / .7);
    text-decoration: none;
    padding: 8px 14px 8px 10px;
    border-radius: 100px;
    background: oklch(100% 0 0 / .12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background .2s, color .2s;
    z-index: 10;
}

.login-back:hover {
    background: oklch(100% 0 0 / .22);
    color: white;
}

.login-card {
    position: relative;
    z-index: 1;
    background: var(--bg);
    border-radius: 20px;
    padding: 44px 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px oklch(0% 0 0 / .3), 0 0 0 1px oklch(100% 0 0 / .08);
}

.login-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 32px;
}

.login-card__brand img {
    height: 30px;
    width: auto;
}

.login-card__brand span {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--p);
}

.login-card__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--tx);
    margin-bottom: 6px;
}

.login-card__sub {
    font-size: 14px;
    color: var(--tx2);
    margin-bottom: 28px;
}

.login-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: color-mix(in oklch, oklch(50% .18 25), var(--bg) 88%);
    border: 1px solid color-mix(in oklch, oklch(50% .18 25), transparent 65%);
    color: oklch(42% .15 25);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.login-forgot {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--p);
    text-decoration: none;
    font-weight: 500;
    transition: opacity .15s;
}

.login-forgot:hover { opacity: .75; }

/* Cursor override — white on purple background */
body.login-standalone #cursor {
    background: oklch(15% 0 0 / .9);
}

body.login-standalone #cursor-ring {
    border-color: oklch(15% 0 0 / .5);
}

body.login-standalone:has(a:hover) #cursor,
body.login-standalone:has(button:hover) #cursor {
    background: oklch(15% 0 0 / .9);
}

body.login-standalone:has(a:hover) #cursor-ring,
body.login-standalone:has(button:hover) #cursor-ring {
    border-color: oklch(15% 0 0 / .3);
}

/* WP login form overrides */
#tashkeel-loginform { margin: 0; }

#tashkeel-loginform p { margin-bottom: 16px; }
#tashkeel-loginform p:last-child { margin-bottom: 0; }

#tashkeel-loginform label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tx);
    margin-bottom: 6px;
}

#tashkeel-loginform input[type="text"],
#tashkeel-loginform input[type="password"] {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--bd);
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--tx);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
}

#tashkeel-loginform input[type="text"]:focus,
#tashkeel-loginform input[type="password"]:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px var(--pl);
}

#tashkeel-loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tx2);
    cursor: pointer;
}

#tashkeel-loginform .login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--p);
    cursor: pointer;
    flex-shrink: 0;
}

#tashkeel-loginform .login-submit {
    margin-top: 8px;
    margin-bottom: 0;
}

#tashkeel-loginform #wp-submit {
    display: block;
    width: 100%;
    background: var(--p);
    color: var(--on-primary);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font-ar);
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

#tashkeel-loginform #wp-submit:hover  { opacity: .88; }
#tashkeel-loginform #wp-submit:active { transform: scale(.98); }

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

    .acc-sidebar {
        display: none;
    }

    .acc-mobile-tabs {
        display: flex;
    }

    .acc-pad {
        padding: 24px 20px 64px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .login-card {
        padding: 36px 32px;
    }

    .confirm-grid {
        padding: 32px 20px;
    }

    .trust-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-fields-grid {
        grid-template-columns: 1fr;
    }

    .confirm-grid {
        grid-template-columns: 1fr;
    }

    .confirm-product-row {
        flex-wrap: wrap;
    }

    .confirm-product-row > a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .trust-stats {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .login-back {
        top: 16px;
        right: 16px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Part G — Blog Archive / Single Post
   ══════════════════════════════════════════════════════════════ */

/* ── Blog Archive ── */
.hero-blog {
    padding: 68px 48px 0;
    background: linear-gradient(160deg, var(--pl) 0%, var(--bg) 55%);
    transition: background 0.3s;
}

.blog-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 48px 80px;
    transition: background 0.3s;
}

.blog-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.post-card {
    display: block;
    background: var(--card);
    border-radius: 20px;
    border: 1.5px solid var(--bd);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .3s cubic-bezier(0.22, 1, 0.36, 1), transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover {
    border-color: var(--p);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--p-10);
}

.post-card-placeholder {
    height: 180px;
    background: var(--pl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-card-placeholder--small {
    height: 120px;
}

.post-card-cat {
    background: var(--pl);
    color: var(--p);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 12px;
}

.post-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--tx);
    line-height: 1.4;
    margin-bottom: 10px;
    margin-top: 0;
}

.post-card-excerpt {
    font-size: 13px;
    color: var(--tx2);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--tx2);
}

.post-card--related {
    border-radius: 14px;
}

.blog-cat-btn {
    background: var(--card);
    color: var(--tx2);
    border: 1.5px solid var(--bd);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 13px;
    font-family: var(--font-ar);
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s, color .2s, border-color .2s;
    display: inline-block;
}

.blog-cat-btn:hover,
.blog-cat-btn--active {
    background: var(--p);
    color: var(--on-primary);
    border-color: var(--p);
    font-weight: 700;
}

summary::-webkit-details-marker,
summary::marker {
    display: none;
    content: "";
}

summary {
    list-style: none;
}

.blog-sidebar-card {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--bd);
    padding: 24px;
    transition: background 0.3s;
}

.blog-sidebar-cta {
    background: var(--p);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
}

.blog-tag-btn {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 12px;
    font-family: var(--font-ar);
    font-weight: 500;
    color: var(--tx2);
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
    display: inline-block;
}

.blog-tag-btn:hover {
    background: var(--pl);
    border-color: var(--p);
    color: var(--p);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    padding-top: 20px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--bd);
    font-size: 14px;
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--tx2);
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
    padding: 0 12px;
}

.blog-pagination .page-numbers:hover {
    border-color: var(--p);
    color: var(--p);
}

.blog-pagination .page-numbers.current {
    background: var(--p);
    color: var(--on-primary);
    border-color: var(--p);
}

.blog-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ── Single Post ── */
.post-hero {
    padding: 52px 48px 48px;
    transition: background 0.3s;
}

.post-thumb-outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.post-content {
    transition: background 0.3s;
}

.post-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 48px 80px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 56px;
    align-items: start;
}

.post-sidebar {
    position: sticky;
    top: 88px;
}

.article-body h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    color: var(--tx);
    margin: 40px 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 700;
    color: var(--tx);
    margin: 32px 0 12px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.95;
    color: var(--tx2);
    margin-bottom: 20px;
    text-wrap: pretty;
}

.article-body ul,
.article-body ol {
    padding-inline-start: 24px;
    margin-bottom: 20px;
}

.article-body li {
    font-size: 16px;
    line-height: 1.85;
    color: var(--tx2);
    margin-bottom: 8px;
}

.article-body code {
    font-family: var(--font-en);
    font-size: 13px;
    background: var(--pl);
    color: var(--p);
    padding: 2px 7px;
    border-radius: 5px;
}

.article-body pre {
    background: var(--tx);
    color: var(--code-green);
    padding: 24px;
    border-radius: 14px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: var(--font-en);
    font-size: 13px;
    line-height: 1.7;
}

.article-body pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.article-body blockquote {
    border-inline-start: 3px solid var(--p);
    padding: 16px 20px;
    margin: 28px 0;
    background: var(--pl);
    border-start-start-radius: 0;
    border-start-end-radius: 12px;
    border-end-end-radius: 12px;
    border-end-start-radius: 0;
}

.article-body blockquote p {
    color: var(--p);
    font-weight: 500;
    margin: 0;
}

.article-body img {
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid var(--bd);
}

.article-body a {
    color: var(--p);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-body a:hover {
    color: var(--pd);
}

/* WP Comments reset */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment-list .children {
    padding-inline-start: 32px;
    list-style: none;
}

.comment-body {
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--bd);
    padding: 20px 22px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.comment-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--tx);
}

.comment-meta {
    font-size: 11px;
    color: var(--tx2);
    margin-bottom: 10px;
}

.comment-content p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--tx2);
    margin-bottom: 0;
}

.comment-respond {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--bd);
    padding: 28px;
    margin-top: 32px;
}

.comment-respond h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--tx);
    margin-bottom: 20px;
}

.comment-respond .comment-form-comment textarea,
.comment-respond .comment-form-author input,
.comment-respond .comment-form-email input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--bd);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: var(--font-ar);
    color: var(--tx);
    transition: border-color 0.2s;
}

.comment-respond .form-submit input[type="submit"] {
    background: var(--p);
    color: var(--on-primary);
    border: none;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-family: var(--font-ar);
    font-weight: 700;
    transition: background 0.2s;
}

.comment-respond .form-submit input[type="submit"]:hover {
    background: var(--pd);
}

#read-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--p);
    z-index: 200;
    transform-origin: right;
    transition: transform 0.1s;
}

/* ── Responsive: Blog ── */
@media (max-width: 900px) {
    .blog-sidebar,
    .post-sidebar {
        position: static;
    }

    .blog-sidebar-collapsible {
        padding: 20px;
    }

    .blog-sidebar-collapsible summary {
        padding: 4px 0;
    }

    .blog-sidebar-collapsible .details-chevron {
        transition: transform .25s;
    }

    .blog-sidebar-collapsible[open] .details-chevron {
        transform: rotate(180deg);
    }

    .blog-main-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .hero-blog {
        padding: 40px 20px 48px;
    }

    .blog-main {
        padding: 32px 20px 64px;
    }

    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-hero {
        padding: 40px 20px 48px;
    }

    .post-content {
        padding: 32px 20px 64px;
    }

    .article-body p,
    .article-body li {
        font-size: 15px;
    }

    .blog-main > div {
        grid-template-columns: 1fr;
    }
}

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

    .blog-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════
   Part H — Search Results / 404 Page / Customizer
   ══════════════════════════════════════════════════════════════ */

/* ── Search Results ── */
.search-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card);
    border-radius: 16px;
    border: 1.5px solid var(--bd);
    text-decoration: none;
    transition: background .25s cubic-bezier(0.22, 1, 0.36, 1), border-color .25s cubic-bezier(0.22, 1, 0.36, 1), transform .25s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-result-card:hover {
    background: var(--pl);
    border-color: var(--p);
    transform: translateX(-4px);
}

.search-result-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--pl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-result-type {
    background: var(--bg);
    border: 1px solid var(--bd);
    border-radius: 100px;
    padding: 1px 8px;
    font-size: 10px;
    font-weight: 600;
    color: var(--tx2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Search form styling for search.php and 404.php */
.search-form {
    position: relative;
}

.search-form .search-field {
    width: 100%;
    background: var(--card);
    border: 1.5px solid var(--bd);
    border-radius: 100px;
    padding: 14px 50px 14px 20px;
    font-size: 15px;
    font-family: var(--font-ar);
    color: var(--tx);
    transition: border-color 0.2s;
    box-shadow: 0 4px 20px var(--p-08);
}

.search-form .search-field:focus {
    border-color: var(--p);
}

.search-form .search-submit {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--p);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--on-primary);
    font-size: 0;
    padding: 0;
}

.search-form .search-submit:hover {
    background: var(--pd);
}

mark,
.search-highlight {
    background: var(--a);
    color: var(--tx);
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 700;
}

/* ── 404 Page ── */
.page-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-14px) rotate(1.5deg); }
    70% { transform: translateY(-8px) rotate(-1deg); }
}

.float {
    animation: float 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.page-404-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--card);
    border: 1.5px solid var(--bd);
    border-radius: 100px;
    padding: 9px 18px;
    text-decoration: none;
    font-size: 13px;
    font-family: var(--font-ar);
    font-weight: 500;
    color: var(--tx2);
    transition: border-color .2s, color .2s, background .2s;
}

.page-404-link:hover {
    border-color: var(--p);
    color: var(--p);
    background: var(--pl);
}

.search-pad {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 48px 80px;
}

.index-pad {
    padding: 100px 48px 80px;
}

.co-pad {
    padding: 48px;
}

.co-pad {
    padding-block: 48px 64px;
}

/* ── Responsive: Search / 404 ── */
@media (max-width: 900px) {
    .search-pad {
        padding: 24px 20px 64px;
    }
}

@media (max-width: 600px) {
    .page-pad {
        padding: 0 20px;
    }

    .search-result-card {
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-result-card > div:last-child {
        display: none;
    }
}

/* ── Section padding utility ── */
.section-pad {
    padding: 100px 48px;
}

.archive-main {
    padding-block: 32px 80px;
}

/* ── Responsive breakpoints ── */
@media (max-width: 1024px) {
    .section-pad {
        padding: 80px 32px;
    }
    .container {
        padding: 0 32px;
    }
    .product-main-grid {
        padding: 24px 32px 0;
    }
    .pricing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section-pad {
        padding: 60px 24px;
    }
    .container {
        padding: 0 24px;
    }
    .product-main-grid {
        padding: 20px 24px 0;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-form {
        flex-wrap: wrap;
    }
    .newsletter-form input[type="email"] {
        width: 100% !important;
        min-width: 0;
        flex: 1;
    }
    .newsletter-form button {
        flex: 1;
    }
    .newsletter-section > .container > div {
        padding: 48px 28px !important;
    }
}

/* ═══════════════════════════════════════════
   Cart Drawer
   ═══════════════════════════════════════════ */

.cart-drawer__overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 43, 43, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(.22,1,.36,1);
    z-index: 299;
}

.cart-drawer:not([hidden]) .cart-drawer__overlay {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer__panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(420px, 100vw);
    height: 100%;
    z-index: 300;
    background: var(--card);
    border-inline-end: 1px solid var(--bd);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.22,1,.36,1);
    overflow: hidden;
}

.cart-drawer:not([hidden]) .cart-drawer__panel {
    transform: translateX(0);
}

.cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--bd);
    flex-shrink: 0;
}

.cart-drawer__close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--bd);
    background: var(--bg);
    color: var(--tx2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}

.cart-drawer__close:hover {
    background: var(--p);
    color: var(--on-primary);
    border-color: var(--p);
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-drawer__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1.5px solid var(--bd);
    background: var(--bg);
    transition: border-color .2s;
}

.cart-drawer__item:hover {
    border-color: var(--p);
}

.cart-drawer__thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer__info {
    flex: 1;
    min-width: 0;
}

.cart-drawer__remove {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    color: var(--tx2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}

.cart-drawer__remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.cart-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 0;
}

.cart-drawer__foot {
    flex-shrink: 0;
    border-top: 1px solid var(--bd);
    padding: 20px 0 24px;
    background: var(--card);
}

/* Responsive: narrower on very small screens */
@media (max-width: 440px) {
    .cart-drawer__panel {
        width: 100vw;
    }
}

/* ── Buy Button (archive cards) ── */

.buy-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--p);
    color: var(--on-primary);
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 13px;
    font-family: var(--font-ar);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
    box-sizing: border-box;
}

.buy-btn:hover {
    background: var(--tx);
    transform: scale(1.02);
}

.buy-btn--outline {
    background: transparent;
    color: var(--p);
    border: 1.5px solid var(--p);
}

.buy-btn--outline:hover {
    background: var(--pl);
    color: var(--p);
    transform: none;
}

/* ── Product Card Link & Actions ── */

.product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    outline-offset: 3px;
}

.product-card__actions {
    padding: 14px 22px 20px;
    border-top: 1px solid var(--bd);
}

/* ── Add-to-Cart Button ── */

@keyframes atc-spin {
    to { transform: rotate(360deg); }
}

.atc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--p);
    color: var(--on-primary);
    border: none;
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 13px;
    font-family: var(--font-ar);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s, opacity .2s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.atc-btn:hover {
    background: var(--tx);
    transform: scale(1.02);
}

.atc-btn:active {
    transform: scale(0.98);
}

.atc-btn--full {
    width: 100%;
    padding: 13px 28px;
    font-size: 15px;
    border-radius: 14px;
}

/* Span states */
.atc-btn .atc-spinner,
.atc-btn .atc-check {
    display: none;
}

.atc-btn .atc-icon {
    flex-shrink: 0;
}

/* Loading */
.atc-btn.is-loading {
    pointer-events: none;
    opacity: .8;
}

.atc-btn.is-loading .atc-label {
    display: none;
}

.atc-btn.is-loading .atc-spinner {
    display: flex;
    animation: atc-spin .7s linear infinite;
}

/* Added */
.atc-btn.is-added {
    background: #059669;
    pointer-events: none;
}

.atc-btn.is-added:hover {
    background: #059669;
    transform: none;
}

.atc-btn.is-added .atc-label {
    display: none;
}

.atc-btn.is-added .atc-check {
    display: flex;
    align-items: center;
    gap: 6px;
}
