/* =========================================================
   WINDHORSE STORE - style.css
   متجر الدراجات الكهربائية | HADDAD STORE
   Palette: Orange #f47521
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #f6f7fb;
    color: #222;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

button {
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
}


/* =========================================================
   عند فتح Popup: منع Zoom الصفحة
========================================================= */

body.popup-open {
    touch-action: none;
    overflow: hidden;
    overscroll-behavior: none;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.popup-open #productPopupImage {
    touch-action: none;
}

body.popup-open .product-popup-main {
    touch-action: none;
}

body.popup-open .product-popup,
body.popup-open .product-popup-content,
body.popup-open .product-popup-gallery,
body.popup-open .product-popup-thumbs {
    touch-action: pan-y;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    transition: .35s;
    background: #fff;
}

.header.scrolled {
    background: #fff;
    backdrop-filter: blur(14px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, .08);
}

.header-container {
    background: #fff;
    max-width: 1400px;
    margin: auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 58px;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    color: #222;
    font-size: 18px;
    font-weight: 700;
    transition: .3s;
}

nav a:hover {
    color: #f47521;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 92%;
    max-width: 1400px;
    margin: auto;
}


/* =========================================================
   HERO SLIDER
========================================================= */

.windhorse-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 940;
    overflow: hidden;
    background: #111;
    margin-top: 90px;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    backdrop-filter: blur(5px);
}

.hero-arrow:hover {
    background: #f47521;
    border-color: #f47521;
}

.hero-prev { right: 30px; }
.hero-next { left: 30px; }

.hero-dots {
    position: absolute;
    z-index: 10;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    transition: .3s;
}

.hero-dot.active {
    width: 30px;
    border-radius: 10px;
    background: #f47521;
}


/* =========================================================
   DIVIDER
========================================================= */

.windhorse-divider {
    width: 92%;
    max-width: 1400px;
    margin: 30px auto;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
}

.windhorse-divider span {
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.windhorse-divider img {
    width: 180px;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   PRODUCTS SECTION
========================================================= */

.products-section {
    padding-top: 20px;
    text-align: center;
}

.products-section p {
    color: #777;
    margin-bottom: 35px;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 15px;
    padding: 0 60px 0 20px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
    font-size: 16px;
    outline: none;
    transition: box-shadow .25s;
}

.search-box input:focus {
    box-shadow: 0 8px 25px rgba(244, 117, 33, .25);
}

.search-box i {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #f47521;
}


/* =========================================================
   FILTERS
========================================================= */

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #555;
    font-weight: 700;
}

.filters-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.filters {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 5px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    cursor: grab;
    justify-content: center;
}

.filters::-webkit-scrollbar { display: none; }
.filters.dragging { cursor: grabbing; }


/* =========================================================
   FILTER BUTTON - كتابة فقط
========================================================= */

.filter-btn {
    flex: 0 0 auto;
    padding: 10px 22px;
    border: 2px solid #e5e5e5;
    border-radius: 30px;
    background: #fff;
    color: #555;

    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: .25s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #f47521;
    color: #f47521;
    background: #fff8f2;
}

.filter-btn.active {
    background: #f47521;
    border-color: #f47521;
    color: #fff;
    box-shadow: 0 4px 14px rgba(244, 117, 33, .35);
}

.filter-label {
    display: inline-block;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
    white-space: nowrap;
    transition: .25s;
}


/* =========================================================
   FILTERS NAV ARROWS
========================================================= */

.filters-nav {
    display: flex;
    gap: 14px;
}

.filters-nav-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f4f4f7;
    color: #616060;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: .25s;
}

.filters-nav-btn:hover {
    background: #f47521;
    color: #fff;
}


/* =========================================================
   PRODUCTS GRID
========================================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}


/* =========================================================
   PRODUCT CARD
========================================================= */

.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    transition: .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(244, 117, 33, .18);
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.product-image-wrapper {
    height: 245px;
    background: #f8f8f8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: .3s;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}


/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
    color: #222;
}


/* =========================================================
   QUICK SPECS - أيقونة + اسم + قيمة
========================================================= */

.quick-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.quick-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    color: #222;
    transition: .25s;
}

.quick-spec:hover {
    background: #fff2e7;
}

.quick-spec i {
    color: #f47521;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.quick-spec-label {
    font-size: 13px;
    color: #888;
    font-weight: 600;
    flex-shrink: 0;
}

