/**
 * MEATIOWA Customer Storefront - Stylesheet
 * Mobile-first responsive design for online ordering
 * Follows MEATIOWA rustic farmhouse design system
 */

/* ============================================
   CSS VARIABLES - MEATIOWA DESIGN SYSTEM
   ============================================ */
:root {
    /* Primary Colors */
    --barn-red: #8B2323;
    --barn-red-dark: #6B1A1A;
    --barn-red-light: #A52A2A;
    --cream: #FDF5E6;
    --cream-dark: #F5ECD5;
    --hay: #D4A84B;
    --hay-dark: #B8923F;
    --sage: #6B8E6B;
    --sage-dark: #5A7A5A;
    --wood-brown: #654321;

    /* Neutral Colors */
    --charcoal: #2C2C2C;
    --slate: #4A4A4A;
    --medium-gray: #6B6B6B;
    --light-gray: #E8E8E8;
    --off-white: #FAFAFA;
    --white: #FFFFFF;

    /* Status Colors */
    --success: #4A7C4A;
    --success-light: #E8F5E8;
    --warning: #D4A84B;
    --warning-light: #FFF8E8;
    --danger: #C53030;
    --danger-light: #FEE8E8;

    /* Typography */
    --font-heading: 'Bitter', Georgia, serif;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-handwritten: 'Caveat', cursive;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Layout */
    --header-height: 70px;
    --cart-width: 400px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream);
    min-height: 100vh;
}

a {
    color: var(--barn-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--barn-red-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    z-index: 100;
}

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

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

.logo-mark {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--barn-red);
    letter-spacing: 1px;
}

.logo-tagline {
    font-size: 0.65rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav {
    display: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.main-nav a {
    color: var(--slate);
    font-weight: 500;
    padding: var(--space-sm) 0;
    position: relative;
}

.main-nav a:hover {
    color: var(--barn-red);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--barn-red);
    transition: width var(--transition-fast);
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-btn,
.account-btn,
.mobile-menu-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.cart-btn:hover,
.account-btn:hover,
.mobile-menu-btn:hover {
    background: var(--cream);
    color: var(--barn-red);
}

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

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    min-height: 44px;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover {
    background: var(--barn-red-dark);
}

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

.btn-secondary:hover {
    background: var(--sage-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--barn-red);
    color: var(--barn-red);
}

.btn-outline:hover {
    background: var(--barn-red);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
    min-height: 52px;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.85rem;
    min-height: 36px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.store-hero {
    background: linear-gradient(135deg, var(--barn-red) 0%, var(--barn-red-dark) 100%);
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
    color: var(--white);
}

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.locker-search {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
}

.search-input-wrapper i {
    color: var(--barn-red);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: var(--space-sm);
    font-size: 1rem;
}

.locker-search .btn {
    background: var(--hay);
    color: var(--charcoal);
    font-weight: 700;
}

.locker-search .btn:hover {
    background: var(--hay-dark);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-title {
    text-align: center;
    font-size: 1.75rem;
    color: var(--charcoal);
    margin-bottom: var(--space-xl);
}

.title-decor {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--barn-red);
    font-size: 1.5rem;
}

/* ============================================
   LOCKER SELECTION
   ============================================ */
.locker-selection {
    padding: var(--space-xxl) 0;
}

.lockers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.locker-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

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

.locker-card-image {
    height: 160px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--barn-red);
    position: relative;
}

.locker-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.locker-card-badges {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    gap: var(--space-xs);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.usda {
    background: var(--success);
    color: var(--white);
}

.badge.organic {
    background: var(--sage);
    color: var(--white);
}

.locker-card-body {
    padding: var(--space-lg);
}

.locker-card-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.locker-card-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.locker-card-location i {
    color: var(--barn-red);
}

.locker-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

.locker-products-count {
    font-size: 0.85rem;
    color: var(--sage);
}

.locker-distance {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.loading-state {
    text-align: center;
    padding: var(--space-xxl);
    color: var(--medium-gray);
}

.loading-state i {
    font-size: 2rem;
    color: var(--barn-red);
    margin-bottom: var(--space-md);
    display: block;
}

/* ============================================
   STORE SECTION
   ============================================ */
.store-section {
    padding: var(--space-xl) 0 var(--space-xxl);
}

.store-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.store-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.store-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-lg);
    font-size: 2.5rem;
    color: var(--barn-red);
    flex-shrink: 0;
}

.store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.store-details {
    flex: 1;
}

.store-name {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.store-location {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.store-location i {
    color: var(--barn-red);
}

.store-badges {
    display: flex;
    gap: var(--space-sm);
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
}

.category-filter::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.category-btn:hover {
    border-color: var(--barn-red);
    color: var(--barn-red);
}

.category-btn.active {
    background: var(--barn-red);
    border-color: var(--barn-red);
    color: var(--white);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

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

.product-card-image {
    height: 140px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--barn-red);
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 4px 8px;
    background: var(--hay);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.product-card-body {
    padding: var(--space-md);
}

.product-card-category {
    font-size: 0.7rem;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.product-card-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-card-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--barn-red);
}

.product-card-unit {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

.product-card-add {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--barn-red);
    color: var(--white);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.product-card-add:hover {
    background: var(--barn-red-dark);
    transform: scale(1.1);
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: var(--cart-width);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--light-gray);
}

.cart-header h3 {
    font-size: 1.25rem;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-header h3 i {
    color: var(--barn-red);
}

.close-cart {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.close-cart:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    color: var(--medium-gray);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--barn-red);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
}

.cart-item-details {
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-bottom: var(--space-sm);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    color: var(--slate);
    transition: all var(--transition-fast);
}

.cart-item-qty button:hover {
    background: var(--barn-red);
    color: var(--white);
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--barn-red);
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--medium-gray);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.cart-item-remove:hover {
    background: var(--danger);
    color: var(--white);
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--light-gray);
    background: var(--off-white);
}

.cart-totals {
    margin-bottom: var(--space-lg);
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: var(--slate);
}

.total-row.fee-row {
    color: var(--sage);
}

.total-row.fee-row small {
    font-size: 0.7rem;
}

.total-row.grand {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 2px solid var(--light-gray);
}

.cart-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--medium-gray);
    margin-top: var(--space-md);
}

