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

@media (max-width: 768px) {
    * { border: 1px solid green !important; } /* Global Canary */
    
    .container {
        padding: 0 1.5rem;
    }

    /* Navbar Stacking */
    nav {
        height: auto;
        padding: 1rem 0;
    }

    nav .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    /* Typography & Hero */
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
    }

    /* Footer Grid Stacking */
    .footer-grid {
        grid-template: auto / 1fr !important;
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center;
    }

    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Partner Bar Stacking */
    .partner-bar {
        padding: 2rem 1.5rem !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .partner-bar-inner {
        grid-template: auto / 1fr !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }

    .partner-bar img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .partner-bar .partner-btn {
        width: 100% !important;
        max-width: 280px;
        margin: 0 auto;
        text-align: center;
        justify-content: center;
    }

    /* Cart Layout */
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

:root {
    --primary-blue: #0F172A; /* Darker, more cinematic blue */
    --secondary-teal: #14B8A6;
    --accent-lavender: #8B5CF6;
    --accent-orange: #F97316;
    --bg-light: #F8FAFC;
    --bg-dark: #020617; /* Deep cinematic black */
    --text-dark: #0F172A;
    --text-light: #F8FAFC;
    --text-muted: #64748B;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-dark: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-premium: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 40px rgba(30, 58, 138, 0.1);
    
    --radius-lg: 24px;
    --radius-md: 16px;
}

/* Cinematic Core Structures */
.cinematic-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cinematic-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.hero-title {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

@keyframes mesh {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.mesh-gradient {
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #f5f3ff, #ecfeff);
    background-size: 400% 400%;
    animation: mesh 15s ease infinite;
}

.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, .brand-font {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-premium);
    border: none;
    font-family: var(--font-body);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-teal));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.2);
}

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

.btn-outline:hover {
    background-color: var(--primary-brown);
    color: white;
}

/* Navbar */
nav {
    background-color: rgba(250, 248, 244, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 18, 9, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-brown);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.logo-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: -0.03em;
}

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

/* Footer */
footer {
    background-color: var(--primary-brown);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .tagline {
    font-family: var(--font-heading);
    font-style: italic;
    opacity: 0.8;
    margin-top: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: var(--brand-orange);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    opacity: 0.7;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--brand-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 248, 244, 0.1);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Partner Card */
.partner-card {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    min-width: 380px;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: #00d2ff;
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.15);
}

.partner-badge {
    color: #00d2ff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}

.partner-btn {
    background: #00d2ff;
    color: #0f172a;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.8rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-btn {
    background: white;
    transform: scale(1.05);
}

/* Partner Bar (Horizontal Version) */
.partner-bar {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem 2.5rem;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.partner-bar:hover {
    transform: translateY(-5px);
    border-color: #00d2ff;
    box-shadow: 0 15px 35px rgba(0, 210, 255, 0.15);
}

.partner-bar:hover .partner-btn {
    background: white;
    transform: scale(1.05);
}

.partner-bar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}


.nav-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--brand-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: none; /* Hidden if 0 */
    align-items: center;
    justify-content: center;
    border: 2px solid var(--warm-sand);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.premium-hover {
    transition: var(--transition-premium);
}

.premium-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-premium);
}

/* Cart Page Styles */
.cart-section {
    padding: 10rem 0 6rem;
}

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

.cart-items {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.total-row {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--warm-sand);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Payment Gateway */
.payment-modal {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--warm-sand);
    border-top: 5px solid var(--brand-orange);
    border-radius: 50%;
    margin: 2rem auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */

/* Resource Center SEO Section */
.resource-center {
    background: white;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.resource-center h2 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.resource-center h3 {
    font-weight: 700;
    margin-top: 2rem;
}

.resource-center p {
    color: var(--text-muted);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .resource-center {
        padding: 5rem 0 !important;
    }
    
    .resource-center .container {
        text-align: left;
    }
}
