/*!*product detail*!*/
/*.wg-quantity {*/
/*    width: 120px; !* Fixed width for consistency *!*/
/*    border: 1px solid #ced4da;*/
/*    border-radius: 0.25rem;*/
/*    overflow: hidden;*/
/*}*/
/*.quantity-btn {*/
/*    width: 40px;*/
/*    height: 38px;*/
/*    border: none;*/
/*    background-color: #f8f9fa;*/
/*    cursor: pointer;*/
/*    font-size: 1.1rem;*/
/*    transition: background-color 0.3s ease;*/
/*}*/
/*.quantity-btn:hover {*/
/*    background-color: #e9ecef;*/
/*}*/
/*.quantity-btn:active {*/
/*    background-color: #dee2e6;*/
/*}*/
/*.quantity-product {*/
/*    width: 40px;*/
/*    height: 38px;*/
/*    padding: 0;*/
/*    border: none;*/
/*    text-align: center;*/
/*    appearance: textfield; !* Removes default arrows in some browsers *!*/
/*}*/
/*.quantity-product:focus {*/
/*    outline: none;*/
/*    box-shadow: none;*/
/*}*/
/*!* Remove default number input arrows in specific browsers *!*/
/*.quantity-product::-webkit-outer-spin-button,*/
/*.quantity-product::-webkit-inner-spin-button {*/
/*    -webkit-appearance: none;*/
/*    margin: 0;*/
/*}*/
/*.quantity-product[type=number] {*/
/*    -moz-appearance: textfield;*/
/*}*/

/*!* Toast notification styling *!*/
/*.toast-notification {*/
/*    position: fixed;*/
/*    top: 20px;*/
/*    right: 20px;*/
/*    background-color: #f8d7da;*/
/*    color: #721c24;*/
/*    padding: 15px 25px;*/
/*    border-radius: 4px;*/
/*    box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
/*    z-index: 9999;*/
/*    display: none;*/
/*    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;*/
/*}*/

/*@keyframes fadeIn {*/
/*    from { opacity: 0; transform: translateY(-20px); }*/
/*    to { opacity: 1; transform: translateY(0); }*/
/*}*/

/*@keyframes fadeOut {*/
/*    from { opacity: 1; transform: translateY(0); }*/
/*    to { opacity: 0; transform: translateY(-20px); }*/
/*}*/
/*!*product detail*!*/


/*!* Wishlist button styling *!*/
/*.tf-product-info-buy-button {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    gap: 10px;*/
/*}*/

/*.wishlist-wrapper1 {*/
/*    display: flex;*/
/*    justify-content: center;*/
/*}*/

/*.tf-product-btn-wishlist1 {*/
/*    display: inline-flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    width: 40px;*/
/*    height: 40px;*/
/*    border-radius: 50%;*/
/*    background-color: #fff;*/
/*    border: 1px solid #ddd;*/
/*    position: relative;*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.tf-product-btn-wishlist1:hover {*/
/*    background-color: #f5f5f5;*/
/*    border-color: #bbb;*/
/*}*/

/*.tf-product-btn-wishlist1 .icon {*/
/*    font-size: 18px;*/
/*    color: #666;*/
/*}*/

/*.tf-product-btn-wishlist1.active .icon-heart {*/
/*    color: #ff0000;*/
/*}*/

/*.tf-product-btn-wishlist1 .tooltip {*/
/*    position: absolute;*/
/*    top: -40px;*/
/*    left: 50%;*/
/*    transform: translateX(-50%);*/
/*    background-color: #333;*/
/*    color: #fff;*/
/*    padding: 5px 10px;*/
/*    border-radius: 4px;*/
/*    font-size: 12px;*/
/*    white-space: nowrap;*/
/*    opacity: 0;*/
/*    visibility: hidden;*/
/*    transition: opacity 0.3s ease;*/
/*}*/

/*.tf-product-btn-wishlist1:hover .tooltip {*/
/*    opacity: 1;*/
/*    visibility: visible;*/
/*}*/

/*!* Modal close icon *!*/
/*.header .icon-close-popup {*/
/*    position: absolute;*/
/*    top: 15px;*/
/*    right: 15px;*/
/*    font-size: 20px;*/
/*    cursor: pointer;*/
/*    color: #666;*/
/*}*/

/*.header .icon-close-popup:hover {*/
/*    color: #333;*/
/*}*/

/*!* Notification toast *!*/
/*.toast-notification {*/
/*    position: fixed;*/
/*    top: 20px;*/
/*    right: 20px;*/
/*    background-color: #f8d7da;*/
/*    color: #721c24;*/
/*    padding: 15px 25px;*/
/*    border-radius: 4px;*/
/*    box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
/*    z-index: 9999;*/
/*    display: none;*/
/*    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;*/
/*}*/

/*@keyframes fadeIn {*/
/*    from { opacity: 0; transform: translateY(-20px); }*/
/*    to { opacity: 1; transform: translateY(0); }*/
/*}*/

/*@keyframes fadeOut {*/
/*    from { opacity: 1; transform: translateY(0); }*/
/*    to { opacity: 0; transform: translateY(-20px); }*/
/*}*/