.cart-note i {
    color: var(--sage);
    margin-right: var(--space-xs);
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-full);
    color: var(--slate);
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--cream);
    color: var(--charcoal);
}

.product-detail {
    display: flex;
    flex-direction: column;
}

.product-detail .product-image {
    height: 200px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--barn-red);
}

.product-detail .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail .product-info {
    padding: var(--space-xl);
}

.product-detail .product-category {
    font-size: 0.75rem;
    color: var(--sage);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
}

.product-detail .product-name {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.product-detail .product-description {
    color: var(--medium-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.product-detail .product-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--barn-red);
}

.product-detail .product-unit {
    font-size: 1rem;
    color: var(--medium-gray);
}

.product-stock {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--success);
    margin-bottom: var(--space-lg);
}

.product-stock.low {
    color: var(--warning);
}

.product-stock.out {
    color: var(--danger);
}

.quantity-selector,
.weight-input {
    margin-bottom: var(--space-lg);
}

.quantity-selector label,
.weight-input label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: var(--space-sm);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.qty-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-md);
    color: var(--charcoal);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

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

.qty-controls input {
    width: 60px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

.weight-input input {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
}

.weight-input input:focus {
    outline: none;
    border-color: var(--barn-red);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--charcoal);
    color: var(--white);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo-mark {
    color: var(--white);
    font-size: 1.75rem;
    display: block;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: var(--medium-gray);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
    color: var(--hay);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--medium-gray);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--slate);
    text-align: center;
}

.footer-bottom p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.footer-bottom .tagline {
    font-family: var(--font-handwritten);
    font-size: 1.25rem;
    color: var(--hay);
    margin-top: var(--space-sm);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: calc(100% - var(--space-lg) * 2);
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

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

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--hay); }

.toast i {
    font-size: 1.25rem;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--hay); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--charcoal);
}

