/* =========================================================
   BAZAR DAS ARLETES
   Modern Premium Bazaar Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =========================================================
   1. Root Variables
   ========================================================= */

:root {
    /* Brand */
    --color-primary: #14345A;
    --color-primary-dark: #0D243F;
    --color-primary-soft: #E8EEF5;
    /* Warm Neutral Palette */
    --color-accent: #D8C3A5;
    --color-accent-soft: #F5EFE6;
    --color-rose-soft: #F3D7DA;
    --color-peach-soft: #F6E3D7;
    --color-mint-soft: #DDEEE5;
    --color-blue-soft: #DDEAF7;
    /* Base */
    --color-background: #FAF7F2;
    --color-surface: #FFFFFF;
    --color-surface-soft: #FFFDF9;
    /* Text */
    --color-text: #24324A;
    --color-text-muted: #697386;
    --color-text-soft: #8B95A5;
    /* Borders */
    --color-border: #E8DED2;
    --color-border-soft: #F0E8DF;
    /* Feedback */
    --color-success: #2E8B57;
    --color-warning: #D4912A;
    --color-danger: #C94C4C;
    /* Layout */
    --container-width: 1280px;
    --header-height: 78px;
    /* Radius */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 42px;
    --radius-pill: 999px;
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(20, 52, 90, 0.08);
    --shadow-medium: 0 18px 50px rgba(20, 52, 90, 0.12);
    --shadow-card: 0 8px 24px rgba(20, 52, 90, 0.07);
    /* Transitions */
    --transition-fast: all 0.18s ease;
    --transition-default: all 0.25s ease;
}

/* =========================================================
   2. Reset
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at top right, rgba(243, 215, 218, 0.45), transparent 32rem), radial-gradient(circle at bottom left, rgba(221, 234, 247, 0.45), transparent 32rem), var(--color-background);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: none;
}

/* =========================================================
   3. Typography
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--color-text-muted);
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   4. Material Symbols
   ========================================================= */

.material-symbols-rounded {
    display: inline-flex;
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: normal;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}

/* =========================================================
   5. Layout
   ========================================================= */

.container {
    margin: 0 auto;
    max-width: var(--container-width);
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: 5.5rem 0;
}

.section-soft {
    background-color: rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-xl);
    margin: 2rem auto;
    max-width: calc(var(--container-width) + 3rem);
}

.section-header {
    margin-bottom: 2.5rem;
    max-width: 720px;
}

    .section-header p {
        font-size: 1.05rem;
        margin-top: 0.8rem;
    }

/* =========================================================
   6. Buttons
   ========================================================= */

.btn-primary,
.btn-secondary,
.btn-soft {
    align-items: center;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.98rem;
    font-weight: 700;
    gap: 0.55rem;
    justify-content: center;
    min-height: 48px;
    padding: 0.9rem 1.35rem;
    transition: var(--transition-default);
}

.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 12px 26px rgba(20, 52, 90, 0.18);
}

    .btn-primary:hover {
        background-color: var(--color-primary-dark);
        transform: translateY(-1px);
    }

.btn-secondary {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
}

    .btn-secondary:hover {
        background-color: var(--color-accent-soft);
        border-color: var(--color-accent);
    }

.btn-soft {
    background-color: var(--color-accent-soft);
    color: var(--color-primary);
}

    .btn-soft:hover {
        background-color: var(--color-primary-soft);
    }

/* =========================================================
   7. App Shell
   ========================================================= */

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
}

.app-footer {
    background-color: var(--color-primary);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    color: #FFFFFF;
    margin-top: 4rem;
    padding: 2rem 0;
}

    .app-footer p {
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.95rem;
    }

/* =========================================================
   8. Navigation
   ========================================================= */

