/* Products Pages Styles - Green's Windows */
/* Common styles for Doors, Windows, Interiors, UPVC pages */
/* ========================================= */

/* Hero Banner - Common for all product pages */
.doors-hero,
.windows-hero,
.interiors-hero,
.upvc-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doors-hero-content,
.windows-hero-content,
.interiors-hero-content,
.upvc-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.doors-hero-badge,
.windows-hero-badge,
.interiors-hero-badge,
.upvc-hero-badge {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: var(--primary-dark);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.doors-hero-title,
.windows-hero-title,
.interiors-hero-title,
.upvc-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.doors-hero-subtitle,
.windows-hero-subtitle,
.interiors-hero-subtitle,
.upvc-hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--primary-dark);
    font-style: italic;
    letter-spacing: 2px;
    font-weight: 600;
}

.breadcrumb-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.breadcrumb-nav a {
    color: var(--primary);
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.breadcrumb-nav span {
    color: var(--primary);
    margin: 0 10px;
    font-weight: 700;
}

/* Page Content */
.doors-page,
.windows-page,
.interiors-page {
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-section {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent);
}

.category-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    position: relative;
}

.category-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.category-badge {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Center single item */
.products-grid .product-card:only-child {
    grid-column: 1 / -1;
    max-width: 350px;
    margin: 0 auto;
}

/* Center 2 items */
.products-grid:has(.product-card:nth-child(2):last-child) {
    justify-content: center;
    grid-template-columns: repeat(2, minmax(280px, 350px));
}

/* Center 3 items */
.products-grid:has(.product-card:nth-child(3):last-child) {
    justify-content: center;
    grid-template-columns: repeat(3, minmax(280px, 350px));
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(var(--primary-rgb), 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(var(--primary-rgb), 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-bottom: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.9) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.view-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: #fff;
    color: var(--primary-dark);
    text-decoration: none;
}

.product-info {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.product-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 8px;
}

.product-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.premium-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* CTA Section */
.doors-cta,
.windows-cta,
.interiors-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.doors-cta h3,
.windows-cta h3,
.interiors-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
}

.doors-cta p,
.windows-cta p,
.interiors-cta p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-decoration: none;
    color: var(--primary-dark);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
}

.no-products i {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-products h4 {
    color: #666;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .doors-hero-title,
    .windows-hero-title,
    .interiors-hero-title,
    .upvc-hero-title { 
        font-size: 48px; 
        letter-spacing: 4px; 
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .category-header h2 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .doors-hero,
    .windows-hero,
    .interiors-hero,
    .upvc-hero { 
        height: 50vh; 
        min-height: 350px; 
    }
    .doors-hero-badge,
    .windows-hero-badge,
    .interiors-hero-badge,
    .upvc-hero-badge { 
        padding: 10px 25px; 
        font-size: 12px; 
        letter-spacing: 3px; 
    }
    .doors-hero-title,
    .windows-hero-title,
    .interiors-hero-title,
    .upvc-hero-title { 
        font-size: 36px; 
        letter-spacing: 2px; 
    }
    .doors-hero-subtitle,
    .windows-hero-subtitle,
    .interiors-hero-subtitle,
    .upvc-hero-subtitle { 
        font-size: 16px; 
    }
    .breadcrumb-nav { 
        font-size: 12px; 
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .doors-page,
    .windows-page,
    .interiors-page {
        padding: 40px 0 60px;
    }
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .category-badge {
        margin-left: 0;
        margin-top: 10px;
    }
    .doors-cta,
    .windows-cta,
    .interiors-cta {
        padding: 40px 25px;
    }
    .doors-cta h3,
    .windows-cta h3,
    .interiors-cta h3 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .doors-hero,
    .windows-hero,
    .interiors-hero,
    .upvc-hero { 
        height: 45vh; 
        min-height: 300px; 
    }
    .doors-hero-badge,
    .windows-hero-badge,
    .interiors-hero-badge,
    .upvc-hero-badge { 
        padding: 8px 20px; 
        font-size: 10px; 
        letter-spacing: 2px; 
    }
    .doors-hero-title,
    .windows-hero-title,
    .interiors-hero-title,
    .upvc-hero-title { 
        font-size: 28px; 
        letter-spacing: 1px; 
    }
    .doors-hero-subtitle,
    .windows-hero-subtitle,
    .interiors-hero-subtitle,
    .upvc-hero-subtitle { 
        font-size: 14px; 
    }
}
