/* Toaster Container */
#toast-container {
    position: fixed;
    top: auto;
    /* Override default if needed */
    bottom: 20px;
    /* User requested bottom right */
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast Item */
.custom-toast {
    position: relative;
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 15px 20px 15px 15px;
    display: flex;
    align-items: center;
    overflow: hidden;
    animation: slideInRight 0.3s ease forwards;
    cursor: pointer;
    margin-top: 10px;
}

.custom-toast.hide {
    animation: slideOutRight 0.3s ease forwards;
}

/* Toast Types (Border Left Color) */
.custom-toast.success {
    border-left: 5px solid #28a745;
}

.custom-toast.error {
    border-left: 5px solid #dc3545;
}

.custom-toast.warning {
    border-left: 5px solid #ffc107;
}

.custom-toast.info {
    border-left: 5px solid #17a2b8;
}

/* Icon */
.toast-icon {
    font-size: 20px;
    margin-right: 15px;
}

.custom-toast.success .toast-icon {
    color: #28a745;
}

.custom-toast.error .toast-icon {
    color: #dc3545;
}

.custom-toast.warning .toast-icon {
    color: #ffc107;
}

.custom-toast.info .toast-icon {
    color: #17a2b8;
}

/* Message */
.toast-message {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
}

.toast-message a {
    color: #28a745;
    font-weight: 700;
    text-decoration: underline;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    /* Default Colors matched to type */
}

.custom-toast.success .toast-progress-bar {
    background-color: #28a745;
}

.custom-toast.error .toast-progress-bar {
    background-color: #dc3545;
}

.custom-toast.warning .toast-progress-bar {
    background-color: #ffc107;
}

.custom-toast.info .toast-progress-bar {
    background-color: #17a2b8;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Full Screen Loader */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.global-loader.active {
    visibility: visible;
    opacity: 1;
}

.loader-bounce {
    display: flex;
    justify-content: center;
}

.loader-bounce>div {
    width: 18px;
    height: 18px;
    background-color: #FF6600;
    /* Primary Brand Color */
    border-radius: 100%;
    display: inline-block;
    animation: bouncedelay 1.4s infinite ease-in-out both;
    margin: 0 3px;
}

.loader-bounce .bounce1 {
    animation-delay: -0.32s;
}

.loader-bounce .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bouncedelay {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

/* Button Loader */
.btn-loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 5px;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Quick View Button */
.btn-custom-quickview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 45px;
    background-color: rgba(60, 63, 66, 0.95);
    color: #fff;
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    visibility: hidden;
}

.product-default:hover .btn-custom-quickview {
    opacity: 1;
    visibility: visible;
}

.btn-custom-quickview:hover {
    background-color: #000;
    color: #fff;
    text-decoration: none;
}

/* Quick View Redesign */
.qv-wrapper {
    background: #fff;
    max-width: 960px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.qv-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.qv-price-box .product-price {
    font-size: 2rem;
    color: #ff5500;
    font-weight: 700;
}

.qv-desc p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #777;
}

.qv-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qv-add-cart-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1.2rem 2rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.mfp-close {
    top: 10px;
    right: 10px;
}

.qv-brand-logo {
    border-radius: 4px;
    /* Optional rounded */
    object-fit: contain;
}

/* Quick View Gallery */
.qv-main-image-wrapper {
    width: 100%;
    margin-bottom: 1rem;
    border: 1px solid #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qv-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.qv-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.qv-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.2s;
}

.qv-thumb.active,
.qv-thumb:hover {
    border-color: #ff5500;
    opacity: 1;
}

.qv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Attributes */
.config-size-list,
.config-swatch-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qv-size-opt a {
    display: block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.qv-size-opt.active a,
.qv-size-opt:hover a {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.qv-color-opt {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.qv-color-opt.active {
    border-color: #333;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .qv-wrapper {
        padding: 15px;
        max-width: 95%;
    }

    .qv-details {
        margin-left: 0 !important;
        margin-top: 20px;
    }

    .qv-title {
        font-size: 1.8rem;
    }
}

/* Quick View Overlay Loader */
.qv-overlay-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.qv-overlay-loader.d-none {
    display: none !important;
}

.btn-buy-now {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1.2rem 2rem;
    border-radius: 4px;
    transition: all 0.3s;
    background-color: #ff5500;
    border-color: #ff5500;
    color: #fff;
}

.btn-buy-now:hover {
    background-color: #e04b00;
    border-color: #e04b00;
}