:root {
    --bride-teal: #b76e79;         /* الروز غولد الأساسي (اللون المميز للعلامة) */
    --bride-teal-dark: #93505b;    /* روز غولد أغمق (تفاعل/هوفر) */
    --bride-teal-light: #fbeef0;   /* وردي فاتح جداً (خلفيات ناعمة) */
    --bride-dark: #3a1f28;         /* بورجندي غامق (نصوص/فوتر) */

    --bride-gold: #d8b46a;         /* ذهبي للمسات فاخرة */
    --bride-cream: #fffaf7;        /* أبيض دافئ للخلفية الأساسية */
    --bride-ink: #4a2f36;          /* لون نص أساسي دافئ بدل الأسود الصريح */
    --bride-muted: #9c7b83;
    --bride-border: rgba(183,110,121,0.22);
    --bride-glow: 0 10px 34px rgba(183,110,121,0.22);
}

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

* { box-sizing: border-box; }

body {
    font-family: "Cairo", "Tahoma", sans-serif;
    background-color: var(--bride-cream);
    background-image:
        radial-gradient(ellipse 900px 500px at 100% -10%, rgba(183,110,121,0.08), transparent 60%),
        radial-gradient(ellipse 800px 500px at 0% 20%, rgba(216,180,106,0.10), transparent 55%);
    background-attachment: fixed;
    color: var(--bride-ink);
}

a { text-decoration: none; }

h1, h2, h3, h4, .bride-brand-font {
    font-family: "Amiri", "Cairo", serif;
}

::selection { background: var(--bride-teal); color: #fff; }

/* ---------- Sparkle particles (reusable) ---------- */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #fff, var(--bride-gold) 60%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: bride-twinkle 3.2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes bride-twinkle {
    0%, 100% { opacity: 0; transform: scale(0.4); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ---------- Header ---------- */
.bride-header {
    background: rgba(255,250,247,0.92);
    border-bottom: 1px solid var(--bride-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.bride-logo-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, var(--bride-teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--bride-border);
    box-shadow: 0 4px 14px rgba(183,110,121,0.18);
}

.bride-brand-name {
    font-family: "Amiri", serif;
    font-weight: 700;
    color: var(--bride-teal-dark);
    font-size: 1.3rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.bride-brand-tag {
    font-size: 0.68rem;
    color: var(--bride-muted);
}

.bride-nav a {
    color: var(--bride-ink);
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    position: relative;
    transition: color .15s ease;
}
.bride-nav a::after {
    content: "";
    position: absolute;
    right: 0.75rem; left: 0.75rem; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--bride-teal), var(--bride-gold));
    transform: scaleX(0);
    transition: transform .2s ease;
}
.bride-nav a:hover { color: var(--bride-teal-dark); }
.bride-nav a:hover::after { transform: scaleX(1); }

.icon-btn {
    position: relative;
    color: var(--bride-ink);
    font-size: 1.2rem;
    padding: 0.3rem 0.5rem;
}
.icon-btn:hover { color: var(--bride-teal-dark); }

.cart-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: linear-gradient(135deg, var(--bride-teal), var(--bride-teal-dark));
    color: #fff;
    font-size: 0.65rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ---------- Hero (video) ---------- */
.bride-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    text-align: center;
    padding: 0;
}
.bride-hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.bride-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 320px at 50% 0%, rgba(255,255,255,0.35), transparent 65%),
        linear-gradient(180deg, rgba(58,31,40,0.28) 0%, rgba(58,31,40,0.55) 55%, rgba(58,31,40,0.82) 100%);
    z-index: 1;
}
.bride-hero-content {
    position: relative;
    z-index: 2;
    padding: 4.5rem 1rem 4rem;
    width: 100%;
}
.bride-hero-content h1 {
    font-weight: 800;
    font-size: 2.3rem;
    background: linear-gradient(90deg, #fff 0%, var(--bride-gold) 45%, #fff 55%, var(--bride-gold) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bride-shimmer 5s linear infinite;
    text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
@keyframes bride-shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 220% 50%; }
}
.bride-hero-content p {
    color: #fdf3ee;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    max-width: 640px;
    margin-left: auto; margin-right: auto;
}
.bride-hero-content .sparkle { width: 5px; height: 5px; }
@media (max-width: 576px) {
    .bride-hero { min-height: 380px; border-radius: 0 0 28px 28px; }
    .bride-hero-content { padding: 3rem 1rem 3rem; }
    .bride-hero-content h1 { font-size: 1.7rem; }
}