.quick-spec-value {
    flex: 1;
    font-size: 14px;
    font-weight: 800;
    color: #222;
    text-align: left;
    direction: ltr;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   PRICE
========================================================= */

.price {
    font-size: 22px;
    font-weight: 800;
    color: #f47521;
    text-align: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
    direction: ltr;
}


/* =========================================================
   SPECS BUTTON
========================================================= */

.specs-btn {
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: 2px solid #f47521;
    border-radius: 12px;
    background: #fff;
    color: #f47521;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 800;

    cursor: pointer;
    transition: .25s;
}

.specs-btn i {
    font-size: 12px;
    transition: .25s;
}

.specs-btn:hover {
    background: #f47521;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 117, 33, .3);
}

.specs-btn:hover i {
    transform: translateX(-4px);
}

.specs-btn:active {
    transform: translateY(0);
}


/* =========================================================
   CART BUTTON (Floating)
========================================================= */

#cartButton {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 65px;
    height: 65px;
    background: #f47521;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(244, 117, 33, .4);
    transition: .25s;
}

#cartButton:hover {
    transform: scale(1.08);
    background: #d96515;
}

#cartCount {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e53935;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: bold;
}


/* =========================================================
   CART SIDEBAR
========================================================= */

#cartSidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: .35s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, .25);
}

#cartSidebar.show {
    left: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: #f47521;
}

.cart-header span {
    font-size: 34px;
    cursor: pointer;
    line-height: 1;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.clear-cart-btn {
    border: none;
    background: transparent;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    transition: .25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-cart-btn:hover {
    color: #e53935;
}

#cartItems {
    flex: 1;
    overflow: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.cart-info {
    flex: 1;
}

.cart-info strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.cart-info > div {
    font-size: 13px;
    color: #f47521;
    font-weight: 700;
}

.cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-qty button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: .25s;
}

.cart-qty button:hover {
    background: #f47521;
    color: #fff;
}

.cart-qty span {
    min-width: 25px;
    text-align: center;
    font-weight: bold;
}

.remove-btn {
    border: none;
    background: #e53935;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    transition: .25s;
}

.remove-btn:hover {
    background: #c62828;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-footer h3 {
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-footer h3 span {
    color: #f47521;
    font-weight: 800;
}

#sendWhatsapp {
    width: 100%;
    height: 50px;
    background: #25D366;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 15px;
    transition: .25s;
}

#sendWhatsapp:hover {
    background: #1ebc5a;
}

#cartOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: none;
    z-index: 9999;
}

#cartOverlay.show {
    display: block;
}


/* =========================================================
   ORDER MODAL
========================================================= */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-box {
    background: #fff;
    width: 420px;
    max-width: 100%;
    padding: 25px;
    border-radius: 15px;
}

.modal-box h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    color: #f47521;
}

.modal-box input {
    width: 100%;
    height: 50px;
    margin-bottom: 15px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: border-color .25s;
}

.modal-box input:focus {
    border-color: #f47521;
    box-shadow: 0 0 0 3px rgba(244, 117, 33, .12);
}

.modal-box button {
    width: 100%;
    height: 50px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
}

.modal-box button:hover {
    background: #1ebc5a;
}

.cancel-btn {
    width: 100%;
    margin-top: 10px;
    height: 50px;
    border: none;
    background: #888;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: .25s;
}

.cancel-btn:hover {
    background: #666;
}


/* =========================================================
   TOAST
========================================================= */

.toast {
    position: fixed;
    bottom: 60px;
    right: 30px;
    background: #f47521;
    color: #fff;
    padding: 15px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(244, 117, 33, .35);
    transform: translateX(450px);
    opacity: 0;
    transition: .35s;
    z-index: 99999;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    font-size: 22px;
}




/* =========================================================
   PRODUCT POPUP - DESKTOP
========================================================= */

.product-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .82);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overscroll-behavior: contain;
}

.product-popup.show {
    display: flex;
}

.product-popup-content {
    position: relative;
    width: min(1000px, 95vw);
    min-height: 0;
    background: #fff;
    border-radius: 22px;
    padding: 55px 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .35);
    margin: auto 0;
    touch-action: pan-y;
}


/* =========================================================
   POPUP CLOSE - رمادي
========================================================= */

.product-popup-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
    transition: .25s;
}

.product-popup-close:hover {
    background: #616060;
    color: #fff;
}


/* =========================================================
   POPUP GALLERY
========================================================= */

.product-popup-gallery {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    touch-action: pan-y;
}


/* =========================================================
   MAIN IMAGE (إطار الزوم)
========================================================= */

.product-popup-main {
    width: 100%;
    height: 400px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    /* ✨ إطار الزوم - يدعم Pinch + Pan */
    touch-action: none;
    overscroll-behavior: contain;

    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;

    position: relative;
}

#productPopupImage {
    display: block;

    width: auto;
    height: auto;

    max-width: 90%;
    max-height: 380px;

    object-fit: contain;

    border-radius: 12px;

    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;

    /* ✨ الزوم والتحريك داخل الإطار */
    touch-action: none;
    will-change: transform;

    transform:
        translate3d(0, 0, 0)
        scale(1);

    transform-origin: center center;

    transition: none;

    opacity: 1;
}


