/* ===== CSS Variables (Honey Theme) ===== */
:root {
    --primary-gold: #F7B733;
    --secondary-gold: #FFDD57;
    --cream: #FFF8DC;
    --soft-brown: #8B7355;
    --dark-brown: #5D4E37;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --border-gray: #E0E0E0;
    --text-dark: #333333;
    --text-muted: #666666;
    --success: #4CAF50;
    --error: #F44336;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --bg-gradient: linear-gradient(135deg, #FFF8DC 0%, #FFEFD5 100%);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-gold: #F7B733;
    --secondary-gold: #FFDD57;
    --cream: #1e1e1e;
    --soft-brown: #c9b491;
    --dark-brown: #2a2a2a;
    --white: #0f0f0f;
    --light-gray: #1a1a1a;
    --border-gray: #333333;
    --text-dark: #e8e8e8;
    --text-muted: #999999;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.8);
    --bg-gradient: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ===== Header ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-gray);
}

body.dark-mode header {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #333;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    min-width: 0; /* Allow flex items to shrink below content size */
    width: 100%;
    box-sizing: border-box;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--soft-brown);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark-mode .logo {
    color: #ffffff;
    font-weight: 800;
}

.logo:hover {
    color: var(--primary-gold);
    transform: translateY(-1px);
}

/* Navigation - Always visible */
.nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s ease;
    padding: 10px 20px;
    border-radius: 8px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

body.dark-mode .nav-link {
    color: #e0e0e0;
    font-weight: 700;
}

.nav-link:hover {
    color: var(--primary-gold);
    background: var(--cream);
    transform: translateY(-1px);
}

body.dark-mode .nav-link:hover {
    background: #2a2a2a;
    color: var(--primary-gold);
}

/* Theme Toggle Button - High Contrast for Visibility */
.theme-toggle {
    background: #FFFFFF;
    border: 3px solid #2C1810;
    border-radius: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    padding: 0;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .theme-toggle {
    background: #2a2a2a;
    border: 3px solid #FFD700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.theme-toggle:hover {
    background: #F5F5F5;
    border-color: #000000;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* No rotation on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
    .theme-toggle:hover,
    .theme-toggle:active {
        transform: none;
        background: #FFFFFF;
        border-color: #2C1810;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    }
    
    body.dark-mode .theme-toggle:hover,
    body.dark-mode .theme-toggle:active {
        background: #3a3a3a;
        border-color: #FFD700;
        box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
    }
}

body.dark-mode .theme-toggle:hover {
    background: #3a3a3a;
    border-color: #FFC700;
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.5);
}

.theme-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    filter: none;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Light mode shows moon icon (dark color for visibility) */
body:not(.dark-mode) .theme-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232C1810'%3E%3Cpath d='M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1zm0-2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z'/%3E%3C/svg%3E");
}

/* Dark mode shows sun (bright yellow) */
body.dark-mode .theme-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700'%3E%3Cpath d='M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41L5.99 4.58zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41l-1.06-1.06zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0l1.06-1.06z'/%3E%3C/svg%3E");
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #F7B733 0%, #FC4A1A 100%);
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
    border-radius: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(247, 183, 51, 0.3);
    position: relative;
    overflow: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #D4940D 0%, #D93A0A 100%);
    box-shadow: 0 10px 40px rgba(217, 58, 10, 0.4);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    font-weight: 500;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.badge-icon {
    font-size: 1.3rem;
}

/* ===== Sections & Cards ===== */
.section {
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s, background 0.3s;
}

body.dark-mode .card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.dark-mode .section-title {
    color: #f0f0f0;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.section-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

body.dark-mode .section-note {
    color: #b0b0b0;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: var(--white);
    color: var(--text-dark);
}

body.dark-mode .form-input {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: var(--text-dark);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.1);
}

body.dark-mode .form-input:focus {
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.2);
}

