@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');
@import url('https://fonts.cdnfonts.com/css/chunkfive-ex');
@import url(https://db.onlinewebfonts.com/c/8abcdd632a5b8b481b7e76924e147ea0?family=Zabal+DEMO);

:root {
    --primary: #ffaa00;
    --primary-dark: #cc8800;
    --secondary: #ff9900;
    --bg-dark: #000000;
    --bg-accent: #0f0f0f;
    --text-light: #F8F9FA;
    --text-dim: #A0A0A0;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Zabal DEMO', 'Inter', sans-serif;
}

html {
    background: #000;
    min-height: 100%;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'ChunkFive Ex', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition);
}

/* --- Layout --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.grid {
    display: grid;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 11, 12, 0.85);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 105px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    position: relative;
    font-family: 'ChunkFive Ex', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.cart-icon {
    position: relative;
    font-size: 20px;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: black;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    padding: 15px 35px;
    border-radius: 100px;
    font-family: 'ChunkFive Ex', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: black;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: black;
}

/* --- Hero --- */
/* --- Hero --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&q=80&w=1965');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

/* --- Selection & Sections --- */
.selection,
.shop-content {
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

body.shop-content {
    background: none !important;
}

.selection {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1551782450-a2132b4ba21d?auto=format&fit=crop&q=80&w=2069');
    background-size: cover;
    background-attachment: fixed;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header span {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 48px;
}

/* --- Search Bar --- */
.search-container {
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px 15px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 18px;
}

/* --- Filters --- */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: black;
    border-color: var(--primary);
}

/* --- Products --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 15px;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 15px;
    min-height: 40px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
}

.add-btn {
    background: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 16px;
    transition: var(--transition);
}

.add-btn:hover {
    transform: scale(1.1);
    background: white;
}

/* --- About --- */
.about {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://images.unsplash.com/photo-1594212699903-ec8a3eca50f5?auto=format&fit=crop&q=80&w=2071');
    background-size: cover;
    background-attachment: fixed;
}

/* --- Map --- */
.map-container {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--glass-border);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Footer --- */
footer {
    padding: 80px 0 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('src/footer.jpeg');
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 60px;
}

.footer-info img {
    height: 110px;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 14px;
}

/* --- Animations --- */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealZoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

.reveal-up {
    opacity: 0;
}

.reveal-down {
    opacity: 0;
}

.reveal-left {
    opacity: 0;
}

.reveal-right {
    opacity: 0;
}

.reveal-zoom {
    opacity: 0;
}

.reveal-active {
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    animation-fill-mode: forwards;
}

.reveal-active.reveal-up {
    animation-name: revealUp;
}

.reveal-active.reveal-down {
    animation-name: revealDown;
}

.reveal-active.reveal-left {
    animation-name: revealLeft;
}

.reveal-active.reveal-right {
    animation-name: revealRight;
}

.reveal-active.reveal-zoom {
    animation-name: revealZoom;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #0d0d0d;
    width: 95%;
    max-width: 550px;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2002;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

#modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    /* Important for flex child to be scrollable */
}

.modal-header-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.modal-preview-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.modal-base-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 5px;
}

.modal-sections {
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 20px;
    flex: 1;
    /* Grow to fill space */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.modal-sections::-webkit-scrollbar {
    width: 6px;
}

.modal-sections::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-section {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.error-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    border-color: rgba(255, 0, 0, 0.4) !important;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.modal-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 18px;
    font-weight: 600;
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.drink-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: black;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    font-family: 'Zabal DEMO', 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .toast {
        left: 20px;
        right: 20px;
        transform: translateY(-150%);
    }

    .toast.show {
        transform: translateY(0);
    }
}

.supp-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.drink-option:hover,
.supp-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-dim);
}

.drink-option.active,
.supp-item.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
    font-weight: 600;
}

.supps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.supp-check {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 12px;
    display: inline-block;
    position: relative;
}

.supp-item.active .supp-check {
    border-color: #000;
}

.supp-item.active .supp-check::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}

.modal-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#modal-total-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.4rem;
}

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.6);
}

/* --- Floating Boutique CTA Button --- */
#btn-boutique {
    position: fixed;
    bottom: 35px;
    left: 35px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--primary);
    color: #000;
    font-family: 'ChunkFive Ex', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2.5s infinite;
}

#btn-boutique:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.6);
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-info h3 {
        font-size: 14px;
    }

    .product-info p {
        font-size: 11px;
    }

    .price {
        font-size: 14px;
    }

    .add-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 45px;
    }

    section {
        padding: 60px 0;
    }

    /* --- Cart page: form goes below cart on mobile --- */
    .cart-layout {
        grid-template-columns: 1fr !important;
    }

    .checkout-box {
        position: static !important;
        top: auto !important;
    }

    /* --- About section mobile fix --- */
    .about .container {
        text-align: center;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* --- Footer: center text on mobile --- */
    footer {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-info img {
        margin: 0 auto 25px;
        height: 80px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* --- About: image above text on mobile --- */
    .about .grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .about-img {
        order: -1;
    }

    .about-content .section-header {
        text-align: center !important;
    }

    .stats.grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* --- Section title: smaller on mobile to avoid clipping --- */
    .section-header h2 {
        font-size: 28px;
    }

    /* --- Fix backgrounds on mobile (background-attachment:fixed broken on iOS/Android) --- */
    body,
    .hero,
    .selection,
    .about,
    footer {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }

    /* Panier: cart boxes semi-transparent on mobile so body background shows */
    body:not(.shop-content) .cart-items,
    body:not(.shop-content) .checkout-box {
        background: rgba(10, 10, 10, 0.75) !important;
        backdrop-filter: blur(10px);
    }

    /* --- Cart page compact on mobile --- */
    .cart-page {
        padding: 100px 0 60px !important;
    }

    .cart-items {
        padding: 15px !important;
    }

    .cart-item {
        grid-template-columns: 60px 1fr !important;
        gap: 10px !important;
        padding: 12px 0 !important;
    }

    .cart-item .item-qty,
    .cart-item .remove-btn {
        grid-column: 2 !important;
    }

    .item-img {
        width: 60px !important;
        height: 60px !important;
    }

    .item-qty {
        padding: 5px 10px !important;
        gap: 10px !important;
    }

    .checkout-box {
        padding: 15px !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}

/* --- Background Carousel --- */
.shop-background-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    animation: kenBurns 20s linear infinite;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    50% {
        transform: scale(1.05) translate(-0.5%, -0.5%);
    }

    100% {
        transform: scale(1) translate(0, 0);
    }
}