/* ── CSS VARIABLES & RESET ────────────────────────────────────────────────── */

:root {
    --color-primary: #1A1A1A;
    --color-secondary: #f5f0eb;

    --color-accent: #ab5e4f;
    --color-text: #2c2c2c;
    --color-white: #ffffff;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', sans-serif;
}

/* hidden attribute always wins over display rules */
[hidden] { display: none !important; }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
}

.field-error {
    border-color: #c0392b !important;
}

.error-msg {
    display: block;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-secondary);
    color: var(--color-text);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

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

a:hover {
    color: var(--color-accent);
}


/* ── HEADER & NAV ─────────────────────────────────────────────────────────── */

#site-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-align: center;
    position: relative;
    z-index: 199;
}

#site-banner button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

#site-banner button:hover {
    opacity: 1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 200;
}

.logo {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 400;
}

.logo i {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--color-white);
    font-size: 1rem;
}

nav a:hover {
    color: var(--color-accent);
}

nav a.nav-active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 2px;
}

.cart-icon {
    position: relative;
    display: inline-block;
}

@keyframes cart-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    60%  { transform: scale(0.9); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cart-bounce 0.45s ease forwards;
}

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


/* ── FOOTER ───────────────────────────────────────────────────────────────── */

footer {
    display: flex;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 2rem;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

footer address {
    font-style: normal;
    line-height: 1.8;
}

footer h3 {
    color: #d4907f;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

footer a {
    color: var(--color-white);
}

footer a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


/* ── PAGE HERO (menu, about, contact, etc.) ───────────────────────────────── */

.page-hero {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    padding: 3rem 2rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}


/* ── HERO (homepage only) ─────────────────────────────────────────────────── */

.hero {
    background-image: url('images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    padding: 10rem 2rem 12rem;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
          to bottom,
          rgba(0,0,0,0.2) 0%,
          rgba(0,0,0,0.65) 100%
      );
}

.hero h1,
.hero p,
.hero .btn {
    position: relative;
    z-index: 1;
}

.hero .btn {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 9999px;
    padding: 0.85rem 2.25rem;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

.hero .btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero h1::before {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 0 auto 1.25rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}


/* ── ABOUT BLURB (homepage "Our Story") ──────────────────────────────────── */

.about-blurb {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.about-blurb-inner {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-blurb-inner img {
    flex-shrink: 0;
    width: 50%;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    object-fit: cover;
    height: 400px;
}

.about-blurb-text {
    flex: 1;
}

.about-blurb h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-blurb p {
    font-size: 1.1rem;
    line-height: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-blurb a {
    color: var(--color-primary);
    text-decoration: underline;
}

.about-blurb a:hover {
    color: var(--color-accent);
}

@media (max-width: 600px) {
    .about-blurb-inner {
        flex-direction: column;
    }
    .about-blurb-inner img {
        width: 100%;
        height: 250px;
    }
}

/* ── WHY US (homepage) ────────────────────────────────────────────────────── */

.why-us {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--color-white);
}

.why-us h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.why-us-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .why-us-grid {
        flex-direction: column;
    }
}

.why-us-card {
    flex: 1;
    padding: 2rem;
}

.why-us-card i {
    font-size: 1.5rem;
    color: var(--color-white);
    background-color: var(--color-accent);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.why-us-card h3 {
    margin-bottom: 0.5rem;
}


/* ── FEATURED ITEMS (homepage) ────────────────────────────────────────────── */

.menu-preview {
    padding: 4rem 2rem;
    background-color: var(--color-secondary);
    text-align: center;
}

.menu-preview h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.featured-filters-wrapper {
    position: relative;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: 2rem;
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-secondary);
}

.featured-filters-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 2px;
    width: 4rem;
    background: linear-gradient(to right, transparent, var(--color-white));
    pointer-events: none;
}

.featured-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 2rem;
}

.featured-filters::-webkit-scrollbar {
    display: none;
}

.featured-filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
}

.featured-filter-btn:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.featured-filter-btn.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.menu-preview a:not(.btn) {
    background-color: transparent;
    color: inherit;
}

.menu-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.menu-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.menu-card.sold-out {
    opacity: 0.6;
}

.menu-card.sold-out:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-card .add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.sold-out-badge {
    display: none;
}

.badge-ships {
    background-color: #2a6496;
    color: #fff;
}

.menu-card-img-wrapper {
    position: relative;
}

.menu-card-badges {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.item-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #1a1a1a;
    color: white;
    width: fit-content;
}

.badge-fresh, .badge-best-seller, .badge-new,
.badge-limited, .badge-staff-pick, .badge-seasonal {
    background: #1a1a1a;
    color: white;
}

.menu-card a {
    flex: 1;
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-card > a p {
    flex-grow: 1;
}

.menu-card .add-to-cart {
    margin-top: auto;
}

.menu-card h3 {
    padding: 1rem 1rem 0.5rem;
}

.menu-card p {
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.menu-card-price {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent);
    text-align: left;
}

.btn {
    display: inline-block;
    margin-top: 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.add-to-cart {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    padding: 0.6rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: var(--color-accent);
}


/* ── REVIEWS CAROUSEL (homepage) ─────────────────────────────────────────── */

.reviews {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--color-white);
}

.reviews h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.reviews-carousel {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.reviews-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.reviews-track {
    display: flex;
    transition: transform 0.4s ease;
}

.review-card {
    min-width: 100%;
    padding: 2.5rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-sizing: border-box;
}

.carousel-btn {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--color-accent);
}

.reviews-disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
}

.stars {
    color: var(--color-accent);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.75rem;
}

blockquote {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}

cite {
    font-size: 0.9rem;
    color: #666;
}


/* ── SEARCH ───────────────────────────────────────────────────────────────── */

.search-wrapper {
    position: relative;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

#menu-search {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 9999px;
    outline: none;
    color: var(--color-white);
}

#menu-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#menu-search:focus {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: none;
}

