/* 
 * Lizzy's Homemade Pottery
 * Modern, minimalist design inspired by artisan aesthetics
 * Group: g28 | Per Heinemann | WS 2025/26
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #8B7355;
    --primary-dark: #6B5344;
    --accent-color: #C4A77D;
    --text-dark: #2C2C2C;
    --text-light: #6B6B6B;
    --bg-cream: #FAF8F5;
    --bg-white: #FFFFFF;
    --border-color: #E8E4DE;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

[v-cloak] { display: none; }

/* ============================================
   FIXED NAVIGATION BAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

.cart-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

/* Mobile Menu & Cart */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.mobile-menu-btn,
.mobile-back-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0;
    line-height: 1;
    order: 2;
}

.mobile-cart-icon {
    display: none;
    text-decoration: none;
    order: 1;
}

.mobile-cart-icon .cart-number {
    background: linear-gradient(135deg, #C4A77D, #B8956A);
    color: white;
    border-radius: 12px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(139, 115, 85, 0.25);
    transition: all 0.2s ease;
}

.mobile-cart-icon:hover .cart-number {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(139, 115, 85, 0.35);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
                url('https://images.unsplash.com/photo-1565193566173-7a0ee3dbe261?w=1920') center/cover no-repeat;
    will-change: transform;
    transition: none;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    color: white;
    will-change: transform, opacity;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.hero-btn:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.hero-btn {
    position: relative;
    z-index: 1;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem 80px; /* Zurück zu normalem Padding */
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-section {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* ============================================
   FLOATING CART SUMMARY - Minimale Inline-Anzeige in Navbar
   ============================================ */


/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f0ece6;
}

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


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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    transition: all 0.2s ease;
}

.view-details:hover {
    background: white;
    color: var(--text-dark);
}

.product-image-container {
    text-decoration: none;
    display: block;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.product-price-net {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

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

.product-stock.low {
    color: #c0392b;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-dark);
}

.btn-success {
    background: #2E7D32;
    color: white;
    border: 2px solid #2E7D32;
}

.btn-success:hover:not(:disabled) {
    background: #1B5E20;
    border-color: #1B5E20;
}

.btn-danger {
    background: #c0392b;
    color: white;
    border: 2px solid #c0392b;
}

.btn-danger:hover {
    background: #a93226;
    border-color: #a93226;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

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

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1rem;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
/* Toast notification — small, fixed, bottom center */
.alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    white-space: nowrap;
    border: none;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.alert-success {
    background: #2E7D32;
    color: white;
}

.alert-danger {
    background: #c0392b;
    color: white;
}

.alert-warning {
    background: #e67e22;
    color: white;
}

.alert-info {
    background: var(--primary-dark);
    color: white;
}

/* Product card quantity controls — compact */
.product-btn-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-btn-row .btn {
    flex: 1;
}

.btn-remove {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.15s ease;
    color: #c0392b;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.btn-remove:hover {
    background: #c0392b;
    color: white;
    border-color: #c0392b;
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    table-layout: fixed;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow: hidden;
}

.cart-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    background: var(--bg-cream);
}

.cart-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

.cart-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    line-height: 1;
}

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

.cart-summary-box {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    max-width: 350px;
    margin-left: auto;
    box-sizing: border-box;
}

.cart-summary-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 2px solid var(--primary-color);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

/* ============================================
   LOGIN/REGISTER PAGE
   ============================================ */
.auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 2rem;
}

.auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 3rem;
}

.auth-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-cream);
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-toggle button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: underline;
}

.auth-toggle button:hover {
    color: var(--primary-dark);
}

/* ============================================
   ABOUT SECTION — Fullscreen image + overlay
   ============================================ */
.about-section {
    position: relative;
    min-height: 55vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
}

.about-bg {
    position: absolute;
    inset: -30px;
    z-index: 0;
    will-change: transform;
}

.about-bg img {
    width: 100%;
    height: calc(100% + 60px);
    object-fit: cover;
    filter: brightness(0.45);
}