.form-input:disabled {
    background: var(--light-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: var(--purple-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-disabled {
    background: #9e9e9e !important;
    color: #ffffff !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
}

.btn-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

body.dark-mode .btn-disabled {
    background: #4a4a4a !important;
    color: #b0b0b0 !important;
}

/* ===== Verified Info Badge ===== */
.verified-info {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    border-left: 4px solid var(--success);
}

body.dark-mode .verified-info {
    background: linear-gradient(135deg, #1a3a1a 0%, #2a4a2a 100%);
    border-left-color: #66bb6a;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-brown);
    font-size: 1rem;
}

body.dark-mode .verified-badge {
    color: #c8e6c9;
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ===== Product Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* Mobile-specific product grid override */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-card.selected,
    .product-card:has(.product-radio:checked) {
        min-height: 180px;
        max-height: 220px;
        grid-column: span 1;
    }
}

.product-card {
    position: relative;
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    min-height: 160px;
    max-height: 160px;
    overflow: hidden;
}

body.dark-mode .product-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.product-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5;
}

body.dark-mode .product-card.disabled {
    background: #141414;
}

.product-card.disabled::after {
    content: '🔒';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
}

/* Stock Status Badge */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

.low-stock-badge {
    background: #ffc107;
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.product-card.low-stock {
    border-color: #ffc107;
}

body.dark-mode .low-stock-badge {
    background: #ffc107;
    color: #000;
}

body.dark-mode .product-card.low-stock {
    border-color: #ffc107;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.2);
}

/* Out of Stock Badge and Styling */
.out-of-stock-badge {
    background: #dc3545;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    font-weight: 700;
}

.product-card.out-of-stock {
    border-color: #dc3545;
    opacity: 0.6;
    background: #f8f8f8;
    filter: grayscale(60%);
    cursor: not-allowed !important;
    pointer-events: none;
}

body.dark-mode .out-of-stock-badge {
    background: #dc3545;
    color: #fff;
}

body.dark-mode .product-card.out-of-stock {
    border-color: #dc3545;
    background: #1a1a1a;
    opacity: 0.5;
    filter: grayscale(70%);
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.2);
}

.product-card.out-of-stock .product-name,
.product-card.out-of-stock .product-price {
    color: #999 !important;
    text-decoration: line-through;
}

body.dark-mode .product-card.out-of-stock .product-name,
body.dark-mode .product-card.out-of-stock .product-price {
    color: #666 !important;
}

/* Prevent out-of-stock products from being selected */
.product-card.out-of-stock:hover {
    transform: none !important;
    border-color: #dc3545 !important;
}

.product-card.out-of-stock .product-radio {
    display: none;
}

.product-card:hover:not(.disabled) {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card.selected,
.product-card:has(.product-radio:checked) {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, #FFF8DC 0%, #FFEFD5 100%);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.2);
    min-height: 200px;
    max-height: 250px;
    transform: scale(1.02);
    z-index: 10;
}

/* Dark mode selected product styles */
[data-theme="dark"] .product-card.selected,
[data-theme="dark"] .product-card:has(.product-radio:checked) {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, rgba(247, 183, 51, 0.15) 0%, rgba(247, 183, 51, 0.08) 100%);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.3);
}

/* Make product name and price both orange in selected cards - Light Mode */
.product-card.selected .product-name,
.product-card:has(.product-radio:checked) .product-name {
    color: var(--primary-gold);
    font-weight: 700;
}

.product-card.selected .product-price,
.product-card:has(.product-radio:checked) .product-price {
    color: var(--primary-gold);
    font-weight: 700;
}

/* Make product name and price both orange in selected cards - Dark Mode */
[data-theme="dark"] .product-card.selected .product-name,
[data-theme="dark"] .product-card:has(.product-radio:checked) .product-name {
    color: var(--primary-gold);
    font-weight: 700;
    opacity: 1;
}

[data-theme="dark"] .product-card.selected .product-price,
[data-theme="dark"] .product-card:has(.product-radio:checked) .product-price {
    color: var(--primary-gold);
    font-weight: 700;
    opacity: 1;
}

/* Keep details text readable */
[data-theme="dark"] .product-card.selected .product-details,
[data-theme="dark"] .product-card:has(.product-radio:checked) .product-details {
    color: var(--text-secondary);
    opacity: 0.9;
}

.product-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-gold);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.product-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-label {
    width: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.product-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.product-name {
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

body.dark-mode .product-name {
    color: #e0e0e0;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-gold);
}

body.dark-mode .product-price {
    color: #FFB800;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-brown);
    color: var(--white);
    margin-top: 60px;
    padding: 50px 20px 30px;
    scroll-margin-top: 80px;
}

body.dark-mode .footer {
    background: #1a1a1a;
    border-top: 2px solid #2d2d2d;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-gold);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--white);
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 140px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

body.dark-mode .contact-link {
    background: #2d2d2d;
    color: #e0e0e0;
    border-color: #3d3d3d;
}

.contact-link:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 183, 51, 0.5);
    border-color: var(--primary-gold);
}

body.dark-mode .contact-link:hover {
    background: var(--primary-gold);
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(247, 183, 51, 0.6);
}

.contact-link .icon {
    font-size: 1.8rem;
    line-height: 1;
}

.contact-link .social-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-link .social-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.85;
}

.contact-link:hover .social-logo {
    opacity: 1;
    transform: scale(1.1);
}

.contact-link .social-name {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* Dark mode specific social logo colors */
body.dark-mode .contact-link .social-logo {
    filter: brightness(0.9) invert(0.9);
}

body.dark-mode .contact-link:hover .social-logo {
    filter: brightness(0) saturate(100%);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.dark-mode .footer-bottom {
    border-top: 1px solid #3d3d3d;
    color: #a0a0a0;
}

/* ===== Toast Notifications ===== */
#toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary-gold);
}

#toast.success {
    border-left-color: var(--success);
}

#toast.error {
    border-left-color: var(--error);
}

