@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.cdnfonts.com/css/beatrice-display-trial');

@font-face {
    font-family: 'Beatrice Deck Trial';
    src: url('BeatriceDeckTrial-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #f1c40f;
    --gray-dark: #1a1a1a;
    --gray-light: #333;
}

.thdr-font-apply {
    font-family: 'Beatrice Deck Trial', sans-serif !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    font-family: 'Beatrice Deck Trial', sans-serif;
}


.search-bar input {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #555;
    background: #000;
    color: #fff;
    
}

.search-bar button {
    background: var(--accent-color);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.container {
    display: flex;
    padding: 20px 40px;
    gap: 80px;
    transition: all 0.3s ease;
    margin-top: 100px;
}

.container.full-width {
    gap: 30px;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-left: 30px;
}

.container.full-width .sidebar {
    width: 0;
    margin: 0;
    opacity: 0;
    padding: 0;
}

.filter-header h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 15px;
    width: 100%;
    border-bottom: 1px dashed var(--gray-light);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    margin-bottom: 10px;
    font-weight: bold;
}

.filter-title i {
    font-size: 12px;
    color: #777;
    transition: transform 0.3s ease;
}

.rotate-arrow {
    transform: rotate(180deg);
}

.filter-content {
    display: block;
    transition: all 0.3s ease;
}

.filter-content.hidden {
    display: none;
}

.sidebar-search-input {
    width: 100%;
    padding: 10px 12px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.sidebar-search-input:focus {
    border-color: #f1c40f;
    box-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
}

.sidebar-search-input::placeholder {
    color: #777;
    font-size: 13px;
}

.size-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.horizontal-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.size-box {
    min-width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    background-color: #0f0f0f;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
    user-select: none;
}

.size-box:hover {
    border-color: #fff;
    color: #fff;
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.size-box.active {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.scroll-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, transparent, #000 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.scroll-arrow.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-arrow i {
    filter: drop-shadow(0 0 5px rgba(0,0,0,1));
    animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.color-circle.active {
    border-color: var(--text-color);
    transform: scale(1.1);
}

.color-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.color-box {
    min-width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.color-box.active {
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #bbb;
    transition: color 0.3s;
    user-select: none;
}

.custom-checkbox:hover {
    color: #fff;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: transparent;
    border: 2px solid #444;
    border-radius: 3px;
    transition: all 0.2s ease-in-out;
    box-shadow: none;
}

.custom-checkbox:hover input ~ .checkmark {
    border-color: #888;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6),
                0 0 15px rgba(255, 255, 255, 0.2);
}

.text-label {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 5px;
}

.custom-checkbox input:checked ~ .text-label {
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.checkmark:after {
    display: none;
}
.count {
    margin-left: auto;
    color: #777;
    font-size: 0.9em;
}

.slider {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: var(--gray-light);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9em;
    color: #ccc;
}

.price-slider-container {
    width: 100%;
    padding: 10px 0;
}

input[type=range] {
    -webkit-appearance: none !important;
    width: 100% !important;
    height: 6px !important;
    background: #333;
    border-radius: 5px;
    outline: none;
    border: none !important;
    margin: 10px 0;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100% !important;
    height: 6px !important;
    background: transparent !important;
    border-color: transparent;
    color: transparent;
    border-radius: 5px;
}

input[type=range]::-moz-range-track {
    background: transparent !important;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    height: 18px !important;
    width: 18px !important;
    border-radius: 50% !important;
    background: #f1c40f !important;
    border: 2px solid #000 !important;
    margin-top: -6px !important;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    position: relative;
    z-index: 50;
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    height: 18px !important;
    width: 18px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #f1c40f !important;
    cursor: pointer;
}

.products-area {
    flex-grow: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.hide-filter-btn {
    background: transparent;
    color: var(--text-color);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.container.full-width .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.item {
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.5s ease;
}

.item-image {
    position: relative;
    flex: 0 0 90%;
    width: 100%;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--accent-color);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.badge-sale {
    background-color: var(--accent-color);
    color: #000;
}
/* 
.badge-out {
    background-color: #ff4444;
    color: #fff;
} */


.badge-out {
    background-color: #333; /* رمادي */
    color: #fff;
    border: 1px solid #555;
}

.item-detail {
    flex: 0 0 10%;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.price-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
}

.collection-discound-price del {
    color: #777;
    font-size: 13px;
}

.add-to-cart {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.item:hover .add-to-cart {
    opacity: 1;
    transform: translateY(0);
}

.item.out-of-stock .item-image img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.item.out-of-stock a {
    pointer-events: none;
}

.item.out-of-stock {
    cursor: not-allowed !important;
    opacity: 0.7;
    border-color: transparent !important;
}

.item.out-of-stock:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

.item.out-of-stock .add-to-cart {
    display: none !important;
}

.Btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--accent-color);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    transition-duration: 0.3s;
    overflow: hidden;
    position: relative;
}

.Btn:hover {
    width: 100px;
    border-radius: 8px;
}

.Btn .sign {
    width: 100%;
    font-size: 20px;
    color: #000;
    font-weight: bold;
    transition-duration: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Btn:hover .sign {
    width: 30%;
    padding-right: 50px;
}

.Btn .text {
    position: absolute;
    right: 0;
    width: 0%;
    opacity: 0;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    transition-duration: 0.3s;
    white-space: nowrap;
    padding-right: 15px;
}

.Btn:hover .text {
    opacity: 1;
    width: 70%;
}

.Btn.disabled {
    background-color: #555;
    cursor: not-allowed;
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
}

.Btn.disabled .text {
    position: relative;
    opacity: 1;
    width: auto;
    color: #fff;
    padding: 0;
}

.Btn.disabled:hover {
    width: auto;
}

.product-card {
    background: var(--gray-dark);
    padding: 10px;
    position: relative;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    font-weight: bold;
    font-size: 0.8em;
}

.product-info {
    margin-top: 10px;
}

.product-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-price {
    color: #ccc;
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 0.9em;
}

.final-price {
    color: var(--text-color);
    font-weight: bold;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding-bottom: 60px;
}

.page-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 12px;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.page-btn:hover:not(.active):not(.disabled) {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.page-btn.active {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    font-weight: 800;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.4);
    z-index: 2;
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #222;
}

.page-btn i {
    font-size: 14px;
}


.hamburger {
    position: relative; /* أو fixed لو الناف بار fixed */
    z-index: 2000 !important; /* رقم عالي جداً عشان تضمن إنه فوق كل حاجة */
    cursor: pointer;
}

/* 
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        overflow: visible;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
} */


/* =========================================
   Responsive Media Queries
   ========================================= */

/* --- الشاشات المتوسطة (التابلت) واللابتوب الصغير (أقل من 1024px) --- */
@media screen and (max-width: 1024px) {
    .container {
        /* margin-top: 100px; */
        padding: 20px;
        gap: 20px;
    }
    
    .sidebar {
        width: 220px;
        margin-left: 0;
    }
    
    .products-grid {
        gap: 15px;
    }
}

/* --- شاشات الموبايل والتابلت الصغير (أقل من 768px) --- */
@media screen and (max-width: 768px) {
    
    /* 1. Navbar Adjustments */
    .navbar {
        padding: 15px 20px;
    }

    .desktop-menu {
        display: none; 
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px; 
        cursor: pointer;
        width: 30px;
        height: 30px;
        z-index: 1001;
        border: none;
        background: transparent;
    }

    /* تنسيق الخطوط نفسها */
    .bar-line {
        width: 100%;
        height: 3px; /* سمك الخط */
        background-color: #fff; /* لون الخط */
        border-radius: 2px;
        transition: all 0.3s ease-in-out; /* نعومة الحركة */
        transform-origin: center; /* عشان اللف يكون من النص */
    }

    /* --- لما القائمة تفتح (Active State) --- */

    /* الخط الأول: ينزل لتحت ويلف 45 درجة */
    .hamburger.active .bar-line:nth-child(1) {
        /* معادلة النزول: سمك الخط (3px) + المسافة (5px) = 8px */
        transform: translateY(8px) rotate(45deg);
    }

    /* الخط الثاني: يختفي تماماً */
    .hamburger.active .bar-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px); /* حركة جمالية وهو بيختفي */
    }

    /* الخط الثالث: يطلع لفوق ويلف -45 درجة */
    .hamburger.active .bar-line:nth-child(3) {
        /* معادلة الطلوع: -(سمك الخط + المسافة) = -8px */
        transform: translateY(-8px) rotate(-45deg);
    }

    /* قائمة الموبايل المنزلقة */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        left: -100%; /* مخفية لليسار */
        width: 70%;
        height: 100vh;
        background-color: #000;
        z-index: 1000;
        padding-top: 80px;
        transition: 0.3s ease-in-out;
        border-right: 1px solid #333;
    }

    .mobile-menu.active {
        left: 0; /* إظهار القائمة */
    }

    .mobile-links {
        list-style: none;
        padding: 0 20px;
        
    }

    .mobile-links li {
        margin-bottom: 20px;
        /* border-bottom: 1px solid #222; */
        border-bottom: none;
        padding-bottom: 10px;
    }

    .mobile-links a {
        color: #fff;
        text-decoration: none;
        font-size: 18px;
        font-weight: bold;
    }

    /* 2. Layout & Container */
    .container {
        flex-direction: column; /* جعل الفلتر فوق المنتجات */
        margin-top: 60px;
        padding: 15px;
    }

    /* تحويل الفلتر لقائمة منبثقة (Off-canvas) لعدم إزعاج المستخدم */
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: #0f0f0f;
        z-index: 10000;
        padding: 20px;
        overflow-y: auto;
        transition: 0.3s ease;
        margin-left: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.8);
    }

    .sidebar.active-mobile {
        left: 0;
    }

    /* زر إغلاق للفلتر في الموبايل */
    .close-sidebar-btn {
        display: block; /* سنضيفه بالجافاسكريبت */
        color: #fff;
        background: transparent;
        border: none;
        font-size: 20px;
        position: absolute;
        top: 15px;
        right: 15px;
        cursor: pointer;
    }

    /* 3. Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* عمودين للمنتجات */
        gap: 10px;
    }

    .products-header {
        margin-top: 20px;
        flex-direction: row;
        align-items: center;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* زر إظهار الفلتر */
    .hide-filter-btn {
        background: #1a1a1a;
        padding: 8px 15px;
        border-radius: 5px;
        border: 1px solid #333;
        font-size: 14px;
    }

    /* 4. Product Card Adjustments */
    .item:hover {
        transform: none; /* إلغاء الحركة الثقيلة على الموبايل */
    }

    .add-to-cart {
        opacity: 1; /* إظهار زر الإضافة دائماً في الموبايل */
        transform: translateY(0);
        bottom: 5px;
        right: 5px;
    }

    .Btn {
        width: 35px;
        height: 35px;
    }
    
    .Btn .sign {
        font-size: 16px;
    }
    
    /* منع تمدد الزر في الموبايل لتوفير المساحة */
    .Btn:hover {
        width: 35px; 
    }
    .Btn:hover .sign {
        padding-right: 0;
        width: 100%;
    }
    .Btn .text {
        display: none;
    }

    .title {
        font-size: 14px;
    }

    .price {
        font-size: 14px;
    }

    /* 5. Footer */
    .thdr-ftr-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .thdr-ftr-contact-list li {
        justify-content: center;
    }

    .thdr-ftr-social-grid {
        justify-content: center;
    }
}

/* --- شاشات صغيرة جداً (أقل من 400px) --- */
@media screen and (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr !important; /* عمود واحد */
    }
}










.close-sidebar-btn {
    display: none; /* أهم سطر: يخفيه تماماً */
}

/* 2. في وضع الموبايل (شاشات أقل من 768px): الزرار يظهر */
@media screen and (max-width: 768px) {
    .close-sidebar-btn {
        display: flex; /* إظهار الزرار */
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        /* background: rgba(255, 255, 255, 0.1); */
        /* border: 1px solid rgba(255, 255, 255, 0.2); */
        /* border-radius: 50%; */
        color: #fff;
        font-size: 1.2rem;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        transition: all 0.3s ease;
    }

    .close-sidebar-btn:hover {
        color:  #d32f2f;

    }
}