@import url('https://fonts.googleapis.com/css2?family=Changa:wght@300;400;500;600;700&display=swap');

:root {
    --brown-dark: #2b2410;
    --brown: #6b5b12;
    --gold: #bb9611;
    --gold-accent: #a3830f;
    --gold-light: #e3d27a;
    --cream: #faf9f2;
    --text: #212121;
    --teal-dark: #194d51;
    --teal-darker: #123638;
    --teal-text: #e9f2f0;
    --purple-badge: #6f42c1;
    --cart-badge-red: #ab0000;
}

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

body {
    font-family: 'Changa', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
    background-color: var(--cream);
    background-image:
        radial-gradient(rgba(140, 110, 40, .16) 1.4px, transparent 1.4px),
        radial-gradient(rgba(140, 110, 40, .16) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    background-position: 0 0, 13px 13px;
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header.site-header {
    background: #fff;
    color: var(--text);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.notice-bar {
    background: var(--teal-dark);
    color: var(--teal-text);
    font-size: 13px;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}
.notice-marquee {
    display: inline-flex;
    gap: 40px;
    padding-inline-start: 100%;
    animation: notice-scroll 28s linear infinite;
}
.notice-marquee span { white-space: nowrap; }
.notice-marquee .sep { color: var(--gold-light); }
.notice-marquee strong { color: var(--gold-light); }
@keyframes notice-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.coupon-bar {
    background: var(--gold);
    color: var(--brown-dark);
    font-size: 13px;
    text-align: center;
    padding: 7px;
    position: relative;
}
.coupon-close {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
}

.top-utility-bar {
    border-bottom: 1px solid #eee2c9;
    background: #fff;
}
.top-utility-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 8px;
    gap: 12px;
    flex-wrap: wrap;
}
.lang-switch {
    display: flex;
    gap: 8px;
}
.lang-switch a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 13px;
    color: var(--brown);
}
.lang-switch a.boxed {
    border-color: #e6ddc8;
}
.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border: 1px solid var(--teal-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: var(--teal-dark);
}
.login-btn:hover { background: var(--teal-dark); color: #fff; }

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--brown-dark);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.logo span { color: var(--gold); }
.logo-img { height: 48px; width: auto; }
.logo-text { color: var(--gold); }
.logo-icon { flex-shrink: 0; }
.logo-words { display: flex; flex-direction: column; line-height: 1.25; }
.logo-words strong { font-size: 24px; font-weight: 800; }
.logo-words small { font-size: 10px; color: var(--brown); font-weight: normal; }

.header-search {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: row-reverse;
    order: -1;
}
.header-search-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
}
.header-search input {
    flex: 1;
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e6ddc8;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: var(--cream);
    font-family: inherit;
}
.mic-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--brown);
    pointer-events: none;
}
.header-search button {
    background: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 8px 0 0 8px;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--brown-dark);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.header-icons a {
    position: relative;
    color: var(--brown-dark);
    display: flex;
    align-items: center;
}
.cart-total-price {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: bold;
    color: var(--teal-dark);
    font-size: 16px;
    white-space: nowrap;
}
.header-icons a:hover { color: var(--gold-accent); }

.cart-link { }
.cart-badge {
    position: absolute;
    top: -8px;
    left: -10px;
    background: var(--cart-badge-red);
    color: #fff;
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex; align-items: center; justify-content: center;
}

nav.main-nav {
    background: var(--teal-dark);
}
nav.main-nav ul {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding: 12px 0;
}

