/* Plantos Homepage — custom design system (design reference pack).
 * Self-contained: no dependency on the Ekomart template or its CSS/JS.
 * RTL-first (Arabic), real Plantos data only.
 */

:root {
    --p-primary: #26743a;
    --p-primary-dark: #1d5c2e;
    --p-dark: #0d3023;
    --p-bg: #ffffff;
    --p-bg-soft: #f7f8f4;
    --p-text: #14231a;
    --p-muted: #6d746f;
    --p-border: #e7e9e4;
    --p-radius: 12px;
    --p-radius-sm: 8px;
    --p-radius-lg: 18px;
    --p-shadow: 0 2px 10px rgba(13, 48, 35, 0.06);
    --p-shadow-hover: 0 8px 24px rgba(13, 48, 35, 0.1);
    --p-font: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
    --p-container: 1280px;
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/vendor/fonts/cairo/cairo-arabic-400-normal.woff2') format('woff2'),
        url('/vendor/fonts/cairo/cairo-arabic-400-normal.woff') format('woff');
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/vendor/fonts/cairo/cairo-arabic-600-normal.woff2') format('woff2'),
        url('/vendor/fonts/cairo/cairo-arabic-600-normal.woff') format('woff');
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/vendor/fonts/cairo/cairo-arabic-700-normal.woff2') format('woff2'),
        url('/vendor/fonts/cairo/cairo-arabic-700-normal.woff') format('woff');
}

* { box-sizing: border-box; }

.plantos-home {
    font-family: var(--p-font);
    color: var(--p-text);
    background: var(--p-bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.plantos-home img { max-width: 100%; display: block; }
/* :where() zeroes this selector's specificity entirely, so it can never
 * outrank ANY other rule that gives an anchor its own color (.btn-*,
 * .checkout/.view in the cart dropdown, card links, etc.) regardless of
 * how many classes that rule has or which stylesheet loads first/last —
 * the previous :not(.btn) version only fixed .btn specifically and
 * still lost to other two-class link rules like .p-cart-dropdown-actions
 * .checkout. */
:where(.plantos-home a) { text-decoration: none; color: inherit; }
.plantos-home button { font-family: inherit; }
.plantos-home ul { list-style: none; margin: 0; padding: 0; }

.p-container {
    max-width: var(--p-container);
    margin-inline: auto;
    padding-inline: 20px;
}

/* ---------- Top bar ---------- */
.p-topbar {
    background: var(--p-bg-soft);
    border-bottom: 1px solid var(--p-border);
    font-size: 13px;
    color: var(--p-muted);
}
.p-topbar .p-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 8px;
    flex-wrap: wrap;
}
.p-topbar-social { display: flex; align-items: center; gap: 8px; order: 3; }
.p-topbar-social a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--p-border);
    color: var(--p-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: background-color .15s, color .15s, border-color .15s;
}
.p-topbar-social a:hover { background: var(--p-primary); border-color: var(--p-primary); color: #fff; }
.p-topbar-social svg { width: 13px; height: 13px; }
.p-topbar-message { order: 2; display: flex; align-items: center; gap: 6px; }
.p-topbar-welcome { order: 1; font-weight: 600; color: var(--p-text); display: flex; align-items: center; gap: 4px; }
.p-topbar-welcome svg,
.p-topbar-message svg { width: 15px; height: 15px; flex: none; }

/* ---------- Header ---------- */
.p-header {
    background: var(--p-bg);
    border-bottom: 1px solid var(--p-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.25s ease, padding-block 0.25s ease;
}
.p-header.is-stuck { box-shadow: 0 2px 14px rgba(13, 48, 35, 0.08); }

.p-header-top {
    padding-block: 14px;
}
.p-header-top .p-container {
    display: flex;
    align-items: center;
    gap: 24px;
}
/* In RTL flex rows, order:1 sits at the visual right (flex-start) — the
 * logo belongs there, with search in the middle and the icon cluster at
 * the visual left (flex-end), matching the reference. */
.p-header-logo { order: 1; flex: none; }
.p-header-search { flex: 1; order: 2; }
.p-header-icons { display: flex; align-items: center; gap: 16px; order: 3; }

.p-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    font: inherit;
    cursor: pointer;
    color: var(--p-text);
    background: var(--p-bg-soft);
    transition: background-color 0.2s, color 0.2s;
}
.p-icon-btn:hover { background: var(--p-primary); color: #fff; }
.p-icon-btn svg { width: 19px; height: 19px; }
.p-cart-count {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    background: var(--p-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 3px;
}
.p-icon-btn:hover .p-cart-count { background: #fff; color: var(--p-primary); }

.p-search-form { position: relative; max-width: 620px; margin-inline: auto; }
.p-search-form input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--p-border);
    background: var(--p-bg-soft);
    border-radius: 999px;
    /* The submit button sits at inset-inline-start (physical right in
     * RTL) — the matching padding-inline-start must be the larger value
     * so typed text never runs under the button; the previous 20px/52px
     * order put the extra clearance on the wrong (far) side. */
    padding-inline: 52px 20px;
    font-size: 14px;
    color: var(--p-text);
    font-family: inherit;
}
.p-search-form input:focus {
    outline: none;
    border-color: var(--p-primary);
    background: #fff;
}
.p-search-form button {
    position: absolute;
    inset-inline-start: 4px;
    top: 4px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--p-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.p-search-form button:hover { background: var(--p-primary-dark); }
.p-search-form svg { width: 17px; height: 17px; }

.p-logo { display: flex; align-items: center; gap: 10px; }
.p-logo img { max-height: 48px; width: auto; object-fit: contain; }

.p-nav-row { border-top: 1px solid var(--p-border); }
.p-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-block: 12px;
}
.p-nav a {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--p-text);
    padding-block: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.p-nav a:hover,
.p-nav a.is-active {
    color: var(--p-primary);
    border-color: var(--p-primary);
}

.p-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--p-bg-soft);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}
.p-menu-toggle svg { width: 20px; height: 20px; }

