* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0d0f10; /* خلفية داكنة فخمة */
    color: #f5f5f5;
}

/* ====== HEADER & NAVBAR ====== */

.site-header {
    background: #050607;
    color: #f5f5f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 16px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 22px;
    cursor: pointer;
    margin-inline-start: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    opacity: 0.85;
    position: relative;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.2s;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.lang-switch a {
    color: #f5f5f5;
    text-decoration: none;
    margin-inline: 4px;
    opacity: 0.6;
}

.lang-switch a.active {
    opacity: 1;
    font-weight: 600;
    text-decoration: underline;
}

.cart-link {
    cursor: pointer;
    font-size: 13px;
}

/* NAV – MOBILE */

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        width: 260px;
        height: 100vh;
        background: #050607;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 16px 16px;
        gap: 14px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 12px rgba(0,0,0,0.5);
    }

    body.nav-open .nav-links {
        right: 0;
    }
}

/* ====== PAGE LAYOUT ====== */

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

.layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

/* ====== CARDS & GENERAL ====== */

.card {
    background: #131619;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    padding: 14px;
    border: 1px solid rgba(212, 175, 55, 0.15); /* ذهبي خفيف */
}

.card + .card {
    margin-top: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f8f3e6;
}

.card-subtitle {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

.small {
    font-size: 12px;
}

/* ====== BUTTONS ====== */

.btn {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #050607;
    font-weight: 600;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.7);
    color: #f5f5f5;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* ====== HERO & LOGO ====== */

.hero {
    background: radial-gradient(circle at top left, #2a2f36 0, #101316 48%, #050607 100%);
    border-radius: 16px;
    padding: 22px 18px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.hero-logo {
    max-width: 160px;
    margin: 0 auto 12px auto;
    display: block;
}

.hero-title {
    font-size: 22px;
    margin-bottom: 6px;
    color: #f8f3e6;
}

.hero-text {
    font-size: 13px;
    color: #c0c0c0;
}

/* ====== BRAND TICKER ====== */

.brand-ticker {
    margin-top: 10px;
    overflow: hidden;
    padding: 8px 0;
    background: #080a0c;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.brand-ticker-track {
    display: inline-flex;
    gap: 14px;
    white-space: nowrap;
    animation: brandTicker 30s linear infinite;
}

.brand-pill {
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    padding: 4px 10px;
    font-size: 12px;
    background: transparent;
    color: #f5f5f5;
    cursor: pointer;
}

.brand-pill.active {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #050607;
    font-weight: 600;
}

.brand-pill:hover {
    background: rgba(212, 175, 55, 0.1);
}

.brand-ticker:hover .brand-ticker-track {
    animation-play-state: paused;
}

@keyframes brandTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====== SIDEBAR (FILTERS + SEARCH) ====== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-group {
    margin-bottom: 10px;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #f8f3e6;
}

select,
input[type="number"],
input[type="text"],
textarea {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #444;
    padding: 6px 8px;
    font-size: 13px;
    font-family: inherit;
    background: #15191d;
    color: #f5f5f5;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #444;
    font-size: 12px;
    cursor: pointer;
    background: #15191d;
}

.checkbox-pill input {
    accent-color: #d4af37;
}

/* ====== CATALOG ====== */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.product-card {
    background: #15191d;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.4);
    padding: 10px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.product-image {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 3 / 4;
    margin-bottom: 8px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #fdfaf3;
}

.product-brand {
    font-size: 12px;
    color: #c0c0c0;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 12px;
    color: #a5a5a5;
    margin-bottom: 6px;
}

.size-list {
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.size-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    background: #1c2126;
    border-radius: 999px;
    padding: 4px 7px;
}

.size-row-left {
    display: flex;
    flex-direction: column;
}

.size-label {
    font-weight: 500;
    color: #f5f5f5;
}

.size-price,
.size-ppml {
    font-size: 11px;
    color: #c0c0c0;
}

/* ====== CART PAGE ELEMENTS ====== */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
}

.cart-table th,
.cart-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #2b3036;
    text-align: center;
}

.cart-table th {
    background: #181d22;
    color: #f5f5f5;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.qty-btn {
    border: none;
    background: #232931;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    color: #f5f5f5;
}

/* ====== FORMS ====== */

.form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

label {
    font-size: 12px;
    color: #f0e6cc;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

.note {
    font-size: 11px;
    color: #b0b0b0;
}

.error-msg {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
}

/* ====== UTILITIES ====== */

.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

/* HEADER الأساسي */

.site-header {
    background: #050607;
    color: #f5f5f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 16px;
}

/* زر الثلاث شحطات */

.nav-toggle {
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
}

/* القائمة الجانبية */

.nav-drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #050607;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    gap: 16px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.6);
    transition: right 0.3s ease;
    z-index: 100;
}

body.nav-open .nav-drawer {
    right: 0;
}

.nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 4px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}

.nav-section a:hover {
    opacity: 1;
}

.nav-label {
    font-size: 12px;
    color: #aaa;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.nav-lang a.active {
    font-weight: 600;
    text-decoration: underline;
}

/* السوشال */

.nav-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.site-header {
    background: #050607;
    color: #f5f5f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

/* اللوجو */
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}
.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 16px;
}

