/* ============================================================
   storefront.css | واجهة متجر المذاق العربي – تصميم احترافي
   ============================================================ */

:root {
    --primary-dark: #3e2723;
    --primary: #5d4037;
    --accent: #d4a373;
    --accent-hover: #c0915b;
    --light-bg: #fdf8f2;
    --cream: #faf6f0;
    --border-color: #eaddcf;
    --text-dark: #3e2723;
    --text-muted: #8d6e63;
    --shadow-sm: 0 4px 20px rgba(62, 39, 35, 0.08);
    --shadow-md: 0 12px 40px rgba(62, 39, 35, 0.12);
    --shadow-lg: 0 20px 50px rgba(62, 39, 35, 0.15);
    --radius-card: 16px;
    --radius-pill: 50px;
    --nav-height: 76px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.page-home { padding-top: 0; }
body:not(.page-home) { padding-top: var(--nav-height); }

/* ─── Navbar ─── */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    height: var(--nav-height);
    transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
    background: transparent;
}

.site-navbar.is-scrolled,
body:not(.page-home) .site-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.site-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    transition: color var(--transition);
}

.site-navbar.is-scrolled .navbar-brand,
body:not(.page-home) .site-navbar .navbar-brand {
    color: var(--primary-dark);
}

.site-navbar .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255,255,255,0.15);
    padding: 4px;
}

.site-navbar.is-scrolled .brand-logo,
body:not(.page-home) .site-navbar .brand-logo {
    background: var(--cream);
}

.site-navbar .brand-sub { color: var(--accent); }

.site-navbar.is-scrolled .brand-sub,
body:not(.page-home) .site-navbar .brand-sub { color: var(--accent); }

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.site-navbar.is-scrolled .nav-link,
body:not(.page-home) .site-navbar .nav-link {
    color: var(--text-dark) !important;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--accent) !important;
    background: rgba(212, 163, 115, 0.12);
}

.site-navbar .nav-actions .btn-nav-ghost {
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: transparent;
    border-radius: var(--radius-pill);
    padding: 0.4rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.site-navbar.is-scrolled .nav-actions .btn-nav-ghost,
body:not(.page-home) .site-navbar .nav-actions .btn-nav-ghost {
    color: var(--primary-dark);
    border-color: var(--border-color);
}

.site-navbar .nav-actions .btn-nav-gold {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.45rem 1.2rem;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.35);
    transition: all var(--transition);
}

.site-navbar .nav-actions .btn-nav-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.45);
    color: #fff;
}

.cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.site-navbar.is-scrolled .cart-btn,
body:not(.page-home) .site-navbar .cart-btn {
    background: var(--cream);
    color: var(--primary-dark);
    border-color: var(--border-color);
}

.cart-btn:hover { background: var(--accent); color: var(--primary-dark); border-color: var(--accent); }

.cart-btn .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.currency-select-nav {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.site-navbar.is-scrolled .currency-select-nav,
body:not(.page-home) .site-navbar .currency-select-nav {
    background: var(--cream);
    color: var(--primary-dark);
    border-color: var(--border-color);
}

.user-avatar-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--primary-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.3);
}

.menu-toggle {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    padding: 0.25rem;
}

.site-navbar.is-scrolled .menu-toggle,
body:not(.page-home) .site-navbar .menu-toggle { color: var(--primary-dark); }

/* ─── Hero ─── */
.hero-premium {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    margin-top: 0;
}

.hero-premium__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-premium:hover .hero-premium__bg { transform: scale(1.08); }

.hero-premium__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(62, 39, 35, 0.88) 0%,
        rgba(93, 64, 55, 0.75) 45%,
        rgba(62, 39, 35, 0.65) 100%
    );
}

.hero-premium__content {
    position: relative;
    z-index: 2;
    padding: calc(var(--nav-height) + 40px) 20px 80px;
    max-width: 820px;
}

.hero-premium__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 163, 115, 0.2);
    border: 1px solid rgba(212, 163, 115, 0.4);
    color: var(--accent);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-premium__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero-premium__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-inline: auto;
}