.about-container {
    position: relative;
    z-index: 1;
    max-width: 750px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.about-image {
    display: none;
}

.about-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.about-location {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 0.6rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.about-details {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.25);
    justify-content: center;
}

.about-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

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

/* Scroll reveal animations — reversible */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image img {
        height: 300px;
    }
    
    .about-details {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar-container {
        min-height: 60px;
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .navbar-right {
        gap: 15px;
    }
    
    .mobile-menu-btn,
    .mobile-back-btn {
        display: block;
    }
    
    .mobile-cart-icon {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero {
        padding: 100px 1.5rem 60px;
    }
    
    .main-container {
        padding: 70px 1.5rem 40px;
    }
    
    .page-header {
        margin-bottom: 1.5rem;
        padding-top: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .page-header p {
        font-size: 0.95rem;
    }
    
    .search-section {
        margin-bottom: 1.5rem;
    }
    
    .search-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cart-table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .cart-summary-box {
        max-width: 100%;
        padding: 1rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .quantity-controls {
        gap: 0.4rem;
    }
    
    .quantity-btn {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }
    
    .auth-card {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 3rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
}
/* ============================================
   ENHANCED MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 480px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Better touch targets (min 44px) */
    button, .btn, input[type="submit"], a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
    }
    
    /* Navbar mobile optimization */
    .navbar {
        padding: 0.5rem 0;
        height: 60px;
        box-sizing: border-box;
    }
    .navbar.scrolled {
        padding: 0.5rem 0;
        height: 60px;
    }
    
    .navbar-container {
        padding: 0 0.75rem;
        min-height: unset;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }
    
    .mobile-menu-btn {
        font-size: 1.8rem;
        padding: 8px;
    }
    
    .mobile-cart-icon .cart-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 80px 1rem 50px;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.95rem;
        padding: 0;
        line-height: 1.6;
    }
    
    .hero .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Page headers - compact */
    .page-header {
        padding: 0 0.75rem 0;
        margin-bottom: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 1.35rem;
        margin-bottom: 0.2rem;
    }
    
    .page-header p {
        font-size: 0.8rem;
        display: none;
    }
    
    .search-section {
        margin: 0 auto 0.75rem;
    }
    
    .search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .main-container {
        padding: 65px 0.75rem 30px;
    }
    
    /* Product grid mobile - edge to edge */
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
        margin: 0 -0.75rem;
        width: calc(100% + 1.5rem);
    }
    
    .product-card {
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-bottom: -1px;
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 100%;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-info .price {
        font-size: 1.1rem;
    }
    
    .product-info .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.85rem;
    }
    
    /* Cart summary 480px */
    
    /* Cart page mobile */
    .cart-container {
        padding: 0.75rem;
        margin-top: 70px;
    }
    
    .cart-table {
        font-size: 0.75rem;
    }
    
    .cart-table img {
        width: 50px;
        height: 50px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
        vertical-align: middle;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .quantity-input {
        width: 35px;
        padding: 4px;
    }
    
    .remove-btn {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    /* Cart summary mobile */
    .cart-summary-box {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .cart-summary-box h3 {
        font-size: 1.1rem;
    }
    
    .summary-row {
        font-size: 0.9rem;
    }
    
    .cart-actions {
        gap: 0.75rem;
    }
    
    .cart-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Auth forms mobile */
    .auth-container {
        padding: 70px 0.75rem 1rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .auth-card h2 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
    
    /* Section paddings */
    section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .shop-section,
    .about-section {
        padding: 3rem 0.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 0.95rem;
    }
    
    /* About section mobile */
    .about-container { padding: 3rem 1rem; }
    .about-content h2 { font-size: 1.8rem; }
    .about-content p { font-size: 0.9rem; line-height: 1.7; }
    .about-details { gap: 0.6rem; flex-direction: column; align-items: center; }
    .about-detail { font-size: 0.85rem; }

/* Extra small devices (under 360px) */
@media (max-width: 360px) {
    .logo {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .cart-table th:nth-child(4),
    .cart-table td:nth-child(4) {
        display: none; /* Hide subtotal column on very small screens */
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 2rem 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects that don't work on touch */
    .product-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    /* Remove image hover on touch */
    .product-card:hover .product-image {
        transform: none;
    }

    /* Add active states instead — image zooms on tap */
    .product-card:active {
        transform: scale(0.98);
    }

    .product-card:active .product-image {
        transform: scale(1.06);
        transition: transform 0.15s ease;
    }
    
    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    /* Improve scrolling */
    .products-grid,
    .cart-table,
    .nav-links {
        -webkit-overflow-scrolling: touch;
    }
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 44, 44, 0.97);
    color: white;
    padding: 1rem;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        min-width: auto;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-buttons .btn {
        flex: 1;
        max-width: 150px;
    }
}
