/* ==========================================================================
   Storefront - global styles
   ========================================================================== */

/* ---------- Fonts (local Cairo) ---------- */
@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"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../vendor/fonts/cairo/cairo-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@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"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@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"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../../vendor/fonts/cairo/cairo-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../vendor/fonts/cairo/cairo-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../../vendor/fonts/cairo/cairo-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../../vendor/fonts/cairo/cairo-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../../vendor/fonts/cairo/cairo-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Design tokens ---------- */
:root {
    --brand: #8b1e46;
    --brand-dark: #6a1535;
    --brand-soft: #fbeef3;
    --gold: #c8a04a;
    --gold-soft: #fbf4e4;
    --ink: #24161c;
    --muted: #7a6b72;
    --line: #efe4e8;
    --cream: #fbf7f5;
    --white: #ffffff;
    --success: #1f8a5b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(36, 22, 28, .06);
    --shadow: 0 10px 30px rgba(36, 22, 28, .10);
    --shadow-lg: 0 20px 50px rgba(36, 22, 28, .16);
    --header-height: 76px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --bs-body-font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--white);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 139, 30, 70;
    --bs-link-hover-color: var(--brand-dark);
    --bs-link-hover-color-rgb: 106, 21, 53;
    --bs-border-color: var(--line);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 139, 30, 70;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--bs-body-font-family); line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; transition: color .2s var(--ease); }