#menu-search:-webkit-autofill,
#menu-search:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px rgba(20, 20, 20, 0.85) inset;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
}

#search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-secondary);
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
}

#search-results a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--color-text);
}

#search-results a:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

#search-results li.active a {
    background-color: var(--color-white);
    color: var(--color-primary);
}

#search-results li + li {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.result-left {
    display: flex;
    align-items: center;
}

.result-name {
    font-weight: 600;
    font-family: var(--font-body);
}

.result-category {
    font-size: 0.85rem;
    color: var(--color-accent);
}

.result-sold-out {
    font-size: 0.75rem;
    color: #e74c3c;
    font-weight: 700;
    margin-left: auto;
}

.no-results {
    display: block;
    padding: 0.75rem 1rem;
    color: #666;
    font-size: 0.95rem;
}


/* ── MENU NAV & CATEGORY FILTER (menu.html) ───────────────────────────────── */

.menu-nav-wrapper {
    position: sticky;
    top: 3.8rem;
    z-index: 100;
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-secondary);
}

.menu-nav-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5rem;
    background: linear-gradient(to right, transparent, var(--color-white));
    pointer-events: none;
}

.menu-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.menu-nav::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid transparent;
}

.filter-btn:hover {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.filter-btn.active {
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
}

.desserts,
.breakfast,
.savory,
.beverages,
.gifts,
.merchandise {
    padding: 3rem 2rem;
}

.desserts h2,
.breakfast h2,
.savory h2,
.beverages h2,
.gifts h2,
.merchandise h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.menu-grid a {
    background-color: transparent;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.menu-grid .menu-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.menu-grid .menu-card a p {
    flex-grow: 1;
}

.menu-grid .menu-card .add-to-cart {
    margin-top: auto;
}




/* ── PRODUCT DETAIL ───────────────────────────────────────────────────────── */

.product-detail {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.product-detail img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.product-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-detail .price {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.product-detail p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-detail .quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--color-text);
    border-radius: 4px;
}

.product-detail .back-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-text);
    text-decoration: underline;
}