/* Product Detail Page Responsive Fixes */

/* Base styles for product detail page */
.tf-product-info-wrap {
    padding: 20px 0;
}

.tf-product-info-title h5 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.tf-product-info-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-on-sale {
    font-size: 22px;
    font-weight: 600;
    color: #000;
}

.compare-at-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.tf-product-info-liveview {
    margin-bottom: 20px;
}

.tf-product-info-liveview p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Fix for variant picker layout */
.tf-product-info-variant-picker {
    margin-bottom: 20px;
}

.variant-picker-item {
    margin-bottom: 15px;
}

.variant-picker-label {
    margin-bottom: 15px;
}

/* Fix for color, size, and wishlist row */
.variant-picker-label .row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* Wishlist button styling */
.c-wishlist {
    display: flex;
    justify-content: flex-end;
}

.tf-product-btn-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    position: relative;
    transition: all 0.3s ease;
}

.tf-product-btn-wishlist:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.tf-product-btn-wishlist .icon {
    font-size: 18px;
    color: #666;
}

.tf-product-btn-wishlist .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.tf-product-btn-wishlist:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Quantity control styling */
.qty {
    padding-right: 10px;
}

.wg-quantity {
    width: 100%;
    max-width: 120px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 38px;
    border: none;
    background-color: #f8f9fa;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #e9ecef;
}

.quantity-btn:active {
    background-color: #dee2e6;
}

.quantity-product {
    width: 40px;
    height: 38px;
    padding: 0;
    border: none;
    text-align: center;
    appearance: textfield;
}

.quantity-product:focus {
    outline: none;
    box-shadow: none;
}

.quantity-product::-webkit-outer-spin-button,
.quantity-product::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-product[type=number] {
    -moz-appearance: textfield;
}

/* Add to cart button styling */
.c-add-to-cart {
    padding-left: 10px;
}

.btn-add-to-cart {
    width: 100%;
    height: 38px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background-color: #333;
}

/* Toast notification styling */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s, fadeOut 0.3s 2.7s;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .tf-product-info-title h5 {
        font-size: 22px;
    }

    .price-on-sale {
        font-size: 20px;
    }

    .compare-at-price {
        font-size: 16px;
    }

    /* Fix sticky top on tablet */
    .sticky-top {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .tf-product-info-wrap {
        padding: 15px 0;
    }

    .tf-product-info-title h5 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .price-on-sale {
        font-size: 18px;
    }

    .compare-at-price {
        font-size: 15px;
    }

    .tf-product-info-liveview p {
        font-size: 13px;
    }

    /* Fix for color, size, and wishlist row on mobile */
    .variant-picker-label .row {
        flex-wrap: wrap;
    }

    .variant-picker-label .col-4 {
        width: 50%;
        margin-bottom: 10px;
    }

    .c-wishlist {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
    }

    /* Fix for quantity and add to cart row on mobile */
    .variant-picker-label .row:nth-child(2) {
        flex-wrap: wrap;
    }

    .qty {
        width: 100%;
        padding-right: 0;
        margin-bottom: 10px;
    }

    .c-add-to-cart {
        width: 100%;
        padding-left: 0;
    }

    .wg-quantity {
        max-width: 100%;
    }

    .btn-add-to-cart {
        height: 44px;
    }
}

@media (max-width: 576px) {
    .tf-product-info-title h5 {
        font-size: 18px;
    }

    .price-on-sale {
        font-size: 16px;
    }

    .compare-at-price {
        font-size: 14px;
    }

    /* Improve layout for very small screens */
    .variant-picker-label .col-4 {
        width: 100%;
        margin-bottom: 8px;
    }

    /* Make buttons more tappable on mobile */
    .tf-product-btn-wishlist,
    .quantity-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .btn-add-to-cart {
        height: 48px;
        font-size: 16px;
    }

    /* Fix quantity control for small screens */
    .quantity-product {
        width: calc(100% - 80px);
    }
}

/* Fix for Safari mobile issues */
@supports (-webkit-touch-callout: none) {
    .quantity-product {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Improve accessibility */
.tf-product-btn-wishlist:focus,
.quantity-btn:focus,
.btn-add-to-cart:focus {
    outline: 2px solid rgba(0, 0, 0, 0.2);
}

/* Fix for notch on iPhone X and newer */
@supports (padding: max(0px)) {
    .toast-notification {
        padding-top: max(15px, env(safe-area-inset-top));
        padding-left: max(25px, env(safe-area-inset-left));
        padding-right: max(25px, env(safe-area-inset-right));
    }
}

/* Alternative Mobile Layout for Better UX */
@media (max-width: 576px) {
    /* Create a fixed bottom bar for add to cart and wishlist on mobile */
    .mobile-fixed-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }

    .mobile-fixed-actions .wg-quantity {
        width: 120px;
    }

    .mobile-fixed-actions .btn-add-to-cart {
        flex: 1;
        margin-left: 10px;
    }

    .mobile-fixed-actions .tf-product-btn-wishlist {
        margin-left: 10px;
    }

    /* Add padding to the bottom of the page to account for the fixed bar */
    body.has-fixed-actions {
        padding-bottom: 70px;
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
}
