:root {
    --brand-pink: #ff007f;
    --brand-pink-hover: #d9006c;
    --brand-dark: #121212;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-ui: #e5e7eb;
    --bg-body: #fafafa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    padding-bottom: 95px;
    overflow-x: hidden;
}

/* ====================================================
   الهيدر والناف بار العصري (يطلع للأعلى بسلاسة مع السكرول)
   ==================================================== */
.custom-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    background: var(--brand-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.header-logo img {
    height: 38px;
    width: 38px;
    display: block;
    border-radius: 50%;
    border: 2px solid var(--brand-pink);
    object-fit: cover;
    flex-shrink: 0;
}

.search-form-inline {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 3px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    flex-grow: 1;
    min-width: 0;
}

.search-form-inline input {
    border: none;
    outline: none;
    padding: 4px;
    font-size: 12px;
    width: 100%;
    background: transparent;
}

.search-form-inline button {
    background: none;
    border: none;
    color: var(--brand-pink);
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-phone {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 0, 127, 0.35);
    white-space: nowrap;
}

.header-phone i {
    color: var(--brand-pink);
}

.header-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: #1e1e1e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    white-space: nowrap;
}

.header-nav-links a {
    color: #f3f4f6 !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 14px;
    flex-shrink: 0;
}

.header-nav-links a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

.header-nav-links a.login-nav-btn {
    background: var(--brand-pink) !important;
    color: #ffffff !important;
}