nav.main-nav a {
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: .2s;
    color: var(--teal-text);
}
nav.main-nav a:hover { border-color: var(--gold-light); color: #fff; }
.nav-icon-link a {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero */
.hero-slider {
    position: relative;
    aspect-ratio: 1584 / 672;
    display: flex;
    align-items: center;
    background-color: var(--brown-dark);
    color: #fff;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    text-align: right;
}
.hero-shop-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.hero-eyebrow { font-size: 18px; color: var(--gold-light); margin-bottom: 6px; }
.hero h1 { font-size: 48px; margin-bottom: 16px; color: #fff; font-weight: 800; }
.hero-sub { font-size: 16px; opacity: .9; margin-bottom: 30px; }
.hero-btn { border-radius: 30px; padding: 12px 28px; }

/* Categories */
.section-title {
    text-align: center;
    font-size: 26px;
    margin: 40px 0 24px;
    color: var(--brown-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}
.category-card {
    background: #fff;
    border: 1px solid #eadfc9;
    border-radius: 12px;
    padding: 24px 12px;
    text-align: center;
    font-weight: bold;
    color: var(--brown);
    transition: .2s;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(107,63,29,.15);
    border-color: var(--gold);
}

/* Feature category cards (منتجاتنا الفاخرة) */
.feature-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-inline: auto;
}
.feature-cat-card {
    background: #fff;
    border: 1px solid #eee2c9;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
}
.feature-cat-card:hover { box-shadow: 0 8px 20px rgba(107,63,29,.12); }
.feature-cat-img {
    aspect-ratio: 1/1;
    background: #eee2c9;
}
.feature-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-cat-name {
    padding: 10px 14px;
    border-top: 1px solid #eee2c9;
    font-weight: normal;
    color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* Category product rows */
.category-row { margin-bottom: 10px; }
.category-row-gold {
    background: #d7b23a;
    padding: 10px 0 30px;
    margin-bottom: 10px;
}
.category-row-gold .section-title,
.category-row-gold .see-all-link { color: var(--brown-dark); }
.category-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.see-all-link { color: var(--gold-accent); font-weight: bold; font-size: 14px; }
.see-all-btn {
    display: block;
    max-width: 320px;
    margin: 6px auto 0;
    text-align: center;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-accent);
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 24px;
}
.see-all-btn:hover { background: var(--gold); color: #fff; }
.products-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x proximity;
}
.products-scroll .product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
}

/* Promo banners between sections */
.promo-banner {
    display: block;
    max-width: 1180px;
    margin: 0 auto 10px;
}
.promo-banner img { width: 100%; }

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    transition: .2s;
}
.product-card:hover .product-img { box-shadow: 0 10px 24px rgba(107,63,29,.18); }

.product-img {
    position: relative;
    aspect-ratio: 1/1;
    background: #f1e7d3 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><text x="50%25" y="50%25" font-size="14" text-anchor="middle" fill="%23c4ab0e">صورة المنتج</text></svg>') center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border-radius: 14px;
    transition: .2s;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px; height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brown);
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.badge-pill-product {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--purple-badge);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 14px;
    z-index: 2;
}

.rating-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--brown);
}
.rating-stars { color: var(--gold); letter-spacing: 1px; }
.rating-count { color: #999; }

.product-info { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-info h3 { font-size: 15px; min-height: 40px; }

.notify-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ece9e2;
    color: #8a8a8a;
    border: none;
    padding: 10px 16px;
    border-radius: 24px;
    font-weight: bold;
    cursor: not-allowed;
}

/* Gift tiles (لأهدائاتكم) - image-only cards */
.gift-tiles-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 16px;
}
.gift-tile {
    flex: 0 0 200px;
    background: #fff;
    border: 1px solid #eee2c9;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
}
.gift-tile:hover { box-shadow: 0 8px 20px rgba(107,63,29,.12); }
.gift-tile-img {
    aspect-ratio: 1/1;
    background: #f1e7d3;
}
.gift-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-tile-name {
    padding: 10px 14px;
    border-top: 1px solid #eee2c9;
    color: var(--brown);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.discount-badge {
    display: inline-block;
    background: var(--gold-light);
    color: var(--brown-dark);
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 12px;
    width: fit-content;
}
.price-row { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.price { color: var(--brown); font-weight: bold; font-size: 17px; }
.riyal-svg { color: currentColor; }
.old-price { text-decoration: line-through; color: #999; font-size: 13px; }
.add-cart-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 24px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: .2s;
}
.btn:hover { background: var(--gold-accent); color: #fff; }
.btn-outline {
    background: transparent;
    border: 1px solid var(--brown);
    color: var(--brown);
}

/* Product page */
.product-page { padding-bottom: 100px; }
.product-tabs {
    display: flex;
    gap: 28px;
    border-bottom: 1px solid #eee2c9;
    padding: 16px 0;
    margin-bottom: 20px;
    overflow-x: auto;
}
.product-tabs a { font-size: 14px; color: var(--brown); white-space: nowrap; padding-bottom: 6px; }
.product-tabs a.active { color: var(--gold-accent); border-bottom: 2px solid var(--gold); font-weight: bold; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 20px;
}
@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; }
}
.product-gallery-img { aspect-ratio: 1/1; border-radius: 12px; }
.thumb-strip { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-btn {
    width: 64px; height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f1e7d3;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn.active { border-color: var(--gold); }
.product-title-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap-reverse;
    border: 1px solid #eee2c9;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}
.product-title-card h1 { font-size: 18px; font-weight: bold; }
.product-toolbar { display: flex; gap: 8px; }
.icon-btn {
    width: 34px; height: 34px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold-accent);
    flex-shrink: 0;
}

.meta-list {
    border: 1px solid #eee2c9;
    border-radius: 10px;
    overflow: hidden;
}
.meta-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #eee2c9;
    flex-wrap: wrap;
}
.meta-list li:last-child { border-bottom: none; }
.meta-label { color: var(--brown-dark); font-weight: bold; white-space: nowrap; }
.price-box {
    display: inline-block;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    color: var(--brown-dark);
    font-weight: bold;
    font-size: 18px;
    padding: 6px 16px;
    border-radius: 20px;
}
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--cream);
    color: var(--brown);
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 20px;
    direction: ltr;
}
.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-accent);
    font-size: 14px;
    text-decoration: underline;
}
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #eee2c9;
    border-radius: 20px;
    padding: 4px 10px;
}
.pay-badge img { height: 15px; width: auto; }