.app-header {
    backdrop-filter: blur(18px);
    background-color: rgba(250, 247, 242, 0.86);
    border-bottom: 1px solid rgba(232, 222, 210, 0.75);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-nav {
    height: var(--header-height);
}

.nav-container {
    align-items: center;
    display: flex;
    gap: 2rem;
    height: 100%;
    justify-content: space-between;
}

.brand {
    align-items: center;
    color: var(--color-primary);
    display: inline-flex;
    font-size: 1.15rem;
    font-weight: 900;
    gap: 0.65rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

    .brand .material-symbols-rounded {
        background-color: var(--color-primary);
        border-radius: 50%;
        color: #FFFFFF;
        font-size: 1.45rem;
        padding: 0.45rem;
    }

.nav-links {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-pill);
    display: flex;
    gap: 0.35rem;
    padding: 0.35rem;
}

    .nav-links a {
        border-radius: var(--radius-pill);
        color: var(--color-text-muted);
        font-size: 0.92rem;
        font-weight: 700;
        padding: 0.65rem 1rem;
        transition: var(--transition-fast);
    }

        .nav-links a:hover,
        .nav-links a.active {
            background-color: var(--color-primary);
            color: #FFFFFF;
        }

.nav-action {
    align-items: center;
    background-color: var(--color-primary);
    border-radius: var(--radius-pill);
    color: #FFFFFF;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 0.45rem;
    padding: 0.75rem 1.05rem;
    transition: var(--transition-default);
}

    .nav-action:hover {
        background-color: var(--color-primary-dark);
        transform: translateY(-1px);
    }

/* =========================================================
   Hero
   ========================================================= */

.hero-section {
    background-color: #F8EFE6;
    min-height: 78vh;
    overflow: hidden;
    position: relative;
}

.hero-background {
    bottom: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 68%;
}

    .hero-background img {
        height: 100%;
        object-fit: cover;
        object-position: right center;
        width: 100%;
    }

    .hero-background::before {
        background: linear-gradient( 90deg, #F8EFE6 0%, rgba(248, 239, 230, 0.92) 14%, rgba(248, 239, 230, 0.55) 32%, rgba(248, 239, 230, 0) 55% );
        content: "";
        inset: 0;
        position: absolute;
        z-index: 1;
    }

.hero-overlay {
    align-items: center;
    display: flex;
    min-height: 78vh;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
    padding: 3rem 0;
}

    .hero-content h1 {
        color: var(--color-primary);
        font-size: clamp(2.8rem, 6vw, 5.2rem);
        font-weight: 900;
        letter-spacing: -0.08em;
        line-height: 0.92;
        margin-top: 1.2rem;
        max-width: 560px;
        text-transform: uppercase;
    }

.hero-badge {
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-pill);
    color: var(--color-primary);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
}

    .hero-badge::before {
        background-color: var(--color-primary);
        border-radius: 50%;
        content: "";
        height: 0.5rem;
        width: 0.5rem;
    }

.hero-content h1 {
    color: var(--color-primary);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.92;
    margin-top: 1.2rem;
    max-width: 520px;
    text-transform: uppercase;
}

.hero-content p {
    color: var(--color-text);
    font-size: 1.08rem;
    margin-top: 1.4rem;
    max-width: 470px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {

    .hero-section {
        min-height: auto;
    }

    .hero-background img {
        object-position: 68% center;
    }

    .hero-overlay {
        align-items: flex-end;
        min-height: 88vh;
        padding-bottom: 2.5rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

        .hero-content h1 {
            font-size: 3rem;
        }

        .hero-content p {
            font-size: 1rem;
        }

    .hero-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* =========================================================
   10. Cards
   ========================================================= */

.card {
    background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition-default);
}

    .card:hover {
        box-shadow: var(--shadow-medium);
        transform: translateY(-4px);
    }

/* =========================================================
   11. Products
   ========================================================= */

.products-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
    background-color: var(--color-surface);
}

.product-image {
    background-color: var(--color-accent-soft);
}

    .product-image img {
        aspect-ratio: 1 / 1;
        display: block;
        object-fit: cover;
        width: 100%;
    }

.product-content {
    padding: 1.25rem;
}

.product-category {
    color: var(--color-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-content h3 {
    color: var(--color-text);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-top: 0.55rem;
}

.product-footer {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 1.1rem;
}

.product-price {
    color: var(--color-primary);
    font-size: 1.15rem;
    font-weight: 900;
}

.product-button {
    align-items: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    transition: var(--transition-default);
    width: 44px;
}

    .product-button:hover {
        background-color: var(--color-primary-dark);
        transform: scale(1.04);
    }

/* =========================================================
   12. Forms
   ========================================================= */

input,
textarea,
select {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    outline: none;
    padding: 0.95rem 1rem;
    transition: var(--transition-default);
    width: 100%;
}

    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 4px rgba(20, 52, 90, 0.08);
    }

/* =========================================================
   13. Utilities
   ========================================================= */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--color-text-muted);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* =========================================================
   14. Blazor Error
   ========================================================= */

#blazor-error-ui {
    background-color: #FFF3CD;
    bottom: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
    color: #3F2F00;
    display: none;
    left: 0;
    padding: 0.9rem 1.25rem;
    position: fixed;
    right: 0;
    z-index: 1000;
}

    #blazor-error-ui .reload {
        font-weight: 800;
        margin-left: 1rem;
    }

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 1rem;
    }