.hero-premium__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-lg);
    outline: none;
    transition: box-shadow var(--transition);
}

.hero-search input:focus {
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.35), var(--shadow-lg);
}

.hero-search i {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
}

/* ─── أزرار موحدة ─── */
.btn-gold {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
    box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 163, 115, 0.5);
    color: #fff;
}

.btn-outline-gold {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-pill);
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
}

.btn-outline-gold:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline-theme {
    border: 1.5px solid var(--accent);
    color: var(--primary-dark);
    background: transparent;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-theme:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-icon-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-icon-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    color: #fff;
}

/* ─── شريط المميزات ─── */
.features-strip {
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem 2rem;
    margin: -40px auto 3rem;
    position: relative;
    z-index: 10;
    max-width: 1140px;
}

.feature-item {
    text-align: center;
    padding: 0.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.feature-item h6 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ─── أقسام الصفحة ─── */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
}

.section-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.section-link:hover { color: var(--accent); }

/* ─── شريط الأقسام ─── */
.category-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-track {
    display: flex;
    gap: 1.25rem;
    padding: 0.25rem;
}

.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform var(--transition);
}

.cat-circle:hover { transform: translateY(-4px); }

.cat-circle.active .cat-circle__img {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-color: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(212, 163, 115, 0.45);
}

.cat-circle__img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
    border: 3px solid transparent;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.cat-circle__img img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.cat-circle__img i { font-size: 2rem; color: #fff; }

.cat-circle__name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-dark);
    text-align: center;
}

/* ─── كروت المنتجات ─── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.p-card {
    background: #fff;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.p-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 163, 115, 0.35);
}

.p-img-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.p-img-container img,
.p-img-container picture img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform var(--transition);
}

.p-card:hover .p-img-container img,
.p-card:hover .p-img-container picture img {
    transform: scale(1.1) translateY(-4px);
}

/* أزرار الإجراءات السريعة */
.p-quick-actions {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.p-card:hover .p-quick-actions {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.p-qa-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.p-qa-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08);
}