/* ---------- Decorative section divider ---------- */
.bride-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    justify-content: center;
    margin: 0.25rem 0 1.75rem;
    color: var(--bride-teal-dark);
}
.bride-divider::before, .bride-divider::after {
    content: "";
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bride-teal), transparent);
}
.bride-divider .gem { font-size: 1rem; }
.bride-section-title {
    text-align: center;
    font-weight: 800;
    color: var(--bride-dark);
    margin-bottom: 0.35rem;
}

/* ---------- Buttons ---------- */
.btn-bride {
    background: linear-gradient(135deg, var(--bride-teal), var(--bride-teal-dark));
    border: none;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(183,110,121,0.35);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-bride::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 48%, transparent 66%);
    transform: translateX(-120%);
    transition: transform .6s ease;
    z-index: 1;
}
.btn-bride:hover::before { transform: translateX(120%); }
.btn-bride:hover { color: #fff; box-shadow: 0 8px 22px rgba(183,110,121,0.5); }

.btn-outline-bride {
    border: 1.5px solid var(--bride-teal);
    color: var(--bride-teal-dark);
    font-weight: 600;
    background: #fff;
}
.btn-outline-bride:hover { background: var(--bride-teal); color: #fff; }

/* ---------- Cards ---------- */
.category-card {
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border: 1px solid var(--bride-border);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    padding: 1rem 0.5rem;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--bride-glow); border-color: var(--bride-teal); }
.category-card img, .category-card .placeholder-icon {
    width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 16px; margin: 0 auto 0.6rem;
    background: linear-gradient(160deg, var(--bride-teal-light), #fff);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.category-card p { color: var(--bride-ink); font-weight: 600; }

.product-card {
    border-radius: 20px;
    border: 1px solid var(--bride-border);
    overflow: hidden;
    background: #fff;
    height: 100%;
    transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
    color: var(--bride-ink);
}
.product-card:hover { box-shadow: var(--bride-glow); border-color: var(--bride-teal); transform: translateY(-4px); }
.product-card .img-wrap {
    aspect-ratio: 1/1;
    background: linear-gradient(160deg, var(--bride-teal-light), #fff);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover img { transform: scale(1.06); }
.product-card .price { color: var(--bride-teal-dark); font-weight: 800; }
.product-card .old-price { text-decoration: line-through; color: #c1a6ab; font-size: 0.85rem; }
.product-card .card-body, .product-card h6, .product-card .fw-bold { color: var(--bride-ink); }

.badge-out {
    background: #a44;
}

/* ---------- Generic bootstrap component polish ---------- */
.card {
    background: #fff;
    border: 1px solid var(--bride-border);
    color: var(--bride-ink);
}
.text-muted { color: var(--bride-muted) !important; }
.table { color: var(--bride-ink); }
.table > :not(caption) > * > * { background: transparent; color: var(--bride-ink); border-color: var(--bride-border); }
.modal-content, .dropdown-menu { background: #fff; color: var(--bride-ink); border: 1px solid var(--bride-border); border-radius: 16px; }
.dropdown-item { color: var(--bride-ink); }
.dropdown-item:hover { background: var(--bride-teal-light); color: var(--bride-teal-dark); }

/* ---------- Checkout form ---------- */
.checkout-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--bride-border);
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(183,110,121,0.08);
}
.form-control, .form-select {
    border-radius: 12px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--bride-border);
    background: #fff;
    color: var(--bride-ink);
}
.form-control:focus, .form-select:focus {
    border-color: var(--bride-teal);
    box-shadow: 0 0 0 0.2rem rgba(183,110,121,0.18);
}
label, .form-label { color: var(--bride-ink); font-weight: 600; }

/* ---------- Cart quantity stepper (mobile-friendly +/-) ---------- */
.qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid var(--bride-border);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}
.qty-step-btn {
    background: var(--bride-teal-light);
    border: none;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bride-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    touch-action: manipulation;
}
.qty-step-btn:active { background: var(--bride-teal); color: #fff; }
.qty-stepper .cart-qty-input {
    width: 48px;
    text-align: center;
    border: none;
    border-right: 1px solid var(--bride-border);
    border-left: 1px solid var(--bride-border);
    border-radius: 0;
    padding: 0.35rem 0.25rem;
    -moz-appearance: textfield;
    color: var(--bride-ink);
}
.qty-stepper .cart-qty-input::-webkit-outer-spin-button,
.qty-stepper .cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.payment-option {
    border: 1.5px solid var(--bride-border);
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
    background: #fff;
}
.payment-option.selected {
    border-color: var(--bride-teal);
    background: var(--bride-teal-light);
}

/* ---------- Footer ---------- */
.bride-footer {
    background: linear-gradient(180deg, #4a2530, var(--bride-dark));
    color: #e7cdd2;
    padding: 2.75rem 0 1.25rem;
    margin-top: 3.5rem;
    border-top: 3px solid var(--bride-gold);
}
.bride-footer h5, .bride-footer h6 { color: var(--bride-gold) !important; font-family: "Amiri", serif; }
.bride-footer a { color: #e7cdd2; }
.bride-footer a:hover { color: var(--bride-gold); }

.footer-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(216,180,106,0.12);
    border: 1px solid rgba(216,180,106,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff !important;
    transition: background .15s ease, transform .15s ease;
}
.footer-social-link:hover {
    background: var(--bride-gold);
    color: #3a1f28 !important;
    transform: translateY(-3px);
}

/* ---------- Notification banner ---------- */
.notification-banner {
    background: linear-gradient(90deg, var(--bride-dark), #5c2a3a);
    color: #fdf3ee;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--bride-gold);
}
.notification-banner a { color: var(--bride-gold) !important; }

/* ---------- Push notification prompt ---------- */
.push-prompt {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--bride-border);
    box-shadow: 0 -4px 20px rgba(183,110,121,0.15);
    padding: 0.75rem 1rem;
    z-index: 1300;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    left: 22px;
    background: #25D366;
    color: #fff !important;
    border-radius: 30px;
    padding: 0.7rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 1200;
    font-weight: 600;
}

/* ---------- Mobile menu button ---------- */
.menu-toggle-btn {
    background: var(--bride-teal-light);
    color: var(--bride-teal-dark);
    border: 1px solid var(--bride-border);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-toggle-btn:hover { background: var(--bride-teal); color: #fff; }

/* ---------- Offcanvas mobile menu ---------- */
.offcanvas { max-width: 320px; background: #fff; color: var(--bride-ink); }
.offcanvas-header { border-bottom: 1px solid var(--bride-border) !important; }
.mobile-menu-tabs { border-bottom: 1px solid var(--bride-border); }
.mobile-menu-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--bride-muted);
    font-weight: 600;
    border-radius: 0;
    background: transparent;
}
.mobile-menu-tabs .nav-link.active {
    color: var(--bride-teal-dark);
    border-bottom-color: var(--bride-teal);
    background: transparent;
}
.mobile-menu-link {
    display: block;
    padding: 0.7rem 0.25rem;
    color: var(--bride-ink);
    border-bottom: 1px solid var(--bride-border);
    font-weight: 500;
}
.mobile-menu-link:hover { color: var(--bride-teal-dark); }

.mobile-category-tile { display: block; text-align: center; }
.mobile-category-thumb {
    aspect-ratio: 1/1;
    background: var(--bride-teal-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.mobile-category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mobile-category-tile p { color: var(--bride-ink); }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 400px) {
    .bride-brand-tag { display: none; }
    .bride-logo-circle { width: 42px; height: 42px; font-size: 1.3rem; }
}

/* ---------- Admin login page ---------- */
.login-page-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top, #5c2a3a 0%, var(--bride-dark) 65%);
}
.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 55px rgba(0,0,0,0.4);
    border-top: 3px solid var(--bride-gold);
}
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bride-teal-light);
    box-shadow: 0 0 0 3px var(--bride-teal);
}
@media (min-width: 576px) {
    .login-card { padding: 2.5rem 2rem; }
}

.admin-sidebar {
    background: linear-gradient(180deg, #4a2530, var(--bride-dark));
    min-height: 100vh;
    color: #fff;
}
.admin-sidebar a {
    color: #e7cdd2;
    display: block;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: var(--bride-gold);
    color: #3a1f28;
}
.stat-card {
    border-radius: 18px;
    border: 1px solid var(--bride-border);
    padding: 1.25rem;
    background: #fff;
}
.stat-card .value { font-size: 1.7rem; font-weight: 800; color: var(--bride-teal-dark); }

.status-badge {
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