.product-detail label[for="special-instructions"] {
    display: block;
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.product-detail #special-instructions {
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-text);
    border-radius: 4px;
    resize: vertical;
    min-height: 90px;
    margin-bottom: 1.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-size: 1rem;
}

.product-rating .rating-score {
    font-weight: bold;
    color: var(--color-text);
}

.product-rating .rating-count {
    color: #666;
    font-size: 0.9rem;
}

.rating-widget {
    margin-bottom: 1rem;
}

.rating-widget-label {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.4rem;
}

.rating-stars-input {
    display: flex;
    gap: 0.25rem;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-accent);
    padding: 0;
    line-height: 1;
    transition: transform 0.1s;
}

.star-btn:hover { transform: scale(1.2); }

.rating-widget-status {
    font-size: 0.8rem;
    color: #888;
    margin: 0.3rem 0 0;
    min-height: 1em;
}

.rating-login-prompt {
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 1rem;
}

.card-stars {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--color-accent);
    padding: 0 1rem;
    margin: -0.5rem 0 0.5rem;
}

.card-rating-count {
    color: #888;
    font-size: 0.7rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-text);
}

.product-meta .meta-divider {
    color: #666;
}

.product-allergens {
    font-size: 0.9rem;
    color: #5a4a44;
    background: #f0e8e5;
    border-left: 3px solid var(--color-accent);
    padding: 0.6rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.product-allergens i {
    color: var(--color-accent);
    margin-right: 0.3rem;
}

.product-fulfillment {
    font-size: 0.9rem;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

.product-fulfillment i {
    margin-right: 0.3rem;
}

.cart-item-instructions {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ── PRODUCT DETAIL ───────────────────────────────────────────────────────── */
.paired-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.75rem 0 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-top: 1rem;
}

.paired-carousel::-webkit-scrollbar {
    display: none;
}

.paired-carousel .menu-card {
    flex: none;
    width: 200px;
    scroll-snap-align: start;
}

.paired-carousel .menu-card img {
    height: 150px;
}

#paired-items {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-accent);
}

/* ── ABOUT PAGE ───────────────────────────────────────────────────────────── */

.about-story {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.about-story h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-story p {
    font-size: 1.1rem;
    line-height: 1.8rem;
    margin-bottom: 1.2rem;
}

.meet-team {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--color-white);
}

.meet-team h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--color-accent);
}

.team-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 8px;
    padding: 1rem;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.team-card-cta {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.team-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    animation: modal-fade-in 0.2s ease;
}

.team-modal-overlay[hidden] {
    display: none;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.team-modal {
    background: white;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: modal-slide-up 0.25s ease;
}

@keyframes modal-slide-up {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.team-modal img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.team-modal-body {
    padding: 1.5rem;
}

.team-modal-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.team-modal-role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-modal-body p:last-child {
    color: #555;
    line-height: 1.7;
}

.team-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-open {
    overflow: hidden;
}


/* ── CONTACT & EVENTS FORMS ───────────────────────────────────────────────── */

.contact-form {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-text);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-white);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.checkbox-label input[type="checkbox"] {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.contact-form button[type="submit"] {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-family: var(--font-body);
}

.contact-form button[type="submit"]:hover {
    background-color: var(--color-accent);
}

#forms {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: flex-start;
}


/* ── LOCATION & HOURS ─────────────────────────────────────────────────────── */

.location {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.location h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.location address {
    font-style: normal;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.location iframe {
    width: 100%;
    border-radius: 8px;
}

.hours {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.hours h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

.hours th {
    padding: 0.5rem 1rem;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-secondary);
}

.hours td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-secondary);
    font-size: 1.1rem;
}

.hours tbody tr:last-child td {
    border-bottom: none;
}

.hours-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}


