﻿.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: none !important;
}
    .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;
}

.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-order-summery .summery-table tbody td {
    padding: 18px 15px 18px 18px;
}


.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;
}

.checkout-btn2 {
    display: block;
    width: 100%;
    text-align: center;
}

.single-product-content .inner .product-features tr td:first-child{
    padding-left:5px !important;
}
.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;
    }
    .item-title {
        width: 150px !important;
    }
    .address-type-option {
        flex: 1 1 30%;
        min-width: 100px;
    }
}


/*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;
    }

.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;
}

/* ====== 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;
}

/* ====== 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;
}

