/*
Theme Name: Storefront Child - Curtain Installations
Theme URI: https://curtaininstallations.co.nz
Description: Custom child theme for Curtain Installations WooCommerce shop
Author: Curtain Installation Specialists
Author URI: https://curtaininstallations.co.nz
Template: storefront
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storefront-child
*/

/* Import parent theme styles */
@import url('../storefront/style.css');

/* ===========================
   HERO BANNER STYLES
   =========================== */
.hero-banner {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 300;
    margin: 0;
}

/* ===========================
   BREADCRUMB STYLES
   =========================== */
.breadcrumb-wrapper {
    background: #fff;
    padding: 20px 40px;
    border-bottom: 1px solid #e8e8e8;
}

.woocommerce-breadcrumb {
    margin: 0;
    font-size: 14px;
}

.woocommerce-breadcrumb a {
    color: #d2691e;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* ===========================
   PRODUCTS CATEGORY GRID
   =========================== */
.products-grid-page .site-main {
    padding: 0;
    max-width: 100%;
}

.products-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding: 60px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Individual category items with circular badges */
.category-grid-item {
    text-align: center;
}

.category-link {
    text-decoration: none;
    display: block;
    color: inherit;
    transition: transform 0.3s ease;
}

.category-link:hover {
    transform: translateY(-5px);
}

/* Circular badge container */
.category-image-circle {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio for perfect circle */
    margin-bottom: 20px;
}

/* Grey circular badge background */
.circle-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: #e0e0e0;
    border-radius: 50%;
    z-index: 1;
}

/* Product image positioned over badge */
.category-image-circle img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
}

/* Category title */
.category-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #333;
}

/* ===========================
   PRODUCT TABLE STYLES
   =========================== */
.product-specs-table {
    width: 100%;
    margin: 40px 0;
    border-collapse: collapse;
}

.product-specs-table thead {
    background: #f5f5f5;
}

.product-specs-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
}

.product-specs-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */
@media (max-width: 1200px) {
    .products-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
        padding: 50px 60px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .products-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 40px 30px;
    }
    
    .breadcrumb-wrapper {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 300px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .products-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 30px 20px;
    }
    
    .category-title {
        font-size: 14px;
    }
}

/* ===========================
   STOREFRONT CUSTOMIZATIONS
   =========================== */
.site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.woocommerce ul.products li.product {
    text-align: center;
}

.site-footer {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