.product-desc { border-top: 1px solid #eee2c9; padding-top: 24px; margin-top: 10px; }
.product-desc h2 { font-size: 18px; margin-bottom: 12px; color: var(--brown-dark); }

.product-badge-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.product-badge-row .badge-pill-product { position: static; }
.sold-count-text { color: var(--brown); font-size: 13px; }
.short-desc-row { color: var(--brown); font-size: 14px; margin-bottom: 10px; }
.short-desc-row a { color: var(--gold-accent); text-decoration: underline; white-space: nowrap; }

.installment-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--brown-dark);
    margin: 12px 0;
    flex-wrap: wrap;
}
.installment-box strong { color: var(--gold-accent); }
.installment-tamara {
    background: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 12px;
    color: var(--purple-badge);
    border: 1px solid #eee2c9;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}
.share-row span.label { font-size: 14px; color: var(--brown-dark); font-weight: bold; }
.share-row a {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid #eee2c9;
    display: flex; align-items: center; justify-content: center;
    color: var(--brown);
}
.share-row a:hover { background: var(--cream); }

.buy-now-btn {
    background: var(--teal-dark);
}
.buy-now-btn:hover { background: var(--teal-darker); }

/* Sticky add-to-cart bar */
.sticky-add-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid #eee2c9;
    box-shadow: 0 -4px 14px rgba(0,0,0,.08);
    z-index: 60;
    padding: 10px 0;
}
.sticky-add-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wish-btn-lg {
    position: static;
    width: 44px; height: 44px;
    flex-shrink: 0;
    border: 1px solid #eee2c9;
    box-shadow: none;
    font-size: 18px;
}
.sticky-add-form { flex: 1; }
.sticky-add-form .add-cart-btn { flex-direction: row-reverse; }
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee2c9;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: bold;
}
.qty-btn {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: var(--brown);
    cursor: pointer;
    line-height: 1;
}

