/* 
 * Rupasya Design System 
 * Theme: Premium Modern Heritage
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* Brand Colors based on user specs */
    --brand-primary: #008080;   /* Teal */
    --brand-accent: #87CEEB;    /* Sky Blue */
    --brand-accent-light: #ADD8E6; /* Light Blue */
    
    /* Backgrounds */
    --bg-base: #F8F6F0;         /* Pearl White */
    --bg-alt: #FFFFF0;          /* Ivory */
    --bg-card: #FFFFFF;         /* Pure White */
    --bg-highlight: #FFFDF5;    /* Light Ivory */
    
    /* Utility */
    --text-dark: #1A1A1A;       /* For readability */
    --text-light: #FFFFFF;
    --border-color: #C0C0C0;    /* Silver */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-dark);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-accent);
}

/* Header */
.navbar {
    background-color: var(--bg-card);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.navbar .logo { order: 1; }
.nav-icons { order: 2; display: flex; align-items: center; gap: 1.5rem; }
.nav-links { order: 3; width: 100%; }

.navbar a {
    color: var(--text-dark);
    font-weight: 600;
}

.navbar .logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    order: 3;
    width: 100%;
    margin-top: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
.nav-links::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.nav-links img { display: none; } /* Safety check */

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--brand-accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

@media (min-width: 992px) {
    .navbar {
        padding: 1rem 2rem;
        flex-wrap: nowrap;
        display: flex;
    }
    .navbar .logo {
        flex: 1;
        order: 1;
    }
    .nav-links {
        flex: 3;
        order: 2;
        width: auto;
        margin-top: 0;
        overflow-x: visible;
        padding-bottom: 0;
        display: flex;
        justify-content: center;
    }
    .nav-icons {
        flex: 1;
        order: 3;
        justify-content: flex-end;
    }
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-align: center;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--bg-card);
    border: 2px solid var(--brand-primary);
}

.btn-primary:hover {
    background-color: #006666;
    border-color: #006666;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background-color: var(--brand-primary);
    color: var(--bg-card);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 128, 128, 0.7), rgba(0, 128, 128, 0.7)), url('../images/hero-bg.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4rem;
    color: var(--bg-card);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Product Grid */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 4rem 2rem;
    }
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 2rem;
}

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columns */
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* Desktop: 3 columns */
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid var(--bg-base);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,128,128,0.1);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-price {
    font-weight: 600;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--brand-accent);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
}

/* Footer */
footer {
    background-color: var(--brand-primary);
    color: var(--bg-highlight);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: var(--brand-accent-light);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: var(--bg-highlight);
}

.footer-col a:hover {
    color: var(--brand-accent);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1001;
}

.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
}

/* --- NEW HOMEPAGE OVERHAUL STYLES --- */

.padding-y { padding: 5rem 0; }
.border-y { border-top: 1px solid #e2e2e2; border-bottom: 1px solid #e2e2e2; }
.bg-dark { background-color: var(--bg-alt); }
.text-light { color: var(--text-dark); } 

.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; color: var(--brand-primary); }
.divider { height: 3px; width: 60px; background-color: var(--brand-accent); margin: 0 auto; }
.divider-left { height: 3px; width: 60px; background-color: var(--brand-accent); margin-bottom: 1.5rem; }

/* Hero Premium */
.hero-premium {
    height: 90vh;
    background: linear-gradient(rgba(0, 128, 128, 0.4), rgba(0, 128, 128, 0.7)), url('https://via.placeholder.com/1920x1080/008080/FFFFFF?text=Modern+Heritage') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 2rem;
}
.hero-title { font-size: 4.5rem; color: var(--bg-card); margin-bottom: 1rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); font-family: var(--font-heading); }
.hero-subtitle { font-size: 1.3rem; max-width: 700px; margin: 0 auto 2.5rem; font-weight: 400; color:var(--bg-card); }
.shop-now-btn { padding: 1rem 3rem; font-size: 1.1rem; }

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.cat-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.cat-card:hover img { transform: scale(1.1); }
.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 128, 128, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 2rem;
    color: white;
}
.cat-overlay h3 { color: white; font-size: 1.5rem; margin-bottom: 1rem; }
.cat-overlay .btn-outline { border-color: white; color: white; }
.cat-overlay .btn-outline:hover { background: white; color: var(--brand-primary); }