/* Mobile off-canvas nav */
.p-mobile-nav {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(320px, 85vw);
    background: #fff;
    z-index: 210;
    box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(-105%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}
/* inset-inline-start resolves to the physical right edge in RTL, so
 * hiding it means sliding further RIGHT (positive X), not left. */
[dir="rtl"] .p-mobile-nav { transform: translateX(105%); }
.p-mobile-nav.is-open { transform: translateX(0); }
.p-mobile-nav-close {
    width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: var(--p-bg-soft); display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.p-mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.p-mobile-nav a {
    display: block;
    padding: 12px 8px;
    font-weight: 600;
    border-bottom: 1px solid var(--p-border);
}
.p-backdrop {
    position: fixed; inset: 0; background: rgba(13, 48, 35, 0.45);
    z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.p-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.p-hero { position: relative; overflow: hidden; }
.p-hero-slide {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    color: #fff;
}
/* Author styles always win over the UA default [hidden]{display:none},
 * so setting display:flex above silently defeats the native hidden
 * attribute the hero slider JS toggles unless restated explicitly here. */
.p-hero-slide[hidden] { display: none; }
.p-hero.is-slider { display: grid; }
.p-hero.is-slider .p-hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s ease, visibility 0s linear .9s;
}
.p-hero.is-slider .p-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: opacity .9s ease;
}
@media (prefers-reduced-motion: reduce) {
    .p-hero.is-slider .p-hero-slide, .p-hero.is-slider .p-hero-slide.is-active { transition: none; }
}
.p-hero-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(13,48,35,.72) 0%, rgba(13,48,35,.4) 45%, rgba(13,48,35,.12) 100%);
}
[dir="rtl"] .p-hero-slide::before {
    background: linear-gradient(270deg, rgba(13,48,35,.72) 0%, rgba(13,48,35,.4) 45%, rgba(13,48,35,.12) 100%);
}
.p-hero-slide--image { display: block; min-height: 0; background: none; }
.p-hero-slide--image::before { content: none; }
.p-hero-slide--image a, .p-hero-slide--image picture { display: block; }
.p-hero-slide--image img { display: block; width: 100%; height: auto; }
.p-hero-slide.plantos-no-image { background-image: none !important; background: linear-gradient(135deg, var(--p-primary), var(--p-dark)) !important; }
.p-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 40px 20px;
}
.p-hero-eyebrow { font-size: 14px; font-weight: 700; opacity: .9; display: block; margin-bottom: 10px; }
.p-hero-title { font-size: clamp(28px, 4vw, 46px); font-weight: 700; margin: 0 0 14px; line-height: 1.25; }
.p-hero-subtitle { font-size: 16px; opacity: .92; margin: 0 0 24px; max-width: 460px; }
.p-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--p-primary);
    color: #fff;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 999px;
    transition: background-color 0.2s, transform 0.2s;
}
.p-hero-cta:hover { background: var(--p-primary-dark); }
.p-hero-cta svg { width: 16px; height: 16px; transition: transform 0.2s; }
.p-hero-cta:hover svg { transform: translateX(-3px); }
[dir="rtl"] .p-hero-cta:hover svg { transform: translateX(3px); }

