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

:root {
    --brand-primary: #FF002B;
    --brand-secondary: #0A0E1A;
    --brand-accent: #FFEA52;
    --text-dark: #060E16; /* Black from brand guide */
    --text-light: #FFFFFF;
    --bg-light: #F8F9FA; /* Off-white for general background */
    --border-light: #E0E0E0;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --border-radius: 10px;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);

    /* Skeleton colors */
    --skeleton-bg: #e0e0e0;
    --skeleton-highlight: #f0f0f0;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation Bar */
.navbar {
    background-color: var(--brand-primary);
    padding: var(--spacing-md) 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.navbar-brand img {
    height: 40px;
    margin-right: var(--spacing-sm);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--text-light);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--spacing-sm) 0;
    position: relative;
}

.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.active::after,
.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(52deg, var(--brand-primary) 0%, #FFC3C0 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.hero-section h1 {
    color: var(--text-light);
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-section p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.btn-primary {
    background-color: var(--brand-accent);
    color: var(--text-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #FFDE30; /* Slightly darker accent */
    transform: translateY(-2px);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

.product-card {
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
}

.product-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--brand-secondary);
}

.product-info p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--brand-primary);
    margin-bottom: var(--spacing-md);
}

.add-to-cart-btn {
    background-color: var(--brand-primary);
    color: var(--text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.add-to-cart-btn:hover {
    background-color: var(--brand-secondary);
}

/* Section Heading */
.section-heading {
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.section-heading h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section-heading h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: var(--brand-accent);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background-color: var(--text-light);
    padding: 60px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: var(--spacing-lg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-lg) * 2);
}

.about-content img {
    max-width: 45%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--brand-primary);
}

/* Contact Section */
.contact-section {
    background-color: var(--text-light);
    padding: 60px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-bottom: var(--spacing-lg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--brand-secondary);
}

.form-group input,
.form-group textarea,
.filter-input,
.filter-select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(255, 0, 43, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-secondary {
    background-color: var(--brand-secondary);
    color: var(--text-light);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: #1A2030; /* Slightly darker secondary */
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--brand-secondary);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: var(--spacing-lg);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.footer p {
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    color: var(--brand-accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

/* Utility classes */
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* Page Management */
.page-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shop Filters */
.shop-filters {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
    padding: var(--spacing-md) 0;
    background-color: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--shadow-light);
}

.filter-input, .filter-select {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

/* Loading Skeletons */
@keyframes pulse-bg {
    0% { background-color: var(--skeleton-bg); }
    50% { background-color: var(--skeleton-highlight); }
    100% { background-color: var(--skeleton-bg); }
}

.product-card.loading {
    pointer-events: none;
}

.skeleton-image {
    width: 100%;
    height: 250px;
    background-color: var(--skeleton-bg);
    animation: pulse-bg 1.5s infinite ease-in-out;
    border-bottom: 1px solid var(--border-light);
}

.skeleton-text {
    height: 16px;
    background-color: var(--skeleton-bg);
    animation: pulse-bg 1.5s infinite ease-in-out;
    margin-bottom: var(--spacing-sm);
    border-radius: 4px;
}

.skeleton-text-lg {
    height: 24px;
    width: 80%;
}

.skeleton-text-sm {
    height: 14px;
    width: 60%;
}

.skeleton-price {
    height: 28px;
    width: 50%;
    background-color: var(--skeleton-bg);
    animation: pulse-bg 1.5s infinite ease-in-out;
    margin-bottom: var(--spacing-md);
    border-radius: 4px;
}

.skeleton-button {
    height: 40px;
    background-color: var(--skeleton-bg);
    animation: pulse-bg 1.5s infinite ease-in-out;
    border-radius: var(--border-radius);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-heading h2 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content img {
        max-width: 80%;
    }

    .shop-filters {
        flex-direction: column;
    }

    .filter-input, .filter-select {
        max-width: 100%;
    }
}