.toast-message {
    font-size: 0.85rem;
    color: var(--medium-gray);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (min-width: 640px) {
    .locker-search {
        flex-direction: row;
    }

    .search-input-wrapper {
        flex: 1;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

@media (min-width: 768px) {
    .main-nav {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .store-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .product-detail {
        flex-direction: row;
    }

    .product-detail .product-image {
        width: 280px;
        height: auto;
        min-height: 300px;
    }

    .product-detail .product-info {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .lockers-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
#checkout-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header-section {
    text-align: center;
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--cream);
    margin-bottom: var(--space-lg);
}

.modal-header-section h2 {
    color: var(--barn-red);
    margin-bottom: var(--space-sm);
}

.checkout-locker {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.checkout-section {
    margin-bottom: var(--space-xl);
}

.checkout-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--cream);
}

.checkout-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: var(--space-md);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--cream);
}

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

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

.checkout-item-name {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.checkout-item-qty {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.checkout-item-price {
    font-weight: 600;
    color: var(--barn-red);
}

.checkout-totals {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.checkout-totals .total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-xs) 0;
}

.checkout-totals .fee-row {
    font-size: 0.85rem;
    color: var(--sage);
}

.checkout-totals .fee-row small {
    opacity: 0.8;
}

.checkout-totals .grand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--barn-red);
    border-top: 2px solid var(--barn-red);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
}

.pickup-info-box {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.pickup-info-box i {
    font-size: 1.5rem;
    color: var(--barn-red);
    margin-top: var(--space-xs);
}

.pickup-info-box strong {
    display: block;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.pickup-info-box p {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin: 0;
}

.checkout-actions {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--cream);
}

.checkout-actions .btn-outline {
    flex: 0 0 auto;
}

.checkout-actions .btn-primary {
    flex: 1;
}

/* Confirmation Section */
.confirmation-content {
    text-align: center;
    padding: var(--space-xl) 0;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--sage);
    margin-bottom: var(--space-lg);
}

.confirmation-icon i {
    animation: confirmPop 0.5s ease-out;
}

@keyframes confirmPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation-content h2 {
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.order-number {
    font-family: var(--font-mono, monospace);
    font-size: 1.25rem;
    color: var(--barn-red);
    background: var(--cream);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: var(--space-md);
}

.confirmation-message {
    color: var(--medium-gray);
    margin-bottom: var(--space-xl);
}

.confirmation-details {
    text-align: left;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.confirmation-details h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.confirmation-details .pickup-info-box {
    background: var(--white);
}

.pickup-note {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    font-size: 0.9rem;
    color: var(--sage);
    margin: 0;
}

.pickup-note i {
    font-size: 1rem;
}

.confirmation-actions {
    margin-top: var(--space-lg);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--cream);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--barn-red);
    box-shadow: 0 0 0 3px rgba(139, 35, 35, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--medium-gray);
    opacity: 0.7;
}

/* ============================================
   USER MENU
   ============================================ */
.login-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--barn-red);
    color: var(--white);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--transition-fast);
}

.login-btn:hover {
    background: var(--barn-red-dark);
}

.login-btn span {
    display: none;
}

@media (min-width: 768px) {
    .login-btn span {
        display: inline;
    }
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--cream);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--charcoal);
    transition: background var(--transition-fast);
}

.user-menu-btn:hover {
    background: var(--cream-dark);
}

.user-menu-btn .user-name {
    display: none;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .user-menu-btn .user-name {
        display: inline;
    }
}

.user-menu-btn .fa-user-circle {
    font-size: 1.25rem;
    color: var(--barn-red);
}

.user-menu-btn .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.user-menu.open .fa-chevron-down {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: var(--space-sm) 0;
    display: none;
    z-index: 100;
}

.user-menu.open .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--charcoal);
    text-decoration: none;
    transition: background var(--transition-fast);
}

.user-dropdown a:hover {
    background: var(--cream);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--barn-red);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--cream-dark);
    margin: var(--space-sm) 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .cart-drawer,
    .cart-overlay,
    .site-footer {
        display: none;
    }
}
