/* =========================================
   PRIYA PRINTS - PRODUCTS (Enhanced UI)
   Theme: High-Performance, Solid Colors, Animation
   ========================================= */

:root {
    --prod-primary: #1a237e; /* Deep Sapphire */
    --prod-accent: #ff8a65;  /* Vibrant Orange */
    --prod-text: #212121;
    --prod-muted: #616161;
    --prod-bg: #f4f6f9;
    --prod-card-bg: #ffffff;
    scroll-behavior: smooth;
}

/* --- 1. Hero Section --- */
.prod-hero {
    padding: 100px 0 60px 0;
    background-color: var(--prod-bg);
}

.prod-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--prod-primary);
    margin-bottom: 15px;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.prod-hero-sub {
    font-size: 1.2rem;
    color: var(--prod-muted);
    max-width: 600px;
    line-height: 1.6;
}

/* Text Entrance Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }

@keyframes slideUpFade {
    to { opacity: 1; transform: translateY(0); }
}

/* --- 2. Layout Grid --- */
.prod-layout {
    display: grid;
    gap: 60px;
    grid-template-columns: 260px 1fr; /* Fixed Sidebar + Fluid Content */
    align-items: start;
    padding-bottom: 100px;
}

/* --- 3. Sidebar Navigation (Refined) --- */
.prod-sidebar {
    position: sticky;
    top: 100px;
    padding: 10px 0;
}

.prod-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prod-nav-link {
    display: block;
    padding: 14px 20px;
    color: var(--prod-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent; /* Marker line */
}

.prod-nav-link:hover {
    color: var(--prod-primary);
    background-color: rgba(26, 35, 126, 0.03);
}

.prod-nav-link.active {
    color: var(--prod-primary);
    font-weight: 700;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left-color: var(--prod-accent); /* Orange Accent Line */
}

/* --- 4. Content Sections & Animation --- */
.prod-section {
    scroll-margin-top: 120px;
    margin-bottom: 80px;
    opacity: 0; /* Hidden for observer */
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Triggered by JS */
.prod-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headers */
.prod-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.prod-cat-title {
    font-size: 2rem;
    color: var(--prod-primary);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.prod-cat-desc {
    color: var(--prod-muted);
    font-size: 1rem;
    margin: 0;
}

/* "View All" Button */
.btn-view-all {
    color: var(--prod-primary);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: gap 0.2s ease, color 0.2s;
}

.btn-view-all:hover {
    color: var(--prod-accent);
    gap: 15px; /* Arrow slides out */
}

/* --- 5. Product Cards (The Star of the Show) --- */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

.prod-card {
    background: transparent;
    cursor: pointer;
   
}

/* Image Wrapper */
.prod-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Effects */
.prod-card:hover .prod-img-wrap {
    transform: translateY(-8px); /* Lift up */
    box-shadow: 0 20px 40px rgba(26, 35, 126, 0.15); /* Deep blue shadow */
}

.prod-card:hover .prod-img {
    transform: scale(1.08); /* Subtle zoom */
}

/* Icon Overlay (Appears on Hover) */
.prod-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 35, 126, 0.1); /* Very subtle tint */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--prod-primary);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.prod-card:hover .icon-box {
    transform: translateY(0); /* Icon pops up */
}

/* Card Info */
.prod-info {
    padding: 0 5px;
}

.prod-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--prod-accent);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.prod-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--prod-text);
    margin: 0;
    transition: color 0.2s;
}

.prod-card:hover .prod-name {
    color: var(--prod-primary);
}

.prod-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, #e0e0e0, transparent);
    margin: 0;
}

/* --- 6. Bottom CTA Box --- */
.prod-cta-box {
    background: var(--prod-primary);
    color: #fff;
    text-align: center;
    padding: 80px 24px;

    margin-top: 40px;
    box-shadow: 0 20px 50px rgba(26, 35, 126, 0.2);
    
    /* Reveal animation settings */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.prod-cta-box.visible {
    opacity: 1;
    transform: scale(1);
}

.prod-cta-box h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.prod-cta-box p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 35px;
}

.btn-white-outline {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--prod-primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-white-outline:hover {
    background: #fff;
    color: var(--prod-primary);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 960px) {
    .prod-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .prod-hero-title { font-size: 2.5rem; 
    text-align: center;}

    /* Mobile Sticky Pill Nav */
    .prod-sidebar {
        top: 70px;
        z-index: 100;
        background: rgba(244, 246, 249, 0.95); /* Matches bg color */
        backdrop-filter: blur(8px);
        margin: 0 -14px;
        padding: 10px 24px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        overflow-x: auto;
        scrollbar-width: none;  /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
    }

    .prod-nav-list {
        flex-direction: row;
        gap: 10px;
        width: max-content;
    }

    .prod-nav-link {
        background: #fff;
        border: 1px solid rgba(0,0,0,0.05);
        border-left: 1px solid rgba(0,0,0,0.05); /* Reset */
        padding: 8px 16px;
        border-radius: 20px;
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .prod-nav-link.active {
        background: var(--prod-primary);
        color: #fff;
        border-color: var(--prod-primary);
    }
}

@media (max-width: 640px) {
    .prod-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Col Grid on Mobile */
        gap: 15px;
    }
    
    .prod-img-wrap {
        border-radius: 8px;
    }
    
    .prod-cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .prod-name { font-size: 1rem; }
    .prod-tag { font-size: 0.65rem; }
}


/* ... existing CSS ... */

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 960px) {
    /* ... existing mobile styles ... */
    
    /* ADD THIS: Adjust scroll offset for mobile (Header + Sticky Nav) */
    .prod-section {
        scroll-margin-top: 150px; 
    }

    .prod-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .prod-hero-sub{
        text-align: center;
    }
    /* ... rest of your mobile styles ... */
}


