/* ==========================================================================
   MENU DIGITAL - MODERN DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Variables & Root Design System
   -------------------------------------------------------------------------- */
:root {
    --primary: #FF6B35;
    --primary-hover: #E85A24;
    --primary-light: #FFF0EB;
    --secondary: #1E293B;
    --secondary-hover: #0F172A;
    --accent: #22C55E;
    --accent-light: #DCFCE7;
    
    --bg-main: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    
    --border-color: #E2E8F0;
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 10px 20px -5px rgba(255, 107, 53, 0.35);
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Layout
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    flex: 1;
    padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Bar
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), #FF914D);
    color: white;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.brand-name .highlight {
    color: var(--primary);
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
}

.nav-link i {
    font-size: 15px;
}

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

.nav-link.active {
    color: white;
    background: var(--primary);
    box-shadow: var(--shadow-primary);
}

.cart-badge-count {
    background-color: var(--secondary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

.nav-link.active .cart-badge-count {
    background-color: white;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-floating-btn {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-primary);
}

.cart-badge-count-mobile {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--secondary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.mobile-toggle-btn {
    display: none;
    background: transparent;
    font-size: 22px;
    color: var(--secondary);
    cursor: pointer;
    padding: 8px;
}

/* --------------------------------------------------------------------------
   4. Database Alert Banner
   -------------------------------------------------------------------------- */
.db-error-alert {
    margin-top: 20px;
}

.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.alert-warning {
    background-color: #FEF3C7;
    border: 1px solid #FCD34D;
    color: #92400E;
}

.alert-icon {
    font-size: 24px;
    color: #D97706;
}

.alert-content h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 700;
}

.alert-content p {
    font-size: 14px;
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   5. Hero & Search Banner Section
   -------------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: white;
    padding: 50px 20px 60px;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,53,0.2) 0%, rgba(255,107,53,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.2);
    color: #FF8C61;
    border: 1px solid rgba(255, 107, 53, 0.4);
    padding: 6px 16px;
    border-radius: var(--border-radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* Search Box */
.search-box {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    border-radius: var(--border-radius-pill);
    background-color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.search-input:focus {
    background-color: #FFFFFF;
    box-shadow: 0 10px 35px rgba(255, 107, 53, 0.3);
}

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

/* --------------------------------------------------------------------------
   6. Category Filter Bar
   -------------------------------------------------------------------------- */
.category-section {
    margin-bottom: 35px;
}

.category-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-btn i {
    font-size: 15px;
}

.category-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. Product Grid & Cards
   -------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 107, 53, 0.3);
}

.product-image-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #F1F5F9;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #FF6B35, #FF914D);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--border-radius-pill);
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4);
}

.rating-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #FBBF24;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--border-radius-pill);
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 6px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.product-price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
}

.add-cart-btn {
    background-color: var(--primary-light);
    color: var(--primary);
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    border: 1px dashed var(--border-color);
}

.empty-state-icon {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   8. Shopping Cart Page (keranjang.php)
   -------------------------------------------------------------------------- */
.cart-page-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-top: 30px;
}

.cart-items-card, .cart-summary-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.cart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.clear-cart-btn {
    background: transparent;
    color: #EF4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-cart-btn:hover {
    text-decoration: underline;
}

/* Cart Table */
.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    background-color: #F1F5F9;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    overflow: hidden;
    background-color: var(--bg-main);
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--secondary);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.qty-val {
    width: 34px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
}

.cart-item-subtotal {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--secondary);
    text-align: right;
    min-width: 90px;
}

.remove-item-btn {
    background: transparent;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    transition: var(--transition);
}

.remove-item-btn:hover {
    color: #EF4444;
}

/* Summary Form */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.form-label i {
    color: var(--primary);
    margin-right: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-main);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.payment-radio {
    display: none;
}

.payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-main);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.payment-label i {
    font-size: 18px;
}

.payment-radio:checked + .payment-label {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: var(--primary);
}

.summary-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.summary-row.total {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed var(--border-color);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), #FF914D);
    color: white;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    margin-top: 20px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.45);
}

/* --------------------------------------------------------------------------
   9. Order Status Page (pesanan.php)
   -------------------------------------------------------------------------- */
.order-header-banner {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.order-timeline-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.order-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.order-code-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--secondary);
    color: white;
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    font-size: 13px;
    font-weight: 700;
}

/* Timeline Indicator */
.status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 30px 0 20px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 3px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.timeline-step.completed .step-icon {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}

.timeline-step.active .step-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-primary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

.step-label {
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    color: var(--text-muted);
}

.timeline-step.active .step-label, .timeline-step.completed .step-label {
    color: var(--secondary);
}

/* Status Badges */
.status-pill {
    padding: 6px 14px;
    border-radius: var(--border-radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending { background: #FEF3C7; color: #D97706; }
.status-diproses { background: #DBEAFE; color: #2563EB; }
.status-selesai { background: #DCFCE7; color: #16A34A; }
.status-dibatalkan { background: #FEE2E2; color: #DC2626; }

/* --------------------------------------------------------------------------
   10. About Us Page (tentang.php)
   -------------------------------------------------------------------------- */
.about-hero {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, #0F172A 100%);
    color: white;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--secondary);
}

.about-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* FAQ Accordion */
.faq-section {
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-item {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    font-weight: 700;
    font-size: 15px;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 24px 18px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   11. Modal & Toast Components
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-md);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    position: relative;
    height: 220px;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--primary);
}

.modal-body {
    padding: 24px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--secondary);
    color: white;
    padding: 14px 22px;
    border-radius: var(--border-radius-pill);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    animation: slideIn 0.3s ease forwards;
    border-left: 4px solid var(--primary);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   12. Footer Section
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--secondary);
    color: white;
    padding-top: 60px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

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

.footer-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.hours-list li {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.tag-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    margin-top: 5px;
}

.contact-info li {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-info i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background-color: var(--bg-surface);
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        display: none;
    }
    
    .main-nav.show {
        display: flex;
    }
    
    .mobile-toggle-btn, .cart-floating-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas: 
            "img info"
            "controls subtotal";
        row-gap: 12px;
    }
    
    .cart-item-img { grid-area: img; }
    .cart-item-info { grid-area: info; }
    .cart-qty-controls { grid-area: controls; justify-self: start; }
    .cart-item-subtotal { grid-area: subtotal; justify-self: end; }
    
    .status-timeline {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    .status-timeline::before {
        top: 0;
        bottom: 0;
        left: 38px;
        width: 3px;
        height: 100%;
    }
    
    .timeline-step {
        flex-direction: row;
        width: 100%;
        gap: 16px;
    }
    
    .step-label {
        margin-top: 0;
    }
}