﻿:root {
    --color-primary: #97744b;
    --color-accent: #cdaa82;
    --color-brand: #478778;
    --color-text: #212529;
    --color-bg: #ffffff;
    --color-muted: #f8f9fa;
    --navbar-shadow: 0 4px 6px rgba(0,0,0,.08);
    --banner-height: 48px;
    --navbar-pad-top: 4rem;
    --max-content: 1200px;
}


#goTopBtn {
    position: fixed;
    bottom: 24px;
    right: 12px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg,#212529,#1987549e);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: opacity .3s,transform .3s;
    z-index: 1000;
    display: none;
}

    #goTopBtn:hover {
        transform: translateY(-4px);
    }


#ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    width: 0;
    background: linear-gradient(135deg,#fd657b 0%,#53265E 100%);
    z-index: 9999;
    transition: width .25s ease;
    display: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #e5e5e5;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-accent);
    }

.category-card {
    width: 8rem;
    border: 1px solid #ceac85;
    border-radius: .5rem;
    overflow: hidden;
    height: 10rem;
}

    .category-card:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

    .category-card .card-body {
        padding: .5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.category-thumb {
    width: 100%;
    height: 72px;
    object-fit: contain;
    display: block;
}

.category-card .card-footer {
    background: transparent;
    border-top: 0;
    padding: 0 .5rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    bottom: 0;
    font-size: .9rem;
}



.add-to-favorites {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #cca67c;
    font-size: 1rem;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color .2s,transform .2s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    z-index: 1;
}

    .add-to-favorites:hover {
        color: #dc3545;
        transform: scale(1.1);
    }

    .add-to-favorites:active {
        color: #dc3545;
        transform: scale(.95);
    }

.is-favorited {
    color: #dc3545;
}

    .is-favorited:hover {
        color: #cca67c;
        transform: scale(1.1);
    }

.product-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-color: #dbc1a3;
}

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px #97744b47;
    }

.card-ribbon {
    position: absolute;
    top: 6px;
    right: -3rem;
    z-index: 10;
    width: 145px;
    height: 2rem;
    background: linear-gradient(135deg, #fd657b 0%, #53265E 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px -5px #cdaa82;
    text-align: center;
}

.tile-caption {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: start;
    text-decoration-line: underline;
    text-decoration-color: #97744b;
    text-decoration-thickness: 1px;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    width: 90%;
}

@media (max-width:390px) {
    .tile-caption {
        width: 80%;
    }
}

@media (max-width:300px) {
    .tile-caption {
        width: 70%;
    }
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2rem;
}

.image-container {
    padding: .7rem;
}

.tile-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-bottom: 1px solid #d3bea6;
}

.tile-img-nonproduct {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.card-info {
    padding: 15px;
}

    .card-info h4 {
        font-size: 1.5rem;
        color: #478778;
        margin: 0 0 10px;
    }

    .card-info h5 {
        font-size: 1rem;
        color: #343a4047;
        margin: 0;
        text-align: start;
    }

.price-container {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 330px) {
    .price-container {
        display: grid;
        grid-template-columns: auto 1fr auto; /* left icon | centered prices | right icon */
        grid-template-rows: auto auto; /* stack old/new price */
        align-items: center;
        column-gap: .25rem;
        row-gap: .125rem;
    }

        /* keep icons pinned to left/right */
        .price-container .add-to-favorites {
            grid-column: 1;
            grid-row: 1 / span 2;
            justify-self: start;
        }

        .price-container .add-to-basket {
            grid-column: 3;
            grid-row: 1 / span 2;
            justify-self: end;
        }

        /* center the prices and stack them */
        .price-container h4 {
            grid-column: 2;
            grid-row: 1;
            justify-self: center;
            font-size: 1rem; /* slightly smaller new price */
        }

        .price-container .old-price {
            grid-column: 2;
            grid-row: 2;
            justify-self: center;
        }
}




.item-health-label {
    background: #dbc1a3;
    color: #fff;
    padding: 5px 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border-radius: 0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius);
}

    .item-health-label i {
        font-size: 18px;
        color: #fff;
        cursor: pointer;
    }

    .item-health-label .icon {
        font-size: 1rem;
        margin-left: 8px;
        color: #32CD32;
    }

.old-price {
    text-decoration: line-through;
    color: #6c757d73;
    font-size: 1.3rem;
    display: block;
    margin-top: 5px;
}

@media (max-width:390px) {
    .old-price {
        font-size: 1rem;
        margin-top: 14px;
    }
}
@media (max-width:300px) {
    .old-price {
        font-size: .8rem;
        margin-top: 14px;
    }
}