.header-bottom {
    background: var(--brand-pink);
    padding: 6px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-social {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.header-social a {
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.header-social a:hover {
    background: #121212 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.header-social a i {
    transition: transform 0.3s ease;
}

.header-social a:hover i {
    transform: scale(1.1);
}

.header-curve {
    line-height: 0;
    background: var(--brand-pink);
}

.header-curve svg {
    display: block;
    width: 100%;
    height: 8px;
}

/* ====================================================
   البانر الترحيبي والنصوص الرئيسية (Luxury Hero Banner)
   ==================================================== */
.luxury-hero-banner {
    background: linear-gradient(135deg, #fff0f6 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-ui);
    padding: 30px 15px;
    text-align: center;
}

.hero-badge-lux {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffe3f0;
    color: var(--brand-pink);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.luxury-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.luxury-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.luxury-perks {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.perk-item {
    background: #ffffff;
    border: 1px solid var(--border-ui);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.perk-item i {
    color: var(--brand-pink);
}

/* ====================================================
   الحاوية والمنتجات
   ==================================================== */
.container {
    width: 100%;
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 25px 15px;
}

.section-header {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 20px;
    }
}

.grid-card {
    background: #fff;
    border: 1px solid var(--border-ui);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.grid-img-link {
    display: block;
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #fdfdfd;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.grid-img-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.grid-card:hover .grid-img-link img {
    transform: scale(1.05);
}

.badge-fast {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #059669;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 6px;
    z-index: 2;
}

.grid-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.grid-title-link {
    text-decoration: none;
    display: block;
}

.grid-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-price {
    font-size: 16px;
    font-weight: 900;
    color: var(--brand-pink);
    margin-bottom: 10px;
}

.grid-btn {
    background: var(--brand-pink);
    color: #fff;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s;
    display: block;
}

.grid-btn:hover { 
    background: var(--brand-pink-hover); 
}

/* ====================================================
   تنسيق صفحة المنتج ومعرض الصور
   ==================================================== */
.product-card {
    background: #ffffff;
    border: 1px solid var(--border-ui);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.product-image {
    width: 100%;
    max-height: 420px;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-ui);
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.thumbnails-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-ui);
    cursor: pointer;
    opacity: 0.7;
    flex-shrink: 0;
    transition: all 0.2s;
}

.thumb-img:hover, .thumb-img.active {
    border-color: var(--brand-pink);
    opacity: 1;
    transform: scale(1.05);
}

.stock-badge {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #d1fae5;
}

.product-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand-pink);
    margin-bottom: 15px;
}

.product-desc {
    background: #fff0f6 !important;
    border-right: 4px solid var(--brand-pink) !important;
    padding: 15px 18px !important;
    border-radius: 10px !important;
    color: #1f2937 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    font-weight: 600 !important;
    margin-top: 10px;
    white-space: pre-line;
}

/* ====================================================
   مميزات الشراء والاستمارة
   ==================================================== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--border-ui);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.feature-icon {
    font-size: 22px;
}

.feature-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-dark);
}

.feature-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.order-card {
    background: #ffffff;
    border: 1px solid var(--border-ui);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.order-title {
    font-size: 19px;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 18px;
    text-align: center;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-field input, .form-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-ui);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    background: #fcfcfc;
}

.shipping-selector {
    margin-bottom: 14px;
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-ui);
}

.shipping-selector legend {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.options-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.options-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.summary-card {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.summary-row.total {
    border-top: 1px solid #f472b6;
    padding-top: 8px;
    font-size: 16px;
    font-weight: 900;
    color: var(--brand-pink);
}

.btn-whatsapp-submit {
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-whatsapp-submit:hover {
    background: #20ba5a;
}

/* ====================================================
   نافذة تكبير الصور
   ==================================================== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image-modal img {
    max-width: 95%;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    font-size: 22px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

/* ====================================================
   شريط الطلب السفلي للهواتف
   ==================================================== */
.mobile-bottom-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 12px 20px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    z-index: 999;
    text-align: center;
}

.mobile-order-btn {
    display: block;
    background: var(--brand-pink);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
}

@media (min-width: 768px) {
    .mobile-bottom-bar { display: none; }
}

/* ====================================================
   الفوتر
   ==================================================== */
.custom-footer {
    background: var(--brand-dark);
    color: #ffffff;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    background: transparent;
    line-height: 0;
    width: 100%;
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 32px;
    fill: var(--brand-pink);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 30px;
    text-align: center;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--brand-pink);
    margin-bottom: 12px;
    object-fit: cover;
}

.footer-brand h3 {
    font-size: 19px;
    font-weight: 900;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 13px;
    color: #9ca3af;
    max-width: 500px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.f-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f3f4f6;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.footer-social-links a:hover {
    background: var(--brand-pink);
    border-color: var(--brand-pink);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    font-size: 12px;
    color: #6b7280;
}

.footer-bottom strong {
    color: var(--brand-pink);
}

/* ====================================================
   شريط تصنيفات المنتجات الفاخر (Category Filter Bar)
   ==================================================== */
.categories-bar-wrapper {
    margin: 0 0 20px 0;
    position: relative;
    width: 100%;
}

.categories-scroll-list {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 4px 14px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.categories-scroll-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.cat-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    background: #ffffff;
    border: 1.5px solid var(--border-ui);
    color: var(--text-main);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.cat-tab-btn i {
    color: var(--brand-pink);
    font-size: 14px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.cat-tab-name {
    line-height: 1;
}

.cat-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    background: #fdf2f8;
    color: var(--brand-pink);
    min-width: 18px;
    line-height: 1.2;
    transition: all 0.25s ease;
}

/* Hover state */
.cat-tab-btn:hover {
    border-color: var(--brand-pink);
    color: var(--brand-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.12);
}

.cat-tab-btn:hover i {
    transform: scale(1.15);
}

/* Active state */
.cat-tab-btn.active {
    background: linear-gradient(135deg, #ff007f 0%, #d9006c 100%);
    color: #ffffff !important;
    border-color: #ff007f;
    box-shadow: 0 5px 18px rgba(255, 0, 127, 0.35);
    transform: translateY(-2px);
}

.cat-tab-btn.active i {
    color: #ffffff !important;
    transform: scale(1.1);
}

.cat-tab-btn.active .cat-tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* شارة التصنيف على كرت المنتج في الشبكة */
.badge-category {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-category i {
    color: var(--brand-pink);
    font-size: 9px;
}

/* حالة عدم وجود منتجات في التصنيف المختار */
.empty-category-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 45px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 1.5px dashed #e2e8f0;
    margin: 10px 0 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.empty-notice-icon {
    font-size: 42px;
    color: #ff007f;
    margin-bottom: 12px;
    opacity: 0.85;
}

.empty-category-notice h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.empty-category-notice p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-pink);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.25);
    transition: all 0.2s ease;
}

.empty-reset-btn:hover {
    background: var(--brand-pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 0, 127, 0.35);
}

/* شارة التصنيف في صفحة تفاصيل المنتج */
.category-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fdf2f8;
    color: var(--brand-pink);
    border: 1px solid #fbcfe8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge-link:hover {
    background: var(--brand-pink);
    color: #ffffff;
    border-color: var(--brand-pink);
}