/* ناف بار ديسكتوب */
.nav-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.nav-inline a {
    color: #f5f5f5;
    text-decoration: none;
    opacity: 0.85;
}
.nav-inline a:hover {
    opacity: 1;
}
.nav-lang-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-lang-inline a.active {
    font-weight: 600;
    text-decoration: underline;
}
.nav-social-inline a {
    font-size: 12px;
}

/* زر الثلاث شحطات */
.nav-toggle {
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    display: none; /* يظهر بالميديا */
}

/* القائمة الجانبية للموبايل */
.nav-drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #050607;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    gap: 16px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.6);
    transition: right 0.3s ease;
    z-index: 100;
}
body.nav-open .nav-drawer {
    right: 0;
}
.nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 4px;
}
.nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nav-section a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}
.nav-section a:hover {
    opacity: 1;
}
.nav-label {
    font-size: 12px;
    color: #aaa;
}
.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.nav-lang a.active {
    font-weight: 600;
    text-decoration: underline;
}
.nav-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* ميديا: موبايل = يظهر ثلاث شحطات ويختفي nav-inline */
@media (max-width: 768px) {
    .nav-inline {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
}

/* ميديا: ديسكتوب = nav-inline يظهر، ولا نحتاج nav-drawer (يبقى للكود لكن لا يظهر إلا لو فتحته بالقوة) */
@media (min-width: 769px) {
    .nav-inline {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}
/* --------- NAVBAR (كما اتفقنا) --------- */

.site-header {
    background: #050607;
    color: #f5f5f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 16px;
}

/* navbar في الديسكتوب */
.nav-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

.nav-inline a {
    color: #f5f5f5;
    text-decoration: none;
    opacity: 0.85;
}

.nav-inline a:hover {
    opacity: 1;
}

.nav-lang-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-lang-inline a.active {
    font-weight: 600;
    text-decoration: underline;
}

/* social icons داخل الناف بار الديسكتوب */

.nav-social-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-social-inline img {
    width: 18px;
    height: 18px;
}

/* زر الثلاث شحطات (يظهر فقط على الموبايل) */

.nav-toggle {
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    display: none; /* مبدئياً مخفي، يظهر بالميديا */
}

/* القائمة الجانبية للموبايل */

.nav-drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #050607;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    gap: 16px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.6);
    transition: right 0.3s ease;
    z-index: 100;
}

body.nav-open .nav-drawer {
    right: 0;
}

.nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 4px;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}

.nav-section a:hover {
    opacity: 1;
}

.nav-label {
    font-size: 12px;
    color: #aaa;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.nav-lang a.active {
    font-weight: 600;
    text-decoration: underline;
}

.nav-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

/* ميديا: موبايل = فقط لوجو + ثلاث شحطات */

