/* ========== VARIÁVEIS DE CORES DUALLE ========== */
:root {
    --ouro-luxuoso: #C6A664;
    --azul-noite: #0C1A2A;
    --perola-suave: #F4EFE6;
    --champagne-rose: #D9B9A9;
    --cinza-nobre: #5A5A5A;
    --branco: #FFFFFF;
    --preto: #000000;
}

/* ========== RESET E ESTILOS GLOBAIS ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--perola-suave);
    color: var(--azul-noite);
    line-height: 1.6;
}

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

/* ========== HEADER ========== */
.header {
    background: linear-gradient(to right, var(--azul-noite), #0a1420, var(--azul-noite));
    color: var(--branco);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 50px;
    width: auto;
    cursor: pointer;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--branco);
    padding: 10px 15px;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--branco);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.cart-btn {
    background: rgba(198, 166, 100, 0.2);
    border: 1px solid var(--ouro-luxuoso);
    color: var(--ouro-luxuoso);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: rgba(198, 166, 100, 0.3);
}

.cart-btn span {
    margin-left: 5px;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, var(--azul-noite) 0%, #1a3a52 100%);
    color: var(--branco);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ========== BOTÕES ========== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--ouro-luxuoso);
    color: var(--azul-noite);
}

.btn-primary:hover {
    background: var(--champagne-rose);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--branco);
    color: var(--azul-noite);
}

.btn-add {
    background: var(--azul-noite);
    color: var(--branco);
    width: 100%;
    padding: 10px;
    font-size: 13px;
}

.btn-add:hover {
    background: #1a2d42;
}

/* ========== CATEGORIAS ========== */
.categories {
    background: var(--perola-suave);
    padding: 60px 0;
}

.categories h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 10px;
}

.categories > .container > p {
    color: var(--cinza-nobre);
    margin-bottom: 40px;
}

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

.category-card {
    background: linear-gradient(135deg, #fce7f3 0%, #f3e8ff 100%);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--azul-noite);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-emoji {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 13px;
    color: var(--cinza-nobre);
}

/* ========== LOJA (SHOP) ========== */
.shop-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 30px;
}

.sidebar {
    width: 250px;
    padding: 20px;
    background: var(--branco);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--ouro-luxuoso);
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-group h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.filter-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-inputs input {
    width: 50%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.shop-main {
    flex: 1;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.shop-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
}

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

.product-card {
    background: var(--branco);
    color: var(--azul-noite);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer; /* Adicionado para indicar que é clicável */
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para Imagens de Produtos */
.product-image-container {
    height: 180px; /* Altura fixa para o container da imagem */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--perola-suave); /* Fundo suave para imagens PNG */
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Garante que a imagem caiba sem cortar */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-card .category {
    font-size: 12px;
    color: var(--cinza-nobre);
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 22px;
    font-weight: bold;
    color: var(--ouro-luxuoso);
    margin-bottom: 15px;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--azul-noite);
    color: var(--branco);
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--ouro-luxuoso);
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--branco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--ouro-luxuoso);
}

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

/* ========== CARRINHO MODAL ========== */
.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: flex-end;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    width: 350px;
    background: var(--branco);
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.cart-modal.active .cart-content {
    transform: translateX(0);
}

.cart-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--azul-noite);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 10px;
    border-radius: 4px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-item-price {
    font-size: 12px;
    color: var(--cinza-nobre);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-controls button {
    background: var(--azul-noite);
    color: var(--branco);
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cart-item-controls button:last-child {
    background: #FF6B6B;
}

.cart-footer {
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.cart-total-container {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-total-price {
    color: var(--ouro-luxuoso);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--cinza-nobre);
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .shop-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Estilos para a Página de Detalhes do Produto */
.product-detail-container {
    display: flex;
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
    gap: 40px;
}

.product-gallery {
    width: 50%;
}

.main-image-container {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-info {
    width: 50%;
}

.product-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 10px;
}

.product-info .category-type {
    font-size: 14px;
    color: var(--cinza-nobre);
    margin-bottom: 20px;
}

.product-info .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--ouro-luxuoso);
    margin-bottom: 20px;
}

.product-info .description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-control input {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.quantity-control button {
    background: var(--azul-noite);
    color: var(--branco);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-buy {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    margin-top: 10px;
}

/* Modal de Zoom */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.zoom-modal.active {
    display: flex;
}

.zoom-content {
    max-width: 90%;
    max-height: 90%;
}

.zoom-content img {
    width: auto;
    max-height: 100vh;
    display: block;
}

.zoom-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.zoom-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
    }

    .product-gallery, .product-info {
        width: 100%;
    }
}