.qty-input {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

/* Cart page */
.cart-hero {
    position: relative;
    background: var(--gold);
    color: #fff;
    text-align: center;
    padding: 50px 0 70px;
    overflow: hidden;
}
.cart-hero h1 { font-size: 28px; font-weight: bold; }
.cart-hero-curve {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -60px;
    height: 120px;
    background: var(--cream);
    border-radius: 50%;
}
.cart-page { padding: 20px 0 60px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}
@media (max-width: 800px) {
    .cart-layout { grid-template-columns: 1fr; }
}

/* Checkout page */
.checkout-page { padding: 30px 0 60px; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 800px) {
    .checkout-layout { grid-template-columns: 1fr; }
}
.checkout-steps { display: flex; flex-direction: column; gap: 16px; }
.checkout-step {
    background: #fff;
    border: 1px solid #eee2c9;
    border-radius: 12px;
    padding: 20px;
}
.checkout-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.checkout-step-head h3 { font-size: 17px; color: var(--brown-dark); }
.step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    color: var(--gold-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}
.step-num.step-done { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.phone-input-row { display: flex; }
.phone-prefix {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 8px 8px 0;
    background: var(--cream);
    color: var(--brown);
    font-weight: bold;
    display: flex;
    align-items: center;
}
.phone-input-row input { border-radius: 8px 0 0 8px !important; }
.checkout-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) {
    .checkout-field-row { grid-template-columns: 1fr; }
}
.checkout-note { color: var(--brown); font-size: 14px; margin-bottom: 14px; }
.map-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.map-search-row input {
    flex: 1;
    min-width: 160px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}
.map-search-row .btn { white-space: nowrap; padding: 10px 14px; }
.map-embed-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee2c9;
}
.map-embed-wrap iframe { width: 100%; height: 300px; border: 0; display: block; }
#checkoutMap { width: 100%; height: 320px; }
.map-hint { font-size: 12px; color: #999; margin-top: 6px; }
.checkout-submit-btn { display: block; width: 100%; margin-top: 16px; text-align: center; }

.checkout-sidebar { display: flex; flex-direction: column; gap: 16px; }
.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
}
.checkout-item-img {
    position: relative;
    width: 48px; height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1e7d3;
    flex-shrink: 0;
}
.checkout-item-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-qty {
    position: absolute;
    top: -6px; left: -6px;
    background: var(--brown-dark);
    color: #fff;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
}
.checkout-item-name { flex: 1; }
.checkout-item-price { font-weight: bold; color: var(--brown-dark); white-space: nowrap; }
.checkout-policy-link {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--gold-accent);
    text-decoration: underline;
}

.cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #eee2c9;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}
.cart-row-price { font-weight: bold; color: var(--brown-dark); white-space: nowrap; }
.cart-row-qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.qty-select {
    padding: 6px 10px;
    border: 1px solid #e6ddc8;
    border-radius: 6px;
    font-family: inherit;
    background: #fff;
}
.tax-exempt-label { font-size: 11px; color: #c0392b; white-space: nowrap; }
.cart-row-name { flex: 1; font-weight: bold; }
.cart-row-name a:hover { color: var(--gold-accent); }
.cart-row-img {
    width: 64px; height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1e7d3;
    flex-shrink: 0;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-delete {
    width: 34px; height: 34px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: none;
    color: var(--gold-accent);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.checkout-summary {
    background: #fff;
    border: 1px solid #eee2c9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.cart-summary-box {
    background: #fff;
    border: 1px solid #eee2c9;
    border-radius: 12px;
    padding: 20px;
}
.cart-summary-box h3 { font-size: 18px; margin-bottom: 12px; }
.cart-summary-box hr { border: none; border-top: 1px solid #eee2c9; margin: 12px 0; }
.summary-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--brown); }
.summary-line.total { font-weight: bold; font-size: 17px; color: var(--brown-dark); }
.coupon-line span:first-child { display: flex; align-items: center; gap: 6px; }
.remove-coupon-form { display: inline; }
.remove-coupon-form button {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}
.coupon-form {
    display: flex;
    border: 1px solid #e6ddc8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.coupon-form input {
    flex: 1;
    padding: 10px 12px;
    border: none;
    font-family: inherit;
    min-width: 0;
}
.coupon-submit {
    padding: 8px 16px;
    background: var(--gold);
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}
.cart-summary-box .btn { display: block; width: 100%; margin-bottom: 10px; text-align: center; }
.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold-accent) !important;
}

/* Mini-cart drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.cart-drawer-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(420px, 92vw);
    background: #fff;
    z-index: 91;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eee2c9;
}
.cart-drawer-head h3 { font-size: 17px; }
.drawer-view-cart {
    margin-inline-start: auto;
    font-size: 13px;
    color: var(--gold-accent);
    text-decoration: underline;
    white-space: nowrap;
}
.drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--brown);
    line-height: 1;
}
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f2ead6;
}
.drawer-item-img {
    width: 54px; height: 54px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1e7d3;
    flex-shrink: 0;
}
.drawer-item-img img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-info { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.drawer-item-info span { color: var(--brown); font-size: 13px; }
.drawer-item-delete {
    background: none;
    border: none;
    color: var(--brown);
    cursor: pointer;
    flex-shrink: 0;
}
.cart-drawer-foot {
    border-top: 1px solid #eee2c9;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-drawer-foot .btn { display: block; width: 100%; text-align: center; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: bold; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

/* Footer */
footer.site-footer {
    position: relative;
    background: var(--teal-dark);
    color: var(--teal-text);
    margin-top: 20px;
    padding-top: 3.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
}
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 17px; }
.footer-grid p { color: rgba(233,242,240,.8); }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: rgba(233,242,240,.85); }
.footer-grid a:hover { text-decoration: underline; }
.footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-social-icons a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 15px;
}
.footer-social-icons a:hover { background: var(--gold); color: var(--brown-dark); }
.sbc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--teal-text);
    margin-top: 10px;
}
.sbc-badge img { width: 28px; height: 28px; border-radius: 4px; }
.footer-bottom {
    background: #fff;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: bold;
    color: var(--brown);
}
.footer-payment-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-payment-row img { height: 26px; width: auto; }
.pay-badge-text {
    border: 1px solid #eee2c9;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: bold;
    font-size: 12px;
    color: var(--purple-badge);
}

