/* =========================================
   Viterra Bathware - Shower Panel Collection
   Theme: Modern Premium, Luxurious, Creative
   ========================================= */

:root {
    --color-gold: #D4AF37;
    --color-gold-light: #F3E5AB;
    --color-dark: #111111;
    --color-dark-soft: #1a1a1a;
    --color-grey: #666666;
    --color-white: #ffffff;
    --color-off-white: #f8f8f8;
    --color-accent: #C5A059;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
    
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-smooth: all 0.5s var(--ease-out-expo);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.1);
}

/* Base Setup */
body {
    background-color: var(--color-white);
    color: var(--color-dark);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* =========================================
   Hero Section
   ========================================= */
.panel-hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark);
    /* Adding Background Image as requested */
    background-image: url('../images/Products/Shower-Panel.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--color-white);
    overflow: hidden;
    padding-top: 80px;
}

/* Luxurious Animated Background */
.panel-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    /* Made gradient semi-transparent so background image shows through */
    background: radial-gradient(circle at center, rgba(34, 34, 34, 0.4) 0%, rgba(0, 0, 0, 0.8) 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 1;
}

.panel-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

@keyframes rotateBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s var(--ease-out-expo) forwards 0.3s;
}

.hero-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 25px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 20%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-divider {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--color-gold), transparent);
    margin: 0 auto 30px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Collection Grid
   ========================================= */
.collection-section {
    padding: 120px 5%;
    background-color: var(--color-off-white);
}

.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 50px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Card Design - Glassmorphism & Premium Feel */
.panel-card {
    background: var(--color-white);
    border-radius: 0; /* Sharp Edges for Modern Look */
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.panel-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

/* Image Area */
.card-image-wrapper {
    position: relative;
    padding-top: 140%; /* Tall Elegant Mobile Aspect Ratio */
    background-color: #e5e5e5;
    overflow: hidden;
}

.card-img-placeholder {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: #fff;
    font-family: var(--font-serif);
    opacity: 0.5;
    z-index: 1;
}

/* Placeholder Gradient */
.card-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(45deg, #dce1e3, #f2f2f2);
    z-index: 0;
}

.card-image-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.panel-card:hover .card-image-overlay {
    opacity: 1;
}

/* Content Area */
.card-content {
    padding: 40px 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    position: relative;
    z-index: 3;
}

.card-model {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.card-meta {
    display: inline-block;
    padding: 6px 15px;
    background: #f0f0f0;
    color: #666;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.panel-card:hover .card-meta {
    background: var(--color-gold);
    color: #fff;
}

/* Color Swatches - Fixed & Enhanced */
.swatches {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

.swatches span {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    cursor: help;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.swatches span:hover {
    transform: scale(1.3);
    z-index: 10;
}

/* Tooltip on hover */
.swatches span::after {
    content: attr(title);
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.swatches span:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Swatch Colors based on title attribute */
/* Glossy Black */
.swatches span[title="BLACK"], 
.swatches span[title="Black"] { 
    background-color: #000;
    box-shadow: inset 0 5px 10px rgba(255,255,255,0.2);
}

/* Matt Black */
.swatches span[title*="Matt Black" i],
.swatches span[title*="MATT BLACK" i] { 
    background-color: #222;
    box-shadow: none;
    border: 1px solid #444;
}

/* Chrome */
.swatches span[title*="CHROME" i], 
.swatches span[title*="Chrome" i] { 
    background: linear-gradient(135deg, #e6e6e6 0%, #ffffff 50%, #b3b3b3 100%); 
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

/* Gold */
.swatches span[title*="GOLD" i]:not([title*="ROSE" i]):not([title*="WHITE" i]):not([title*="BLACK" i]), 
.swatches span[title*="Gold" i]:not([title*="Rose" i]):not([title*="White" i]):not([title*="Black" i]) { 
    background: linear-gradient(135deg, #ffd700, #daa520);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.4);
}

/* Rose Gold */
.swatches span[title*="ROSE GOLD" i],
.swatches span[title*="Rose Gold" i] { 
    background: linear-gradient(135deg, #eecbc4, #b76e79);
    box-shadow: inset 0 0 5px rgba(255,255,255,0.4);
}

/* Blue */
.swatches span[title*="BLUE" i],
.swatches span[title*="Blue" i] { 
    background-color: #1e3a8a;
    box-shadow: inset 0 5px 10px rgba(255,255,255,0.2);
}

/* Matt Grey */
.swatches span[title*="MATT GREY" i],
.swatches span[title*="Matt Grey" i] { 
    background-color: #666;
    box-shadow: none;
}

/* Matt White */
.swatches span[title*="MATT WHITE" i],
.swatches span[title*="Matt White" i] { 
    background-color: #f5f5f5; 
    border: 1px solid #ddd;
    box-shadow: none;
}

/* Combinations */
.swatches span[title*="BLACK&GOLD" i] { 
    background: linear-gradient(135deg, #000 50%, #daa520 50%); 
    box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}
.swatches span[title*="WHITE&GOLD" i] { 
    background: linear-gradient(135deg, #fff 50%, #daa520 50%); 
    border: 1px solid #ddd;
}

/* =========================================
   SEO Section Customization
   ========================================= */
.seo-brand-overview {
    position: relative;
}

.seo-brand-overview::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 2px;
    background: var(--color-gold);
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 992px) {
    .collection-grid {
        gap: 30px;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .panel-hero {
        height: 60vh;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .collection-section {
        padding: 80px 20px;
    }
    
    .collection-grid {
        grid-template-columns: 1fr; /* Full width on mobile */
        max-width: 450px;
    }
    
    .card-content {
        padding: 30px 20px;
    }
}
