/*
 * Global styles for Material Design feel, centered around soft pinks.
 * Variables for easy color management.
 */

:root {
    /* Primary Pink Palette */
    --color-primary: #E91E63; /* Deep Pink/Rose */
    --color-primary-light: #FFCDD2; /* Lightest Pink */
    --color-primary-dark: #C2185B; /* Darker accent */
    --color-secondary: #FF80AB; /* Medium Pink */
    --color-background: #FFF8FA; /* Very light, off-white background */
    --color-surface: #FFFFFF; /* Pure white for cards/elements */
    --color-text-primary: #4A148C; /* Deep purple/maroon for contrast */
    --color-text-secondary: #757575; /* Grey for descriptions */
    --color-border: #F8BBD0; /* Light pink border */
    --color-success: #81C784; /* Green for buttons/accents */
    --color-error: #EF5350; /* Red for error states */
    --color-btn-2: #7c6ef4;
    --color-btn-2-hover: #544ba2;
    
    /* Typography */
    --font-family-main: 'Roboto', sans-serif;
    --spacing-unit: 8px;
}

/* BASE STYLES */
body {
    font-family: var(--font-family-main);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.header {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 3em;
    margin-bottom: 5px;
    margin-top: 5px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

/* =========================================
   SLIDER STYLES
   ========================================= */
.slider-section {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    height: 600px; /* Fixed height for visual consistency */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover; /* Placeholder for real image */
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slider-dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

/* =========================================
   CATALOG STYLES
   ========================================= */
.catalog-section {
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: var(--color-text-primary);
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.product-card {
    background-color: var(--color-surface);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    padding: 15px;
    text-align: center;
    flex: 1; /* Ensures even distribution */
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--color-border);
}

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

.product-image {
    width: 100%;
    height: 200px;
    background-color: var(--color-primary-light); /* Placeholder color */
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    font-style: italic;
}

.product-card h3 {
    font-size: 1.3em;
    margin: 10px 0 5px;
    color: var(--color-primary-dark);
}

.product-card .description {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.product-card .price {
    display: block;
    font-size: 1.4em;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 700;
    transition: background-color 0.2s;
    width: 100%;
}

.btn:hover {
    background-color: var(--color-primary-dark);
}

.btn-2 {
    background-color: var(--color-btn-2);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 700;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-2:hover {
    background-color: var(--color-btn-2-hover);
}

/* =========================================
   ABOUT SECTION STYLES
   ========================================= */
.about-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-section h2 {
    color: var(--color-text-primary);
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1.1em;
    color: var(--color-text-secondary);
}

/* =========================================
   FOOTER STYLES
   ========================================= */
.footer {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 5px 5px;
    text-align: center;
}

.footer h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.footer p {
    margin: 10px 0;
    font-size: 1em;
}

.footer a {
    color: #FFCDD2;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVENESS (Mobile adjustments)
   ========================================= */
@media (max-width: 992px) {
    .header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    /* Slider adjustments */
    .slider-container {
        height: 300px;
    }
    .slide {
        font-size: 2em;
    }
    
    /* Product grid changes to single column flow */
    .product-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .product-card {
        width: 100%;
    }
}