/* ── EMPLOYMENT ───────────────────────────────────────────────────────────── */

.employment {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.employment h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.employment h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.employment p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.employment ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.employment ul li::before {
    content: "✦ ";
    color: var(--color-accent);
}

.employment a {
    color: var(--color-accent);
    text-decoration: underline;
}


/* ── EVENTS ───────────────────────────────────────────────────────────────── */

.events-hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
}

.events-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.events-hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.events-hero .btn {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.events-tabs {
    max-width: 700px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.tab-select {
    display: none;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 2px solid var(--color-secondary);
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--color-text);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--color-accent);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom: 3px solid var(--color-accent);
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* ── CART & CHECKOUT ──────────────────────────────────────────────────────── */

.cart-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

#cart-empty-msg {
    text-align: center;
    padding: 5rem 2rem;
}

#cart-empty-msg i {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    display: block;
}

#cart-empty-msg h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

#cart-empty-msg p {
    color: #666;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    gap: 1rem;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-name {
    font-weight: 600;
}

.cart-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.cart-item-link:hover .cart-item-name {
    color: var(--color-accent);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-accent);
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--color-accent);
    color: white;
}

.cart-item-price {
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.remove-item {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.remove-item:hover {
    color: #333;
}

.cart-summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #555;
}

.cart-summary-divider {
    border-top: 1px solid #eee;
    margin: 0.75rem 0;
}

.cart-summary-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
}

.cart-summary-total span:last-child {
    color: var(--color-accent);
}

.btn-gold {
    background-color: var(--color-accent);
    color: white;
    margin-top: 0;
}

.btn-gold:hover {
    background-color: #b8923e;
    color: white;
}

#clear-cart {
    display: block;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    font-family: inherit;
    border-radius: 9999px;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}

#clear-cart:hover {
    background: var(--color-primary);
    color: white;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 2rem;
    align-items: start;
}

.checkout-form-section h2,
.checkout-summary h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.checkout-form-section h2:first-child {
    margin-top: 0;
}

.checkout-form-section label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    font-size: 0.95rem;
}

.checkout-form-section input[type="text"],
.checkout-form-section input[type="email"],
.checkout-form-section input[type="tel"],
.checkout-form-section input[type="date"],
.checkout-form-section select,
.checkout-form-section textarea {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
    color: #2c2c2c;
}

.ship-blocked-msg {
    font-size: 0.85rem;
    color: #b85c00;
    background: #fff4e5;
    border: 1px solid #f5c97a;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0 0.75rem;
}

.address-row {
    display: grid;
    grid-template-columns: 1fr auto 80px;
    gap: 0.5rem;
}

.address-row input,
.address-row select {
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .address-row {
        grid-template-columns: 1fr 1fr;
    }
    .address-row input:first-child {
        grid-column: 1 / -1;
    }
}

.points-earned-msg {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
}

.tip-options {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tip-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.tip-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tip-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

#custom-tip {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
    margin-top: 0.4rem;
    margin-bottom: 1.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.95rem;
    color: #555;
}

.checkout-grand-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.checkout-grand-total span:last-child {
    color: var(--color-accent);
}

.fulfillment-options {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.fulfillment-options label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

#card-element {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    background: white;
}

#card-errors {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    min-height: 1.2rem;
}

.coupon-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-row input {
    flex: 1;
    margin-bottom: 0 !important;
}