/* =========================================================
   POPUP ARROWS - رمادي
========================================================= */

.product-popup-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .15);
    transition: .25s;
}

.product-popup-arrow:hover {
    background: #616060;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.product-popup-prev { right: 0; }
.product-popup-next { left: 0; }


/* =========================================================
   POPUP THUMBNAILS
========================================================= */

.product-popup-thumbs {
    width: 100%;
    min-height: 90px;
    margin-top: 10px;
    padding: 8px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.product-popup-thumbs::-webkit-scrollbar {
    display: none;
}

.product-popup-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 78px;
    height: 65px;
    padding: 4px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: .25s;
}

.product-popup-thumb:hover {
    border-color: #f47521;
}

.product-popup-thumb.active {
    border-color: #f47521;
    box-shadow: 0 0 0 2px rgba(244, 117, 33, .25);
}

.product-popup-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =========================================================
   POPUP INFO
========================================================= */

.product-popup-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 5px 20px 0;
}

.product-popup-info h2 {
    font-size: 26px;
    font-weight: 800;
    color: #f47521;
    margin-bottom: 15px;
}

.product-popup-price {
    font-size: 30px;
    font-weight: 800;
    color: #f47521;
    margin: 15px 0 20px;
    direction: ltr;
}


/* =========================================================
   POPUP SPECS TABLE - DESKTOP
========================================================= */

.product-popup-specs {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: right;
}

.popup-spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 12px 15px;
    transition: .25s;
}

.popup-spec-row:hover {
    background: #fff2e7;
}

.popup-spec-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f47521;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 15px;
}

.popup-spec-label {
    flex: 0 0 90px;
    font-size: 12px;
    color: #777;
    font-weight: 600;
}

.popup-spec-value {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   POPUP QUANTITY
========================================================= */

.product-popup-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 12px;
}

.product-popup-quantity button {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #f4f4f7;
    color: #222;
    font-size: 22px;
    cursor: pointer;
    transition: .25s;
}

.product-popup-quantity button:hover {
    background: #f47521;
    color: #fff;
}

#productPopupQuantity {
    width: 70px;
    height: 42px;
    border: 2px solid #ddd;
    border-radius: 10px;
    text-align: center;
    font-size: 17px;
    outline: none;
    font-family: 'Cairo', sans-serif;
    transition: border-color .25s;
}

#productPopupQuantity:focus {
    border-color: #f47521;
}


/* =========================================================
   POPUP ADD TO CART
========================================================= */

.product-popup-add-cart {
    width: 100%;
    max-width: 500px;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #f47521;
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: .25s;
    margin-top: 5px;
}

.product-popup-add-cart:hover {
    background: #d96515;
    box-shadow: 0 8px 20px rgba(244, 117, 33, .35);
}

.product-popup-add-cart.disabled,
.product-popup-add-cart:disabled {
    background: #cfcfcf !important;
    color: #777 !important;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .85;
    box-shadow: none;
}


/* =========================================================
   RESPONSIVE - Tablet
========================================================= */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   RESPONSIVE - Mobile
========================================================= */