::selection { background: var(--brand); color: #fff; }
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--ink); line-height: 1.4; }
.text-muted-soft { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.text-gold { color: var(--gold) !important; }
.bg-cream { background: var(--cream) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }
.fw-800 { font-weight: 800 !important; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
@media (max-width: 767.98px) { .section { padding: 56px 0; } .section-sm { padding: 36px 0; } }

.visually-hidden-focusable:focus { position: fixed; top: 8px; right: 8px; z-index: 2000; background: #fff; padding: 8px 16px; border-radius: 8px; box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 999px; padding: .65rem 1.5rem; transition: all .25s var(--ease); }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem 1rem; }
.btn-brand { background: var(--brand); color: #fff; border: 2px solid var(--brand); }
.btn-brand:hover, .btn-brand:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(139, 30, 70, .28); }
.btn-brand:disabled, .btn-brand.disabled { background: #c9a5b3; border-color: #c9a5b3; color: #fff; }
.btn-outline-brand { color: var(--brand); border: 2px solid var(--brand); background: transparent; }
.btn-outline-brand:hover, .btn-outline-brand:focus-visible { background: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; border: 2px solid var(--gold); }
.btn-gold:hover, .btn-gold:focus-visible { background: #b38c38; border-color: #b38c38; color: #fff; transform: translateY(-2px); }
.btn-light-glass { background: rgba(255, 255, 255, .16); color: #fff; border: 2px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-light-glass:hover { background: #fff; color: var(--brand); }
.btn-whatsapp { background: #25d366; border: 2px solid #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; color: #fff; }
.btn .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }
.btn.is-loading { pointer-events: none; opacity: .8; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--line); padding: .7rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(139, 30, 70, .12); }
.form-label { font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(139, 30, 70, .15); border-color: var(--brand); }
.required-star { color: #d63939; margin-inline-start: 2px; }
.invalid-feedback { font-weight: 600; }

/* ---------- Announcement bar ---------- */
.announcement-bar { background: var(--ink); color: #f3e6ea; font-size: .86rem; padding: 8px 0; }
.announcement-bar a { color: #fff; }
.announcement-bar .announce-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.announcement-bar .announce-item i { color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .header-main { min-height: var(--header-height); }
.brand-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }
.brand-logo:hover { color: var(--brand); }
.brand-logo .logo-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #c2416f); color: #fff; font-size: 1.35rem; box-shadow: 0 8px 18px rgba(139, 30, 70, .3); }
.brand-logo small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .5px; line-height: 1.2; }

.header-search { position: relative; max-width: 460px; width: 100%; }
.header-search .form-control { border-radius: 999px; padding-inline-end: 3rem; background: var(--cream); border-color: transparent; }
.header-search .form-control:focus { background: #fff; border-color: var(--brand); }
.header-search button { position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }

.header-icon { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); font-size: 1.3rem; background: transparent; border: 0; transition: background .2s var(--ease), color .2s var(--ease); }
.header-icon:hover { background: var(--brand-soft); color: var(--brand); }
.header-icon .badge-count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.header-icon .badge-count.is-bumped { animation: bump .45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.main-nav { border-top: 1px solid var(--line); }
.main-nav .nav-link { color: var(--ink); font-weight: 700; padding: .85rem 1rem; position: relative; }
.main-nav .nav-link::after { content: ""; position: absolute; bottom: 0; inset-inline: 1rem; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav .nav-link:hover, .main-nav .nav-link.active, .main-nav .nav-link.show { color: var(--brand); }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link.nav-offers { color: #d63939; }
.main-nav .dropdown-menu { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem; margin-top: 0; }
.main-nav .dropdown-item { border-radius: 8px; padding: .55rem .9rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.main-nav .dropdown-item i { color: var(--brand); }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { background: var(--brand-soft); color: var(--brand); }
.mega-menu { min-width: 520px; }
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu { display: block; animation: dropIn .2s var(--ease); }
}
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile offcanvas menu */
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-menu .menu-link { display: flex; align-items: center; gap: 12px; padding: .85rem 1rem; border-radius: 12px; color: var(--ink); font-weight: 700; }
.mobile-menu .menu-link i { color: var(--brand); font-size: 1.15rem; }
.mobile-menu .menu-link:hover { background: var(--brand-soft); color: var(--brand); }
.mobile-menu .menu-title { font-size: .8rem; color: var(--muted); font-weight: 700; padding: 1rem 1rem .25rem; }

/* ---------- Section headings ---------- */
.section-heading { margin-bottom: 2.5rem; }
.section-heading .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; font-size: .9rem; background: var(--brand-soft); padding: .3rem 1rem; border-radius: 999px; margin-bottom: .8rem; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .5rem; }
.section-heading p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.section-heading .heading-line { width: 70px; height: 4px; border-radius: 4px; margin: 1rem auto 0; background: linear-gradient(90deg, var(--brand), var(--gold)); }

/* ---------- Page header (inner pages) ---------- */
.page-hero { position: relative; padding: 56px 0 48px; background: linear-gradient(135deg, var(--brand-soft), var(--gold-soft)); overflow: hidden; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .5; }
.page-hero::before { width: 260px; height: 260px; background: rgba(139, 30, 70, .08); top: -90px; inset-inline-start: -60px; }
.page-hero::after { width: 180px; height: 180px; background: rgba(200, 160, 74, .18); bottom: -70px; inset-inline-end: 8%; }
.page-hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); position: relative; z-index: 1; }
.page-hero .breadcrumb { position: relative; z-index: 1; margin: 0; font-weight: 600; }
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb-item.active { color: var(--brand); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* ---------- Product card ---------- */
.product-card { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.badge-tag.is-sale { background: #d63939; }
.badge-tag.is-new { background: var(--success); }
.badge-tag.is-custom { background: var(--gold); }
.badge-tag.is-soldout { background: #6c757d; }
.product-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-card__category { font-size: .8rem; color: var(--muted); font-weight: 600; }
.product-card__title { font-size: 1rem; font-weight: 800; margin: .2rem 0 .4rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.1em; }
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--brand); }
.product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .current { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.price .old { font-size: .88rem; color: var(--muted); text-decoration: line-through; }
.product-card__cta { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 0; font-size: 1.15rem; transition: all .25s var(--ease); flex-shrink: 0; }
.product-card__cta:hover, .product-card__cta:focus-visible { background: var(--brand); color: #fff; transform: rotate(-8deg) scale(1.06); }
.product-card__cta:disabled { background: #eee; color: #aaa; }

.stars { display: inline-flex; gap: 2px; color: #f0b429; font-size: .85rem; }
.stars .bi-star { color: #d9cfd3; }
.rating-line { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }

/* ---------- Swiper shared ---------- */
.swiper-nav-btn { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.1rem; box-shadow: var(--shadow-sm); transition: all .25s var(--ease); }
.swiper-nav-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.swiper-nav-btn.swiper-button-disabled { opacity: .4; pointer-events: none; }
.swiper-pagination-bullet { background: var(--brand); opacity: .25; width: 9px; height: 9px; transition: all .3s var(--ease); }
.swiper-pagination-bullet-active { opacity: 1; width: 28px; border-radius: 6px; }

/* ---------- Features strip ---------- */
.feature-box { display: flex; align-items: center; gap: 14px; padding: 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-box .icon { width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-soft); color: var(--brand); }
.feature-box h3 { font-size: 1rem; margin: 0 0 2px; }
.feature-box p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #1d1217; color: #cdbfc5; padding-top: 70px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.2rem; position: relative; padding-bottom: .6rem; }
.site-footer h3::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--gold); }
.site-footer a { color: #cdbfc5; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-links li { margin-bottom: .55rem; }
.site-footer .footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .6; transition: opacity .2s; }
.site-footer .footer-links a:hover::before { opacity: 1; }
.site-footer .brand-logo { color: #fff; }
.site-footer .brand-logo small { color: #a8979f; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: .8rem; }
.footer-contact i { color: var(--gold); font-size: 1.1rem; }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: all .25s var(--ease); }
.social-links a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 50px; padding: 20px 0; font-size: .88rem; }
.footer-bottom .developer-credit { color: var(--gold); font-weight: 800; letter-spacing: .3px; }
.footer-bottom .developer-credit:hover { color: #fff; }
.payment-badge { display: inline-flex; align-items: center; gap: 8px; padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-weight: 700; font-size: .85rem; }

/* ---------- Floating actions ---------- */
.floating-whatsapp { position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(37, 211, 102, .45); transition: transform .25s var(--ease); }
.floating-whatsapp:hover { color: #fff; transform: scale(1.08); }
.floating-whatsapp::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.back-to-top { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 1040; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .3s var(--ease); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1.5rem; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-size: 3rem; }

/* ---------- Cards / boxes ---------- */
.box-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.box-card-title { font-size: 1.15rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px; }
.box-card-title i { color: var(--brand); }

/* ---------- Pagination ---------- */
.pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-link { border-radius: 12px !important; border: 1px solid var(--line); color: var(--ink); font-weight: 700; min-width: 44px; text-align: center; }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-link:hover { background: var(--brand-soft); color: var(--brand); }

/* ---------- Toastr RTL tweaks ---------- */
#toast-container > div { font-family: var(--bs-body-font-family); border-radius: 12px; opacity: .98; box-shadow: var(--shadow); padding-inline-start: 50px; padding-inline-end: 15px; background-position: right 15px center; direction: rtl; text-align: right; }
#toast-container > div:hover { box-shadow: var(--shadow-lg); }
#toast-container .toast-title { font-weight: 800; }
#toast-container > .toast-success { background-color: var(--success); }
#toast-container > .toast-error { background-color: #c0392b; }
#toast-container > .toast-warning { background-color: #b7791f; }
#toast-container > .toast-info { background-color: #2f6f9f; }

/* ---------- SweetAlert ---------- */
.swal2-popup { font-family: var(--bs-body-font-family); border-radius: 20px; }
.swal2-styled.swal2-confirm { background: var(--brand) !important; border-radius: 999px !important; font-weight: 700; }
.swal2-styled.swal2-cancel { border-radius: 999px !important; font-weight: 700; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.rounded-xl { border-radius: var(--radius) !important; }
.object-cover { object-fit: cover; }
.ratio-product { aspect-ratio: 1 / 1; }
.min-w-0 { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Uploaded logo ---------- */
.logo-image { height: 48px; width: auto; max-width: 170px; object-fit: contain; }
.site-footer .logo-image { background: #fff; border-radius: 12px; padding: 4px 8px; }
@media (max-width: 575.98px) { .logo-image { height: 40px; max-width: 120px; } }
.logo-favicon { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; flex-shrink: 0; }
.logo-text { line-height: 1.3; }
.social-links { flex-wrap: wrap; }
.header-icon.is-signed-in { color: var(--brand); background: var(--brand-soft); }

/* Compact header on phones: keep hamburger + logo + icons inside the viewport */
@media (max-width: 575.98px) {
    .site-header .header-main { gap: .5rem !important; }
    .site-header .header-icon { width: 40px; height: 40px; font-size: 1.15rem; }
    .site-header .brand-logo { min-width: 0; flex: 0 1 auto; font-size: 1.05rem; gap: 8px; }
    .site-header .brand-logo .logo-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .site-header .brand-logo small { display: none; }
    .site-header .logo-favicon { width: 38px; height: 38px; }
}

/* ---------- Wishlist heart ---------- */
.wishlist-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.wishlist-btn i { font-size: 1.1rem; line-height: 1; }
.wishlist-btn.is-saved i { color: #e0245e; }
.wishlist-btn.is-bumped i { animation: bump .45s var(--ease); }
.wishlist-btn--card { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
.wishlist-btn--card:hover { transform: scale(1.08); color: #e0245e; }
.wishlist-btn--page { padding: .45rem .9rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .9rem; }
.wishlist-btn--page:hover { background: #fbe1ea; }

/* ---------- Saved address picker (order forms) ---------- */
.saved-addresses__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.saved-address { flex: 0 0 auto; max-width: 240px; display: grid; gap: 2px; text-align: start; padding: .6rem .85rem; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .2s var(--ease), background .2s var(--ease); }
.saved-address strong { font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.saved-address strong i { color: var(--brand); }
.saved-address small { color: var(--muted); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-address:hover { border-color: var(--brand); }
.saved-address.is-active { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Coupon box + discount line (checkout and quick order) ---------- */
.coupon-box .form-control[readonly] { background: #f3fbf6; border-color: var(--success); color: var(--success); font-weight: 800; }
.coupon-success { margin-top: .35rem; color: var(--success); font-weight: 700; }
.coupon-success::before { content: "\F26A"; font-family: "bootstrap-icons"; margin-inline-end: 4px; }
.summary-row.is-discount { color: var(--success); }

/* ---------- Category tree (mega menu, mobile menu) ---------- */
.mega-menu { min-width: min(760px, 92vw); padding: 1.1rem; }
.mega-menu__title { display: flex; align-items: center; gap: 8px; padding: .35rem .6rem; margin-bottom: .2rem; font-weight: 800; color: var(--brand); }
.mega-menu__title:hover { color: var(--brand); text-decoration: underline; }
.mega-menu .dropdown-item { padding: .3rem .6rem; border-radius: 8px; font-size: .92rem; }
.mega-menu .mega-menu__sub { padding-inline-start: 1.6rem; font-size: .85rem; color: var(--muted); }
.mega-menu .mega-menu__sub::before { content: "– "; }
.menu-link--sub { padding-inline-start: 2.6rem !important; font-size: .9rem; color: var(--muted) !important; }
