/* ============================================
   ENAS' BAKERY - Luxury Design System
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
    --cream: #FFF8F0;
    --cream-light: #FFFDF9;
    --gold: #C8A96E;
    --gold-light: #D4BC8B;
    --gold-dark: #A8884E;
    --chocolate: #3C1F0E;
    --chocolate-light: #5A3420;
    --brown: #6B3A2A;
    --brown-light: #8B5A4A;
    --rose: #E8C4B8;
    --rose-light: #F2DDD4;
    --white: #FFFFFF;
    --black: #1A0E06;
    --gray: #9A8A7B;
    --gray-light: #D4C8BC;
    --overlay: rgba(60, 31, 14, 0.6);
    --shadow-sm: 0 2px 8px rgba(60, 31, 14, 0.08);
    --shadow-md: 0 4px 20px rgba(60, 31, 14, 0.12);
    --shadow-lg: 0 8px 40px rgba(60, 31, 14, 0.16);
    --shadow-gold: 0 4px 20px rgba(200, 169, 110, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;
    --font-accent: 'Cormorant Garamond', 'Georgia', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--chocolate);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--chocolate);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

ul { list-style: none; }

/* ---- Utility Classes ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-title p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    color: var(--gray);
    font-style: italic;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-fade-up { animation: fadeInUp 0.8s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.8s ease forwards; }
.animate-slide-right { animation: slideInRight 0.8s ease forwards; }

/* Intersection Observer animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 40px;
}

.navbar-brand span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand span {
    color: var(--chocolate);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar.scrolled .nav-links a {
    color: var(--chocolate);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
}

.cart-icon {
    position: relative;
    font-size: 1.3rem;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.navbar.scrolled .cart-icon {
    color: var(--chocolate);
}

.cart-icon:hover {
    color: var(--gold);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: var(--transition);
}

.cart-badge.show {
    transform: scale(1);
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2.5px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background: var(--chocolate);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 14, 6, 0.4) 0%,
        rgba(26, 14, 6, 0.2) 40%,
        rgba(26, 14, 6, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.3s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: var(--gold);
    font-style: italic;
}

.hero-content p {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
    max-width: 600px;
}

.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.2);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(200, 169, 110, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-chocolate {
    background: linear-gradient(135deg, var(--chocolate), var(--chocolate-light));
    color: var(--white);
}

.btn-chocolate:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ============================================
   SIGNATURE ITEMS SECTION
   ============================================ */
.signature-section {
    padding: 100px 0;
    background: var(--cream);
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.signature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.signature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.signature-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.signature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.signature-card:hover .signature-card-image img {
    transform: scale(1.08);
}

.signature-card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.signature-card-body {
    padding: 28px;
    text-align: center;
}

.signature-card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.signature-card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.signature-card-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
}

/* ============================================
   ABOUT / STORY SECTION
   ============================================ */
.story-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream-light), var(--cream));
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.story-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.story-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    transform: translate(16px, 16px);
    z-index: -1;
    opacity: 0.4;
}

.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.3;
}

.story-content h2 span {
    color: var(--gold);
    font-style: italic;
}

.story-content p {
    color: var(--brown-light);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-light);
}

.story-stat {
    text-align: center;
}

.story-stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
    display: block;
}

.story-stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--chocolate), var(--chocolate-light));
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.1) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 40px;
    position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 60px 0 30px;
    background: var(--black);
    color: var(--cream);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 60px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links a {
    display: block;
    color: var(--gray);
    padding: 4px 0;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 8px;
}

.footer-contact p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(200, 169, 110, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--gold);
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--chocolate), var(--brown));
    text-align: center;
    color: var(--white);
}

.products-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.products-hero p {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    flex-wrap: wrap;
    position: sticky;
    top: 70px;
    background: var(--cream);
    z-index: 100;
    border-bottom: 1px solid var(--gray-light);
}

.category-tab {
    padding: 10px 28px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--chocolate);
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.category-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* Products Grid */
.products-section {
    padding: 40px 0 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(60, 31, 14, 0.8);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-card-body {
    padding: 24px;
}

.product-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.product-card-body p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 700;
}

.product-price small {
    font-size: 0.75rem;
    color: var(--gray);
    font-family: var(--font-body);
    font-weight: 400;
}

.btn-add-cart {
    background: var(--chocolate);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--gold);
    transform: scale(1.05);
}

.btn-add-cart.added {
    background: var(--gold);
    animation: scaleIn 0.3s ease;
}

/* Addons selector on product card */
.product-addons {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
}

.product-addons summary {
    font-size: 0.85rem;
    color: var(--gold);
    cursor: pointer;
    font-weight: 500;
}

.product-addons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.addon-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--cream);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.addon-chip:hover {
    border-color: var(--gold);
}

.addon-chip.selected {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.addon-chip input {
    display: none;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 14, 6, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -460px;
    width: 440px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 2001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.2);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-close {
    background: none;
    font-size: 1.5rem;
    color: var(--gray);
    padding: 4px;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--chocolate);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-light);
    animation: fadeIn 0.3s ease;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-addons {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    border-radius: var(--radius-xl);
    padding: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--chocolate);
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.qty-value {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold);
    font-size: 1rem;
}

.cart-item-remove {
    background: none;
    color: var(--gray);
    font-size: 0.8rem;
    padding: 4px;
    transition: var(--transition);
    margin-left: 8px;
}

.cart-item-remove:hover {
    color: #e74c3c;
}

