:root {
    --brand-black: #111111;
    --brand-white: #ffffff;
    --brand-muted: #6b7280;
    --brand-soft: #f9f9f9;
    --brand-sale: #ff4b2b;
    --brand-accent: #2aaee7;
    --brand-border: #e5e7eb;
    --radius-lg: 20px;
    --radius-md: 12px;
    --font-display: "El Messiri", "Cairo", serif;
    --font-body: "Cairo", sans-serif;
}

.storefront-body {
    font-family: var(--font-body);
    color: var(--brand-black);
    background: var(--brand-white);
}

.storefront-main {
    min-height: 50vh;
}

h1, h2, h3, .display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-display);
}

.promo-bar {
    background: var(--brand-black);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-custom {
    background: var(--brand-white);
    border-bottom: 1px solid var(--brand-border);
}

.nav-link {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--brand-black) !important;
    cursor: pointer;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block !important;
        margin-top: 0;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 9999 !important;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--brand-soft);
    color: #000;
}

.badge-cart {
    font-size: 0.65rem;
    background: #000;
    color: #fff;
    border-radius: 50px;
    padding: 2px 6px;
}

.modal-search-overlay {
    background: rgba(0, 0, 0, 0.95);
}

.search-input-full {
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    border-radius: 0;
    color: #fff;
    font-size: 2.5rem;
    text-align: center;
    width: 100%;
}

.search-input-full:focus {
    box-shadow: none;
    border-bottom-color: #fff;
    color: #fff;
}

.storefront-icon-btn {
    color: var(--brand-black);
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 1;
}

.storefront-icon-btn:hover {
    color: var(--brand-black);
    opacity: 0.75;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

.storefront-footer {
    background: var(--brand-black);
    color: #fff;
}

.storefront-footer .footer-heading {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.storefront-footer .footer-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.storefront-footer .footer-link:hover {
    color: #fff;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.35rem;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #fff;
    transform: translateY(-3px);
}

.contact-container .social-link {
    color: var(--brand-text, #111);
    font-size: 1.75rem;
}

.contact-container .social-link:hover {
    color: var(--brand-primary, #0d6efd);
    transform: translateY(-2px);
}

.social-link img {
    width: 24px;
    height: 24px;
    filter: invert(1);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.social-link:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

/* Product card (shared homepage + PLP) */
.product-card {
    border: none;
    background: none;
    transition: transform 0.3s ease;
}

.product-card .image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
}

.product-card .product-img,
.product-card .list-product-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-img,
.product-card:hover .list-product-img {
    transform: scale(1.06);
}

.product-card .sale-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--brand-sale);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
}

[dir="rtl"] .product-card .sale-badge {
    left: auto;
    right: 12px;
}

.product-card .btn-cart-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.35s ease;
    z-index: 3;
    color: var(--brand-black);
    text-decoration: none;
}

[dir="rtl"] .product-card .btn-cart-overlay {
    right: auto;
    left: 16px;
}

.product-card:hover .btn-cart-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-card .btn-cart-overlay:hover {
    background: var(--brand-black);
    color: #fff;
}

.product-card-title {
    font-size: 0.95rem;
}

/* Homepage hero RTL */
[dir="rtl"] .hero-content {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.hero-content {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
}

.carousel-swipe-hint {
    font-size: 0.75rem;
    color: var(--brand-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* PLP */
.plp-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.plp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid var(--brand-border);
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--brand-black);
}

.plp-filter-chip:hover {
    background: #eee;
    color: var(--brand-black);
}

.plp-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    border: 1px dashed var(--brand-border);
    border-radius: var(--radius-lg);
    background: var(--brand-soft);
}

/* Checkout stepper */
.checkout-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkout-step {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-muted);
}

.checkout-step.is-current .checkout-step-label,
.checkout-step.is-current .checkout-step-link {
    color: var(--brand-black);
    font-weight: 700;
}

.checkout-step.is-done .checkout-step-link {
    color: var(--brand-black);
    text-decoration: none;
}

.checkout-step-line {
    flex: 1;
    min-width: 24px;
    height: 2px;
    background: var(--brand-border);
    max-width: 60px;
}

.checkout-step-line.is-done {
    background: var(--brand-black);
}

/* PDP sticky bar */
.pdp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: #fff;
    border-top: 1px solid var(--brand-border);
    padding: 0.75rem 1rem;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    display: none;
}

@media (max-width: 991.98px) {
    .pdp-sticky-bar {
        display: block;
    }

    .storefront-main {
        padding-bottom: 80px;
    }
}

/* Receipt confirmation */
.receipt-card {
    max-width: 560px;
    margin: 3rem auto 4rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    text-align: center;
    background: #fff;
}

.receipt-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Legal sticky nav */
.legal-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-nav {
        position: static !important;
    }
}

.legal-nav {
    position: sticky;
    top: 100px;
}

.legal-nav .nav-link {
    text-transform: none;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    color: var(--brand-muted) !important;
}

.legal-nav .nav-link.active,
.legal-nav .nav-link:hover {
    color: var(--brand-black) !important;
}

.legal-prose {
    max-width: 720px;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-trust-line {
    font-size: 0.8rem;
    color: var(--brand-muted);
    margin-top: 0.75rem;
}

