/* ═══════════════════════════════════════════════════════════════════════════
   Mahalli - Kuwait's Local Business Discovery Hub
   Modern, clean design with Kuwait-inspired colors
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    --primary-color: #007A5E;
    --primary-dark: #005A45;
    --secondary-color: #CE1126;
    --accent-color: #FFB81C;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

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

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Navigation ────────────────────────────────────────────────────────── */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* ─── Flash Messages ────────────────────────────────────────────────────── */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.flash {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

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

.flash-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.flash-danger {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: var(--transition);
}

.flash-close:hover {
    opacity: 1;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ─── Hero Section ──────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Page Header ───────────────────────────────────────────────────────── */
.page-header {
    background: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ─── Sections Grid ─────────────────────────────────────────────────────── */
.sections-grid {
    padding: 4rem 0;
    background: var(--bg-white);
}

.sections-grid h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.sections-grid .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.section-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.section-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ─── Business Cards ────────────────────────────────────────────────────── */
.featured-section,
.new-brands-section,
.category-businesses,
.section-businesses,
.explore-results {
    padding: 4rem 0;
}

.featured-section h2,
.new-brands-section h2,
.category-businesses h2,
.section-businesses h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
}

.view-all:hover {
    text-decoration: underline;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.business-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.business-card-header {
    padding: 1rem;
    min-height: 50px;
}

.business-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-women {
    background: #fce4ec;
    color: #c2185b;
}

.badge-home {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-limited {
    background: #fff3e0;
    color: #e65100;
}

.badge-new {
    background: #e3f2fd;
    color: #1565c0;
}

.business-card-body {
    padding: 1rem;
    flex-grow: 1;
}

.business-card-body h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.business-category,
.business-category-tag {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.business-description {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.business-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.business-founder {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
}

.business-order-models {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.order-badge {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.business-card-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

/* ─── Categories ────────────────────────────────────────────────────────── */
.categories-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.categories-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ─── CTA Section ───────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ─── Explore Page ──────────────────────────────────────────────────────── */
.explore-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.filters-sidebar {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.filter-option:hover {
    background: var(--bg-light);
}

.filter-option input[type="radio"] {
    margin-right: 0.5rem;
}

.results-info {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ─── Business Profile ──────────────────────────────────────────────────── */
.business-header {
    background: var(--bg-white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.business-header-info h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.business-description-large {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.business-badges-large {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.business-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

.meta-icon {
    font-size: 1.2rem;
}

.business-order-models-large {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.business-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ─── Brand Story ───────────────────────────────────────────────────────── */
.brand-story {
    padding: 4rem 0;
    background: var(--bg-light);
}

.story-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.founder-info {
    margin-top: 3rem;
}

.founder-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.founder-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.founder-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.founder-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ─── Products ──────────────────────────────────────────────────────────── */
.products-section {
    padding: 4rem 0;
}

.products-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-status {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-unavailable {
    opacity: 0.6;
}

.products-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ─── Related Section ───────────────────────────────────────────────────── */
.related-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.related-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* ─── Order Page ────────────────────────────────────────────────────────── */
.order-section {
    padding: 2rem 0;
}

.order-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.order-form-container {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 94, 0.1);
}

.order-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.order-type-option {
    cursor: pointer;
}

.order-type-option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.order-type-option input[type="radio"]:checked + .option-content {
    border-color: var(--primary-color);
    background: rgba(0, 122, 94, 0.05);
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.option-label {
    font-weight: 600;
    color: var(--text-dark);
}

.products-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.product-selection-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.product-selection-info p {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-selection-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input {
    width: 70px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-products {
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
}

/* ─── Order Summary ─────────────────────────────────────────────────────── */
.order-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.summary-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.summary-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-business {
    margin-bottom: 1rem;
}

.summary-business h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.summary-business p {
    color: var(--text-light);
    font-size: 0.9rem;
}

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

.summary-empty {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.summary-item-info {
    flex: 1;
}

.summary-item-name {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
}

.summary-item-qty {
    color: var(--text-light);
    font-size: 0.85rem;
}

.summary-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ─── Order Confirmation ────────────────────────────────────────────────── */
.confirmation-section {
    padding: 4rem 0;
}

.confirmation-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.confirmation-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.confirmation-card h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.confirmation-message {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.order-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    text-align: left;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    font-weight: 600;
}

.detail-value {
    color: var(--text-dark);
}

.order-items-section {
    margin: 2rem 0;
    text-align: left;
}

.order-items-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.order-items-list {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.order-item-info {
    display: flex;
    gap: 0.5rem;
}

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

.item-qty {
    color: var(--text-light);
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.total-label {
    color: var(--text-dark);
}

.total-value {
    color: var(--primary-color);
}

.order-notes {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    text-align: left;
}

.order-notes h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.confirmation-info {
    margin: 2rem 0;
}

.info-box {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: left;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-box ul {
    list-style-position: inside;
    color: var(--text-dark);
}

.info-box li {
    margin-bottom: 0.5rem;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── About Page ────────────────────────────────────────────────────────── */
.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-section p {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-dark);
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.value-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-item p {
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ─── Error Pages ───────────────────────────────────────────────────────── */
.error-section {
    padding: 6rem 0;
    text-align: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-content h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ─── Responsive Design ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .explore-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .sections-grid .grid {
        grid-template-columns: 1fr;
    }

    .confirmation-card {
        padding: 2rem 1rem;
    }

    .error-code {
        font-size: 5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    .page-header {
        padding: 2rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .nav-menu {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 0.5rem;
    }

    .flash-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}