@media (max-width: 768px) {

    /* ============ HEADER ============ */
    .header-container {
        padding: 15px 20px;
    }

    .logo img {
        height: 42px;
    }

    nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 12px;
    }


    /* ============ HERO ============ */
    .windhorse-hero {
        height: 250px;
        aspect-ratio: auto;
        margin-top: 70px;
    }

    .hero-arrow { display: none; }

    .hero-dots { bottom: 8px; }

    .hero-dot {
        width: 6px;
        height: 6px;
    }

    .hero-dot.active { width: 20px; }


    /* ============ DIVIDER ============ */
    .windhorse-divider {
        width: 90%;
        height: 75px;
        gap: 20px;
        margin: 15px auto;
    }

    .windhorse-divider img { width: 90px; }


    /* ============ FILTERS ============ */
    .filter-group h4 { font-size: 18px; }

    .filters {
        gap: 8px;
        padding: 6px 5px 10px;
        justify-content: flex-start;
        touch-action: pan-x;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
        border-radius: 25px;
    }

    .filter-label {
        font-size: 13px;
    }

    .filters-nav { display: none; }


    /* ============ PRODUCTS ============ */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card { padding: 0; }

    .product-card:hover { transform: none; }

    .product-image-wrapper { height: 220px; }

    .product-info { padding: 14px; }

    .product-info h3 {
        font-size: 17px;
        line-height: 1.4;
        margin-bottom: 10px;
    }


    /* ============ QUICK SPECS - Mobile ============ */
    .quick-specs {
        gap: 6px;
        margin: 10px 0;
    }

    .quick-spec {
        font-size: 13px;
        padding: 9px 12px;
        gap: 8px;
        border-radius: 10px;
    }

    .quick-spec i {
        font-size: 14px;
        width: 18px;
    }

    .quick-spec-label {
        font-size: 12px;
    }

    .quick-spec-value {
        font-size: 13px;
    }

    .price {
        font-size: 22px;
        padding-top: 10px;
    }


    /* ============ SPECS BUTTON ============ */
    .specs-btn {
        height: 44px;
        font-size: 14px;
        gap: 8px;
        margin-top: 10px;
        border-radius: 12px;
    }

    .specs-btn i { font-size: 11px; }


    /* =====================================================
       POPUP - Full Screen Mobile
    ===================================================== */

    .product-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        inset: 0;
        width: 100%;
        height: 100%;

        padding: 0;
        margin: 0;

        background: #fff;

        display: none;
        align-items: stretch;
        justify-content: flex-start;

        overflow: hidden;
    }

    .product-popup.show {
        display: block;
    }

    .product-popup-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        height: 100%;

        max-width: 100%;
        max-height: 100%;

        padding: 55px 12px 20px;
        margin: 0;

        border-radius: 0;
        box-shadow: none;

        background: #fff;

        display: flex;
        flex-direction: column;
        align-items: center;

        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }


    /* ============ POPUP CLOSE - رمادي ============ */
    .product-popup-close {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;

        width: 42px;
        height: 42px;

        font-size: 26px;
        background: #f0f0f0;
        color: #555;

        box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
        z-index: 999999;
    }

    .product-popup-close:hover {
        background: #616060;
        color: #fff;
    }


    /* ============ GALLERY ============ */
    .product-popup-gallery {
        width: 100%;
        height: 260px;
        min-height: 260px;
        max-height: 260px;

        margin-top: 5px;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;
        overflow: hidden;
    }


    /* ============ MAIN IMAGE - إطار الزوم على الموبايل ============ */
    .product-popup-main {
        width: 100%;
        height: 260px;

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;

        /* ✨ إطار الزوم */
        touch-action: none;
        overscroll-behavior: contain;

        position: relative;
    }

    #productPopupImage {
        max-width: 85%;
        max-height: 240px;
        width: auto;
        height: auto;

        touch-action: none;
        -webkit-touch-callout: none;
        user-select: none;
        -webkit-user-select: none;
    }


    /* ============ POPUP ARROWS - رمادي ============ */
    .product-popup-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);

        width: 40px;
        height: 40px;

        font-size: 15px;
        background: #f0f0f0;
        color: #555;

        border-radius: 50%;
        border: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    }

    .product-popup-arrow:hover {
        background: #616060;
        color: #fff;
    }

    .product-popup-prev { right: 8px; }
    .product-popup-next { left: 8px; }


    /* ============ THUMBNAILS ============ */
    .product-popup-thumbs {
        width: 100%;
        min-height: 70px;

        margin-top: 8px;
        padding: 6px 10px;

        gap: 8px;
        justify-content: center;
    }

    .product-popup-thumb {
        width: 60px;
        height: 52px;
        border-radius: 12px;
    }


    /* ============ INFO ============ */
    .product-popup-info {
        width: 100%;
        padding: 15px 0 0;
    }

    .product-popup-info h2 {
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 12px;
        color: #f47521;
    }

    .product-popup-price {
        font-size: 26px;
        margin: 12px 0 18px;
    }


    /* ============ SPECS ============ */
    .product-popup-specs {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .popup-spec-row {
        padding: 12px 14px;
        gap: 12px;
        border-radius: 14px;
    }

    .popup-spec-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
        flex-shrink: 0;
    }

    .popup-spec-label {
        flex: 0 0 auto;
        min-width: 80px;
        font-size: 12px;
        color: #888;
    }

    .popup-spec-value {
        flex: 1;
        font-size: 14px;
        font-weight: 800;
        color: #222;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
        text-align: left;
        line-height: 1.4;
        direction: ltr;
    }


    /* ============ QUANTITY ============ */
    .product-popup-quantity {
        margin: 1px 0 1px;
    }

    .product-popup-quantity button {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    #productPopupQuantity {
        width: 65px;
        height: 42px;
        font-size: 16px;
    }


    /* ============ ADD TO CART ============ */
    .product-popup-add-cart {
        width: 100%;
        max-width: 100%;
        height: 50px;
        font-size: 15px;
        border-radius: 14px;
        margin-bottom: 20px;
    }



    /* ============ CART ============ */
    #cartButton {
        width: 58px;
        height: 58px;
        bottom: 20px;
        left: 20px;
        font-size: 24px;
    }

    #cartSidebar {
        width: 90%;
        max-width: 400px;
        left: -100%;
    }
}