* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background-color: #fff; color: #111; overflow-x: hidden; }

/* 👆 إحساس بسيط إن الزرار اتدوس (يغمق شوية) — بيطبق على كل الأزرار عن طريق
   filter بس (من غير transform) عشان ميبوظش أي زرار بيستخدم transform أصلاً
   في تمركزه (زي أسهم الكاروسيل .cf-nav-btn وزرار العين .pauth-eye-btn اللي
   بيستخدموا translateY(-50%) للتمركز الرأسي). */
button {
    transition: filter 0.1s ease, background-color 0.15s ease;
}
button:active {
    filter: brightness(0.9);
}

/* الزرارات دي مفيهاش transform أصلاً، فآمن نضيفلها كمان انزغاطة خفيفة عند الدوس */
.icon-btn, .size-btn, .btn-apply, .btn-reset-filters {
    transition: transform 0.1s ease, filter 0.1s ease, background-color 0.15s ease;
}
.icon-btn:active, .size-btn:active, .btn-apply:active, .btn-reset-filters:active {
    transform: scale(0.96);
}

/* الزرارات دي بتستخدم transform أصلاً للتمركز الرأسي (translateY(-50%))،
   فلازم نضيف الانزغاطة فوق نفس الـtransform مش بدل منه */
.cf-nav-btn:active { transform: translateY(-50%) scale(0.9); }
.pauth-eye-btn:active { transform: translateY(-50%) scale(0.9); }

/* 🚀 تعديل مهم: إلغاء المارچن الواسع وجعل العرض يمتد لأطراف الشاشة مثل Town Team */
.container { 
    max-width: 100% !important; 
    padding: 0 24px; 
}
.text-xs { font-size: 11px; }