#toast.show {
    display: flex;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===== Loading Overlay ===== */
#loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive Design ===== */

/* Tablets and large phones (landscape) */
@media (max-width: 1024px) {
    .container {
        padding: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
}

/* Tablets and larger phones (portrait) */
@media (max-width: 768px) {
    .container {
        padding: 14px;
    }

    .header-content {
        padding: 12px 14px;
        gap: 6px;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .logo {
        font-size: 0.95rem;
        font-weight: 800;
        gap: 5px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 0;
    }

    /* Navigation stays visible on mobile */
    .nav {
        gap: 4px;
        flex: 1;
        justify-content: flex-end;
        flex-shrink: 1;
    }

    .nav-link {
        padding: 10px 8px;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: -0.2px;
        white-space: nowrap;
        min-width: 44px; /* Minimum touch target */
        text-align: center;
    }

    .theme-toggle {
        width: 44px; /* iOS minimum touch target */
        height: 44px;
        border-width: 2px;
        flex-shrink: 0;
        margin-left: 4px;
        position: relative;
        z-index: 1001;
    }

    .theme-toggle:hover,
    .theme-toggle:active {
        transform: none;
    }

    .theme-icon {
        width: 22px;
        height: 22px;
    }

    .hero {
        padding: 50px 20px;
        border-radius: 18px;
        margin-bottom: 30px;
    }

    .hero-icon {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-features {
        gap: 12px;
        justify-content: center;
    }

    .feature-badge {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-height: 44px; /* Touch target */
    }
    
    .section {
        margin-bottom: 24px;
    }
    
    .card {
        padding: 24px 18px;
        border-radius: 14px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-input {
        padding: 16px 18px; /* Larger touch target */
        font-size: 1rem;
        min-height: 50px;
    }
    
    .btn {
        padding: 16px 28px; /* Minimum 44px height */
        font-size: 1rem;
        min-height: 50px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 14px 10px;
        min-height: 160px;
    }
    
    .product-icon {
        font-size: 2.2rem;
        margin-bottom: 6px;
    }
    
    .product-name {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 6px;
    }
    
    .product-price {
        font-size: 1.05rem;
        font-weight: 700;
    }
    
    /* Quantity selector mobile optimization */
    .quantity-selector {
        gap: 10px;
        padding: 6px;
        margin-top: 10px;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
        min-width: 44px; /* Touch target */
        min-height: 44px;
    }
    
    .qty-input {
        width: 65px;
        height: 40px;
        font-size: 1rem;
        min-height: 44px;
    }
    
    /* Category filters mobile optimization */
    .category-filters {
        padding: 12px;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .category-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
        min-height: 44px; /* Touch target */
    }

    .footer {
        padding: 40px 18px 24px;
        margin-top: 50px;
    }

    .footer-section h3 {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .contact-links {
        gap: 14px;
        flex-wrap: wrap;
    }

    .contact-link {
        padding: 16px 24px;
        font-size: 0.95rem;
        min-width: 120px;
        min-height: 52px; /* Touch target */
    }
    
    #toast {
        right: 10px;
        left: 10px;
        top: 70px;
        min-width: auto;
        max-width: calc(100vw - 20px);
    }
}

/* Medium phones */
@media (max-width: 640px) {
    .container {
        padding: 12px;
    }

    .header-content {
        padding: 12px 14px;
        gap: 6px;
    }

    .logo {
        font-size: 1.1rem;
        gap: 6px;
    }

    .nav {
        gap: 3px;
    }

    .nav-link {
        padding: 9px 11px;
        font-size: 0.8rem;
        min-width: 44px;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
        margin-left: 3px;
    }

    .theme-icon {
        width: 20px;
        height: 20px;
    }
    
    .hero {
        padding: 45px 16px;
        border-radius: 16px;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .feature-badge {
        padding: 11px 18px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 14px;
    }
    
    .product-icon {
        font-size: 2rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .header-content {
        padding: 11px 12px;
        gap: 5px;
    }

    .logo {
        font-size: 1rem;
        font-weight: 800;
        gap: 5px;
    }
    
    .hero {
        padding: 40px 14px;
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .hero-icon {
        font-size: 2.8rem;
        margin-bottom: 14px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero-features {
        gap: 10px;
    }

    .feature-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .badge-icon {
        font-size: 1.15rem;
    }

    /* Compact navigation for small screens */
    .nav {
        gap: 2px;
        flex: 1;
        justify-content: flex-end;
    }

    .nav-link {
        padding: 8px 9px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: -0.2px;
        min-width: 44px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        border-width: 2px;
        flex-shrink: 0;
        margin-left: 2px;
    }

    .theme-toggle:hover,
    .theme-toggle:active {
        transform: none;
    }

    .theme-icon {
        width: 19px;
        height: 19px;
    }
    
    .section {
        margin-bottom: 20px;
    }
    
    .card {
        padding: 20px 14px;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    .section-note {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .form-input {
        padding: 15px 16px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .btn {
        padding: 15px 24px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .product-card {
        padding: 10px 8px;
        min-height: 155px;
    }
    
    .product-icon {
        font-size: 2rem;
        margin-bottom: 4px;
    }
    
    .product-name {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    /* Quantity selector for small phones */
    .quantity-selector {
        gap: 8px;
        padding: 5px;
        margin-top: 8px;
        border-radius: 8px;
    }
    
    .qty-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 6px;
    }
    
    .qty-input {
        width: 55px;
        height: 38px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    /* Category filters for small phones */
    .category-filters {
        padding: 10px;
        gap: 7px;
        margin-bottom: 18px;
        border-radius: 10px;
    }
    
    .category-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        min-height: 44px;
        border-radius: 20px;
    }
    
    /* Stock badges smaller */
    .stock-badge {
        top: 8px;
        left: 8px;
        padding: 3px 10px;
        font-size: 0.7rem;
    }

    .footer {
        padding: 35px 14px 20px;
        margin-top: 40px;
    }

    .footer-section h3 {
        font-size: 1.4rem;
        margin-bottom: 22px;
    }

    .contact-links {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .contact-link {
        width: 100%;
        padding: 16px 20px;
        flex-direction: row;
        justify-content: center;
        min-width: auto;
        min-height: 52px;
    }

    .contact-link .icon {
        font-size: 1.9rem;
    }
    
    .contact-link .social-icon {
        width: 30px;
        height: 30px;
    }
    
    .contact-link .social-logo {
        width: 30px;
        height: 30px;
    }
    
    .contact-link .social-name {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 0.9rem;
    }
    
    #toast {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
}

/* Extra small phones and narrow viewports */
@media (max-width: 375px) {
    .header-content {
        padding: 10px 11px;
        gap: 4px;
    }

    .logo {
        font-size: 0.75rem;
        font-weight: 800;
        gap: 3px;
        letter-spacing: -0.5px;
        flex-shrink: 0;
    }
    
    .nav-link {
        padding: 7px 8px;
        font-size: 0.7rem;
        min-width: 44px;
    }
    
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .feature-badge {
        padding: 9px 14px;
        font-size: 0.8rem;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}