.p-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: var(--p-text);
    display: flex; align-items: center; justify-content: center;
    z-index: 3;
    transition: background-color 0.2s;
}
.p-hero-arrow:hover { background: #fff; }
.p-hero-arrow svg { width: 18px; height: 18px; }
.p-hero-arrow.prev { inset-inline-start: 18px; }
.p-hero-arrow.next { inset-inline-end: 18px; }

.p-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.p-hero-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.6);
    padding: 0;
}
.p-hero-dots button.is-active { background: #fff; width: 22px; border-radius: 4px; }

/* ---------- Categories ---------- */
.p-categories { padding-block: 34px; }
.p-categories-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    justify-content: center;
    flex-wrap: wrap;
    scrollbar-width: none;
}
.p-categories-row::-webkit-scrollbar { display: none; }
.p-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 108px;
    flex: none;
    text-align: center;
}
.p-category-circle {
    width: 96px; height: 96px;
    border-radius: 50%;
    background: var(--p-bg-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--p-border);
}
.p-category-circle img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.p-category-circle svg { width: 34px; height: 34px; color: var(--p-primary); }
.p-category:hover .p-category-circle { transform: scale(1.03); box-shadow: var(--p-shadow); border-color: var(--p-primary); }
.p-category:hover .p-category-circle img { transform: scale(1.08); }
.p-category-name { font-size: 13.5px; font-weight: 600; }

/* ---------- Sections ---------- */
.p-section { padding-block: 30px; }
.p-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.p-section-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.p-section-title svg { width: 20px; height: 20px; color: var(--p-primary); }
.p-section-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--p-primary);
    border: 1px solid var(--p-border);
    border-radius: 999px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s, border-color 0.2s;
}
.p-section-link:hover { background: var(--p-bg-soft); border-color: var(--p-primary); }
.p-section-link svg { width: 14px; height: 14px; }

/* ---------- Product grid & card ---------- */
.p-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
/* The shop page's grid shares its row with a 260px filter sidebar, so it
 * needs far fewer columns than the full-width homepage grid at the same
 * viewport width — otherwise every card gets squeezed. */
