﻿/* =====================================================
   GLOBAL/BASE REBOOTS & OVERRIDES
===================================================== */
input[type="number"] {
    -moz-appearance: textfield;
    cursor: default;
}

    input[type="number"]:focus {
        outline: none;
        box-shadow: none;
    }

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.cursor-pointer {
    cursor: pointer;
}

/* =====================================================
   MODAL SAFETY
===================================================== */
.modal-content {
    overflow: hidden;
}

.modal-body {
    overflow-x: hidden;
}

    .modal-body .row {
        margin-left: 0;
        margin-right: 0;
    }

/* =====================================================
   LAYOUT / CONTAINERS
===================================================== */
.form-product {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tab-content {
    padding: 1em 0;
    flex-grow: 1;
    overflow-x: hidden;
}

#query-quantity-result {
    overflow: visible;
}

#available-quantity {
    padding: 0;
    margin-top: 0;
    text-align: center;
}

@media (min-width: 1399px) {
    #available-quantity {
        margin-top: 1.75em;
        text-align: left;
    }
}

/* =====================================================
   STICKY ADD TO CART
===================================================== */
.sticky-add-to-cart {
    background: #fff;
    z-index: 999;
    padding-bottom: 1em;
}

@media (max-width: 991.98px) {
    .sticky-add-to-cart {
        position: sticky;
        position: -webkit-sticky;
        bottom: 0;
    }
}

@media (min-width: 992px) {
    .sticky-add-to-cart {
        position: relative;
        padding-bottom: 0;
        z-index: 1;
    }
}

/* =====================================================
   TABS / NAVIGATION
===================================================== */
.tab-nav {
    padding: 0 1em;
    min-width: 72px;
    text-align: center;
}

.nav-link {
    color: #EF5360;
}

.nav-tabs .nav-link {
    border: none;
    color: #666;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0;
    margin-right: 1.5rem;
}

    .nav-tabs .nav-link.active {
        color: #EF5360;
        border-bottom-color: #EF5360;
        background: none;
    }

/* =====================================================
   PRODUCT OPTION PILLS
===================================================== */
.product-option-pills {
    cursor: pointer;
    min-width: 4em;
    padding: 10px 1.5em;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #F6F6F6;
    color: #2B212B;
    font-size: 12px;
    font-weight: bold;
}

    .product-option-pills:hover {
        background-color: #FFEFF0;
        color: #EF5360;
        border-color: transparent;
    }

.product-form-radio:checked + .product-option-pills {
    background-color: #FFEFF0 !important;
    color: #EF5360 !important;
    border-color: #EF5360 !important;
}

.product-form-radio:disabled + label {
    border-color: #D3D3D3 !important;
    color: #D3D3D3 !important;
    background: #fff;
    cursor: not-allowed;
}

/* Product Option Pills - Modifier Tags */
.product-option-pills.discount-tag,
.product-option-pills.exclude-vat {
    padding: 0.5em 2em;
    cursor: default;
}

.product-option-pills.discount-tag {
    border-color: #EF5360 !important;
    color: #EF5360;
}

.product-option-pills.exclude-vat {
    border-color: lightgray !important;
    color: lightgray;
}

/* =====================================================
   QUANTITY / ACTION ROW
===================================================== */
.quantity-action-row {
    max-width: 100%;
}

.quantity-col {
    flex: 0 0 167px;
    width: 167px;
    min-width: 167px;
    max-width: 167px;
}

.buy-now-col {
    flex: 1 1 auto;
}

.add-cart-col {
    flex: 0 0 44px;
    max-width: 44px;
}

    .buy-now-col button,
    .add-cart-col button {
        white-space: nowrap;
    }

/* Mobile responsive split layout */
@media (max-width: 575.98px) {
    .quantity-action-row {
        flex-wrap: wrap;
    }

    .quantity-col {
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* =====================================================
   QUANTITY CONTROLS & CONTROLS
===================================================== */
.quantity-group-btn {
    caret-color: transparent;
    margin-top: 1em;
}

.quantity-num {
    height: 48px;
    margin: 0 5px;
    border: 0;
    text-align: center;
    font-weight: bold;
}

.btn-quantity-minus,
.btn-quantity-plus {
    width: 48px;
    height: 48px;
    font-size: 2rem;
    color: #fff;
    background: #EF5360;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: box-shadow .2s ease, background .2s ease;
}

.btn-quantity-minus {
    border-radius: 8px 0 0 8px;
}

.btn-quantity-plus {
    border-radius: 0 8px 8px 0;
}

    .btn-quantity-minus:not([disabled]):hover,
    .btn-quantity-plus:not([disabled]):hover,
    .btn-quantity-minus:not([disabled]):focus,
    .btn-quantity-plus:not([disabled]):focus {
        background: #EF5360;
        color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    }

.btn-disabled {
    pointer-events: none;
    opacity: 0.65;
    box-shadow: none;
}

/* =====================================================
   LOADER ELEMENT
===================================================== */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #EF5360;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Overlay wrapper variant for loaders */
.input-group.position-relative .loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10;
}

.input-group.loading input.form-control {
    color: transparent;
}

/* =====================================================
   IMAGES UTILITIES
===================================================== */
#product-image-preview,
.product-image-thumbnail {
    max-width: 100%;
    height: auto;
    display: block;
}

    .product-image-thumbnail.selected {
        border: 2px solid #EF5360 !important;
    }

.image-indicator {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: .5em;
    padding: 0 1em;
    border-radius: 4px;
    background: #555;
    color: #fff;
    opacity: .5;
}

/* =====================================================
   BUTTONS STYLING
===================================================== */
.product-btn-primary {
    width: 195px;
    height: 48px;
    border-radius: 8px;
    border: none;
}

.btn-active {
    background-color: #EF5360 !important;
    color: #fff !important;
}

    .btn-active:hover {
        color: #fff !important;
    }

.check-out {
    border-radius:8px;
    width: 100%;
}

.add-to-cart {
    width: 100%;
    height: 48px;
    background: #FFFFFF no-repeat padding-box;
    border-radius: 8px;
    margin-left: 5px;
}

.cart-active {
    border: 1px solid #EF5360;
    color: #EF5360;
}

/* =====================================================
   SKELETON ANIMATIONS & BLOCKS
===================================================== */
.product-skeleton-modal {
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    padding: 0rem;
    box-sizing: border-box;
    max-height: 80vh;
    overflow-y: auto;

}

.skeleton {
    opacity: 0.7;
    animation: skeleton-loading 1s linear infinite alternate;
}

.skeleton-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.skeleton-text {
    display: block;
    height: 0; /* Eliminates fluid block area */
    padding-top: 10px; /* Locked top baseline visual padding */
    padding-bottom: 10px; /* Locked bottom baseline visual padding */
    margin: 0.4rem 0;
    border-radius: 4px;
    overflow: hidden;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 80%);
    }

    100% {
        background-color: hsl(200, 20%, 95%);
    }
}
