/* Christmas Collection Styles */

/* Hero Section */
.christmas-hero {
    background: linear-gradient(135deg, #DC143C 0%, #228B22 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-top: 70px;

    /* Centralização */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 70vh; /* altura mínima para ocupar boa parte da tela */
}

.christmas-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
}

.christmas-hero .hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    animation: slideUp 0.8s ease-out 0.2s both;
}

/* Christmas Showcase Section */
.christmas-showcase {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.christmas-showcase h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Card */
.christmas-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
}

.christmas-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.2);
}

.card-image {
    width: 100%;
    height: 280px;
    background: rgba(10, 14, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #DC143C;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-price {
    font-size: 1.4rem;
    color: #228B22;
    font-weight: bold;
    margin-bottom: 15px;
}

.card-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #228B22, #30C530);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.cart-modal {
    max-width: 600px;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

/* Product Detail Modal */
.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.modal-image {
    background: rgba(10, 14, 26, 0.95);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-height: 500px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    transition: transform 0.3s ease;
}

.modal-image:hover img {
    transform: scale(1.05);
}

.product-image-placeholder {
    font-size: 6rem;
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.detail-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.detail-specs {
    margin-bottom: 25px;
}

.detail-specs h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.detail-specs ul {
    list-style: none;
    padding: 0;
}

.detail-specs li {
    color: #666;
    padding: 5px 0;
    font-size: 0.9rem;
}

.detail-specs li:before {
    content: "✓ ";
    color: #228B22;
    font-weight: bold;
    margin-right: 8px;
}

/* Color Selection */
.color-selection {
    margin-bottom: 25px;
}

.color-selection label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    border-color: #228B22;
    background: #f5f5f5;
}

.color-option.selected {
    border-color: #228B22;
    background: #fff3f3;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #333;
}

.color-name {
    font-size: 0.9rem;
    color: #333;
}

/* Quantity Selection */
.quantity-selection {
    margin-bottom: 25px;
}

.quantity-selection label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: #228B22;
}

#quantityInput {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Modal Footer */
.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.unit-price {
    color: #666;
    font-size: 0.95rem;
}

.total-price {
    font-size: 1.3rem;
    color: #228B22;
    font-weight: bold;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #228B22, #30C530);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
    padding: 12px 24px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e8e8e8;
}

/* Cart Modal */
.cart-header {
    padding: 30px 40px;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    margin: 0;
    color: #333;
}

.cart-body {
    padding: 30px 40px;
    min-height: 200px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #228B22;
}

.cart-item-image {
    font-size: 3rem;
    min-width: 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 26, 0.95);
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-color {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.cart-item-price {
    color: #228B22;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-qty-control button {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.9rem;
}

.cart-qty-control input {
    width: 40px;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.remove-btn {
    padding: 6px 12px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #ff5252;
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-cart p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.cart-footer {
    padding: 30px 40px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-summary {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #666;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    border-top: 2px solid #ddd;
    padding-top: 12px;
    margin-top: 12px;
}

.cart-actions {
    display: flex;
    gap: 12px;
}

.cart-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cart-actions .btn-primary {
    background: linear-gradient(135deg, #228B22, #30C530);
    color: white;
}

.cart-actions .btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cart Link Styling */
.cart-link {
    display: flex;
    align-items: center;
    margin-left: 20px;
    font-weight: 600;
    color: #DC143C; /* Cor de destaque para o carrinho */
    transition: color 0.3s ease;
    text-decoration: none; /* Remover sublinhado */
}

.cart-link:hover {
    color: #228B22;
}

.cart-link span {
    font-size: 0.8em; /* Ajuste o tamanho do contador */
    background-color: #DC143C;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 5px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
    /* Garante que o nav-container use flexbox para posicionamento */
    .nav-container {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    /* Reposiciona o carrinho */
    .nav-container .cart-link {
        order: 3; /* Coloca o carrinho à esquerda */
        margin-right: 10px; /* Adiciona margem à direita para separar do logo */
        margin-left: 0; /* Remove margem esquerda anterior */
        font-size: 1.5rem;
        position: relative;
    }

    .nav-container .cart-link span {
        font-size: 0.5em; /* Ajuste o tamanho do contador para mobile */
        position: absolute;
        top: 5px;
        right: 5px;
    }

    .nav-container .hamburger {
        order: 1; /* Coloca o hambúrguer à direita */
        margin-left: 10px;
        display: flex;
    }

    .nav-container .nav-logo {
        order: 2; /* Coloca o logo no centro */
        flex-grow: 1; /* Permite que o logo ocupe o espaço central */
        text-align: center; /* Centraliza o texto do logo */
    }

    /* Oculta o menu de navegação principal em mobile */
    .nav-menu {
        display: none;
        width: 100%; /* Garante que não ocupe espaço na linha */
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px; /* Altura da navbar */
        left: 0;
        width: 100%;
        background-color: #fff; /* Fundo branco para o menu */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu li {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        color: #333;
    }
    .christmas-hero .hero-content h1 {
        font-size: 2rem;
    }

    .christmas-hero .hero-content p {
        font-size: 1rem;
    }

    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .modal-image {
        min-height: 250px;
        max-height: 350px;
    }

    .product-image-placeholder {
        font-size: 4rem;
    }

    .card-image {
        height: 240px;
    }

    .cart-item-image {
        min-width: 70px;
        width: 70px;
        height: 70px;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-actions {
        flex-direction: column;
    }

    .color-options {
        gap: 8px;
    }

    .color-option {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .color-swatch {
        width: 20px;
        height: 20px;
    }
}
