/* Global Variables & Theme */
:root {
    /* Brand Colors - New Palette */
    --dark-teal: #235668;
    --wheat: #F9E0B3;
    --white: #FFFFFF;
    --midnight-violet: #1D1128;
    --sea-green: #0A8754;

    /* Semantic Mappings */
    --primary: var(--dark-teal);
    --primary-hover: #1c4554;
    /* Computed darker shade of Dark Teal for hover */
    --secondary: var(--wheat);
    --accent: var(--sea-green);

    --dark: var(--midnight-violet);
    --light: var(--white);
    --gray: #e9ecef;
    /* Kept existing gray for neutrals */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(29, 17, 40, 0.15);
    /* Adjusted shadow color to match midnight violet tint */

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    /* Transitions */
    --transition: all 0.3s ease;
}

/* Custom Fonts Placeholders */
@font-face {
    font-family: 'Playwrite PE';
    src: url('../fonts/Playwrite_PE/PlaywritePE-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: auto;
}

@font-face {
    font-family: 'Sitka';
    src: url('../fonts/sitka-3-style-font/sitka-small-599.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(35, 86, 104, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(35, 86, 104, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--dark);
    /* Dark text for contrast on Wheat */
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Layout */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    /* Fallback or visual spacing */
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.logo img {
    height: 50px;
    /* Adjust height to fit header */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark);
}

.cart-icon {
    font-size: 1.2rem;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* Sections */
section {
    padding: var(--spacing-lg) 0;
}

/* Hero Section Styles */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    /* slightly taller */
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
}

.hero-circle.circle-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    opacity: 0.1;
}

.hero-circle.circle-2 {
    bottom: 50px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary);
    opacity: 0.05;
}

.hero-grid {
    align-items: center;
    z-index: 1;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-container {
    width: 450px;
    height: 450px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    position: relative;
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: #888;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Responsive */
@media (max-width: 768px) {

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Header Mobile Layout */
    nav {
        justify-content: flex-start;
        /* Logo pushes everything else */
    }

    .logo {
        margin-right: auto;
        /* Pushes Cart and Hamburger to the right */
    }

    .hamburger {
        display: block;
        order: 3;
        /* Hamburger last */
        margin-left: 1.5rem;
        /* Space from Cart */
    }

    .cart-icon {
        order: 2;
        /* Cart before Hamburger */
    }

    /* Mobile Nav Dropdown */
    .nav-links {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    /* Responsive Hero */
    .hero {
        height: auto;
        padding: 6rem 0 4rem;
        /* More top padding for header */
        text-align: center;
    }

    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
        /* Image on top, then text? Or text then image. Let's do Text Top (natural) or Image Top. 
                                          Actually, let's keep text top for now, but centered. 
                                          Wait, 'grid-2' already makes it 1 col. */
        gap: 3rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        /* Ensure text inside blocks is centered */
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2.2rem !important;
        /* Slightly smaller for better fit */
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 1.1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-img-container {
        width: 80%;
        /* Don't take full width */
        max-width: 350px;
        height: auto;
        /* Allow auto height */
        aspect-ratio: 1/1;
        /* Maintain square */
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
}

/* Marquee / Infinite Scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* (300px card width + 2rem/32px gap) * 5 original cards = 1660px */
        transform: translateX(-1660px);
    }
}

.marquee-container {
    width: 100vw;
    overflow: hidden;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.marquee-content {
    display: flex;
    gap: 2rem;
    /* 32px */
    width: max-content;
    animation: scroll 20s linear infinite;
    padding-left: 2rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    width: 300px;
    /* Fixed width for calculation purposes */
    flex-shrink: 0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-toast i {
    color: var(--secondary);
    font-size: 1.2rem;
}