.btn-apply {
    padding: 0.65rem 1.25rem;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-apply:hover {
    background: #D4a853;
}

#coupon-message {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.min-order-warning {
    margin-top: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: #fff8ed;
    border: 1px solid #f0c97a;
    border-radius: 6px;
    color: #9a6a00;
    font-size: 0.875rem;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-summary {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

#checkout-upsell,
#cart-upsell {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-accent);
}

#checkout-upsell h3,
#cart-upsell h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}


@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-cards,
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .checkout-container {
        grid-template-columns: minmax(0, 1fr); /* 0 minimum prevents cell expanding beyond viewport */
        gap: 1.5rem;
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    /* Show order summary above the form on mobile */
    .checkout-summary {
        order: -1;
        position: static;
        padding: 1.25rem;
        min-width: 0; /* lets the grid cell shrink so overflow-x: auto works on carousel */
    }

    /* Compact upsell cards in the narrow checkout summary panel */
    #checkout-upsell .paired-carousel .menu-card {
        width: 150px;
    }

    #checkout-upsell .paired-carousel .menu-card img {
        height: 110px;
    }

    .checkout-form-section h2,
    .checkout-summary h2 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.75rem;
    }

    .checkout-form-section h2:first-child {
        margin-top: 0;
    }

    .fulfillment-options {
        gap: 0;
        flex-direction: column;
    }

    .fulfillment-options label {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }

    .tip-options {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .tip-btn {
        padding: 0.6rem 0.25rem;
        font-size: 0.9rem;
        text-align: center;
    }

    .coupon-row {
        flex-direction: row;
    }

    .checkout-form-section input[type="text"],
    .checkout-form-section input[type="email"],
    .checkout-form-section input[type="tel"],
    .checkout-form-section input[type="date"],
    .checkout-form-section select,
    .checkout-form-section textarea,
    #custom-tip {
        font-size: 16px; /* prevents iOS zoom-on-focus */
        margin-bottom: 1rem;
    }
}

#order-confirmation {
    text-align: center;
    padding: 3rem 0;
}

#order-confirmation i {
    font-size: 3rem;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1rem;
}

.checkmark-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
}

.checkmark-svg {
    width: 72px;
    height: 72px;
}

.checkmark-circle {
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: var(--color-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}

@keyframes stroke {
    to { stroke-dashoffset: 0; }
}

#order-confirmation h2 {
    margin-bottom: 0.75rem;
}

#order-confirmation p {
    color: #666;
    margin-bottom: 2rem;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: inherit;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}


/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ── HAMBURGER NAV TOGGLE ─────────────────────────────────────────────────── */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 301;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hide nav link icons on desktop — only shown in mobile slide-out */
nav a:not(.nav-account):not(.cart-icon) i {
    display: none;
}


/* ── RESPONSIVE / MEDIA QUERIES ───────────────────────────────────────────── */

@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    /* Fixed so it always sits above the nav panel and overlay */
    .nav-toggle {
        display: flex;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 400;
    }

    nav:not(.menu-nav):not(.footer-nav) {
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%;
        max-width: 280px;
        height: 100dvh;
        background: var(--color-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        font-size: 1.1rem;
        transition: right 0.3s ease;
        z-index: 300;
        box-shadow: -4px 0 24px rgba(0,0,0,0.25);
        overflow-y: auto;
    }

    nav.nav-open:not(.menu-nav):not(.footer-nav) {
        right: 0;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 299;
        cursor: pointer;
    }

    .nav-overlay.visible {
        display: block;
    }

    nav a.nav-active {
        border-bottom-width: 1px;
    }

    /* Show icons on all nav links in the mobile slide-out */
    nav a:not(.nav-account):not(.cart-icon) {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    nav a:not(.nav-account):not(.cart-icon) i {
        display: inline;
        width: 1.1rem;
        text-align: center;
        opacity: 0.85;
    }

    /* Add text labels to icon-only nav links in the mobile panel */
    nav a.nav-account {
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }
    nav a.nav-account::after {
        content: "Account";
    }

    nav a.cart-icon {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        position: static;
    }
    nav a.cart-icon::after {
        content: "Cart";
        order: 1;
    }
    nav a.cart-icon .cart-count {
        order: 2;
        position: static;
        top: auto;
        right: auto;
        font-size: 0.75rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .menu-cards,
    .menu-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .employment ul {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .menu-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0.75rem 1rem;
    }

    .featured-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 1rem 1rem;
    }

    .filter-btn,
    .featured-filter-btn {
        font-size: 0.85rem;
        white-space: nowrap;
        border: 2px solid #ddd;
        border-radius: 20px;
        padding: 0.35rem 1rem;
        background: none;
    }

    .menu-nav .filter-btn.active,
    .featured-filters .featured-filter-btn.active {
        background-color: var(--color-accent);
        color: var(--color-white);
        border-color: var(--color-accent);
    }

    .menu-nav .filter-btn.active:hover,
    .featured-filters .featured-filter-btn.active:hover {
        color: var(--color-white);
    }

    .filter-btn:hover,
    .featured-filter-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
    }

    .product-detail input[type="number"] {
        width: 100%;
    }

    #forms {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-link {
        flex: 1 1 100%;
    }

    .cart-item-controls {
        margin-left: auto;
    }

    .cart-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    #clear-cart, .cart-actions .btn {
    width: 100%;
    text-align: center;
    }
}