.p-quick-actions .btn-favorite,
.p-quick-actions .p-qa-fav {
    position: static;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.p-card-media .btn-favorite:not(.p-qa-btn) {
    top: 10px;
    left: auto;
    right: 10px;
}

/* شارات الثقة في الفوتر */
.trust-badges-bar {
    background: linear-gradient(135deg, #3b1e54 0%, #2a1538 100%);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badges-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    align-items: center;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.trust-badge-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.trust-badge-text span {
    font-size: 0.85rem;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.trust-badge-emblem svg rect { fill: #006C35; }

.trust-badge-vat {
    width: 52px;
    min-height: 72px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 0.55rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    flex-shrink: 0;
}

.trust-badge-vat .vat-top {
    background: #006C35;
    color: #fff;
    padding: 6px 4px;
    flex: 1;
}

.trust-badge-vat .vat-bottom {
    background: #f5c518;
    color: #006C35;
    padding: 4px;
    font-size: 0.65rem;
}

/* ─── صفحة من نحن ─── */
.about-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: calc(var(--nav-height) + 3rem) 0 3rem;
    text-align: center;
}

.about-story-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    height: 100%;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

/* ─── الدفع الموحّد ─── */
.checkout-unified { max-width: 720px; margin: 0 auto; }

.checkout-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.checkout-total-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.checkout-accordion-item {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.checkout-acc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
}

.checkout-acc-header .acc-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.checkout-acc-body {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.checkout-acc-body.is-open { display: block; }

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.payment-method-box {
    border: 2px solid #e8e0d5;
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.payment-method-box:hover { border-color: var(--accent); }

.payment-method-box.is-selected {
    border-color: var(--primary-dark);
    background: rgba(62, 39, 35, 0.03);
}

.payment-method-box img {
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.payment-panel { display: none; margin-top: 1.25rem; }
.payment-panel.is-visible { display: block; }

@media (max-width: 767.98px) {
    .p-quick-actions { opacity: 1; }
}

.p-body {
    padding: 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--cream);
}

.p-title {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
    font-size: 1rem;
    line-height: 1.4;
}

.grid-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    margin-top: auto;
}

.grid-price-old {
    color: #9ca3af;
    font-size: 0.9rem;
    text-decoration: line-through;
    font-weight: 600;
}

.grid-price-new {
    color: #dc2626;
    font-size: 1.35rem;
    font-weight: 900;
}

.grid-price-regular {
    color: var(--accent-hover);
    font-size: 1.35rem;
    font-weight: 900;
}

/* ─── العروض ─── */
.offers-section { margin-bottom: 3rem; }

.offers-carousel-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.carousel-slides {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.carousel-slides::-webkit-scrollbar { display: none; }

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0.5rem;
}

.offer-card-premium {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    border-radius: var(--radius-card);
    overflow: hidden;
    min-height: 200px;
    border: 1px solid var(--border-color);
}

.offer-card-premium .offer-image {
    flex: 0 0 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
}

.discount-badge-large {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc2626;
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.9rem;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 2;
}

.offer-content { flex: 1; padding: 1.5rem 2rem; }

.offer-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.offer-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.nav-dot.active {
    background: var(--primary-dark);
    width: 28px;
    border-radius: 10px;
}

/* ─── صفحة داخلية ─── */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: calc(var(--nav-height) + 2rem) 0 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.page-banner h1 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    margin: 0;
}

.page-banner p {
    opacity: 0.85;
    margin-top: 0.5rem;
}

/* ─── Footer ─── */
.store-footer {
    background: linear-gradient(160deg, #2c1e16 0%, #1a1209 100%);
    color: #eaddcf;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.store-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.footer-main { padding: 4rem 0 2rem; position: relative; z-index: 1; }

.footer-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255,255,255,0.08);
    padding: 6px;
}

.footer-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links { list-style: none; padding: 0; margin: 0; }

.footer-links li { margin-bottom: 0.65rem; }

.footer-links a {
    color: rgba(234, 221, 207, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: rgba(234, 221, 207, 0.8);
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 2px;
}

.footer-newsletter input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.footer-newsletter input::placeholder { color: rgba(255,255,255,0.4); }

.footer-newsletter input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.12);
}

.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    transition: all var(--transition);
    font-size: 1.15rem;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: rgba(234, 221, 207, 0.55);
    font-size: 0.85rem;
    margin: 0;
}

.site-navbar .nav-user-name { color: #fff; transition: color var(--transition); }
.site-navbar.is-scrolled .nav-user-name,
body:not(.page-home) .site-navbar .nav-user-name { color: var(--primary-dark); }

/* أقسام dropdown في الجوال */
.offcanvas.store-offcanvas { --bs-offcanvas-width: 340px; border: none; }

.offcanvas.store-offcanvas .offcanvas-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 1.25rem 1.5rem;
}

.quick-link-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--cream);
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all var(--transition);
}

.quick-link-item:hover {
    background: var(--cream);
    color: var(--primary-dark);
    padding-right: 2rem;
}

.quick-link-item i { color: var(--accent); font-size: 1.2rem; }

/* ─── واتساب ─── */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.12);
    color: #fff;
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

/* ─── تحميل أكثر ─── */
.btn-load-more {
    border: 2px solid var(--accent);
    background: #fff;
    color: var(--primary-dark);
    border-radius: var(--radius-pill);
    padding: 0.65rem 2.5rem;
    font-weight: 700;
    transition: all var(--transition);
}

.btn-load-more:hover {
    background: var(--accent);
    color: #fff;
}

/* ─── responsive ─── */
@media (max-width: 991.98px) {
    .offer-card-premium { flex-direction: column; }
    .offer-card-premium .offer-image {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
    }
    .features-strip { margin: -20px 1rem 2rem; padding: 1rem; }
}

