﻿body {
    font-family: 'Barlow', sans-serif;
    background-color: #eaeded;
    color: #0f172a;
    margin: 0;
}
.container {
    max-width: 1200px;
}
/* General section animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero text animation */
.hero-text-animate {
    animation: fadeInSlideUp 1.2s ease-out forwards;
}
.hero-text-animate.delay-1 { animation-delay: 0.3s; }
.hero-text-animate.delay-2 { animation-delay: 0.6s; }
.hero-text-animate.delay-3 { animation-delay: 0.9s; }
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu item hover effect */
.menu-item-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.menu-item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 20px -8px rgba(0, 0, 0, 0.2), 0 8px 10px -7px rgba(0, 0, 0, 0.12);
}
.menu-item-card img {
    transition: transform 0.4s ease-in-out;
}
.menu-item-card:hover img {
    transform: scale(1.02);
}

/* Product gallery with magnifier lens */
.product-gallery {
    display: block;
    position: relative;
    overflow: visible;
}
.product-thumbs-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
    z-index: 50;
    max-height: 320px;
    overflow: auto;
}

.search-suggest-item {
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.search-suggest-item:hover,
.search-suggest-item.is-active {
    background: #f1f5f9;
}

.search-suggest-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #64748b;
    padding: 8px 14px 4px;
}

.variant-pill {
    border: 1px solid #cbd5f5;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    background: #f8fafc;
    cursor: pointer;
    font-weight: 600;
}

.variant-pill.is-active {
    background: #0ea5e9;
    color: #0f172a;
    border-color: #0ea5e9;
}

.compare-toggle input {
    accent-color: #0ea5e9;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.compare-table th {
    background: #f8fafc;
    font-weight: 700;
}
.thumb-btn {
    border: 2px solid transparent;
    border-radius: 0.6rem;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 72px;
    height: 72px;
}
.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-btn.is-active {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.product-main {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f8fafc;
    touch-action: none;
    height: clamp(420px, 52vw, 560px);
}
.product-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;
    display: block;
}
.zoom-lens {
    position: absolute;
    border: 2px solid #38bdf8;
    background: rgba(56, 189, 248, 0.2);
    width: 140px;
    height: 140px;
    display: none;
    cursor: crosshair;
}
.zoom-indicator {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.zoom-result {
    display: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-color: #ffffff;
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    width: min(340px, 40vw);
    height: clamp(420px, 52vw, 560px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    z-index: 5;
}

/* Back to Top button */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #232f3e;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}
#backToTopBtn:hover {
    background-color: #131921;
    transform: translateY(-2px);
}

/* Modal styles (Shopping Cart) */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 2.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: modalFadeIn 0.4s ease-out;
}
/* Checkout layout */
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
}
.checkout-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
}
.checkout-left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.checkout-right-panel {
    position: sticky;
    top: 16px;
    height: fit-content;
}
.checkout-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e6f5e6;
    border: 1px solid #c6e8c6;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: #14532d;
}
.badge-success {
    background: #22c55e;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
}
.checkout-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.summary-card {
    border: 1px solid #d5d9d9;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-top: 12px;
}
.checkout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #d5d9d9;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.checkout-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #131921;
    color: #f0c14b;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.checkout-header-title {
    font-weight: 800;
    color: #111827;
}
.checkout-header-sub {
    font-size: 0.8rem;
    color: #64748b;
}
.checkout-section {
    padding: 16px;
    border: 1px solid #d5d9d9;
    border-radius: 0.75rem;
    background: #f7fafa;
}
.checkout-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}
.checkout-input {
    width: 100%;
    border: 1px solid #d5d9d9;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.checkout-input:focus {
    border-color: #f0c14b;
    box-shadow: 0 0 0 3px rgba(240, 193, 75, 0.35);
}
.checkout-cta {
    width: 100%;
    background: #f0c14b;
    color: #111827;
    font-weight: 700;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #a88734;
}
.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.payment-badges span {
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #0f172a;
    background: #fff;
}
.stripe-element {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 12px;
    background: #fff;
}
.card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}
.card-visa {
    background: linear-gradient(135deg, #1a1f71, #0b3d91);
}
.card-mastercard {
    background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%);
}
.card-amex {
    background: linear-gradient(135deg, #2e77bb, #1b9bd7);
}
.card-generic {
    background: linear-gradient(135deg, #334155, #64748b);
}
.checkout-summary {
    border: 1px solid #d5d9d9;
    border-radius: 0.75rem;
    padding: 16px;
    background: #fff;
    position: sticky;
    top: 12px;
}
.summary-title {
    font-weight: 700;
    margin-bottom: 12px;
}
.summary-items {
    max-height: 240px;
    overflow-y: auto;
    border-bottom: 1px dashed #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.summary-items .cart-item-row {
    font-size: 0.95rem;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.summary-note {
    font-size: 0.75rem;
    color: #64748b;
}
.checkout-account-card {
    margin-bottom: 0;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.close-modal-btn {
    color: #94a3b8;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal-btn:hover,
.close-modal-btn:focus {
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
}
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #e5e7eb;
    gap: 12px;
}
.cart-item-row:last-child {
    border-bottom: none;
}
.quantity-controls button {
    background-color: #febd69;
    color: #111827;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}
.quantity-controls button:hover {
    background-color: #f3a847;
}
.remove-item-btn {
    background-color: #ef4444;
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}
.remove-item-btn:hover {
    background-color: #dc2626;
}
.cart-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Drawer Menu Styles */
.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
    z-index: 90;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.drawer-menu.open {
    transform: translateX(0);
}
.drawer-close-btn {
    align-self: flex-end;
    font-size: 2.5rem;
    color: #111827;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: color 0.3s;
}
.drawer-close-btn:hover {
    color: #0f172a;
}
.drawer-nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: left;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 0.5rem;
}
.drawer-nav-links a:hover {
    color: #111827;
    background-color: rgba(0, 0, 0, 0.06);
}

/* Hamburger Icon */
.hamburger-icon {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    display: block;
}

@media (max-width: 767px) {
    .header-nav-links {
        display: none;
    }
    .hamburger-icon {
        display: block;
    }
    .product-gallery {
        grid-template-columns: 1fr;
    }
    .product-thumbs {
        flex-direction: row;
        order: 2;
    }
    .zoom-result {
        position: static;
        margin-top: 16px;
        height: 260px;
        width: 100%;
    }
    .modal-content {
        padding: 1.5rem;
        width: 92%;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-page {
        grid-template-columns: 1fr;
    }
    .cart-item-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (min-width: 768px) {
    .header-nav-links {
        display: flex !important;
        flex-direction: row !important;
    }
    .hamburger-icon {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