.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 56px; height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    z-index: 80;
    transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

.alert { padding: 12px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #d7f2df; color: #1c6b34; }
.alert-error { background: #fbd9d9; color: #a12626; }

.empty-state { text-align: center; padding: 60px 0; color: #999; }

.admin-body { background: #f4f1ea; }
.admin-sidebar {
    width: 220px; background: var(--brown-dark); color: #fff; min-height: 100vh;
    position: fixed; right: 0; top: 0; padding: 20px;
}
.admin-sidebar h2 { color: var(--gold-light); margin-bottom: 20px; font-size: 18px; }
.admin-sidebar a { display: block; padding: 10px; border-radius: 8px; margin-bottom: 6px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--gold); color: var(--brown-dark); }
.admin-content { margin-right: 260px; padding: 30px; }
@media (max-width: 768px) {
    .admin-sidebar { position: static; width: 100%; min-height: auto; }
    .admin-content { margin-right: 0; padding: 16px; }
}
table.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
table.admin-table th, table.admin-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: right; }
table.admin-table th { background: var(--brown); color: #fff; }
.admin-login { max-width: 380px; margin: 80px auto; background: #fff; padding: 30px; border-radius: 12px; }

/* نافذة إعلان الخصم المنبثقة */
.promo-popup-overlay {
    position: fixed; inset: 0; background: rgba(20, 16, 4, .72);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 16px; opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.promo-popup-overlay.is-open { opacity: 1; visibility: visible; }
.promo-popup {
    position: relative; width: 100%; max-width: 420px;
    background: linear-gradient(160deg, var(--brown-dark), #3a2f12 60%, var(--brown-dark));
    color: #fff; border: 1px solid var(--gold-light);
    border-radius: 18px; padding: 34px 28px 28px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    transform: translateY(14px) scale(.97); transition: transform .25s ease;
}
.promo-popup-overlay.is-open .promo-popup { transform: translateY(0) scale(1); }
.promo-popup-close {
    position: absolute; top: 10px; left: 10px; width: 32px; height: 32px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent;
    color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}
.promo-popup-close:hover { background: rgba(255,255,255,.12); }
.promo-popup-badge {
    display: inline-block; background: var(--gold); color: var(--brown-dark);
    font-weight: 700; font-size: 13px; padding: 5px 14px; border-radius: 30px;
    margin-bottom: 14px; letter-spacing: .3px;
}
.promo-popup-percent {
    font-size: 52px; font-weight: 700; color: var(--gold-light); line-height: 1;
    margin-bottom: 6px;
}
.promo-popup-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.promo-popup-sub { font-size: 14px; color: #d8cfb0; margin-bottom: 20px; }
.promo-popup-code-row {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(255,255,255,.08); border: 1px dashed var(--gold-light);
    border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
}
.promo-popup-code {
    font-size: 20px; font-weight: 700; letter-spacing: 2px; color: #fff;
}
.promo-popup-copy {
    background: var(--gold); color: var(--brown-dark); border: none;
    border-radius: 8px; padding: 7px 14px; font-weight: 700; font-size: 13px;
    cursor: pointer; white-space: nowrap;
}
.promo-popup-copy:hover { background: var(--gold-accent); }
.promo-popup-copy.copied { background: #4caf50; color: #fff; }
.promo-popup .btn { display: inline-block; width: 100%; }
@media (max-width: 480px) {
    .promo-popup-percent { font-size: 42px; }
    .promo-popup { padding: 28px 18px 22px; }
}