/* ── PRIVACY POLICY ───────────────────────────────── */

.privacy-policy {
    max-width: 760px;
    margin: 60px auto;
    padding: 0 2rem 4rem;
}

.privacy-policy h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.privacy-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.privacy-policy h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-dark);
    margin: 2rem 0 0.5rem;
}

.privacy-policy p,
.privacy-policy li {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
}

.privacy-policy ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.privacy-policy a {
    color: var(--color-accent);
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}


/* ─────────────────────────────────────────
   ACCOUNT PAGE
───────────────────────────────────────── */

.nav-account {
    color: var(--color-white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-account:hover {
    color: var(--color-accent);
}

.account-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem 4rem;
}

.account-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 1.5rem;
}

.account-main {
    min-width: 0;
}

.account-section h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-body);
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab.active {
    color: var(--color-dark);
    border-bottom-color: var(--color-accent);
    font-weight: 700;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
    margin-top: 0.5rem;
}

.auth-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.auth-form .btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
}

.auth-error {
    color: #c0392b;
    font-size: 0.9rem;
    min-height: 1.2em;
    margin: 0;
}

.auth-success {
    color: #27ae60;
    font-size: 0.95rem;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 6px;
    margin-top: 1rem;
}

.auth-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    text-align: center;
}

.auth-hint a {
    color: var(--color-accent);
    text-decoration: none;
}

#reset-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#reset-form label {
    font-size: 0.95rem;
    color: #555;
}

#reset-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.rewards-explainer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fdf6ec;
    border-left: 4px solid #D4a853;
    border-radius: 0 10px 10px 0;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
}

.rewards-explainer-icon {
    font-size: 1.3rem;
    color: #D4a853;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.rewards-explainer-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.35rem;
    color: #2c1208;
}

.rewards-explainer-body {
    font-size: 0.85rem;
    color: #6b4c2a;
    margin: 0;
    line-height: 1.5;
}

.account-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(135deg, #2c1208 0%, #ab5e4f 100%);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(171,94,79,0.3);
    position: relative;
    overflow: hidden;
}

.account-header::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.account-header::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: 60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.account-header h1 {
    color: #fff !important;
}

.account-email {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.account-orders-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.btn-logout {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    color: rgba(255,255,255,0.85);
    font-family: var(--font-body);
    transition: background 0.2s, border-color 0.2s;
    width: 100%;
    text-align: center;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.55);
}

.subscription-account-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--color-accent);
}