@media (max-width: 767.98px) {
    .hero-premium { min-height: 75vh; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .p-img-container { height: 150px; padding: 0.75rem; }
    .p-body { padding: 0.85rem; }
    .p-title { font-size: 0.9rem; }
    .grid-price-new, .grid-price-regular { font-size: 1.1rem; }
}

@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ─── زر المفضلة ─── */
.p-card-media {
    position: relative;
}

.btn-favorite {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    padding: 0;
}

.btn-favorite:hover {
    transform: scale(1.08);
    color: #dc2626;
    background: #fff;
}

.btn-favorite.is-active {
    color: #dc2626;
}

.btn-favorite.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.btn-favorite-lg {
    position: static;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nav-fav-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

.nav-fav-btn:hover { color: #dc2626; }

/* ─── بطاقات الصفحات الداخلية ─── */
.store-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.store-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
}

.store-card-body { padding: 1.5rem; }

.store-form .form-control,
.store-form .form-select {
    background: var(--cream);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.store-form .form-control:focus,
.store-form .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(212, 163, 115, 0.2);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.4;
    display: block;
    margin-bottom: 1rem;
}

/* ─── صفحة المنتج ─── */
.product-detail-wrap { padding: calc(var(--nav-height) + 1.5rem) 0 3rem; }

.product-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.product-breadcrumb a:hover { color: var(--accent); }

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.product-gallery-main {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-main img {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
    mix-blend-mode: multiply;
}

.product-badge-discount {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #d32f2f, #e57373);
    color: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.65rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.25rem;
    scrollbar-width: thin;
}

.product-gallery-thumbs img {
    width: 76px;
    height: 76px;
    min-width: 76px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.is-active {
    border-color: var(--accent);
    transform: scale(1.04);
}

.product-info-panel h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.product-rating {
    color: var(--accent);
    margin-bottom: 1rem;
}

.product-price-block {
    margin-bottom: 1.25rem;
}

.product-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.product-price-current {
    color: #ef4444;
    font-size: 1.85rem;
    font-weight: 900;
}

.product-price-regular {
    color: var(--accent);
    font-size: 1.85rem;
    font-weight: 900;
}

.product-desc {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.variant-btn {
    min-width: 80px;
    padding: 8px 12px;
    transition: all 0.2s;
    border: 1px solid rgba(212, 163, 115, 0.5);
    color: var(--primary-dark);
    background: #fff;
    border-radius: var(--radius-md);
}

.variant-btn:hover:not(.disabled) {
    background: rgba(212, 163, 115, 0.1);
    border-color: var(--accent);
}

.variant-btn.active {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #fff !important;
}

.variant-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--cream);
    border-radius: var(--radius-pill);
    padding: 0.25rem;
}

.quantity-selector .btn-qty {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.quantity-selector .btn-qty:hover {
    background: var(--accent);
    color: #fff;
}

.quantity-selector input {
    width: 56px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-meta-box {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.product-meta-box h5 {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.reviews-section { margin-top: 3rem; }

.review-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.stars-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.stars-container input { display: none; }

.stars-container label {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.stars-container input:checked ~ label,
.stars-container label:hover,
.stars-container label:hover ~ label {
    color: var(--accent);
}

.contact-info-dark {
    background: linear-gradient(145deg, var(--primary-dark) 0%, #2c1e16 100%);
    color: #fff;
    padding: 1.5rem;
    height: 100%;
}

.contact-icon-box {
    background: rgba(212, 163, 115, 0.2);
    color: var(--accent);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .product-gallery-main { min-height: 280px; }
}

/* ─── عروض: عدّاد تنازلي ─── */
.offer-timer {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(220, 53, 69, 0.08);
    color: #c0392b;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}
.offer-timer__digits {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

/* ─── طباعة نظيفة للمتجر والفواتير ─── */
@media print {
    .no-print,
    .site-navbar, .store-navbar, #siteNavbar, .navbar,
    .bottom-nav, .bnav, .mobile-bottom-nav,
    .whatsapp-float, .whatsapp-fab, .nav-actions,
    .offcanvas, footer, .store-footer, .page-banner,
    .trust-badges-bar, .hero-premium, .features-strip,
    .section-header .section-link { display: none !important; }
    body {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #000 !important;
    }
    main, .container { max-width: 100% !important; width: 100% !important; margin: 0 !important; }
    .store-card, .card { border: 1px solid #ccc !important; box-shadow: none !important; }
    a[href]:after { content: none !important; }
}
