/* =========================================
🏗️ CLEO SHOP - LAYOUT STYLES (V1.0)
Structure: Navbar, Footer, Container, Grid, Responsive
Optimized for: Mobile-first, RTL, Performance
========================================= */

/* 1. 🌐 Container & Grid System */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .container { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
    .container { padding-left: 3rem; padding-right: 3rem; }
}

/* Grid utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}
.row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.col-12 { width: 100%; }
.col-md-6 { width: 50%; }
.col-md-4 { width: 33.333%; }
.col-lg-3 { width: 25%; }

@media (min-width: 768px) {
    .col-12 { width: 100%; }
    .col-md-6 { width: 50%; }
    .col-md-4 { width: 33.333%; }
}
@media (min-width: 1024px) {
    .col-lg-3 { width: 25%; }
}

/* 2. 🧭 Navbar Structure */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* 3. 🏠 Hero Section Structure */
.hero-section {
    background: linear-gradient(to bottom, #EAE5DB 0%, var(--site-bg) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 4. 📱 Sticky Mobile CTA Structure */
.sticky-mobile-order {
    position: fixed;
    bottom: 1.5rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 1001;
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sticky-mobile-order.v-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 5. 🦶 Footer Structure */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    background: #EAE5DB;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

/* 6. 📐 Responsive Breakpoints */
@media (max-width: 768px) {
    .hero-section { padding: 2.5rem 0; }
    .row { flex-direction: column; }
    .col-md-6, .col-md-4 { width: 100%; }
    body { padding-bottom: 6rem; } /* Space for sticky CTA */
}

@media (min-width: 768px) and (max-width: 1024px) {
    .col-md-6 { width: 50%; }
    .col-md-4 { width: 50%; }
}

@media (min-width: 1024px) {
    .sticky-mobile-order { display: none !important; }
    .hero-section { padding: 5rem 0; }
}

/* 7. 🧹 Layout Utilities */
.text-center { text-align: center; }
.text-end { text-align: left; } /* RTL */
.text-start { text-align: right; } /* RTL */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-block { display: inline-block; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-around { justify-content: space-around; }

.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-column { flex-direction: column; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }

/* Positioning */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }
.z-1000 { z-index: 1000; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* 8. 🖼️ Image Container Structure */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f5f5f5;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.object-fit-cover {
    object-fit: cover;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}