/*
 * Storefront styles added on top of the theme's style.min.css.
 */

/*
 * Logos uploaded in Settings can be any size, so cap their height and let
 * the width follow the image's proportions.
 */
.header-section .header-logo img {
    max-height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.sticky-header .header-logo img {
    max-height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.mobile-header .header-logo img {
    max-height: 45px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.footer1-logo img {
    max-height: 110px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

@media only screen and (max-width: 767px) {
    .footer1-logo img {
        max-height: 80px;
        max-width: 200px;
    }
}

/* Selected product option (product page and quick view) */
.product-sizes a.active {
    color: #333;
}

/* Retail and wholesale price rows on the product page and quick view */
.product-price .product-price-row + .product-price-row {
    margin-top: 6px;
}

.product-price .price-label {
    font-size: 16px;
    font-weight: 400;
    color: #999;
    margin-right: 6px;
}

/* "Retail:" / "Wholesale:" labels in product card prices */
.product-info .price .price-label {
    font-size: .85em;
    color: #999;
    margin-right: 4px;
}

/* Toast notifications (see storefront.js: window.storefrontToast) */
.storefront-toasts {
    position: fixed;
    z-index: 100000;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 360px;
    pointer-events: none;
}

.storefront-toast {
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-left: 4px solid #333;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    color: #333;
    pointer-events: auto;
    transition: opacity .3s ease, transform .3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.storefront-toast.show {
    opacity: 1;
    transform: none;
}

.storefront-toast .toast-icon {
    line-height: 1.5;
}

.storefront-toast .toast-message {
    flex: 1;
}

.storefront-toast .toast-close {
    font-size: 18px;
    line-height: 1;
    padding: 0;
    border: 0;
    background: none;
    color: #999;
}

.storefront-toast.success {
    border-left-color: #28a745;
}

.storefront-toast.success .toast-icon {
    color: #28a745;
}

.storefront-toast.error {
    border-left-color: #dc3545;
}

.storefront-toast.error .toast-icon {
    color: #dc3545;
}

/* Submit buttons while a form is being sent (storefront.js: setButtonLoading) */
.btn.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: wait;
    opacity: .75;
    pointer-events: none;
}

/* Contact form fields that failed validation */
.contact-form .is-invalid {
    border-color: #dc3545 !important;
}

/* Cookie banner (front/partials/cookie-consent, storefront.js) */
.cookie-consent {
    position: fixed;
    z-index: 99999;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
    color: #333;
    transition: opacity .4s ease, transform .4s ease;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

.cookie-consent.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.cookie-consent-body {
    flex: 1;
}

.cookie-consent-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cookie-consent-title .fas {
    margin-right: 6px;
    color: #72a499;
}

.cookie-consent-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #666;
}

.cookie-consent-text a {
    text-decoration: underline;
    color: #333;
}

.cookie-consent-actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.cookie-consent-actions .btn {
    white-space: nowrap;
}

@media only screen and (max-width: 767px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
    }

    .cookie-consent-actions .btn {
        flex: 1;
        padding-right: 10px;
        padding-left: 10px;
    }
}