@media (max-width: 768px) {
    .nav-inline {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
}

/* ميديا: ديسكتوب */

@media (min-width: 769px) {
    .nav-inline {
        display: flex;
    }
    .nav-toggle {
        display: none;
    }
}

/* --------- SECTIONS / HOME BLOCKS --------- */

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #f8f3e6;
}

.section-subtitle {
    font-size: 12px;
    color: #aaa;
}

.section-link {
    font-size: 12px;
    color: #d4af37;
    text-decoration: none;
}

/* --------- SOCIAL ICONS (مثل الصورة) --------- */

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons img {
    width: 20px;
    height: 20px;
}

/* --------- FOOTER --------- */

.site-footer {
    margin-top: 32px;
    padding: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: #050607;
    color: #ccc;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* --------- PRODUCT CARDS CLICKABLE --------- */

.product-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

/* زر التفاصيل الصغير داخل الكارت */

.btn-link {
    background: transparent;
    border: none;
    color: #d4af37;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
}
/* HEADER & NAV */
.site-header {
    background: #050607;
    color: #f5f5f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
}
.logo-text {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 16px;
}
.nav-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}
.nav-inline a {
    color: #f5f5f5;
    text-decoration: none;
    opacity: 0.85;
}
.nav-inline a:hover { opacity: 1; }
.nav-lang-inline {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-lang-inline a.active {
    font-weight: 600;
    text-decoration: underline;
}
.nav-social-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-social-inline img { width: 18px; height: 18px; }

/* mobile menu */
.nav-toggle {
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    display: none;
}
.nav-drawer {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #050607;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    padding: 18px 16px;
    gap: 16px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.6);
    transition: right 0.3s ease;
    z-index: 100;
}
body.nav-open .nav-drawer { right: 0; }
.nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 4px;
}
.nav-section { display: flex; flex-direction: column; gap: 8px; }
.nav-section a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
}
.nav-section a:hover { opacity: 1; }
.nav-label { font-size: 12px; color: #aaa; }
.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.nav-lang a.active {
    font-weight: 600;
    text-decoration: underline;
}
.nav-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
@media (max-width: 768px) {
    .nav-inline { display: none; }
    .nav-toggle { display: block; }
}
@media (min-width: 769px) {
    .nav-inline { display: flex; }
    .nav-toggle { display: none; }
}

/* FREE SHIPPING BANNER */
.top-banner {
    background: #1f2a17;
    color: #f5f5f5;
    text-align: center;
    padding: 6px 10px;
    font-size: 13px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

/* FOOTER */
.site-footer {
    margin-top: 32px;
    padding: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: #050607;
    color: #ccc;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-icons img { width: 20px; height: 20px; }

/* PRODUCT CARD LINK */
.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.55);
}

/* SECTION TITLES */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #f8f3e6;
}
.section-subtitle {
    font-size: 12px;
    color: #aaa;
}
.section-link {
    font-size: 12px;
    color: #d4af37;
    text-decoration: none;
}
.section-link:hover { text-decoration: underline; }