/* Announcement & Navbar */
.announcement-bar { background-color: #000; color: #fff; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.navbar { border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 100; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-dropdown { position: relative; padding: 10px 0; }
.nav-item { text-decoration: none; color: #111; font-size: 13px; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 4px; cursor: pointer; position: relative; }
.nav-item:hover { color: #dc2626; }

.fav-badge { background: #dc2626; color: white; border-radius: 50%; padding: 2px 6px; font-size: 9px; margin-left: 2px; }

.dropdown-menu { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #eee; box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: none; flex-direction: column; min-width: 140px; border-radius: 4px; z-index: 10; }
.dropdown-menu a { padding: 10px 16px; text-decoration: none; color: #333; font-size: 12px; font-weight: 600; }
.dropdown-menu a:hover { background: #f9f9f9; color: #dc2626; }
.nav-dropdown:hover .dropdown-menu { display: flex; }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: #111; position: relative; }
.text-btn { font-size: 13px; font-weight: 700; }
.cart-badge { position: absolute; top: -6px; right: -8px; background: #ea580c; color: white; font-size: 10px; font-weight: bold; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Search Bar Overlay */
.search-bar-container { background: #fafafa; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 14px 0; }
.search-inner { display: flex; align-items: center; gap: 12px; }
.search-inner input { flex: 1; padding: 12px 18px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; outline: none; }
.close-search-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #666; }

/* Language Switcher */
.lang-switcher { position: relative; }
.dropdown-content { position: absolute; right: 0; top: 100%; background: white; border: 1px solid #ddd; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-radius: 4px; display: flex; flex-direction: column; width: 110px; z-index: 20; }
.dropdown-content button { background: none; border: none; padding: 10px; text-align: left; font-size: 13px; cursor: pointer; font-weight: 600; }
.dropdown-content button:hover { background: #f5f5f5; }
.hidden { display: none !important; }

/* 🚀 Layout & Sidebar الواسعة والواضحة */
.main-layout { display: flex; gap: 36px; padding-top: 24px; padding-bottom: 40px; }
.sidebar { width: 240px; flex-shrink: 0; }
.filter-group { border-bottom: 1px solid #eee; padding-bottom: 18px; margin-bottom: 18px; }
.filter-group h3 { font-size: 13px; text-transform: uppercase; margin-bottom: 14px; letter-spacing: 0.5px; font-weight: 900; color: #000; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; color: #222; font-weight: 600; cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; cursor: pointer; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.price-inputs input { width: 50%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; text-align: center; }
.btn-apply { width: 100%; background: #b45309; color: white; border: none; padding: 10px; font-weight: bold; font-size: 13px; border-radius: 4px; cursor: pointer; }
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.size-btn { border: 1px solid #ddd; background: white; padding: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.size-btn.active { background: #000; color: #fff; border-color: #000; }
.btn-reset-filters { width: 100%; border: 1px solid #999; background: #f9f9f9; padding: 10px; font-size: 12px; font-weight: bold; cursor: pointer; border-radius: 4px; }

/* Products Grid Area & Sorting Header */
.main-products-area { flex: 1; }

.sorting-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 24px; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 14px; 
}

/* VIEW AS Switcher */
.view-as-wrapper { display: flex; align-items: center; gap: 12px; }
.view-as-label { font-size: 12px; font-weight: 900; color: #222; letter-spacing: 0.5px; }

.grid-view-switcher { display: flex; gap: 6px; }
.grid-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #444;
    width: 34px;
    height: 34px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.grid-btn:hover { border-color: #000; color: #000; }
.grid-btn.active { background: #000; color: #fff; border-color: #000; }

.col-icon { display: flex; gap: 2px; align-items: center; justify-content: center; width: 18px; height: 14px; }
.col-icon .bar { flex: 1; height: 100%; background: currentColor; border-radius: 1px; }

.sort-wrapper { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sort-wrapper select { padding: 8px 14px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; outline: none; cursor: pointer; font-weight: 600; }

/* Custom Select — بديل شكل الـ<select> الافتراضي القبيح، بنفس شكل قائمة Products */
.custom-select { position: relative; display: inline-block; }
.custom-select-native { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; cursor: pointer; font-family: inherit; color: #333; }
.custom-select-trigger i { font-size: 10px; color: #888; transition: transform .15s; flex-shrink: 0; }
.custom-select-trigger.open i { transform: rotate(180deg); }
.custom-select-menu { position: absolute; top: 100%; left: 0; margin-top: 4px; background: #fff; border: 1px solid #eee; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-radius: 4px; z-index: 50; min-width: 100%; display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; }
.custom-select-option { padding: 10px 16px; font-size: 12px; font-weight: 600; color: #333; cursor: pointer; white-space: nowrap; }
.custom-select-option:hover { background: #f9f9f9; color: #dc2626; }
.custom-select-option.active { color: #dc2626; }
[dir="rtl"] .custom-select-menu { left: auto; right: 0; }

.sort-wrapper .custom-select-trigger { padding: 8px 14px; border: 1px solid #ccc; border-radius: 4px; font-size: 13px; font-weight: 600; }
.checkout-form .custom-select { display: block; width: 100%; }
.checkout-form .custom-select-trigger { padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 12px; width: 100%; }

/* Grid Layout Options */
.products-grid { display: grid; gap: 20px; }
.products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.products-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.products-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Product Cards & Enhanced Badges */
.product-card { display: flex; flex-direction: column; position: relative; cursor: pointer; }
.product-image { position: relative; aspect-ratio: 3/4; background: #f5f5f5; overflow: hidden; border-radius: 4px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.15s ease-out; }
.pc-img-hover { position: absolute; inset: 0; opacity: 0; transform: scale(1); transition: opacity 0.4s ease, transform 0.4s ease; z-index: 1; }
.pc-img-hover.active { opacity: 1; transform: scale(1.15); transition: opacity 0.85s ease, transform 0.85s ease; }

.product-card:hover .wishlist-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.badges { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
    z-index: 2; 
}
.badge-tag { 
    font-size: 11px; 
    color: white; 
    padding: 5px 10px; 
    font-weight: 900; 
    border-radius: 3px; 
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-transform: uppercase;
}
.bg-red { background-color: #dc2626; }
.bg-green { background-color: #10b981; }
.badge-tag.badge-sm { font-size: 9px; padding: 3px 7px; }
.limited-stock-bottom {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    background: #dc2626; color: white; font-size: 9px; font-weight: 900;
    padding: 3px 7px; text-align: center; letter-spacing: 0.5px;
    text-transform: uppercase;
}

.is-sold-out .product-image img { filter: grayscale(50%); opacity: 0.7; }
.sold-out-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); z-index: 2; pointer-events: none; }
.sold-out-text { background: #4b5563; color: white; padding: 8px 18px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; }

/* Wishlist Button & Tooltip */
.wishlist-btn { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: white; 
    border: none; 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    cursor: pointer; 
    z-index: 3; 
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.15); 
    display: flex;
    align-items: center;
    justify-content: center;

        opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
}
.wishlist-btn.active i { color: #dc2626; font-weight: 900; }

/* ❤️ Like Motion */
.wishlist-btn.active {
    animation: likePop 0.35s ease;
}

@keyframes likePop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.35);
    }
    100% {
        transform: scale(1);
    }
}

.wishlist-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.wishlist-btn::before {
    content: '';
    position: absolute;
    left: 105%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent #111 transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

.wishlist-btn:hover::after, .wishlist-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.open-btn { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.85); color: white; border: none; padding: 12px; font-size: 12px; font-weight: bold; text-transform: uppercase; cursor: pointer; opacity: 0; transition: opacity 0.7s ease; z-index: 2; }
.product-card:hover .open-btn { opacity: 1; }

.product-info { text-align: center; padding-top: 14px; }
.sku { font-size: 13px; color: #111; margin-bottom: 6px; font-weight: 800; line-height: 1.4; }
.prices { display: flex; justify-content: center; gap: 10px; font-weight: bold; font-size: 14px; align-items: center; }
.old-price { color: #666; text-decoration: line-through; font-size: 13px; }
.new-price { color: #dc2626; font-size: 16px; font-weight: 900; }

/* Modals General */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.modal-body { position: relative; background: white; width: 100%; max-width: 900px; border-radius: 8px; overflow: hidden; z-index: 10; padding: 32px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); max-height: 90vh; overflow-y: auto; }
.account-modal-body { max-width: 460px; }
.checkout-modal-body { max-width: 560px; }

.close-modal-btn { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: #555; }

/* Checkout form inputs (kept separate) */
.checkout-form input, .checkout-form select, .checkout-form textarea { padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 12px; outline: none; width: 100%; }

/* ============================================================
   Premium Auth Modal
   ============================================================ */
.pauth-modal.account-modal-body { background: #ffffff; color: #1c1917; max-width: 440px; border-radius: 16px; padding: 0; }
.pauth-modal .close-modal-btn { color: #78716c; z-index: 5; top: 14px; right: 14px; }
.pauth-modal .close-modal-btn:hover { color: #1c1917; }
.pauth-container { padding: 28px 28px 24px; }

/* Banners */
.pauth-banner { padding: 10px 14px; border-radius: 12px; font-size: 12px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; animation: pauthSlideDown .3s ease; }
.pauth-banner-success { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.pauth-banner-error { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
@keyframes pauthSlideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* Header */
.pauth-header { text-align: center; margin-bottom: 22px; }
.pauth-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #1c1917; }
.pauth-header p { font-size: 13px; color: #78716c; margin: 0; }

/* Tabs */
.pauth-tabs { display: flex; background: #f2efea; border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.pauth-tab { flex: 1; padding: 9px 16px; border-radius: 10px; border: none; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .25s; background: transparent; color: #78716c; }
.pauth-tab.active { background: #ffffff; color: #1c1917; box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* Form */
.pauth-form { display: flex; flex-direction: column; gap: 14px; }

/* Field with icon */
.pauth-field { position: relative; }
.pauth-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; color: #a8a29e; pointer-events: none; }
.pauth-input { width: 100%; padding: 13px 14px 13px 42px; background: #f7f5f2; border: 1px solid #e5e0da; border-radius: 12px; color: #1c1917; font-size: 13px; outline: none; transition: all .2s; }
.pauth-input::placeholder { color: #a8a29e; }
.pauth-input:focus { border-color: #a3805a; box-shadow: 0 0 0 3px rgba(197,168,128,.18); }
.pauth-input.pauth-input-error { border-color: #ef4444; }

/* Eye toggle button */
.pauth-eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #a8a29e; cursor: pointer; padding: 4px; font-size: 15px; transition: color .2s; }
.pauth-eye-btn:hover { color: #1c1917; }

/* Options row (remember me / forgot) */
.pauth-options { display: flex; align-items: center; justify-content: space-between; }
.pauth-check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #78716c; }
.pauth-check-label input[type="checkbox"] { width: 16px; height: 16px; border-radius: 4px; accent-color: #a3805a; cursor: pointer; }
.pauth-forgot-btn { background: none; border: none; color: #a3805a; font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s; }
.pauth-forgot-btn:hover { color: #8a6941; }

/* Terms label */
.pauth-terms-label { font-size: 12px; color: #78716c; align-items: flex-start; }
.pauth-terms-label a { color: #a3805a; font-weight: 600; text-decoration: none; }
.pauth-terms-label a:hover { text-decoration: underline; }

/* Submit button */
.pauth-submit-btn { width: 100%; padding: 13px 24px; background: linear-gradient(135deg, #c5a880 0%, #a48256 100%); color: #1c1917; font-weight: 700; font-size: 14px; border: none; border-radius: 12px; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 14px rgba(164,130,86,0.35); }
.pauth-submit-btn:hover { box-shadow: 0 6px 18px rgba(164,130,86,0.5); transform: translateY(-1px); }
.pauth-submit-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Link buttons */
.pauth-link-btn { background: none; border: none; color: #a3805a; font-weight: 700; font-size: 13px; cursor: pointer; transition: color .2s; }
.pauth-link-btn:hover { color: #8a6941; }
.pauth-center-link { text-align: center; }

/* Bottom toggle */
.pauth-bottom-toggle { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #ece7e0; }
.pauth-bottom-toggle p { font-size: 13px; color: #78716c; margin: 0; }

/* Reset form header */
.pauth-reset-header { text-align: center; margin-bottom: 8px; }
.pauth-reset-icon { font-size: 36px; background: linear-gradient(135deg, #c5a880 0%, #a48256 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.pauth-reset-header h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: #1c1917; }
.pauth-reset-header p { font-size: 13px; color: #78716c; margin: 0; }

/* Password Strength */
.pauth-pw-strength { animation: pauthSlideDown .3s ease; }
.pauth-pw-bar-track { flex: 1; background: #ece7e0; border-radius: 999px; height: 6px; overflow: hidden; }
.pauth-pw-bar-fill { height: 100%; border-radius: 999px; transition: width .3s, background .3s; }
.pauth-pw-label { font-size: 11px; color: #78716c; margin-left: 8px; min-width: 60px; white-space: nowrap; }
.pauth-pw-strength > div:first-child { display: flex; align-items: center; gap: 8px; }
.pauth-pw-reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; margin-top: 6px; }
.pauth-pw-req { font-size: 11px; color: #f59e0b; display: flex; align-items: center; gap: 4px; }
.pauth-pw-req i { font-size: 10px; }

/* Spinner */
.pauth-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(12,10,9,.3); border-top-color: #0c0a09; border-radius: 50%; animation: pauthSpin .6s linear infinite; }
@keyframes pauthSpin { to { transform: rotate(360deg); } }

/* Field error text */
.pauth-field-error { font-size: 11px; color: #ef4444; margin-top: 3px; display: flex; align-items: center; gap: 4px; }

@media (max-width: 480px) {
    .pauth-modal.account-modal-body { max-width: 100%; border-radius: 12px; }
    .pauth-container { padding: 22px 18px 20px; }
    .pauth-pw-reqs { grid-template-columns: 1fr; }
}
.toggle-password-btn:hover { color: #333; }
[dir="rtl"] .password-field input { padding-right: 12px; padding-left: 38px; }
[dir="rtl"] .toggle-password-btn { right: auto; left: 10px; }

/* Toast notifications */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: #111; color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,0.2); opacity: 0; transform: translateY(-16px); transition: opacity 0.25s ease, transform 0.25s ease; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #dc2626; }
.toast.success { background: #10b981; }
.toast.shake { animation: toastShake 0.4s ease; }
@keyframes toastShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(6px); } }

/* Checkout Form Layout */
.checkout-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form-row { display: flex; gap: 12px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 11px; font-weight: 700; color: #333; }

/* Order Tracking Timeline */
/* ===== My Orders — تصميم منظّم ===== */
.orders-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.orders-head-info h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.orders-head-info p { margin: 4px 0 0; font-size: 12px; color: #777; }
.orders-head .orders-logout-btn { width: auto; font-size: 14px; padding: 8px 18px; white-space: nowrap; flex-shrink: 0; margin-bottom: 0; }

.orders-tabs { display: flex; gap: 4px; margin: 16px 0 4px; border-bottom: 1px solid #eee; }
.orders-tab { background: none; border: none; border-bottom: 2px solid transparent; padding: 9px 14px; font-size: 13px; font-weight: 600; color: #888; cursor: pointer; transition: color .15s, border-color .15s; }
.orders-tab:hover { color: #111; }
.orders-tab.active { color: #111; border-bottom-color: #111; }

.orders-list { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.order-card { border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; overflow: hidden; }
.order-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #fafafa; border-bottom: 1px solid #eee; padding: 12px 16px; font-size: 12px; }
.order-header-left { display: flex; flex-direction: column; gap: 2px; }
.order-num { font-size: 13px; font-weight: 700; color: #111; }
.order-date-sm { font-size: 11px; color: #999; }
.order-header-right { text-align: end; }
.order-total-big { font-size: 16px; font-weight: 800; color: #111; }
.order-total-lbl { font-size: 11px; color: #888; }
.order-body { padding: 14px 16px; }
.order-cost-row { display: flex; justify-content: space-between; font-size: 12px; color: #666; padding: 3px 0; }
.order-cost-row.total { border-top: 1px dashed #e0e0e0; margin-top: 6px; padding-top: 8px; font-size: 13px; font-weight: 700; color: #111; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 14px; }
.order-btn { flex: 1; min-width: 130px; background: none; border: 1px solid #ddd; border-radius: 6px; padding: 8px 10px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.order-btn:hover { background: #f5f5f5; border-color: #bbb; }
.order-btn.danger { border-color: #f0c4c4; color: #dc2626; }
.order-btn.danger:hover { background: #fef2f2; border-color: #dc2626; }
.orders-empty { text-align: center; padding: 50px 20px; color: #999; font-size: 13px; }

.tracking-timeline { display: flex; justify-content: space-between; position: relative; margin: 20px 0 10px 0; }
.tracking-timeline::before { content: ''; position: absolute; top: 12px; left: 10%; right: 10%; height: 2px; background: #ddd; z-index: 1; }
.timeline-step { position: relative; z-index: 2; text-align: center; width: 25%; }
.step-icon { width: 26px; height: 26px; border-radius: 50%; background: #ddd; color: #666; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px auto; font-size: 10px; font-weight: bold; }
.step-label { font-size: 10px; font-weight: bold; color: #777; }
.step-date { font-size: 9px; color: #888; display: block; margin-top: 2px; }

.timeline-step.completed .step-icon { background: #10b981; color: white; }
.timeline-step.completed .step-label { color: #10b981; }
.timeline-step.active .step-icon { background: #ea580c; color: white; }
.timeline-step.active .step-label { color: #ea580c; }

/* Slide Cart Drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.cart-drawer.open { pointer-events: auto; }
.cart-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.4s ease-in-out; }
.cart-drawer.open .cart-overlay { opacity: 1; }

.cart-content { position: absolute; top: 0; right: -400px; bottom: 0; width: 100%; max-width: 400px; background: white; display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.cart-drawer.open .cart-content { right: 0; }

[dir="rtl"] .cart-content { right: auto; left: -400px; transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
[dir="rtl"] .cart-drawer.open .cart-content { left: 0; }
[dir="rtl"] .checkout-form { text-align: right; }

.cart-header { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.shipping-progress { padding: 12px 16px; background: #f9f9f9; border-bottom: 1px solid #eee; font-size: 12px; text-align: center; font-weight: 600; }
.progress-bar { height: 8px; background: #ddd; border-radius: 4px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: #10b981; transition: width 0.4s ease-in-out; }
.cart-items { flex: 1; padding: 16px; overflow-y: auto; }
.cart-item { display: flex; gap: 12px; border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 12px; position: relative; }
.cart-item img { width: 65px; height: 80px; object-fit: cover; }
.item-details h4 { font-size: 12px; }
.item-meta { font-size: 11px; color: #666; }
.item-price { font-weight: bold; font-size: 13px; color: #ea580c; margin-top: 4px; }
.qty-control { display: flex; align-items: center; border: 1px solid #ccc; width: 75px; justify-content: space-between; margin-top: 6px; padding: 2px 6px; font-size: 12px; }
.qty-control button { background: none; border: none; cursor: pointer; font-weight: bold; }
.remove-item { position: absolute; top: 0; right: 0; background: none; border: none; color: #999; cursor: pointer; font-size: 14px; }
.cart-footer { padding: 16px; border-top: 1px solid #eee; }
.subtotal-row { display: flex; justify-content: space-between; font-weight: bold; margin-bottom: 12px; }
.btn-primary, .btn-secondary { width: 100%; padding: 14px; border: none; font-weight: bold; text-transform: uppercase; font-size: 13px; cursor: pointer; margin-bottom: 8px; border-radius: 4px; }
.btn-primary { background: #ea580c; color: white; }
.btn-secondary { background: white; border: 1px solid #ea580c; color: #ea580c; }

/* Quick View Gallery Modal */
.quick-view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.qv-gallery { display: flex; gap: 12px; }
.qv-thumbnails { display: flex; flex-direction: column; gap: 8px; width: 75px; }
.qv-thumbnails img { width: 100%; height: 95px; object-fit: cover; border: 1px solid #eee; cursor: pointer; border-radius: 4px; }
.qv-thumbnails img.active { border-color: #000; }
.qv-main-image { flex: 1; height: 440px; background: #f9f9f9; border-radius: 4px; overflow: hidden; }
.qv-main-image img { width: 100%; height: 100%; object-fit: cover; }
.qv-details { display: flex; flex-direction: column; }
.qv-title { font-size: 18px; font-weight: 800; margin: 4px 0; }
.qv-sku { font-size: 12px; color: #777; margin-bottom: 12px; }
.qv-prices { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qv-new-price { font-size: 22px; font-weight: bold; color: #dc2626; }
.qv-old-price { font-size: 15px; color: #888; text-decoration: line-through; }
.qv-option-group { margin-bottom: 16px; }
.qv-label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 8px; color: #333; }
.qv-color-options, .qv-size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt, .size-opt { border: 1px solid #ccc; background: white; padding: 8px 14px; font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 4px; }
.color-opt.active, .size-opt.active { border-color: #000; background: #000; color: white; }
.size-opt.disabled {
    color: #bbb;
    border-color: #e5e5e5;
    background: #f7f7f7;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.7;
}
.size-opt.disabled:hover { border-color: #e5e5e5; }
.qv-actions-group { margin-bottom: 12px; }
.qv-qty-picker { display: flex; align-items: center; border: 1px solid #ccc; width: 110px; justify-content: space-between; padding: 6px 12px; border-radius: 4px; font-weight: bold; }
.qv-qty-picker button { background: none; border: none; font-size: 16px; cursor: pointer; }
.btn-qv-add, .btn-qv-buy { width: 100%; padding: 14px; border: none; font-weight: bold; border-radius: 25px; font-size: 12px; text-transform: uppercase; cursor: pointer; margin-bottom: 8px; background: #111; color: white; }

/* Footer */
.footer { border-top: 1px solid #eee; background-color: #fafafa; padding: 36px 0; margin-top: 40px; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo { font-size: 22px; font-weight: 900; }
.social-links { display: flex; gap: 16px; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; background: white; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; color: #111; text-decoration: none; }
.copyright { font-size: 12px; color: #595959; }

/* ============================
   Responsive / Mobile Support
   ============================ */
.pc-rating, .qv-rating, .pdp-rating {
    font-size: 12px;
    color: #d4a017;
    margin: 2px 0 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.pc-reviews-count {
    color: #888;
    font-weight: 400;
}
.pdp-rating, .qv-rating { font-size: 13px; }
@media (max-width: 900px) {
    .main-layout { flex-direction: column; gap: 20px; }
    .sidebar { width: 100%; }
    .filter-group { padding-bottom: 12px; margin-bottom: 12px; }
    .size-grid { grid-template-columns: repeat(5, 1fr); }

    .products-grid.cols-4, .products-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
    .products-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }

    .quick-view-grid { grid-template-columns: 1fr; }
    .qv-main-image { height: 320px; }

    .modal-body { padding: 20px; }
}

.mobile-menu-btn { display: none; }

@media (max-width: 640px) {
    .mobile-menu-btn { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid #eee;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 0;
        box-shadow: 0 8px 12px rgba(0,0,0,0.06);
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links .nav-item, .nav-links .nav-dropdown { width: 100%; padding: 12px 14px; }
    .nav-links .nav-dropdown { padding: 0; }
    .nav-links .nav-dropdown > .nav-item { padding: 12px 14px; }
    .nav-links .dropdown-menu { position: static; display: none; box-shadow: none; border: none; min-width: 0; }
    .nav-links .dropdown-menu.mobile-open { display: flex; }

    .nav-container { height: 60px; position: relative; }
    .logo { font-size: 20px; }
    .nav-actions { gap: 12px; }

    .container { padding: 0 14px; }

    .sorting-bar { flex-wrap: wrap; gap: 12px; }
    .view-as-wrapper { display: none; }

    .products-grid.cols-2, .products-grid.cols-3,
    .products-grid.cols-4, .products-grid.cols-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .pdp-gallery { flex-direction: column; }
    .pdp-thumbnails { flex-direction: row; width: 100%; overflow-x: auto; }
    .pdp-thumbnails img { width: 70px; height: 70px; flex-shrink: 0; }

    .cart-content { max-width: 100%; }
    [dir="rtl"] .cart-content { left: -100%; }

    .form-row { flex-direction: column; gap: 12px; }

    .tracking-timeline::before { left: 8%; right: 8%; }
    .step-label { font-size: 8px; }
    .step-date { font-size: 7px; }
}

/* RTL Support */
[dir="rtl"] { direction: rtl; text-align: right; }
[dir="rtl"] .dropdown-content { right: auto; left: 0; }
[dir="rtl"] .dropdown-menu { left: auto; right: 0; }
[dir="rtl"] .sorting-bar { justify-content: space-between; }
[dir="rtl"] .close-modal-btn { right: auto; left: 16px; }
[dir="rtl"] .wishlist-btn { left: auto; right: 10px; }
[dir="rtl"] .badges { right: auto; left: 10px; }
[dir="rtl"] .remove-item { right: auto; left: 0; }

[dir="rtl"] .wishlist-btn::after { left: auto; right: 120%; }
[dir="rtl"] .wishlist-btn::before { left: auto; right: 105%; border-color: transparent transparent transparent #111; }

/* ============================
   Full Pages (Product Detail / Privacy / Terms / Contact)
   ============================ */
.page-section { padding-top: 24px; padding-bottom: 60px; }

.back-to-shop-btn {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.back-to-shop-btn:hover { color: #dc2626; }

/* Product Detail Page */
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pdp-gallery { display: flex; gap: 14px; }
.pdp-thumbnails { display: flex; flex-direction: column; gap: 10px; width: 90px; }
.pdp-thumbnails img { width: 100%; height: 110px; object-fit: cover; border: 1px solid #eee; cursor: pointer; border-radius: 4px; }
.pdp-thumbnails img.active { border-color: #000; }
.pdp-main-image { flex: 1; aspect-ratio: 3/4; background: #f9f9f9; border-radius: 6px; overflow: hidden; }
.pdp-main-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp-details { display: flex; flex-direction: column; padding-top: 8px; }
.pdp-title { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.pdp-sku { font-size: 13px; color: #777; margin-bottom: 16px; }
.pdp-prices { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pdp-new-price { font-size: 26px; font-weight: 900; color: #dc2626; }
.pdp-old-price { font-size: 17px; color: #888; text-decoration: line-through; }
.pdp-description { font-size: 14px; line-height: 1.8; color: #444; margin-bottom: 24px; }
.pdp-option-group { margin-bottom: 18px; }

@media (max-width: 900px) {
    .pdp-grid { grid-template-columns: 1fr; }
}

/* Related products under the product detail page */
.pdp-related-section { margin-top: 56px; }
.pdp-related-title { font-size: 18px; font-weight: 900; margin-bottom: 24px; }

@media (max-width: 900px) {
    .pdp-related-section { margin-top: 36px; }
    .pdp-related-title { font-size: 16px; margin-bottom: 16px; }
}

.orders-page { max-width: 760px; margin: 0 auto; }

/* Privacy / Terms / Contact static pages */
.static-page { max-width: 760px; margin: 0 auto; text-align: center; }
.static-page h1 { font-size: 28px; font-weight: 900; margin-bottom: 20px; }
.static-page h2 { font-size: 16px; font-weight: 800; margin-top: 24px; margin-bottom: 10px; }
.static-page p { font-size: 14px; line-height: 1.9; color: #333; margin-bottom: 4px; }
.static-page .back-to-shop-btn { margin-left: auto; margin-right: auto; }

.lang-en-only { display: block; }
.lang-ar-only { display: none; }
html[lang="ar"] .lang-en-only { display: none; }
html[lang="ar"] .lang-ar-only { display: block; }

.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 480px; margin: 28px auto; }
.contact-form input, .contact-form textarea {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    text-align: center;
}
.contact-form .btn-primary { width: auto; padding: 12px 28px; border-radius: 4px; margin: 0 auto; }
.contact-info { font-size: 13px; color: #555; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* ============================================================
   3D Coverflow Carousel — Best Sellers / Offers Hero Section
   ============================================================ */
.coverflow-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 48px 0;
    background-color: #0c0a09;
    color: #fff;
    user-select: none;
}
.cf-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cf-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.22) blur(32px); transform: scale(1.15); transition: opacity 1s ease, filter 1s ease; }
.cf-bg-overlay { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(12,10,9,0.3) 0%, rgba(12,10,9,0.92) 100%); }
.cf-inner { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; z-index: 10; display: flex; flex-direction: column; align-items: center; }
.cf-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.cf-eyebrow-line { width: 36px; height: 1px; }
.cf-eyebrow-line.left { background: linear-gradient(90deg, transparent, #c5a880); }
.cf-eyebrow-line.right { background: linear-gradient(90deg, #c5a880, transparent); }
.cf-eyebrow h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: #c5a880; margin: 0; }
.cf-stage { position: relative; width: 100%; height: 520px; display: flex; justify-content: center; align-items: center; margin-bottom: 32px; perspective: 1400px; }
.cf-card { position: absolute; width: 330px; height: 500px; border-radius: 18px; overflow: hidden; background-color: #171311; border: 1px solid rgba(255,255,255,0.12); transform-origin: center center; transition: all 800ms cubic-bezier(0.25, 1, 0.5, 1); }
.cf-card img.cf-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cf-card .cf-card-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 25%, rgba(0,0,0,0.68) 60%, rgba(0,0,0,0.96) 100%); pointer-events: none; z-index: 10; }
.cf-card .cf-card-content { position: relative; width: 100%; height: 100%; padding: 20px 18px 22px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; z-index: 20; transition: opacity 500ms ease, transform 500ms ease; }
.cf-card .cf-tag { text-align: right; width: 100%; padding-right: 4px; }
.cf-card .cf-tag span { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: rgba(255,255,255,0.9); text-shadow: 0 2px 6px rgba(0,0,0,0.8); }
.cf-card .cf-body { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-top: auto; padding-bottom: 4px; }
.cf-card .cf-title { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; margin: 0; line-height: 1.15; text-shadow: 0 3px 12px rgba(0,0,0,0.95); }
.cf-card .cf-subtitle { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #f3f0ea; line-height: 1.2; text-shadow: 0 3px 10px rgba(0,0,0,0.9); }
.cf-card .cf-divider { width: 34px; height: 2px; background-color: #c5a880; border-radius: 2px; margin: 5px auto 4px; box-shadow: 0 0 8px rgba(197,168,128,0.7); }
.cf-card .cf-desc { font-size: 0.8rem; font-style: italic; color: rgba(255,255,255,0.9); max-width: 280px; margin: 0 0 6px; line-height: 1.3; text-shadow: 0 2px 8px rgba(0,0,0,0.9); }
.cf-card .cf-price { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.cf-card .cf-old-price { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-decoration: line-through; }
.cf-card .cf-new-price { font-size: 1rem; font-weight: 800; color: #c5a880; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.cf-card .cf-cta { display: inline-flex; align-items: center; gap: 6px; padding: 7px 18px; border-radius: 9999px; background: linear-gradient(135deg, #c5a880 0%, #a48256 100%); color: #110d0c; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 15px rgba(197,168,128,0.3); cursor: pointer; border: none; transition: transform 200ms ease, box-shadow 200ms ease; font-family: inherit; }
.cf-cta:hover { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0,0,0,0.5), 0 0 20px rgba(197,168,128,0.5); }
.cf-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background-color: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.2); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 40; transition: all 200ms ease; }
.cf-nav-btn:hover { background-color: rgba(0,0,0,0.75); border-color: rgba(255,255,255,0.4); }
.cf-nav-btn.left { left: 24px; }
.cf-nav-btn.right { right: 24px; }
.cf-dots { display: flex; align-items: center; justify-content: center; gap: 0; z-index: 30; }
/* الزرار نفسه (منطقة الدوس) بقى 24x24 بكسل عشان يبقى أسهل يتلمس على الموبايل،
   والنقطة المرئية جواه فضلت بنفس الحجم القديم عن طريق ::before */
.cf-dot { height: 24px; width: 24px; border-radius: 9999px; border: none; cursor: pointer; padding: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.cf-dot::before { content: ''; display: block; height: 8px; border-radius: 9999px; transition: all 300ms ease; }
.cf-dot.active::before { width: 28px; background-color: #c5a880; box-shadow: 0 0 10px rgba(197,168,128,0.7); }
.cf-dot:not(.active)::before { width: 8px; background-color: rgba(255,255,255,0.25); box-shadow: none; }

@media (max-width: 768px) {
    .coverflow-section { min-height: 580px; padding: 32px 0; }
    .cf-stage { height: 420px; }
    .cf-card { width: 260px; height: 400px; }
    .cf-nav-btn { width: 38px; height: 38px; }
    .cf-nav-btn.left { left: 8px; }
    .cf-nav-btn.right { right: 8px; }
    .cf-card .cf-title { font-size: 1.2rem; }
    .cf-card .cf-subtitle { font-size: 0.85rem; }
}
@media (max-width: 480px) {
    .coverflow-section { min-height: 500px; padding: 24px 0; }
    .cf-stage { height: 380px; }
    .cf-card { width: 220px; height: 360px; }
    .cf-card .cf-title { font-size: 1rem; }
    .cf-card .cf-desc { font-size: 0.72rem; max-width: 190px; }
    .cf-card .cf-cta { padding: 6px 14px; font-size: 0.65rem; }
}

/* ============================================================
   Copy Protection — الحاجات الثابتة (منتجات/UI) مقفلة، بيانات الطلب/التتبع بتتنسخ
   ============================================================ */
html, body { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"], [contenteditable=""], .copyable, .copyable * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}
img { -webkit-user-drag: none; -khtml-user-drag: none; -moz-user-drag: none; -o-user-drag: none; user-drag: none; }
.contact-info i { width: 18px; color: #ea580c; }