/* ============================================
   RESET E VARIÁVEIS
   ============================================ */

:root {
    --primary-color: #FF1493;
    --primary-dark: #E60A7A;
    --secondary-color: #000000;
    --accent-color: #FFD700;
    --text-color: #333333;
    --light-bg: #F5F5F5;
    --white: #FFFFFF;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* ============================================
   CONTAINER
   ============================================ */

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

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-bg);
}

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

.logo {
    flex-shrink: 0;
}

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

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    max-width: 400px;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
}

.search-bar input::placeholder {
    color: #999;
}

#searchBtn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link,
.cart-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-link:hover,
.cart-link:hover {
    color: var(--primary-color);
}

.cart-link {
    position: relative;
}

#cartCount {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background-color: var(--secondary-color);
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-menu li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    background-color: var(--secondary-color);
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ============================================
   BANNER CAROUSEL
   ============================================ */

.banner-carousel {
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-content {
    color: var(--white);
    text-align: left;
    padding: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 2px;
}

.carousel-content em {
    font-style: italic;
    font-weight: 300;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--white);
}

/* ============================================
   FEATURED SECTION
   ============================================ */

.featured-section {
    padding: 60px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-color);
}

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

.product-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

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

.product-image {
    width: 100%;
    height: 280px;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--light-bg);
    color: var(--text-color);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 60px;
}

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

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

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

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    z-index: 10;
}

.close:hover {
    color: var(--primary-color);
    background-color: rgba(217, 70, 239, 0.1);
    transform: rotate(90deg);
}

/* ============================================
   CART MODAL
   ============================================ */

#cartModal .modal-content {
    max-width: 600px;
}

.cart-items {
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--light-bg);
    gap: 15px;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: var(--white);
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background-color: var(--light-bg);
}

.cart-item-remove {
    background-color: #ff4444;
    color: var(--white);
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background-color: #cc0000;
}

.cart-total {
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    margin: 20px 0;
    text-align: right;
    font-size: 18px;
}

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

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */

.product-detail {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 100%;
}

.product-detail-image {
    width: 100%;
    min-height: 400px;
    max-height: 500px;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 auto;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-detail-info {
    width: 100%;
}

.product-detail-info h2 {
    font-size: 26px;
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-weight: 700;
}

.product-detail-prices {
    background: linear-gradient(135deg, #fdf2f8 0%, #fae8ff 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(217, 70, 239, 0.15);
}

.price-option {
    margin-bottom: 15px;
}

.price-option:last-child {
    margin-bottom: 0;
}

.price-option:first-child {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(217, 70, 239, 0.2);
}

.price-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.price-option:last-child .price-value {
    font-size: 24px;
    color: #888;
}

.product-detail-description {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 20px;
}

.product-detail-description p {
    margin: 0 0 12px 0;
}

.product-detail-description p:last-child {
    margin-bottom: 0;
}

.product-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.product-detail-actions .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.product-detail-actions .btn-primary {
    background: var(--primary-color);
    border: none;
    color: white;
}

.product-detail-actions .btn-primary:hover {
    background: #c026d3;
    transform: translateY(-1px);
}

.product-detail-actions .btn-secondary {
    background-color: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.product-detail-actions .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   CUSTOM PRODUCT CARD
   ============================================ */

.product-card[data-product-id="21"] {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, #fdf2f8 0%, #fae8ff 100%);
}

.product-card[data-product-id="21"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(217, 70, 239, 0.3);
}

.product-card[data-product-id="21"] .product-image {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.product-card[data-product-id="21"] .product-name {
    color: var(--primary-color);
    font-weight: 700;
}

.product-card[data-product-id="21"] .product-price {
    display: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-top-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .header-actions {
        gap: 10px;
        font-size: 12px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-link {
        padding: 12px 20px;
    }

    .carousel-container {
        height: 300px;
    }

    .carousel-content h2 {
        font-size: 32px;
    }

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

    .product-image {
        height: 220px;
    }

    .product-detail {
        gap: 20px;
    }

    .product-detail-image {
        min-height: 300px;
        max-height: 400px;
    }
    
    .product-detail-info h2 {
        font-size: 22px;
    }
    
    .price-value {
        font-size: 28px;
    }
    
    .price-option:last-child .price-value {
        font-size: 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }

    .logo img {
        height: 40px;
    }

    .search-bar {
        order: 3;
        flex-basis: 100%;
    }

    .header-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .header-link,
    .cart-link {
        font-size: 12px;
    }

    .carousel-container {
        height: 250px;
    }

    .carousel-content {
        padding: 20px;
    }

    .carousel-content h2 {
        font-size: 24px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

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

    .product-image {
        height: 180px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 20px;
    }

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

    .product-actions .btn {
        width: 100%;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}


/* Estilo para o badge de personalizado */
.custom-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Estilo para os preços nos cards */
.product-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0;
}

.price-imported {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-national {
    font-size: 14px;
    color: #666;   
}

/* Estilo especial para a peruca personalizada */
.product-card[data-product-id="1"] {
    border: 2px dashed var(--primary-color);
    background: linear-gradient(135deg, #fdf2f8 0%, #fae8ff 100%);
}

.product-card[data-product-id="1"] .product-image {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.product-card[data-product-id="1"] .product-name {
    color: var(--primary-color);
    font-weight: 700;
}