/* Critical CSS file for ProArgi website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #111;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px 0 20px;
}

header, main, footer {
    width: 100%;
    max-width: 800px;
    background-color: #222;
}

main {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding-bottom: 30px;
    margin-top: 15px;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with placeholders for CLS prevention */
.hero-section {
    background-color: #222;
    padding: 40px 0;
    text-align: center;
    min-height: 500px; /* Reserve space for content */
}

/* Product image container with fixed dimensions */
.product-image-container {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    position: relative;
}

.main-product-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Typography with explicit sizing to prevent layout shifts */
h1, h2, h3, h4, h5, h6 {
    color: #f0f0f0;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

h2 {
    font-size: 32px;
    min-height: 42px; /* Reserve space for this element */
}

p {
    margin-bottom: 15px;
    color: #c5c5c5;
    font-size: 20px;
}

/* Specific styles for important elements in the viewport */
.tagline {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #f0f0f0;
    min-height: 40px; /* Reserve space */
}

.highlight {
    color: #FFC800;
    font-weight: 700;
}

.official-store {
    color: #FFC800;
    font-size: 30px;
    font-weight: 700;
}

/* Welcome bar */
.sticky-welcome-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffeb3b;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    height: 40px; /* Fixed height to prevent CLS */
}

.welcome-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.welcome-text {
    color: #ff0000;
    font-weight: bold;
    font-size: 18px;
}

/* Optimizing for animation */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}