/* بنر الماركات (لو من الكود السابق) */
.brand-ticker {
    margin-top: 10px;
    overflow: hidden;
    padding: 8px 0;
    background: #080a0c;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.brand-ticker-track {
    display: inline-flex;
    gap: 14px;
    white-space: nowrap;
    animation: brandTicker 30s linear infinite;
}
.brand-pill {
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    padding: 4px 10px;
    font-size: 12px;
}
@keyframes brandTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-ticker:hover .brand-ticker-track {
    animation-play-state: paused;
}
.brand-ticker {
    margin-top: 18px;
    overflow: hidden;
    padding: 10px 0;
    background: linear-gradient(90deg, #111317, #161b21);
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    position: relative;
}

.brand-ticker-track {
    display: inline-flex;
    gap: 18px;
    white-space: nowrap;
    animation: brandTicker 30s linear infinite;
    padding-inline: 18px;
}

.brand-pill {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    font-size: 14px;
    letter-spacing: .03em;
    text-decoration: none;
    color: #f8f3e6;
    background: rgba(8, 10, 12, 0.85);
}

.brand-pill:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* حركة الماركيه */
@keyframes brandTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* إيقاف الحركة عند المرور بالماوس */
.brand-ticker:hover .brand-ticker-track {
    animation-play-state: paused;
}


.cart-empty {
    font-size: 13px;
    color: #bbb;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #111317;
}

.cart-item-main {
    min-width: 0;
}
.cart-item-name {
    font-size: 14px;
    font-weight: 500;
}
.cart-item-size {
    font-size: 12px;
    color: #aaa;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cart-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #333;
    background: #050607;
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.cart-qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
}

.cart-item-price {
    text-align: end;
    font-size: 12px;
}
.cart-item-line {
    font-size: 14px;
    font-weight: 600;
}
.cart-item-unit {
    color: #aaa;
}
.cart-remove {
    margin-top: 4px;
    border: none;
    background: transparent;
    color: #f88;
    font-size: 14px;
    cursor: pointer;
}

/* ملخص السلة */
.cart-summary {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #272b31;
}
.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

/* نموذج بيانات الزبون */
.cart-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.cart-form label {
    font-size: 12px;
    color: #aaa;
}
.cart-form input,
.cart-form textarea {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #2a2f36;
    background: #050607;
    color: #f5f5f5;
    font-size: 13px;
}
.cart-form textarea {
    resize: vertical;
}
.btn-full {
    width: 100%;
}

/* موبايل: نجعل الكارت عمود واحد */
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: start;
    }
    .cart-item-price {
        text-align: start;
    }
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.filter-bar input[type="search"],
.filter-bar select {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #2a2f36;
    background: #050607;
    color: #f5f5f5;
    font-size: 13px;
    min-width: 150px;
}

.filter-bar .btn {
    padding-inline: 14px;
}

@media (max-width: 600px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar input[type="search"],
    .filter-bar select,
    .filter-bar .btn {
        width: 100%;
    }
}
.cart-empty {
    font-size: 13px;
    color: #bbb;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    background: #111317;
}

.cart-item-main {
    min-width: 0;
}
.cart-item-name {
    font-size: 14px;
    font-weight: 500;
}
.cart-item-size {
    font-size: 12px;
    color: #aaa;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cart-btn {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid #333;
    background: #050607;
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.cart-qty-value {
    min-width: 18px;
    text-align: center;
    font-size: 13px;
}

.cart-item-price {
    text-align: end;
    font-size: 12px;
}
.cart-item-line {
    font-size: 14px;
    font-weight: 600;
}
.cart-item-unit {
    color: #aaa;
}
.cart-remove {
    margin-top: 4px;
    border: none;
    background: transparent;
    color: #f88;
    font-size: 14px;
    cursor: pointer;
}

/* التوصيل */
.cart-shipping {
    margin-top: 12px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}
.cart-shipping label {
    font-size: 12px;
    color: #aaa;
}
.cart-shipping select {
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #2a2f36;
    background: #050607;
    color: #f5f5f5;
    font-size: 13px;
}
.cart-shipping-note {
    font-size: 11px;
    color: #ccc;
}

/* ملخص السلة */
.cart-summary {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #272b31;
}
.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}
.cart-summary-row-total span:first-child {
    font-weight: 600;
}

/* نموذج بيانات الزبون */
.cart-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.cart-form label {
    font-size: 12px;
    color: #aaa;
}
.cart-form input,
.cart-form textarea {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #2a2f36;
    background: #050607;
    color: #f5f5f5;
    font-size: 13px;
}
.cart-form textarea {
    resize: vertical;
}
.btn-full {
    width: 100%;
}

/* موبايل */
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 1fr;
        text-align: start;
    }
    .cart-item-price {
        text-align: start;
    }
}
/* -------- SIZE OPTIONS (PILLS) -------- */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.size-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #3a3f46;
    background: #050607;
    color: #f5f5f5;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.size-chip:hover {
    border-color: #d4af37;
    transform: translateY(-1px);
}

.size-chip input {
    display: none; /* نخفي دائرة الراديو */
}