/* =========================================================
   15. Responsive
   ========================================================= */

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
    }

    .hero-background {
        width: 100%;
    }

        .hero-background img {
            object-fit: cover;
            object-position: center;
        }

    .hero-overlay {
        min-height: auto;
        padding: 5rem 0;
    }

    .nav-links {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-section {
        min-height: 82vh;
    }

    .hero-background {
        width: 100%;
    }

        .hero-background img {
            object-fit: cover;
            object-position: 72% center;
        }

        .hero-background::before {
            background: linear-gradient( 90deg, rgba(248, 239, 230, 0.96) 0%, rgba(248, 239, 230, 0.88) 42%, rgba(248, 239, 230, 0.35) 72%, rgba(248, 239, 230, 0.05) 100%);
        }

    .hero-overlay {
        align-items: center;
        min-height: 82vh;
        padding: 2rem 0;
    }

    .hero-content {
        max-width: 92%;
        padding: 2rem 0;
    }

        .hero-content h1 {
            font-size: clamp(2.15rem, 10vw, 3.3rem);
            letter-spacing: -0.07em;
            line-height: 0.95;
            margin-bottom: 1rem;
            max-width: 340px;
        }

        .hero-content p {
            font-size: 0.98rem;
            line-height: 1.55;
            margin-bottom: 1.5rem;
            max-width: 330px;
        }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 330px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-soft {
        width: 100%;
    }

    .brand span:last-child {
        font-size: 0.95rem;
    }

    .nav-action {
        height: 44px;
        padding: 0;
        width: 44px;
    }

        .nav-action .material-symbols-rounded {
            font-size: 1.45rem;
        }

        .nav-action span:last-child {
            display: none;
        }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-content {
        padding: 0.9rem;
    }

        .product-content h3 {
            font-size: 0.95rem;
        }

    .product-price {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.45rem;
        max-width: 300px;
    }

    .hero-content p {
        max-width: 300px;
    }

    .hero-actions {
        max-width: 300px;
    }

    .brand span:last-child {
        max-width: 185px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Categories
   ========================================================= */

.category-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 3rem;
}

.category-card {
    background: linear-gradient(145deg, #ffffff, #fbf5ee);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    min-height: 220px;
    padding: 2rem;
    transition: var(--transition-default);
}

    .category-card:hover {
        box-shadow: var(--shadow-medium);
        transform: translateY(-4px);
    }

    .category-card .material-symbols-rounded {
        align-items: center;
        background-color: var(--color-primary);
        border-radius: 22px;
        color: #FFFFFF;
        display: inline-flex;
        font-size: 2rem;
        height: 68px;
        justify-content: center;
        width: 68px;
    }

    .category-card strong {
        color: var(--color-primary);
        display: block;
        font-size: 1.25rem;
        font-weight: 900;
    }

    .category-card small {
        color: var(--color-text-muted);
        display: block;
        font-size: 0.95rem;
        line-height: 1.6;
        margin-top: 0.5rem;
    }

@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-menu-button {
    align-items: center;
    background-color: var(--color-primary);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: none;
    height: 48px;
    justify-content: center;
    transition: var(--transition-default);
    width: 48px;
}

    .mobile-menu-button:hover {
        background-color: var(--color-primary-dark);
    }

    .mobile-menu-button .material-symbols-rounded {
        font-size: 1.5rem;
    }

@media (max-width: 992px) {
    .nav-container {
        position: relative;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .nav-links {
        background-color: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--color-border-soft);
        border-radius: 24px;
        box-shadow: var(--shadow-medium);
        display: none;
        flex-direction: column;
        gap: 0.35rem;
        left: 1rem;
        padding: 0.75rem;
        position: absolute;
        right: 1rem;
        top: calc(var(--header-height) + 0.5rem);
        z-index: 100;
    }

        .nav-links.is-open {
            display: flex;
        }

        .nav-links a {
            display: block;
            padding: 0.9rem 1rem;
            width: 100%;
        }
}

@media (max-width: 768px) {
    .nav-container {
        gap: 0.65rem;
    }

    .brand span:last-child {
        font-size: 0.95rem;
    }

    .mobile-menu-button {
        height: 44px;
        width: 44px;
    }

    .nav-action {
        height: 44px;
        padding: 0;
        width: 44px;
    }

        .nav-action .material-symbols-rounded {
            font-size: 1.45rem;
        }

        .nav-action span:last-child {
            display: none;
        }
}