/* assets/style.css - WERSJA Z MENU MOBILNYM */

:root {
    --shop-primary: #a78864; 
    --shop-dark: #1a1a1a;    
    --shop-gray: #f4f4f4;    
    --shop-light: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--shop-light);
    color: var(--shop-dark);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

/* --- HEADER SKLEPU --- */
.shop-navbar {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1000;
}
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Ważne dla menu mobilnego */
}
.shop-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.shop-menu { display: flex; gap: 20px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; align-items: center; }
.shop-menu a:hover { color: var(--shop-primary); }

/* Styl przycisku burger (domyślnie ukryty) */
.shop-burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--shop-dark);
    padding: 5px;
}

.cart-icon {
    position: relative;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}
.cart-count {
    background: var(--shop-primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* --- BANER --- */
.shop-hero {
    background-color: #f9f9f9;
    text-align: center;
    padding: 50px 20px;
    margin-bottom: 40px;
}
.shop-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
}
.shop-hero p { color: #777; font-size: 1rem; margin: 0; }

/* --- KATEGORIE --- */
.cat-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.cat-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}
.cat-btn:hover, .cat-btn.active {
    background: var(--shop-dark);
    color: #fff;
    border-color: var(--shop-dark);
}

/* --- PRODUKTY (GRID) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.product-card {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.product-img-box {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    background: var(--shop-gray);
    aspect-ratio: 3 / 4;
    border-radius: 4px;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-price {
    color: var(--shop-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.btn-add-cart {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--shop-dark);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: auto;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}
.btn-add-cart:hover { background-color: var(--shop-primary); }


/* --- KARTA PRODUKTU --- */
.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 40px 0;
}
.product-gallery {
    background-color: var(--shop-gray);
    border-radius: 8px;
    overflow: hidden;
}
.product-details h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--shop-dark);
}
.product-details .price {
    font-size: 1.8rem;
    color: var(--shop-primary);
    font-weight: 700;
    margin-bottom: 25px;
}
.product-details .desc {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
}
.add-to-cart-form {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}
.qty-input {
    width: 60px;
    padding: 15px 5px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 1rem;
    border-radius: 4px;
    height: 50px;
}
.btn-big-cart {
    flex: 1;
    background-color: var(--shop-dark);
    color: #fff;
    border: none;
    padding: 0 20px;
    height: 50px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* --- KOSZYK --- */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}
.cart-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #eee;
    font-family: 'Playfair Display', serif;
    color: #888;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.cart-table td {
    padding: 20px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.cart-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}
.cart-summary {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: right;
}
.total-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--shop-primary);
    margin-bottom: 20px;
}


/* ========================================= */
/* === MOBILE & TABLET (RWD) === */
/* ========================================= */

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .container { padding: 0 30px; }
}

@media (max-width: 768px) {
    /* 1. MENU MOBILNE */
    .shop-burger { display: block; } /* Pokaż przycisk burgera */
    
    .shop-menu {
        display: none; /* Domyślnie ukryj menu */
        position: absolute;
        top: 100%; /* Zaraz pod paskiem */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        text-align: center;
        gap: 15px;
    }
    
    .shop-menu.active {
        display: flex; /* Pokaż menu po kliknięciu */
    }
    
    .shop-menu a {
        padding: 10px;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f9f9f9;
    }

    /* 2. GRID PRODUKTÓW */
    .products-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; 
    }
    
    .product-wrapper { 
        grid-template-columns: 1fr; 
        gap: 30px; 
    }
    
    /* 3. KOSZYK NA MOBILE */
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table thead { display: none; } 
    
    .cart-table tr {
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
        background: #fff;
    }
    
    .cart-table td {
        padding: 5px 0;
        border: none;
        text-align: right;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-table td:first-child { 
        justify-content: flex-start;
        gap: 15px;
        border-bottom: 1px solid #f5f5f5;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .cart-summary {
        text-align: center;
    }
    
    .btn-big-cart {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .products-grid { 
        grid-template-columns: 1fr; /* 1 produkt w rzędzie na małym ekranie */
    }
    .shop-hero h1 { font-size: 2rem; }
}

/* --- FORMULARZE LOGOWANIA / REJESTRACJI (SKLEP) --- */
.auth-container {
    max-width: 500px;
    margin: 40px auto 80px;
    padding: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.auth-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--shop-dark);
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: 0.3s;
    background: #fdfdfd;
}
.form-group input:focus {
    border-color: var(--shop-primary);
    background: #fff;
    outline: none;
}
.btn-auth {
    width: 100%;
    padding: 14px;
    background-color: var(--shop-dark);
    color: #fff;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-auth:hover {
    background-color: var(--shop-primary);
}
.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777;
}
.auth-links a {
    color: var(--shop-dark);
    font-weight: 600;
    text-decoration: underline;
}
/* Social Login w Sklepie */
.social-separator {
    display: flex; align-items: center; justify-content: center;
    margin: 25px 0; color: #999; font-size: 0.85rem;
}
.social-separator::before, .social-separator::after {
    content: ""; flex: 1; border-top: 1px solid #eee; margin: 0 15px;
}
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 10px; border-radius: 4px;
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    margin-bottom: 10px; transition: 0.3s;
    border: 1px solid #ddd; background: white; color: #333;
}
.social-btn:hover { background: #f9f9f9; }
.social-btn.fb { background: #1877F2; color: white; border-color: #1877F2; }
.social-btn.fb:hover { background: #166fe5; }