/**
 * Category Styles - PATIOVISTA
 * Modern, responsive category page design
 */

/* ==========================================================================
   Category Header
   ========================================================================== */

   .category-header {
    padding: 60px 0;
    background: linear-gradient(135deg, #fafaf8 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e5e5;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.header-text h1 {
    font-family: 'Cormorant', serif;
    font-size: 48px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.category-description {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

.category-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.category-stats .stat {
    display: flex;
    flex-direction: column;
}

.category-stats .stat strong {
    font-size: 36px;
    font-weight: 300;
    color: #b8935a;
    line-height: 1;
    margin-bottom: 8px;
}

.category-stats .stat span {
    font-size: 14px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.header-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Subcategories
   ========================================================================== */

.subcategories-section {
    padding: 80px 0;
    background: #ffffff;
}

.subcategories-section h2 {
    font-family: 'Cormorant', serif;
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 40px;
    text-align: center;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.subcategory-card {
    display: block;
    background: #fafaf8;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.subcategory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #b8935a;
}

.subcat-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.subcat-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.subcat-content {
    padding: 25px;
}

.subcat-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.subcat-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.subcat-content .product-count {
    font-size: 13px;
    color: #b8935a;
    font-weight: 500;
}

/* ==========================================================================
   Products Section
   ========================================================================== */

.products-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Cormorant', serif;
    font-size: 36px;
    font-weight: 400;
    color: #1a1a1a;
    margin-top: 0;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sort-select:hover {
    border-color: #b8935a;
}

.sort-select:focus {
    outline: none;
    border-color: #b8935a;
}

/* ==========================================================================
   Product Grid
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    position: relative;
    background: #fafaf8;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e5;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: #b8935a;
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-featured {
    background: #b8935a;
    color: white;
}

.badge-sale {
    background: #e74c3c;
    color: white;
}

/* Product Image */
.product-image {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

/* Product Content */
.product-content {
    padding: 30px;
}

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

.product-title a {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

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

.product-category {
    font-size: 12px;
    color: #b8935a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.product-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Features */
.product-features {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.product-features li {
    font-size: 13px;
    color: #666;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.product-features li::before {
    content: 'âœ“';
    position: absolute;
    left: 0;
    color: #b8935a;
    font-weight: bold;
}

/* Product Price */
.product-price {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price {
    font-size: 26px;
    font-weight: 300;
    color: #1a1a1a;
}

.price-original {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

.price-sale {
    font-size: 26px;
    font-weight: 500;
    color: #e74c3c;
}

/* Product Actions */
.product-actions {
    margin-top: 20px;
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-state svg {
    margin-bottom: 30px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-text h2 {
    font-family: 'Cormorant', serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 15px;
    color: white;
}

.cta-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .header-image {
        order: -1;
    }
    
    .header-image img {
        height: 300px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
    
    .subcategory-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 40px 0;
    }
    
    .header-text h1 {
        font-size: 36px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .category-stats {
        gap: 30px;
    }
    
    .category-stats .stat strong {
        font-size: 28px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .subcategory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .subcategories-section,
    .products-section {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-text h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-text h1 {
        font-size: 28px;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-title a {
        font-size: 18px;
    }
}