.sub-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sub-card-header i {
    color: var(--color-accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sub-card-header strong {
    display: block;
    font-size: 1rem;
}

.sub-card-header span:not(.order-status-badge) {
    color: #888;
    font-size: 0.85rem;
}

.sub-card-detail {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

.btn-cancel-sub {
    background: none;
    border: 1px solid #ccc;
    color: #888;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    margin-top: 0.75rem;
    transition: border-color 0.2s, color 0.2s;
}

.btn-cancel-sub:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.points-card {
    background: linear-gradient(135deg, #1a1008 0%, #3d2a10 60%, #c0932f 100%);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 24px rgba(192,147,47,0.25);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.points-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.points-card::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: 80px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.points-icon {
    width: 48px;
    height: 48px;
    background: rgba(212,168,83,0.25);
    border: 1px solid rgba(212,168,83,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4a853;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.points-info {
    flex: 1;
}

.points-balance {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    line-height: 1;
    margin: 0;
}

.points-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin: 0.3rem 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.points-explainer {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

.points-hint {
    font-size: 0.85rem;
    color: #D4a853;
    font-weight: 600;
    margin: 0;
    text-align: right;
    position: relative;
    z-index: 1;
}

.points-redeem-row {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: #fffbf0;
    border: 1px solid #f0d878;
    border-radius: 8px;
}

.points-redeem-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #6b4e00;
    font-weight: 600;
    margin: 0;
}

.points-redeem-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-id {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.order-date {
    font-size: 0.85rem;
    color: #666;
}

.order-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    background: #f0f0f0;
    color: #555;
}

.order-status-fulfilled { background: #e8f5e9; color: #2e7d32; }
.order-status-pending   { background: #fff3e0; color: #e65100; }
.order-status-refunded  { background: #fce4ec; color: #c62828; }

.order-items {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #555;
}

.order-items li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-items li:last-child {
    border-bottom: none;
}

.order-total {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
    color: var(--color-dark);
}

.no-orders {
    color: #666;
    font-size: 0.95rem;
}

.no-orders a {
    color: var(--color-accent);
    text-decoration: none;
}

.account-stats-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stat-chip {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: var(--color-dark);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.account-nudge-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fdf8ee;
    border: 1px solid #f0d878;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 0.75rem 0;
}

.account-nudge-banner i {
    color: #c0932f;
    flex-shrink: 0;
}

.account-nudge-banner a {
    color: #c0932f;
    font-weight: 600;
    text-decoration: none;
}

.account-nudge-banner a:hover {
    text-decoration: underline;
}

.birthday-banner {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #f0d878;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #7a5c00;
    margin-bottom: 1.25rem;
    text-align: center;
}

.birthday-field-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.birthday-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.birthday-label i {
    color: var(--color-accent);
}

.birthday-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--color-text);
    max-width: 180px;
}

.birthday-saved {
    font-size: 0.82rem;
    color: #27ae60;
    font-weight: 600;
}

.account-top-items {
    margin-bottom: 1.5rem;
}

.account-top-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    margin: 0 0 0.5rem;
}

.account-top-items-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-item-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.top-item-rank {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.78rem;
}

.top-item-name {
    color: var(--color-text);
}

.top-item-count {
    color: #aaa;
    font-size: 0.8rem;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.btn-reorder {
    background: none;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-reorder:hover {
    background: var(--color-accent);
    color: #fff;
}

.account-saved-address {
    font-size: 0.85rem;
    color: #666;
    margin: 0.25rem 0 0;
}

.account-saved-address i {
    color: var(--color-accent);
}

.optional-label {
    font-weight: 400;
    color: #666;
    font-size: 0.85em;
}

.password-row {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.password-row input {
    flex: 1;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1rem;
}

.password-row input:focus {
    outline: none;
}

.btn-show-password {
    background: none;
    border: none;
    padding: 0 0.75rem;
    cursor: pointer;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.btn-show-password:hover {
    color: var(--color-dark);
}

.account-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 860px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .account-header h1 {
        font-size: 1.4rem;
    }

    .btn-logout {
        width: 100%;
    }

    .tab-buttons {
        display: none;
    }

    .tab-select {
        display: block;
        width: 100%;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        font-family: var(--font-body);
        font-size: 1rem;
        border: 1px solid var(--color-text);
        border-radius: 8px;
        background-color: var(--color-white);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232c2c2c' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        color: var(--color-text);
        margin-bottom: 2rem;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }
}
