/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Design System */
:root {
    /* Colors - Sage green palette */
    --sage: #1A1A40;
    --sage-light-title: #00CED1;
    --sage-light: hsl(85, 12%, 85%);
    --sage-dark: hsl(85, 20%, 35%);
    --cream: hsl(40, 25%, 98%);
    --cream-dark: hsl(35, 20%, 94%);
    --background: 	#0D0D1A;
    --foreground: hsl(25, 15%, 15%);
    --muted-foreground: #1A1A40;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px -4px hsla(85, 15%, 45%, 0.15);
    --shadow-card: 0 8px 30px -8px hsla(85, 15%, 45%, 0.20);
    
    /* Border radius */
    --radius: 0.75rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base body styles */
body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.catalog-container {
    min-height: 100vh;
}

/* Header Styles */
.catalog-header {
    position: relative;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-sm);
}

.header-content {
    max-width: 64rem;
    margin: 0 auto;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.title-accent {
    color: white;
}

.address-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.line {
    width: 2rem;
    height: 1px;
    background-color: var(--sage);
}

.address {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

/* Sparkle decorative elements */
.sparkle {
    position: absolute;
    color: var(--sage-light-title);
    opacity: 0.6;
    pointer-events: none;
}

.sparkle-1 {
    top: 2rem;
    left: 25%;
    font-size: 1.25rem;
}

.sparkle-2 {
    top: 3rem;
    right: 33%;
    font-size: 0.875rem;
}

.sparkle-3 {
    bottom: 1rem;
    left: 20%;
    font-size: 1.125rem;
}

.sparkle-4 {
    bottom: 2rem;
    right: 25%;
    font-size: 0.75rem;
}

.sparkle-5 {
    bottom: 3rem;
    left: 16.67%;
    font-size: 1.25rem;
}

.sparkle-6 {
    bottom: 5rem;
    right: 20%;
    font-size: 1.125rem;
}

/* Products Section */
.products-section {
    max-width: 80rem;
    margin: 0 auto;
    padding: var(--spacing-lg) var(--spacing-sm);
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

/* Responsive grid */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Product Card Styles */
.product-card {
    background: var(--cream);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid hsla(85, 12%, 85%, 0.2);
}

.product-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-card);
}

.product-header {
    background-color: var(--sage);
    color: var(--cream);
    padding: var(--spacing-sm) var(--spacing-md);
}

.product-title {
    /* font-family: var(--font-heading); */
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

.product-content {
    padding: var(--spacing-md);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-price {
    margin-bottom: var(--spacing-sm);
}

.price-main {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--foreground);
}

.price-cash {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    font-style: italic;
}

.product-description {
    color: hsla(25, 15%, 15%, 0.8);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Footer Styles */
.catalog-footer {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-sm);
}

.footer-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.cta-section {
    margin-bottom: var(--spacing-2xl);
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.cta-title::before,
.cta-title::after {
    content: '✦';
    position: absolute;
    color: var(--sage);
    opacity: 0.6;
    font-size: 1.2rem;
}

.cta-title::before {
    top: -0.5rem;
    left: -0.75rem;
}

.cta-title::after {
    bottom: -0.25rem;
    right: -0.75rem;
    font-size: 0.8rem;
}

.cta-button {
    background-color: var(--sage);
    color: var(--cream);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    font-family: var(--font-body);
}

.cta-button:hover {
    background-color: var(--sage-dark);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.social-section {
    padding-top: var(--spacing-lg);
    border-top: 1px solid hsla(85, 12%, 85%, 0.3);
}

.social-handle {
    background-color: var(--sage);
    color: var(--cream);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius);
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .catalog-header {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .products-section {
        padding: var(--spacing-sm);
    }
    
    .catalog-footer {
        padding: var(--spacing-xl) var(--spacing-sm);
    }
    
    .sparkle {
        display: none;
    }
}

/* Focus styles for accessibility */
.cta-button:focus {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .sparkle {
        display: none;
    }
    
    .cta-button {
        color: var(--sage) !important;
        background: transparent !important;
        border: 2px solid var(--sage) !important;
    }
}