/* النص داخل التشيب */
.size-chip span {
    pointer-events: none; /* حتى يكون الكلك على التشيب كله */
}

/* عندما يكون هذا الحجم هو المختار */
.size-chip input:checked + span {
    background: linear-gradient(135deg, #d4af37, #f5e6b8);
    color: #111;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 600;
}
/* -------- SIZE OPTIONS (PILLS) -------- */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.size-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;           /* أصغر */
    border-radius: 999px;
    border: 1px solid #3a3f46;
    background: #050607;
    color: #f5f5f5;
    font-size: 12px;             /* أصغر */
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.size-chip:hover {
    border-color: #d4af37;
    transform: translateY(-1px);
}

.size-chip input {
    display: none; /* نخفي دائرة الراديو */
}

.size-chip span {
    pointer-events: none; /* الكلك على التشيب كله */
}

/* عندما يكون هذا الحجم هو المختار */
.size-chip input:checked + span {
    background: linear-gradient(135deg, #d4af37, #f5e6b8);
    color: #111;
    border-radius: 999px;
    padding: 2px 8px;
    font-weight: 600;
}

/* سطر السعر أسفل الأحجام */
.price-row {
    margin-top: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.price-row-label {
    color: #aaa;
}
.price-row-value {
    font-weight: 600;
}
.old-price {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 4px;
}
.old-price {
    display: block;              /* يظهر سطر فوق السعر */
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}
/* شبكة عرض العطور في صفحة perfumes */
.products-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* مهم: 2 كروت في الصف على الهاتف */
    gap: 12px;
}

/* على الشاشات الأكبر نخليها 3 أو 4 في الصف */
@media (min-width: 768px) {
    .products-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .products-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* تأكد إن الكرت ياخذ عرض كامل داخل الـ grid */
.product-card {
    width: 100%;
}
/* شبكة عرض العطور في صفحة perfumes */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 كروت في الصف على الهاتف */
    gap: 12px;
    margin-top: 12px;
}

/* على الشاشات الأكبر نخليها 3 ثم 4 */
@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* تأكد أن الكرت يملأ عمود الـ grid */
.product-card-link {
    display: block;
    height: 100%;
}
.product-card {
    background: radial-gradient(circle at top, #111827, #020617);
    border-radius: 16px;
    border: 1px solid rgba(75,85,99,0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    border-color: #d4af37;
}
.product-image {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.product-info {
    padding: 8px 10px 10px;
}
.product-name {
    font-size: 13px;
    font-weight: 600;
}
.product-brand {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* شريط الفلتر ليكون جميل ومتجاوب */
.filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.filter-bar input[type="search"],
.filter-bar select {
    width: 100%;
}

/* على الشاشات الأكبر نوزع العناصر بشكل أفقي */
@media (min-width: 768px) {
    .filter-bar {
        grid-template-columns: 2fr 1.2fr 1fr 1.2fr auto auto;
        align-items: center;
    }
}

/* ===== شريط الماركات المتحرك بدون JS ===== */
/* ==== شريط الماركات المتحرك ==== */
.brands-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    background: #050607;
    margin-top: 18px;
    padding: 8px 0;
}

/* هذا العنصر سنحركه يمين/يسار */
.brands-track {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    will-change: transform;
    animation: brands-marquee-scroll 60s linear infinite;
    padding-inline: 24px;
}

/* إيقاف الحركة عند تمرير الماوس */
.brands-marquee:hover .brands-track {
    animation-play-state: paused;
}

/* كبسّة الماركة */
.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.8);
    background: #050607;
    color: #f5f5f5;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease,
        box-shadow 0.15s ease;
}

.brand-pill:hover {
    background: #d4af37;
    border-color: #f5e6b8;
    color: #111;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* سنستعمل متغير CSS لعرض نسخة واحدة من الشريط */
@keyframes brands-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* يتحرك بعرض نسخة واحدة من الماركات */
        transform: translateX(calc(-1 * var(--marquee-width, 0px)));
    }
}


