:root {
    --green: #0B5D3B;
    --green-dark: #073B28;
    --green-light: #eaf5ef;
    --gold: #C6A15B;
    --bg: #F7F6F2;
    --white: #FFFFFF;
    --text: #17201B;
    --muted: #66706A;
    --border: #E6E3DC;
    --shadow: 0 18px 40px rgba(7, 59, 40, 0.08);
}

.store-container {
    width: min(1440px, calc(100% - 48px));
    margin-inline: auto;
}

@media (min-width: 1600px) {
    .store-container {
        width: min(1560px, calc(100% - 64px));
    }
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.store-navbar {
    min-height: 72px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.store-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--green);
    text-decoration: none;
}

.store-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 18px;
}

.store-logo-image {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    object-fit: cover;
    background: var(--white);
}

.store-logo small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.2;
}

.store-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.store-nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.store-nav-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.store-nav-links a:hover,
.store-nav-links a.is-active {
    color: var(--green);
}

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

.store-btn {
    border: none;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    transition: 0.2s;
    font-family: inherit;
}

.store-btn-primary {
    background: var(--green);
    color: #fff;
}

.store-btn-primary:hover {
    background: var(--green-dark);
}

.store-btn-outline {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
}

.store-btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
}

.store-menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
}

.store-mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 12px 0 18px;
}

.store-mobile-nav.is-open {
    display: block;
}

.store-mobile-nav .store-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.store-mobile-nav a {
    display: block;
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.store-mobile-nav .store-btn {
    text-align: center;
    margin-top: 6px;
    border-bottom: none;
    width: 100%;
}

.store-footer {
    background: #101512;
    color: #fff;
    padding: 56px 0 40px;
    margin-top: 40px;
}

.store-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
}

.store-footer-logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.store-footer-description {
    color: #9da5a0;
    font-size: 13px;
    max-width: 340px;
    line-height: 1.8;
}

.store-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
}

.store-footer-social a {
    color: #c6a15b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.store-footer-social a:hover {
    color: #fff;
}

.store-footer-column h4 {
    font-size: 13px;
    margin-bottom: 14px;
}

.store-footer-column a {
    display: block;
    color: #9da5a0;
    font-size: 13px;
    margin-bottom: 8px;
    text-decoration: none;
}

.store-footer-column a:hover {
    color: #fff;
}

.store-tabbar {
    display: none;
}

@media (max-width: 1050px) {
    .store-nav-links {
        display: none;
    }

    .store-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body.has-store-tabbar {
        padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    }

    .store-nav-actions {
        display: none;
    }

    .store-navbar {
        min-height: 58px;
        padding: 8px 0;
    }

    .store-logo {
        font-size: 18px;
    }

    .store-logo-mark {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .store-footer {
        display: none;
        margin-top: 0;
        padding: 0;
    }

    .store-tabbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1200;
        min-height: 72px;
        padding: 8px 6px calc(14px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 28px rgba(16, 21, 18, 0.06);
    }

    .store-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 52px;
        padding: 6px 2px 2px;
        color: #7a827d;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        line-height: 1.2;
    }

    .store-tab svg {
        width: 22px;
        height: 22px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .store-tab.is-active {
        color: var(--green);
    }

    .store-tab-add {
        position: static;
        top: auto;
        justify-content: center;
    }

    .store-tab-add-btn {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        background: var(--green);
        color: #fff;
        display: grid;
        place-items: center;
        box-shadow: none;
        margin-bottom: 0;
    }

    .store-tab-add-btn svg {
        width: 20px;
        height: 20px;
        stroke: #fff;
    }

    .store-tab-add span {
        color: var(--green);
    }
}

/* مساحات إعلانية */
.snaay-ad-slot {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--white);
}

.snaay-ad-slot-link {
    display: block;
}

.snaay-ad-slot-image {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}
