﻿.header-style-4 .axil-header-top {
    padding: 8px 0;
}

/* ====== FAST TAP - Eliminate 300ms delay ====== */
html {
    touch-action: manipulation;
}

/* Fast button transitions */
.qtybtn,
.delete-item-btn,
.edit-item-btn,
.axil-btn,
.cart-dropdown-btn,
.sidebar-close,
.cart-close {
    transition: transform 0.1s ease, opacity 0.1s ease;
    will-change: transform, opacity;
}

.header-top-dropdown .dropdown {
    max-width: auto;
}

@font-face {
    font-family: 'Tajawal';
    font-weight: 200;
    font-style: normal;
    src: url('../FontArabic/Tajawal-ExtraLight.woff') format('woff');
}

@font-face {
    font-family: 'Tajawal';
    font-weight: 300;
    font-style: normal;
    src: url('../FontArabic/Tajawal-Light.woff') format('woff');
}

@font-face {
    font-family: 'Tajawal';
    font-weight: 400;
    font-style: normal;
    src: url('../FontArabic/Tajawal-Regular.woff') format('woff');
}

@font-face {
    font-family: 'Tajawal';
    font-weight: 500;
    font-style: normal;
    src: url('../FontArabic/Tajawal-Medium.woff') format('woff');
}

@font-face {
    font-family: 'Tajawal';
    font-weight: 700;
    font-style: normal;
    src: url('../FontArabic/Tajawal-Bold.woff') format('woff');
}

@font-face {
    font-family: 'Tajawal';
    font-weight: 800;
    font-style: normal;
    src: url('../FontArabic/Tajawal-ExtraBold.woff') format('woff');
}

@font-face {
    font-family: 'Tajawal';
    font-weight: 900;
    font-style: normal;
    src: url('../FontArabic/Tajawal-Black.woff') format('woff');
}

body {
    font-family: 'Tajawal', sans-serif;
    font-weight: 400;
}

h1 {
    font-weight: 700;
}

p.light {
    font-weight: 300;
}

:root {
    --color-primary: #a09989;
    --light-primary: #8c71db;
    --color-secondary: #4a4a4a;
    --color-tertiary: #FAB8C4;
    --color-white: #ffffff;
    --color-dark: #27272E;
    --color-black: #000000;
    --color-light: #CBD3D9;
    --color-lighter: #F6F7FB;
    --color-lightest: #C4C4C4;
    --color-chart01: #896BA7;
    --color-chart02: #BADEFF;
    --color-chart03: #E76458;
    --color-heading: #292930;
    --color-body: #777777;
    --color-border-light: #E3E6E9;
    --color-border-dark: #42424A;
    --color-gray: #999FAE;
    --color-midgray: #878787;
    --color-extra01: #999FAE;
    --color-success: #3EB75E;
    --color-danger: #FF0003;
    --color-warning: #FF8F3C;
    --color-info: #1BA2DB;
    --color-facebook: #3B5997;
    --color-twitter: #1BA1F2;
    --color-youtube: #ED4141;
    --color-linkedin: #0077B5;
    --color-pinterest: #E60022;
    --color-instagram: #C231A1;
    --color-vimeo: #00ADEF;
    --color-twitch: #6441A3;
    --color-discord: #7289da;
    --radius: 6px;
    --radius-big: 16px;
    --radius-small: 6px;
    --border-width: 2px;
    --border-thin: 1px;
    --p-light: 300;
    --p-regular: 400;
    --p-medium: 500;
    --p-semi-bold: 600;
    --p-bold: 700;
    --p-extra-bold: 800;
    --p-black: 900;
    --s-light: 300;
    --s-regular: 400;
    --s-medium: 500;
    --s-bold: 700;
    --s-black: 900;
    --shadow-primary: 0px 4px 10px rgba(37, 47, 63, 0.1);
    --shadow-light: 0 2px 6px 0 rgba(0, 0, 0, 0.05);
    --shadow-dark: 0 16px 32px 0 rgba(0, 0, 0, 0.04);
    --transition: 0.3s;
    --font-primary: "Tajawal", sans-serif;
    --font-secondary: "Tajawal", sans-serif;
    --font-awesome: "Font Awesome 6 Pro";
    --font-size-b1: 16px;
    --font-size-b2: 14px;
    --font-size-b3: 12px;
    --line-height-b1: 1.7;
    --line-height-b2: 1.65;
    --line-height-b3: 1.6;
    --h1: 46px;
    --h2: 36px;
    --h3: 28px;
    --h4: 24px;
    --h5: 20px;
    --h6: 18px
}



.header-top-dropdown .dropdown .dropdown-menu li {
    margin: 5px 10px 5px 10px !important;
}

.breadcrumbImg {
    width: 120px;
    border-radius: 100%;
}

.axil-product > .thumbnail .label-block {
    top: 10px;
    left: 10px;
}


.header-brand {
     margin-right: auto;
}


.category-select .single-select {
    padding-right: 65px;
}

.about-info-area:after {
    background-color: #fff;
}

.header-top-dropdown .dropdown .dropdown-toggle {
    color: #c2c2cc
}

.about-info-box {
    padding: 20px 30px;
}

.axil-product-cart-wrap .update-btn {
    text-align: left;
}


.axil-dashboard-warp .axil-dashboard-author .thumbnail img {
    width: 70px;
}

.axil-footer-widget .logo img {
    height: 100px;
}
.product-img-responsive {
    max-width: 120px;
    width: 100%;
    height: auto;
}

@media (max-width: 576px) {
    .product-img-responsive {
        max-width: 100%;
    }
}

.header-style-7 .header-action .axil-search {
    margin-right: auto;
}