/* Custom Artwork Banner */
.custom-art-banner {
    background: linear-gradient(rgba(0, 128, 128, 0.85), rgba(0, 128, 128, 0.85)), url('https://via.placeholder.com/1200x400/008080/FFFFFF?text=Pattern') center/cover;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 128, 128, 0.2);
}
.custom-art-banner h2 { color: var(--brand-accent-light); font-size: 2.5rem; }
.custom-art-banner p { max-width: 600px; margin: 1rem auto 2rem; font-size: 1.1rem; color: var(--bg-highlight);}

/* Heritage List */
.heritage-list { list-style: none; padding: 0; margin-bottom: 2rem; }
.heritage-list li { font-size: 1.1rem; margin-bottom: 0.8rem; display:flex; align-items:center; gap:10px; color: var(--text-dark); }

/* Trust Grid */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    text-align: center;
}
.trust-card i { font-size: 3rem; color: var(--brand-primary); margin-bottom: 1.5rem; }
.trust-card h3 { color: var(--brand-primary); font-size: 1.3rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.trust-card p { font-size: 0.95rem; color: var(--text-dark); font-family: var(--font-body); }

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--brand-accent);
}
.stars { color: var(--brand-accent); margin-bottom: 1rem; }
.review { font-style: italic; color: var(--text-dark); margin-bottom: 1.5rem; line-height: 1.8; }
.testimonial-card h4 { color: var(--brand-primary); font-size: 1rem; }

/* FAQ */
.faq-container { width: 100%; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-btn {
    width: 100%;
    text-align: left;
    padding: 1.5rem 1rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--brand-primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.faq-btn::after { content: '\002B'; font-size: 1.5rem; color: var(--brand-accent); transition: transform 0.3s; }
.faq-btn.active::after { transform: rotate(45deg); padding-bottom: 0.5rem; }
.faq-content { max-height: 0; overflow: hidden; transition: all 0.3s ease; padding: 0 1rem; background-color: var(--bg-alt); }
.faq-content p { margin: 0; padding-bottom: 1rem; color: var(--text-dark); line-height: 1.8; }

/* Instagram Grid */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.insta-grid img { width: 100%; height: 300px; object-fit: cover; border-radius: 4px; transition: opacity 0.3s; cursor: pointer; border: 1px solid var(--border-color); }
.insta-grid img:hover { opacity: 0.8; }

/* Animations */
.fade-in { animation: fadeIn 1s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Reponsiveness adjustments */
@media (max-width: 768px) {
    .mural-section .container { grid-template-columns: 1fr; gap: 2rem; }
    .insta-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .insta-grid img { height: 150px; }
    .hero-title { font-size: 3rem; }
}
/* Category Layout with Sidebar */
.category-page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.filters-sidebar {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--brand-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4rem;
}

.page-link {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
    font-weight: bold;
    transition: 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* Category SEO Content */
.category-header-text {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #555;
    font-size: 1.1rem;
}

.category-seo-footer {
    margin-top: 5rem;
    padding: 4rem;
    background: var(--bg-alt);
    border-radius: 12px;
    line-height: 1.8;
    color: #444;
}

.category-seo-footer h2 {
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .category-page-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* Cart Responsive */
.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .cart-wrapper {
        grid-template-columns: 1fr 350px;
    }
}

.cart-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 600px) {
    .product-main-row {
        gap: 1rem;
    }
    .product-title-large {
        font-size: 1.8rem;
    }
}

/* Checkout Layout Classes */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .checkout-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.checkout-form-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .checkout-form-container {
        padding: 2rem;
    }
}

.checkout-grid-2, .checkout-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 600px) {
    .checkout-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .checkout-grid-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* Base Table Styling (used in cart) */
.cart-table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table-container th {
    padding: 1rem;
    border-bottom: 2px solid var(--brand-primary);
}

/* Responsive Grid Utilities */
.grid-2-resp {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 900px) {
    .grid-2-resp {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.cart-table-container td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}