.oos-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font: 700 12px/1 system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
    z-index: 10000;
    text-align: center;
    animation: slideUp .4s ease;
}

.cookieTitle {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: .5rem;
    color: #333;
}

.cookieText {
    font-size: .95rem;
    color: #555;
    margin-bottom: 1rem;
}

    .cookieText .link {
        color: #007BFF;
        text-decoration: none;
        font-weight: 500;
    }

        .cookieText .link:hover {
            text-decoration: underline;
        }

#cookie-popup .submit-btn {
    padding: .6rem 1.5rem;
    background: #4CAF50;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background .3s;
}

    #cookie-popup .submit-btn:hover {
        background: #43a047;
    }

@keyframes slideUp {
    from {
        transform: translate(-50%,100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%,0);
        opacity: 1;
    }
}

.modal-backdrop.show {
    opacity: .25;
}

#shadesModal .modal-backdrop, #shadesModal + .modal-backdrop, #priceModal .modal-backdrop, #priceModal + .modal-backdrop {
    backdrop-filter: blur(2px);
}

#shadesModal .modal-dialog, #priceModal .modal-dialog {
    max-width: 640px;
    width: calc(100% - 2rem);
    margin: 1rem auto;
}

@media (min-width:768px) {
    #shadesModal .modal-dialog, #priceModal .modal-dialog {
        max-width: 720px;
        margin: 1.5rem auto;
    }
}

#shadesModal .modal-dialog.modal-dialog-scrollable .modal-content, #priceModal .modal-dialog.modal-dialog-scrollable .modal-content {
    max-height: 85vh;
}

#shadesModal .modal-body, #priceModal .modal-body {
    height: 375px;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.25rem;
}

#shadesModal .modal-content, #priceModal .modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    overflow: hidden;
}

#shadesModal .modal-header, #priceModal .modal-header {
    border: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg,rgba(0,0,0,.03),rgba(0,0,0,0));
}

#shadesModal .modal-title, #priceModal .modal-title {
    font-weight: 600;
    letter-spacing: .2px;
}

#shadesModal .btn-close, #priceModal .btn-close {
    box-shadow: none !important;
}

    #shadesModal .btn-close:focus, #priceModal .btn-close:focus {
        outline: 2px solid rgba(0,0,0,.25);
        outline-offset: 2px;
    }

@media (prefers-reduced-motion:no-preference) {
    #shadesModal.modal.fade .modal-dialog, #priceModal.modal.fade .modal-dialog {
        transform: translateY(8px) scale(.98);
        transition: transform .18s,opacity .18s;
        opacity: 0;
    }

    #shadesModal.modal.show .modal-dialog, #priceModal.modal.show .modal-dialog {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

#loginModal .modal-content, #forgotModal .modal-content {
    border: 1px solid #97744b;
    border-radius: 18px;
    box-shadow: 8px 8px 8px 0 #97744b4d;
    background: #ffffff;
}

#loginModal .modal-header, #forgotModal .modal-header {
    border-bottom: 0;
}

#loginModal .modal-title, #forgotModal .modal-title {
    font-size: 1.3rem;
    margin: 0;
}

#loginModal label.form-label, #forgotModal label.form-label {
    font-size: 1rem;
    color: #97744b;
}

#loginModal .form-control, #forgotModal .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border,#ced4da);
    background: #dee2e6;
    color: var(--text,#212529);
    padding: 0 14px;
    outline: none;
}

    #loginModal .form-control:focus, #forgotModal .form-control:focus {
        border-color: #2f83ff;
        box-shadow: 0 0 0 3px rgba(47,131,255,.15);
    }

#loginModal .form-check {
    color: #97744b;
}

#loginModal .form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

#loginModal .btn-success {
    width: 100%;
    padding: .75rem;
    background: #4CAF50;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background .3s;
}

    #loginModal .btn-success:hover {
        filter: brightness(.95);
    }

#loginModal .text-center p {
    margin-top: 12px;
    color: #198754;
}

#loginModal a {
    text-decoration: none;
    color: #0d6efd;
}

    #loginModal a:hover {
        text-decoration: underline;
        color: #97744b;
    }

#forgotModal .btn-success {
    padding: .75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: #fff;
    background: #4CAF50;
}

    #forgotModal .btn-success:hover {
        filter: brightness(.95);
    }

.add-to-basket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f9506b;
    color: #f1f1f1;
    font-size: 1rem;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color .2s,transform .2s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
    z-index: 1;
}

    .add-to-basket:hover {
        background-color: #ffffff;
        color: #dc3545;
        transform: scale(1.1);
    }

    .add-to-basket:active {
        background-color: #ffffff;
        color: #dc3545;
        transform: scale(1.1);
    }
