:root {
    --pastry-cream: #FDFBF7;
    --pastry-gold: #D99B52;
    --pastry-rose: #E68A8A;
    --pastry-choco: #3E2723;
    --pastry-latte: #F5EBE0;
    --font-display: "Outfit", sans-serif;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

body {
    background-color: var(--pastry-cream);
    color: var(--pastry-choco);
    font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
}

a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #d99b52aa; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d99b52; }

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(62,39,35,0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--pastry-choco);
}
.brand i { color: var(--pastry-rose); }
.brand span { color: var(--pastry-gold); }
.nav-link {
    color: var(--pastry-choco) !important;
    font-weight: 500;
}
.nav-link:hover { color: var(--pastry-gold) !important; }

.btn-outline-account {
    border: 1px solid var(--pastry-latte);
    background: var(--pastry-latte);
    color: var(--pastry-choco);
    border-radius: 999px;
    padding: 0.4rem 1rem;
}
.btn-cart {
    background: var(--pastry-rose);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 42px;
    height: 42px;
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--pastry-choco);
    color: #fff;
    font-size: 0.65rem;
}

/* Buttons */
.btn-primary-bakery {
    background: var(--pastry-gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
}
.btn-primary-bakery:hover { background: #c1863f; color: #fff; }
.btn-outline-bakery {
    border: 1.5px solid var(--pastry-gold);
    color: var(--pastry-gold);
    border-radius: 8px;
    font-weight: 600;
    background: transparent;
}
.btn-outline-bakery:hover { background: var(--pastry-gold); color: #fff; }

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--pastry-latte), var(--pastry-cream));
}
.search-form {
    display: flex;
    max-width: 480px;
    gap: 0.5rem;
}

/* Category chips */
.category-chip {
    border: 1.5px solid var(--pastry-latte);
    background: #fff;
    color: var(--pastry-choco);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
}
.category-chip.active, .category-chip:hover {
    background: var(--pastry-gold);
    border-color: var(--pastry-gold);
    color: #fff;
}

/* Cake cards */
.cake-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(62,39,35,0.06);
    transition: transform 0.2s ease;
    height: 100%;
}
.cake-card:hover { transform: translateY(-4px); }
.cake-card-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.cake-card-img { width: 100%; height: 100%; object-fit: cover; }
.cake-card-body { padding: 0.9rem; }
.cake-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0.2rem 0 0.5rem;
    min-height: 2.4em;
}
.stock-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}
.stock-badge.out { background: #888; }
.stock-badge.low { background: var(--pastry-rose); }

/* Cake modal */
.cake-modal-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.badge-category {
    background: var(--pastry-latte);
    color: var(--pastry-choco);
    font-weight: 500;
}
.ingredient-list { list-style: none; padding: 0; font-size: 0.9rem; }
.ingredient-list li { margin-bottom: 0.25rem; }

.size-option input { display: none; }
.size-option span {
    display: inline-block;
    border: 1.5px solid var(--pastry-latte);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
}
.size-option input:checked + span {
    background: var(--pastry-gold);
    border-color: var(--pastry-gold);
    color: #fff;
}

.qty-control { display: inline-flex; align-items: center; }
.qty-input-modal { width: 60px; text-align: center; margin: 0 0.4rem; }

.review-item { border-bottom: 1px solid #f0eae2; padding-bottom: 0.75rem; }
.admin-reply { border-color: var(--pastry-gold) !important; color: #6b5b4e; }

/* Cart offcanvas */
.cart-offcanvas { width: 400px; }
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.text-gold { color: var(--pastry-gold); }

/* Auth / profile / checkout cards */
.auth-card, .profile-card, .order-summary-card, .order-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(62,39,35,0.06);
}
.auth-card { max-width: 460px; }
.order-card { padding: 1.25rem; }

.payment-methods { display: flex; flex-direction: column; gap: 0.6rem; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1.5px solid var(--pastry-latte);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    cursor: pointer;
}
.payment-option input:checked ~ span,
.payment-option:has(input:checked) {
    border-color: var(--pastry-gold);
    background: #fdf6ea;
}

.status-badge { font-weight: 600; text-transform: capitalize; }
.status-pending { background: #fff3cd; color: #856404; }
.status-preparing { background: #cfe2ff; color: #084298; }
.status-delivering { background: #e2d9f3; color: #4b2e83; }
.status-completed, .status-paid, .status-replied { background: #d1e7dd; color: #0f5132; }
.status-cancelled, .status-failed { background: #f8d7da; color: #842029; }
.status-unread { background: #f8d7da; color: #842029; }
.status-read { background: #e2e3e5; color: #41464b; }

.contact-info i { color: var(--pastry-gold); width: 20px; }

/* Footer */
.site-footer { background: var(--pastry-choco); color: #d8cfc7; margin-top: 4rem; }
.site-footer a { color: #d8cfc7; }
.site-footer a:hover { color: var(--pastry-gold); }
.site-footer h5, .site-footer h6 { color: #fff; }
