/**
 * PyziTheme - shop.css (pyzitheme/assets/css/shop.css)
 * 
 * Styl dla listy produktów, głównie dla produktów: mleko, miód, opłatek,
 * po przejściu w /sklep
 *
 * @package     PyziTheme
 * @subpackage  Assets/CSS
 * @author      Patryk Kowalski <p.kowalski@kamikstudio.pl>
 * @copyright   2025 KamikStudio & PyziPyzi
 * @license     Proprietary
 * @version     1.0.0
 * @since       1.0.0
 * 
 * Client: PyziPyzi - Domowe wyroby cukiernicze
 * Website: https://pyzipyzi.pl
 * 
 * This file is part of PyziTheme.
 * Unauthorized copying or distribution is prohibited.
 */

/* ===========================
   HERO SECTION
   =========================== */
.shop-hero {
    background: linear-gradient(135deg, #5e341c 0%, #7d4a2c 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(239, 99, 65, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.shop-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.shop-hero p {
    font-size: 20px;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: #5e341c;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #7d4a2c;
    opacity: 0.8;
}

/* ===========================
   PRODUCTS GRID
   =========================== */
.products-section {
    margin-bottom: 80px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ===========================
   PRODUCT CARD
   =========================== */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(94, 52, 28, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(94, 52, 28, 0.15);
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f0e8;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dfd0 100%);
    color: #7d4a2c;
    font-size: 14px;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge.quality {
    background: rgba(34, 197, 94, 0.95);
    color: white;
}

.badge.local {
    background: rgba(239, 99, 65, 0.95);
    color: white;
}

/* Product Info */
.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    margin: 0 0 12px 0;
}

.product-title a {
    color: #5e341c;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #ef6341;
}

.product-excerpt {
    color: #7d4a2c;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Product Meta */
.product-meta {
    margin-bottom: 16px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.stock-status.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Product Bottom */
.product-bottom {
    border-top: 1px solid #e8dfd0;
    padding-top: 20px;
}

.product-price {
    margin-bottom: 16px;
}

.product-price .price {
    font-size: 28px;
    font-weight: 800;
    color: #5e341c;
}

.product-price .price del {
    opacity: 0.5;
    font-size: 20px;
    margin-right: 8px;
}

.product-price .price ins {
    text-decoration: none;
    color: #ef6341;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
}

.button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.add-to-cart-button {
    background: #ef6341;
    color: white;
}

.add-to-cart-button:hover {
    background: #d94f2e;
    transform: translateY(-2px);
}

.button-secondary {
    background: transparent;
    color: #5e341c;
    border: 2px solid #5e341c;
}

.button-secondary:hover {
    background: #5e341c;
    color: white;
}

/* No Products */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    color: #7d4a2c;
}

/* ===========================
   COMING SOON SECTION
   =========================== */
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.coming-soon-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(94, 52, 28, 0.08);
    border: 2px dashed #e8dfd0;
    transition: all 0.3s ease;
}

.coming-soon-card:hover {
    border-color: #ef6341;
    box-shadow: 0 8px 30px rgba(239, 99, 65, 0.15);
}

.coming-soon-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.coming-soon-card h3 {
    font-size: 24px;
    color: #5e341c;
    margin-bottom: 12px;
    font-weight: 700;
}

.coming-soon-card p {
    color: #7d4a2c;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.coming-date {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f0e8;
    border-radius: 20px;
    font-size: 13px;
    color: #5e341c;
    font-weight: 600;
}

/* ===========================
   CTA SECTION
   =========================== */
.shop-cta {
    background: linear-gradient(135deg, #5e341c 0%, #7d4a2c 100%);
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 60px;
}

.cta-content h2 {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.button-primary {
    background: #ef6341;
    color: white;
    padding: 16px 40px;
    font-size: 16px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}

.button-primary:hover {
    background: #d94f2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 99, 65, 0.4);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .shop-hero {
        padding: 60px 20px;
    }
    
    .shop-hero h1 {
        font-size: 36px;
    }
    
    .shop-hero p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .coming-soon-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-cta {
        padding: 40px 20px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .product-badges {
        top: 8px;
        left: 8px;
    }
    
    .badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    .product-title a {
        font-size: 18px;
    }
    
    .product-price .price {
        font-size: 24px;
    }
}

/* ===========================
   CATEGORY PAGE SPECIFIC
   =========================== */
.category-page .category-description {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.6;
}

.category-page .category-description p {
    margin-bottom: 10px;
}

.category-navigation {
    text-align: center;
    margin: 60px 0;
}

.button-back {
    display: inline-block;
    padding: 14px 30px;
    background: #5e341c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.button-back:hover {
    background: #7d4a2c;
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .category-page .category-description {
        font-size: 14px;
    }
}