.shop-layout .p-product-grid { grid-template-columns: repeat(3, 1fr); }
.p-card {
    background: #fff;
    border: 1px solid var(--p-border);
    border-radius: var(--p-radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}
.p-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--p-shadow-hover);
    border-color: #d7ddd3;
}
.p-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--p-bg-soft);
    overflow: hidden;
}
.p-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.p-card:hover .p-card-media img { transform: scale(1.05); }
.p-card-badge {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    background: var(--p-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}
.p-card-badge.is-sale { background: #b3541e; }
.p-card-badge.is-out { background: #6d746f; }
.p-card-wish {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    display: flex; align-items: center; justify-content: center;
    color: var(--p-text);
    z-index: 2;
    transition: color 0.2s, background-color 0.2s;
}
.p-card-wish:hover { background: #fff; color: #d1495b; }
.p-card-wish.is-active { color: #d1495b; }
.p-card-wish.is-active svg { fill: currentColor; }
.p-card-wish svg { width: 16px; height: 16px; }

.p-card-gallery-dots {
    position: absolute;
    bottom: 8px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 2;
}
.p-card-gallery-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7);
}
.p-card-gallery-dots span.is-active { background: #fff; width: 16px; border-radius: 3px; transition: width .2s; }
.p-card-gallery-nav {
    position: absolute; top: 0; bottom: 0; width: 32%;
    z-index: 1; cursor: pointer;
}
.p-card-gallery-nav.prev { inset-inline-start: 0; }
.p-card-gallery-nav.next { inset-inline-end: 0; }

.p-card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card-name-ar {
    font-size: 14.5px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.p-card-name-en { font-size: 12px; color: var(--p-muted); margin-top: -4px; }
.p-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.p-card-price .now { font-size: 16px; font-weight: 700; color: var(--p-primary); }
.p-card-price .old { font-size: 12.5px; color: var(--p-muted); text-decoration: line-through; }
.p-card-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--p-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    border: 0;
    border-radius: var(--p-radius-sm);
    padding: 10px 12px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
}
.p-card-cta:hover { background: var(--p-primary-dark); }
.p-card-cta:disabled { background: var(--p-muted); cursor: not-allowed; }
.p-card-cta svg { width: 15px; height: 15px; }
.p-card-cat { font-size: 12px; color: var(--p-primary); font-weight: 700; }

/* ---------- Promo banners ---------- */
.p-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.p-banner {
    position: relative;
    min-height: 190px;
    border-radius: var(--p-radius-lg);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    padding: 28px;
}
.p-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,48,35,.72), rgba(13,48,35,.25)); }
[dir="rtl"] .p-banner::before { background: linear-gradient(270deg, rgba(13,48,35,.72), rgba(13,48,35,.25)); }
.p-banner.plantos-no-image { background-image: none !important; background: linear-gradient(135deg, var(--p-primary), var(--p-dark)) !important; }
.p-banner-content { position: relative; z-index: 2; max-width: 300px; }
.p-banner-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.p-banner-text { font-size: 13.5px; opacity: .9; margin: 0 0 16px; }
.p-banner-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--p-text);
    font-weight: 700; font-size: 13.5px;
    padding: 10px 18px; border-radius: 999px;
    transition: background-color 0.2s;
}
.p-banner-link:hover { background: var(--p-bg-soft); }
.p-banner-link svg { width: 14px; height: 14px; }

/* ---------- Features ---------- */
.p-features {
    background: #fff;
    border-top: 1px solid var(--p-border);
    border-bottom: 1px solid var(--p-border);
    padding-block: 26px;
}
.p-features-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-feature { display: flex; align-items: center; gap: 14px; }
.p-feature-icon {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--p-bg-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--p-primary);
    flex: none;
}
.p-feature-icon svg { width: 22px; height: 22px; }
.p-feature-title { font-size: 14px; font-weight: 700; margin: 0 0 2px; }
.p-feature-text { font-size: 12.5px; color: var(--p-muted); margin: 0; }

