/* --- Variables --- */
:root {
    /* Colors */
    --color-white: #ffffff;
    --color-off-white: #f9f9f9;
    --color-black-soft: #111111;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #e0e0e0;
    --color-text-body: #333333;

    /* Accents */
    --color-nude: #e6dace;
    --color-sand: #d4c5b5;
    --color-olive-light: #aeb5a3;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    /* Modern, clean */
    --font-secondary: 'Cormorant Garamond', serif;
    /* Sophisticated, editorial */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --header-height: 80px;
    --container-width: 1400px;

    /* Effects */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-black-soft);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-black-soft);
    color: var(--color-white);
    border-color: var(--color-black-soft);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-black-soft);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-black-soft);
    border-color: var(--color-black-soft);
}

.btn-secondary:hover {
    background-color: var(--color-black-soft);
    color: var(--color-white);
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    height: 50px;
    width: auto;
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 3rem;

    @media (max-width: 768px) {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
        border-bottom: 1px solid var(--color-gray-medium);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
}

.nav-menu.active {
    transform: translateY(0);
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    color: var(--color-black-soft);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-black-soft);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    font-size: 1.4rem;
    color: var(--color-black-soft);
    position: relative;
    transition: transform 0.2s ease;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-black-soft);
    color: var(--color-white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;

    @media (max-width: 768px) {
        display: block;
    }
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--color-gray-light);
    /* Placeholder for image */
    background-size: cover;
    background-position: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    line-height: 1.1;
    margin-top: 0.5rem;
    /* Reduced from 1.5rem to bring closer to image */

    @media (max-width: 768px) {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem to bring closer to buttons */
    color: var(--color-text-body);
    font-weight: 300;
}

.hero-image-container {
    margin: 0 auto 0;
    /* No bottom margin, handled by title top margin */
    max-width: 350px;

    @media (max-width: 768px) {
        max-width: 100%;
        padding: 0 1rem;
    }
}

.hero-highlight-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;

    @media (max-width: 768px) {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sections --- */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

/* --- Grids --- */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;

    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

/* --- Product Card --- */
.product-card {
    text-align: center;
    cursor: pointer;
    /* group: hover removed as it is not valid CSS */
}

.product-image {
    width: 100%;
    aspect-ratio: 3/4;
    /* Vertical fashion ratio */
    object-fit: cover;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 3/4;
    background-color: var(--color-gray-medium);
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.placeholder-image::after {
    content: 'IMAGEM';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    font-weight: 600;
}

.product-card:hover .placeholder-image {
    transform: scale(1.02);
}

.product-info {
    padding: 0.5rem;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-black-soft);
}

.product-price {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 0.5rem;
}

.btn-buy {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--color-black-soft);
    padding-bottom: 2px;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(10px);
}

.product-card:hover .btn-buy {
    opacity: 1;
    transform: translateY(0);
}

/* --- Brand Concept --- */
.brand-concept {
    background-color: var(--color-off-white);
    text-align: center;
}

.concept-container {
    max-width: 800px;
}

.concept-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.concept-text {
    font-size: 1.1rem;
    color: var(--color-text-body);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid var(--color-black-soft);
    padding-bottom: 4px;
}

/* --- Categories --- */
.category-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card.large {
    height: 450px;
    /* Reduced from 600px to avoid side cropping */
}

.category-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-gray-light);
    transition: transform 0.6s ease;
    object-fit: cover;
    /* Ensures image covers the area */
    display: block;
    opacity: 0.9;
    /* Slightly transparent as requested */
}

.category-card:hover .category-bg {
    transform: scale(1.05);
}

.category-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem 2.5rem;
    backdrop-filter: blur(5px);
}

.category-content h3 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-link {
    font-size: 0.8rem;
    text-decoration: underline;
}

/* --- Cart Drawer --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(2px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--color-white);
    z-index: 1002;
    transition: var(--transition-smooth);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;

    @media (max-width: 480px) {
        width: 100%;
        right: -100%;
    }
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 500;
}

.close-cart {
    font-size: 1.5rem;
    color: var(--color-black-soft);
    transition: transform 0.2s;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart-message {
    text-align: center;
    color: var(--color-text-body);
    margin-top: 2rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--color-gray-medium);
    background-color: var(--color-off-white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    letter-spacing: 1px;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-black-soft);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 2rem;
}

.expanded-footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.footer-col h4 {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-gray-light);
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--color-gray-medium);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-white);
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;

    @media (max-width: 768px) {
        justify-content: center;
    }
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}