/* Cart Footer */
.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--gray-light);
    background: var(--cream-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cart-total-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-total-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-checkout:hover {
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 14, 6, 0.6);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    font-size: 1.5rem;
    color: var(--gray);
    padding: 4px;
}

.modal-close:hover {
    color: var(--chocolate);
}

.modal-body {
    padding: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--chocolate);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--cream-light);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
}

.form-actions button {
    flex: 1;
}

/* Order success message */
.order-success {
    text-align: center;
    padding: 40px 20px;
}

.order-success svg {
    width: 80px;
    height: 80px;
    color: #27ae60;
    margin-bottom: 16px;
}

.order-success h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--chocolate);
}

.order-success p {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 24px;
}

/* ============================================
   ADMIN LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--chocolate), var(--brown));
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.15), transparent);
    top: -100px;
    right: -100px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.1), transparent);
    bottom: -50px;
    left: -50px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease;
}

.login-card img {
    height: 80px;
    margin: 0 auto 24px;
}

.login-card h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.login-card p {
    color: var(--gray);
    margin-bottom: 32px;
}

.login-card .form-group {
    text-align: left;
}

.login-error {
    background: #fdf2f2;
    color: #e74c3c;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    display: none;
}

.login-error.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   ADMIN DASHBOARD
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--chocolate);
    color: var(--white);
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(200, 169, 110, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-brand img {
    height: 40px;
}

.admin-sidebar-brand span {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
}

.admin-nav {
    padding: 16px 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-body);
}

.admin-nav-link:hover {
    color: var(--white);
    background: rgba(200, 169, 110, 0.1);
}

.admin-nav-link.active {
    color: var(--gold);
    background: rgba(200, 169, 110, 0.15);
    border-right: 3px solid var(--gold);
}

.admin-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
    background: var(--cream);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.admin-header h1 {
    font-size: 1.8rem;
}

.admin-logout {
    background: none;
    border: 2px solid var(--gray-light);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    color: var(--gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-logout:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Dashboard Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.stat-card-icon.gold { background: rgba(200, 169, 110, 0.15); color: var(--gold); }
.stat-card-icon.green { background: rgba(39, 174, 96, 0.15); color: #27ae60; }
.stat-card-icon.blue { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.stat-card-icon.orange { background: rgba(243, 156, 18, 0.15); color: #f39c12; }

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.stat-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Admin Tables */
.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.admin-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-table-header h2 {
    font-size: 1.3rem;
}

.admin-table-container {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--cream);
    border-bottom: 1px solid var(--gray-light);
}

.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.95rem;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: var(--cream-light);
}

.admin-table .product-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.admin-btn-edit {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
}

.admin-btn-edit:hover {
    background: #3498db;
    color: var(--white);
}

.admin-btn-delete {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.admin-btn-delete:hover {
    background: #e74c3c;
    color: var(--white);
}

/* Order Status Badges */
.status-badge {
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending { background: rgba(243, 156, 18, 0.15); color: #f39c12; }
.status-preparing { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.status-ready { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.status-completed { background: rgba(39, 174, 96, 0.15); color: #27ae60; }

.status-select {
    padding: 6px 14px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: var(--font-body);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.status-select:focus {
    outline: none;
    border-color: var(--gold);
}

/* ============================================
   PAGE SPECIFIC - PRODUCTS NAVBAR
   ============================================ */
.navbar-dark .navbar-brand span,
.navbar-dark .nav-links a,
.navbar-dark .cart-icon,
.navbar-dark .hamburger span {
    /* override for pages with no hero */
}

.navbar.solid {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.navbar.solid .navbar-brand span { color: var(--chocolate); }
.navbar.solid .nav-links a { color: var(--chocolate); }
.navbar.solid .nav-links a:hover { color: var(--gold); }
.navbar.solid .cart-icon { color: var(--chocolate); }
.navbar.solid .hamburger span { background: var(--chocolate); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: var(--chocolate) !important;
        font-size: 1.1rem;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.15rem;
    }

    /* Signature */
    .signature-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Story */
    .story-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-stats {
        justify-content: center;
    }

    .story-image::after {
        display: none;
    }

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card-image {
        height: 160px;
    }

    .category-tabs {
        top: 60px;
        gap: 8px;
        padding: 20px 0;
    }

    .category-tab {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    /* Admin */
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        display: flex;
        overflow-x: auto;
        padding: 12px;
    }

    .admin-sidebar-brand {
        display: none;
    }

    .admin-nav {
        display: flex;
        padding: 0;
        gap: 4px;
    }

    .admin-nav-link {
        padding: 10px 16px;
        white-space: nowrap;
        font-size: 0.85rem;
        border-right: none !important;
        border-radius: var(--radius-sm);
    }

    .admin-nav-link.active {
        border-right: none !important;
        background: rgba(200, 169, 110, 0.2);
    }

    .admin-main {
        margin-left: 0;
        padding: 16px;
    }

    .admin-layout {
        flex-direction: column;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-table-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 200px;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ============================================
   LOADING & MISC
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--chocolate);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 5000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: #27ae60;
}

.toast.error {
    background: #e74c3c;
}

/* Admin mobile toggle */
.admin-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--white);
    z-index: 200;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-gold);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .admin-mobile-toggle {
        display: flex;
    }
}

/* Image upload in admin */
.image-upload {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 16px;
}

.image-upload:hover {
    border-color: var(--gold);
    background: var(--cream-light);
}

.image-upload input {
    display: none;
}

.image-upload p {
    color: var(--gray);
    font-size: 0.9rem;
}

.image-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin: 12px auto 0;
}