/* ---------- Newsletter ---------- */
.p-newsletter {
    position: relative;
    padding-block: 56px;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.p-newsletter::before { content: ''; position: absolute; inset: 0; background: rgba(13,48,35,.72); }
.p-newsletter.plantos-no-image { background-image: none !important; background: linear-gradient(135deg, var(--p-dark), var(--p-primary-dark)) !important; }
.p-newsletter.plantos-no-image::before { display: none; }
.p-newsletter-inner { position: relative; z-index: 2; max-width: 560px; margin-inline: auto; text-align: center; }
.p-newsletter-title { font-size: 26px; font-weight: 700; margin: 0 0 10px; }
.p-newsletter-text { font-size: 14px; opacity: .9; margin: 0 0 22px; }
.p-newsletter-form { display: flex; gap: 10px; max-width: 460px; margin-inline: auto; }
.p-newsletter-form input {
    flex: 1;
    height: 48px;
    border: 0;
    border-radius: 999px;
    padding-inline: 20px;
    font-family: inherit;
    font-size: 14px;
}
.p-newsletter-form input:focus { outline: 2px solid #fff; }
.p-newsletter-form button {
    height: 48px;
    border: 0;
    border-radius: 999px;
    padding-inline: 24px;
    background: var(--p-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.p-newsletter-form button:hover { background: var(--p-primary-dark); }

/* ---------- Footer ---------- */
.p-footer { background: var(--p-dark); color: rgba(255,255,255,.85); padding-block: 44px 18px; }
.p-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.p-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.p-footer-logo img { max-height: 40px; width: auto; filter: brightness(0) invert(1); }
.p-footer-logo-tagline { font-size: 12px; color: rgba(255,255,255,.7); }
.p-footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.7); margin: 0 0 16px; }
.p-footer-social { display: flex; gap: 10px; }
.p-footer-social a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: background-color 0.2s;
}
.p-footer-social a:hover { background: var(--p-primary); }
.p-footer-social svg { width: 15px; height: 15px; }
.p-footer-heading { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.p-footer-links { display: flex; flex-direction: column; gap: 10px; }
.p-footer-links a { font-size: 13px; color: rgba(255,255,255,.72); transition: color 0.2s; }
.p-footer-links a:hover { color: #fff; }
.p-footer-contact { display: flex; flex-direction: column; gap: 12px; }
.p-footer-contact-item { display: flex; align-items: flex-start; line-height: 1.7; gap: 10px; font-size: 13px; color: rgba(255,255,255,.8); }
.p-footer-contact-item svg { width: 16px; height: 16px; color: var(--p-primary); flex: none; margin-top: 4px; }
.p-footer-map-link { display: block; margin-top: 4px; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.p-footer-contact-item a[href^="tel:"], .p-footer-contact-item a[href^="mailto:"] { color: inherit; overflow-wrap: anywhere; }
.p-footer-whatsapp {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    width: fit-content;
    transition: background-color 0.2s;
}
.p-footer-whatsapp:hover { background: var(--p-primary); }
.p-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    font-size: 12.5px;
    color: rgba(255,255,255,.55);
    flex-wrap: wrap;
    gap: 10px;
}
.p-footer-tagline { display: flex; align-items: center; gap: 6px; }
.p-back-to-top {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--p-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    border: 0;
}
.p-back-to-top svg { width: 16px; height: 16px; }

/* ---------- Nav categories dropdown ----------
 * The main nav stays a short, curated set of links; every real category
 * (however many the catalog grows to) lives in this single flyout panel
 * instead of being dumped inline into the nav bar. */
.p-nav-item { position: relative; }
.p-nav-categories-toggle {
    display: flex; align-items: center; gap: 6px;
    background: none; border: 0; font: inherit; font-size: 14.5px; font-weight: 600;
    color: var(--p-text); padding-block: 4px; border-bottom: 2px solid transparent; cursor: pointer;
}
.p-nav-categories-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.p-nav-item:hover .p-nav-categories-toggle,
.p-nav-item.is-open .p-nav-categories-toggle { color: var(--p-primary); border-color: var(--p-primary); }
.p-nav-item.is-open .p-nav-categories-toggle svg { transform: rotate(180deg); }

.p-nav-categories-panel {
    position: absolute; top: calc(100% + 14px); inset-inline-start: 0;
    background: #fff; border: 1px solid var(--p-border); border-radius: var(--p-radius);
    box-shadow: var(--p-shadow-hover);
    padding: 16px; width: 560px; max-width: 80vw;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 120;
}
.p-nav-item:hover .p-nav-categories-panel,
.p-nav-item.is-open .p-nav-categories-panel {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.p-nav-categories-panel a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: var(--p-radius-sm);
    font-size: 13.5px; font-weight: 600; color: var(--p-text);
    transition: background-color .15s, color .15s;
}
.p-nav-categories-panel a:hover { background: var(--p-bg-soft); color: var(--p-primary); }
.p-nav-categories-panel a img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
.p-nav-categories-empty { grid-column: 1 / -1; font-size: 13px; color: var(--p-muted); padding: 8px 10px; }

/* ---------- Cart dropdown ----------
 * Clicking the cart icon no longer navigates away — it opens a live
 * mini-cart fed by the same CartService data as /cart and refreshed via
 * the same AJAX round-trip as every other add/update/remove action. */
.p-cart-item { position: relative; }
.p-cart-dropdown {
    position: absolute; top: calc(100% + 14px); inset-inline-end: -10px;
    background: #fff; border: 1px solid var(--p-border); border-radius: var(--p-radius);
    box-shadow: var(--p-shadow-hover);
    width: 360px; max-width: 88vw;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 120;
    display: flex; flex-direction: column;
}
.p-cart-item.is-open .p-cart-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.p-cart-dropdown-list { max-height: 320px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.p-cart-dropdown-empty { padding: 30px 16px; text-align: center; color: var(--p-muted); font-size: 13.5px; }
.p-cart-dropdown-line { display: flex; gap: 10px; align-items: center; }
.p-cart-dropdown-line .thumb { width: 52px; height: 52px; border-radius: var(--p-radius-sm); overflow: hidden; background: var(--p-bg-soft); flex: none; }
.p-cart-dropdown-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-cart-dropdown-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.p-cart-dropdown-info .name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-cart-dropdown-info .meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--p-muted); }
.p-cart-dropdown-info .meta .price { color: var(--p-primary); font-weight: 700; }
.p-cart-dropdown-remove { color: var(--p-muted); flex: none; background: none; border: 0; padding: 4px; cursor: pointer; }
.p-cart-dropdown-remove:hover { color: #d1495b; }
.p-cart-dropdown-remove svg { width: 14px; height: 14px; }
.p-cart-dropdown-footer { border-top: 1px solid var(--p-border); padding: 14px; }
.p-cart-dropdown-subtotal { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.p-cart-dropdown-actions { display: flex; gap: 8px; }
.p-cart-dropdown-actions a { flex: 1; text-align: center; padding: 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.p-cart-dropdown-actions .view { border: 1px solid var(--p-border); color: var(--p-text); }
.p-cart-dropdown-actions .view:hover { border-color: var(--p-primary); color: var(--p-primary); }
.p-cart-dropdown-actions .checkout { background: var(--p-primary); color: #fff; }
.p-cart-dropdown-actions .checkout:hover { background: var(--p-primary-dark); }

/* ---------- Scroll-reveal ---------- */
.p-reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.p-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .p-reveal { opacity: 1; transform: none; transition: none; }
    .p-hero-cta:hover svg,
    .p-card:hover,
    .p-card-media img,
    .p-category-circle,
    .p-category-circle img { transition: none; transform: none; }
}

/* ---------- Custom select (progressive enhancement) ----------
 * store-plantos.js swaps every <select> for this trigger+panel combo so
 * the OPEN list matches the site design too — a plain CSS chevron on the
 * closed control still leaves the browser's own native listbox when you
 * click it. The original <select> stays in the DOM (moved inside the
 * wrapper, visually hidden) so forms, name attributes and any existing
 * change-listeners keep working unchanged; if JS is unavailable the
 * enhancement never runs and the native select (with its own chevron
 * from the base `select` rule above) still works exactly as before. */
.p-select { position: relative; width: 100%; }
.p-select-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.p-select-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    background: var(--store-surface);
    font-family: inherit;
    font-size: 14px;
    color: var(--store-text);
    text-align: right;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.p-select-trigger:hover { border-color: var(--store-primary); }
.p-select.is-open .p-select-trigger,
.p-select-trigger:focus {
    outline: none;
    border-color: var(--store-primary);
    box-shadow: 0 0 0 3px var(--store-primary-soft);
}
.p-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-select-trigger svg { width: 14px; height: 14px; color: var(--store-muted); flex: none; transition: transform .2s ease; }
.p-select.is-open .p-select-trigger svg { transform: rotate(180deg); }
.p-select-panel {
    position: absolute;
    top: calc(100% + 6px);
    inset-inline: 0;
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    box-shadow: var(--store-shadow-lg);
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    z-index: 130;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.p-select.is-open .p-select-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.p-select-option {
    display: block;
    width: 100%;
    text-align: right;
    padding: 9px 10px;
    border-radius: var(--store-radius-sm);
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--store-text);
    cursor: pointer;
}
.p-select-option:hover { background: var(--store-surface-soft); }
.p-select-option.is-selected { background: var(--store-primary-soft); color: var(--store-primary-dark); font-weight: 700; }
.p-select.is-disabled .p-select-trigger { opacity: .6; cursor: not-allowed; }

/* ---------- Floating WhatsApp button ---------- */
.p-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    z-index: 150;
    transition: transform .15s ease, box-shadow .15s ease;
}
.p-whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.p-whatsapp-float svg { width: 30px; height: 30px; }
@media (max-width: 600px) {
    .p-whatsapp-float { width: 50px; height: 50px; bottom: 18px; right: 18px; }
    .p-whatsapp-float svg { width: 26px; height: 26px; }
}

/* ---------- Toasts ----------
 * Matches the class names store.js's own showToast() actually creates
 * (.toast / .toast-success / .toast-error / .is-visible) — this page
 * reuses that shared helper rather than a page-specific one. */
.p-toast-stack { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.p-toast-stack .toast { background: var(--p-dark); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 13.5px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.p-toast-stack .toast.is-visible { opacity: 1; transform: translateY(0); }
.p-toast-stack .toast-success { background: var(--p-primary); }
.p-toast-stack .toast-error { background: #b91c1c; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
    .p-product-grid { grid-template-columns: repeat(4, 1fr); }
    .p-footer-grid { grid-template-columns: 1fr 1fr; }
    .p-footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .p-topbar-message span.p-topbar-message-text { display: none; }
    .p-header-top .p-container { flex-wrap: wrap; }
    .p-header-search { order: 3; flex-basis: 100%; }
    .p-nav-row { display: none; }
    .p-menu-toggle { display: flex; }
    .p-product-grid { grid-template-columns: repeat(3, 1fr); }
    .p-banners { grid-template-columns: 1fr; }
    .p-features-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .p-categories-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; margin: 0 -20px; padding-inline: 20px; }
    .p-product-grid { grid-template-columns: repeat(2, 1fr); }
    .p-hero-slide { min-height: 340px; }
    .p-hero-slide--image { min-height: 0; }
    .p-hero-content { padding: 28px 16px; }
    .p-footer-grid { grid-template-columns: 1fr; }
    .p-features-row { grid-template-columns: 1fr; }
    .p-newsletter-form { flex-direction: column; }
    .p-footer-bottom { flex-direction: column; align-items: flex-start; }
    .p-category { width: 84px; }
    .p-category-circle { width: 76px; height: 76px; }
    .p-cart-dropdown { inset-inline-end: -60px; width: 92vw; }
}

/* ---------- Product page gallery ----------
 * The <img> tags carry width/height attributes (for layout stability), and
 * without an explicit height rule a narrow screen squeezes the width but
 * keeps height="700" — stretching the photo. A fixed square frame with
 * object-fit keeps the real proportions at every width. */
.plantos-gallery-main { aspect-ratio: 1 / 1; border-radius: var(--store-radius, 12px); overflow: hidden; background: var(--p-bg-soft, #f7f8f4); }
.plantos-gallery-main .swiper-slide,
.plantos-gallery-main .swiper-slide a { display: block; height: 100%; }
.plantos-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.plantos-gallery-thumbs { margin-top: 10px; }
.plantos-gallery-thumbs .swiper-slide { aspect-ratio: 1 / 1; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: .6; cursor: pointer; background: var(--p-bg-soft, #f7f8f4); }
.plantos-gallery-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.plantos-gallery-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--p-primary, #26743a); }

/* ---------- Homepage product rows (horizontal scrollers) ---------- */
.p-product-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    /* Room for the card's hover lift/shadow, which overflow-y:hidden would
     * otherwise clip. Swipe/drag/trackpad still scroll; no visible bar. */
    padding: 8px 2px 14px;
    margin-block: -8px -14px;
    scrollbar-width: none;
}
.p-product-row::-webkit-scrollbar { display: none; }
.p-product-row, .p-subcategories-row { cursor: grab; }
.p-drag-active { cursor: grabbing !important; scroll-behavior: auto !important; scroll-snap-type: none !important; user-select: none; }
.p-categories-row { overflow-y: hidden; }
.p-product-row > .p-card { flex: 0 0 200px; scroll-snap-align: start; }
.p-subcategories-row { margin-bottom: 22px; justify-content: flex-start; flex-wrap: nowrap; }
.p-tag-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.p-tag-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 999px;
    background: var(--p-bg-soft); border: 1px solid var(--p-border);
    font-weight: 700; font-size: 14px; color: var(--p-text);
    transition: background-color .2s, border-color .2s;
}
.p-tag-chip span { font-size: 12px; color: var(--p-muted); font-weight: 600; }
.p-tag-chip:hover { border-color: var(--p-primary); background: #fff; }
@media (max-width: 600px) {
    .p-product-row > .p-card { flex-basis: 158px; }
}

/* ---------- Checkout form: one consistent field look ---------- */
.checkout-form .form-group input,
.checkout-form .form-group textarea,
.checkout-form .p-select-trigger {
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid var(--store-border);
    border-radius: var(--store-radius-sm);
    background-color: var(--store-surface-soft);
    font-size: 14px;
    color: var(--store-text);
}
.checkout-form .p-select-trigger:hover { border-color: var(--store-primary); }
.checkout-form .form-group textarea { min-height: 96px; }
.checkout-form .form-group input::placeholder,
.checkout-form .form-group textarea::placeholder { color: var(--store-muted); opacity: .8; }
.checkout-form .form-group input:focus,
.checkout-form .form-group textarea:focus,
.checkout-form .p-select.is-open .p-select-trigger,
.checkout-form .p-select-trigger:focus { background-color: #fff; border-color: var(--store-primary); }
/* With no zones for the chosen governorate the zone field is hidden —
 * let the governorate take the full row instead of half of it. */
.checkout-form .form-row.two:has(> .form-group[hidden]) { grid-template-columns: 1fr; }
.checkout-form .form-section[hidden], .checkout-form .form-group[hidden] { display: none; }
.checkout-form .form-section:has(+ .form-section[hidden]):last-of-type { border-bottom: 0; }
#checkoutSubmit { margin-top: 24px; min-height: 50px; }

.delivery-options { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .delivery-options { grid-template-columns: 1fr 1fr; } }
.delivery-option { position: relative; cursor: pointer; }
.delivery-option input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-option-body {
    display: flex; align-items: center; gap: 12px; height: 100%;
    padding: 14px 16px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm);
    background: var(--store-surface-soft); transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.delivery-option-body svg { width: 26px; height: 26px; color: var(--store-primary); flex: none; }
.delivery-option-body strong { display: block; font-size: 14px; }
.delivery-option-body small { display: block; font-size: 12px; color: var(--store-muted); margin-top: 2px; }
.delivery-option:hover .delivery-option-body { border-color: var(--store-primary); }
.delivery-option input:checked + .delivery-option-body { border-color: var(--store-primary); background: #fff; box-shadow: 0 0 0 2px rgba(38,116,58,.18); }
.delivery-option input:focus-visible + .delivery-option-body { outline: 2px solid var(--store-primary); outline-offset: 2px; }

.pickup-box {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px; border: 1px solid var(--store-border); border-radius: var(--store-radius-sm); background: var(--store-surface-soft);
}
.pickup-box svg { width: 22px; height: 22px; color: var(--store-primary); flex: none; margin-top: 2px; }
.pickup-box p { margin: 0 0 6px; font-size: 14px; line-height: 1.8; }
.pickup-box a { display: inline-block; font-size: 13px; font-weight: 700; color: var(--store-primary); text-decoration: underline; text-underline-offset: 3px; margin-bottom: 6px; }
.pickup-box small { display: block; font-size: 12px; color: var(--store-muted); }

/* Never let a stray wide element widen the layout viewport on phones —
   it shifts the fixed mobile menu/backdrop off-screen. */
html, body { overflow-x: clip; }
