/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores da Logo FD Design 3D */
    --primary-color: #203C67;       /* Azul escuro da logo */
    --primary-dark: #162B4D;        /* Azul ainda mais escuro */
    --primary-light: #2A4A79;       /* Azul médio */
    --gold-color: #E1B421;          /* Dourado da logo */
    --gold-dark: #C9950F;           /* Dourado escuro */
    --gold-light: #F0CC5A;          /* Dourado claro */
    --secondary-color: #E1B421;     /* Dourado como secundária */
    --text-dark: #1a2840;           /* Azul escuríssimo para texto */
    --text-light: #5a6a82;          /* Azul acinzentado claro */
    --bg-light: #f4f6f9;            /* Azul acinzentado suave */
    --bg-white: #ffffff;
    --border-color: #d1d9e6;        /* Borda azulada suave */
    --success: #1a7a4a;             /* Verde escuro harmonioso */
    --warning: #E1B421;             /* Dourado como warning */
    --danger: #c0392b;
    --shadow-sm: 0 1px 2px 0 rgba(32, 60, 103, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(32, 60, 103, 0.12);
    --shadow-lg: 0 10px 15px -3px rgba(32, 60, 103, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(32, 60, 103, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 12px rgba(32, 60, 103, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.logo img {
    height: 62px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s, transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Logo em fundo ESCURO: mix-blend-mode screen faz o preto sumir */
.logo-dark-bg {
    mix-blend-mode: screen;
}

/* Logo em fundo CLARO: multiply faz o preto sumir no branco */
.logo-light-bg {
    mix-blend-mode: multiply;
}

.logo i {
    font-size: 1.8rem;
    color: var(--gold-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold-color);
    border-bottom-color: var(--gold-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon,
.admin-icon {
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s;
}

.cart-icon:hover,
.admin-icon:hover {
    color: var(--gold-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #162B4D 0%, #203C67 50%, #1a3060 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225, 180, 33, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(225, 180, 33, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--gold-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.88;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-3d-icon {
    font-size: 15rem;
    color: var(--gold-color);
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

.hero-logo-img {
    max-width: 340px;
    width: 80%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Botões */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold-color);
    color: var(--primary-color);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--gold-dark);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 180, 33, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.7);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--gold-color);
    color: var(--gold-color);
    transform: translateY(-2px);
}

.btn-secondary-dark {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-dark:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--primary-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #a93226;
}

/* Seções */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold-color);
    border-radius: 2px;
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* Categorias */
.categories {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--gold-color);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
}

/* Produtos */
.featured-products {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    display: inline-block;
    background-color: var(--gold-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.product-stock {
    font-size: 0.85rem;
    color: var(--success);
}

.product-stock.out-of-stock {
    color: var(--danger);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.product-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Sobre */
.about {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo-img {
    max-width: 320px;
    width: 85%;
    transition: transform 0.4s ease;
    /* filter e mix-blend-mode herdados de logo-light-bg */
}

.about-logo-img:hover {
    transform: scale(1.04);
}

.about-icon {
    font-size: 12rem;
    color: var(--gold-color);
    opacity: 0.3;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-features {
    list-style: none;
    margin-top: 1.5rem;
}

.about-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-features i {
    color: var(--gold-dark);
    font-size: 1.3rem;
}

/* Contato */
.contact {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--gold-color);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.contact-card.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.contact-card.instagram {
    background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.contact-card.email {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #162B4D 0%, #0f1e35 100%);
    color: white;
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--gold-color);
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    /* mix-blend-mode e filter herdados de logo-dark-bg */
}
.footer-logo img:hover {
    transform: scale(1.06);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--gold-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading i {
    font-size: 3rem;
    color: var(--gold-color);
    animation: spin 1s linear infinite;
}

/* Mobile nav override */
@media (max-width: 768px) {
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        padding: 1rem 2rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        gap: 0.5rem;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-3d-icon {
        font-size: 8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-icon {
        font-size: 8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}