/*Chechout Page*/
.checkout-btn2 {
    display: block;
    width: 100%;
    text-align: center;
}
.address-type-options {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.address-type-option {
    flex: 1;
    text-align: center;
    border: 1.5px solid #ccc;
    border-radius: 10px;
    padding: 15px 10px;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.hidden {
    display: none !important;
}

.address-type-option input[type="radio"] {
    display: none;
}

.address-type-option i {
    font-size: 22px;
    margin-bottom: 6px;
    display: block;
    color: #888;
}

.address-type-option span {
    display: block;
    font-size: 16px;
    color: #444;
}

.address-type-option input[type="radio"]:checked + i,
.address-type-option input[type="radio"]:checked + span {
    color: #a09989;
}

.address-type-option input[type="radio"]:checked ~ i,
.address-type-option input[type="radio"]:checked ~ span {
    color: #a09989;
}

.address-type-option input[type="radio"]:checked ~ span,
.address-type-option input[type="radio"]:checked ~ i {
    color: #a09989;
}

.address-type-option:has(input[type="radio"]:checked) {
    border-color: #a09989;
    background-color: #f8f9ff;
    box-shadow: 0 4px 12px rgba(160, 153, 137, 0.15);
}
.item-title {
    width: 250px;
}

@media (max-width: 768px) {
    .address-type-options {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .address-type-option {
        flex: 1 1 30%;
        min-width: 100px;
    }
    .item-title {
        width: 150px !important;
    }
}


/*Shop Page*/
.small-thumb-img img.active {
    border: 2px solid #5477f5;
    opacity: 0.8;
    transition: 0.2s;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .quantity-wrapper button {
        background: #f1f1f1;
        border: none;
        width: 32px;
        height: 32px;
        font-weight: bold;
        cursor: pointer;
    }

    .quantity-wrapper input {
        width: 50px;
        text-align: center;
    }


/* Shop Category Page */
.small-thumb-img img.active {
    border: 2px solid #5477f5;
    opacity: 0.8;
    transition: 0.2s;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .quantity-wrapper button {
        background: #f1f1f1;
        border: none;
        width: 32px;
        height: 32px;
        font-weight: bold;
        cursor: pointer;
    }

    .quantity-wrapper input {
        width: 50px;
        text-align: center;
    }

/* ====== MOBILE CART FIXES ====== */

/* Prevent double-tap zoom on iOS for interactive elements */
.qtybtn,
.cart-dropdown-btn,
.add-to-cart,
.delete-item-btn,
.edit-item-btn,
.axil-btn,
button,
a.btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure quantity buttons have adequate tap target size (min 44x44px for iOS) */
.pro-qty .qtybtn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

/* Fix input zoom on iOS (inputs with font-size < 16px trigger zoom) */
.pro-qty input,
.quantity-input,
.form-control,
input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"] {
    font-size: 16px !important;
}

/* Cart dropdown mobile fixes */
@media (max-width: 767px) {
    .cart-dropdown .cart-content-wrap {
        width: 100%;
        max-width: 100vw;
    }
    
    .cart-dropdown .cart-item {
        padding: 12px 10px;
    }
    
    .cart-dropdown .cart-item .item-img {
        width: 60px;
        min-width: 60px;
    }
    
    .cart-dropdown .cart-item .item-img img {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }
    
    .cart-dropdown .item-title {
        width: 100% !important;
        font-size: 14px;
    }
    
    .cart-dropdown .item-title a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    /* Larger touch targets for mobile */
    .cart-dropdown .pro-qty .qtybtn {
        min-width: 36px;
        min-height: 36px;
        font-size: 18px;
    }
    
    .cart-dropdown .pro-qty input {
        width: 40px;
        min-height: 36px;
        text-align: center;
    }
    
    .delete-item-btn,
    .edit-item-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .price-delete-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix for iOS Safari momentum scrolling in cart */
    .cart-dropdown .cart-body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* Prevent iOS rubber-banding when cart is open */
    body.open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
    
    /* Fix position:fixed issues on iOS */
    .cart-dropdown.open {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        height: 100%;
        z-index: 9999;
    }
}

/* Ensure cart close button is easily tappable */
.cart-dropdown .cart-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

/* Add visual feedback for touch on mobile */
@media (hover: none) and (pointer: coarse) {
    .qtybtn:active,
    .delete-item-btn:active,
    .edit-item-btn:active,
    .axil-btn:active {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

/* Fix for quantity input on mobile - prevent zoom and ensure proper sizing */
.pro-qty {
    display: flex;
    align-items: center;
    gap: 0;
}

.pro-qty input[type="number"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none;
    margin: 0;
}

.pro-qty input[type="number"]::-webkit-inner-spin-button,
.pro-qty input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.newsletter-content {
    direction: ltr !important;
}

.cart-dropdown .cart-item .item-quantity {
    display: contents !important;
}

.price-delete-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
    gap: 10px;
}

.price-currency {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.currency-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.item-price {
    font-size: 15px;
    font-weight: bold;
    color: #000;
}

.delete-wrapper {
    flex-shrink: 0;
}

.delete-item-btn {
    background: none;
    border: none;
    color: #d00;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

    .delete-item-btn:hover {
        transform: scale(1.1);
    }

.item-additions {
    margin: 5px 0;
    padding-left: 15px;
    list-style: disc;
}

.addition-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
}

/* ====== Global Loader Overlay ====== */
#global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
}
#global-loader-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
#global-loader-overlay .loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loaderSpin 0.7s linear infinite;
}
@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}
.btn-loading {
    pointer-events: none;
    opacity: 0.6;
}
