/* ===== RESET & VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #000000;
    --dark-purple: #000000;
    --light-purple: #FFF6ED;
    --accent-purple: #9B59B6;
    --white: #fff6ed;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #7D51B1;
    --text-dark: #2C3E50;
    --success: #058c3d;
    --error: #a50202;
}

body {
    font-family: 'Arial', sans-serif, 'italic' ;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*HEADER*/
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
}

/* Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-menu.cart-link {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dark-purple);
    background: var(--light-purple);
}

/* Controles mobile - SEMPRE VISÍVEIS NO MOBILE */
.mobile-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Carrinho sempre visível */
.cart-link {
     position: relative;
    text-decoration: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.cart-count {
   background: var(--error);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    text-align: center;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-purple);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* HERO SECTION  */
.hero {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: var(--dark-gray);
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
}

.hero-title {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    color: #f9f7f7;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-desc {
    
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 2;
    color: #f9f5f5;
}

.hero-content img {
    max-width: 200px;
    margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #f8f5f5;
    color: black;
    border-radius: 19px;
}

.btn-primary:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 5px 15px rgba(135, 2, 253, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    border-radius: 100px;
    height: 40px;
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--white);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #025c23;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    display: block;
    margin: 0 auto;
}


.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: white;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 60px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-instagram:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-purple);
    margin-bottom: 3rem;
    font-weight: 700;
}

.about {
    padding: 80px 0;
    background: var(--white);
}

.page-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    width: auto;
    height: 250px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-name {
    font-size: 1.2rem;
    color: var(--dark-gray);
    font-weight: 600;
    margin: 0;
}

.product-price {
    font-size: 1.4rem;
    color: var(--primary-purple);
    font-weight: 700;
    margin: 0;
}

.product-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.product-details {
    background: var(--light-purple);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    border-radius: 19px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.add-to-cart:hover {
    background: var(--dark-purple);
}

.add-to-cart.added {
    background: var(--success);
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ===== ABOUT SECTION ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    color: var(--dark-purple);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--light-purple);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--primary-purple);
}

.feature h3 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

/* ===== CART ===== */
.cart-page {
    padding: 40px 0;
    min-height: 60vh;
}

.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info h4 {
    color: var(--dark-purple);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cart-item-details {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.quantity-btn {
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--dark-purple);
    transform: scale(1.1);
}

.quantity-display {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    min-width: 40px;
    text-align: center;
}

.cart-item-price {
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 1.3rem;
}

.cart-item-total {
    font-weight: 600;
    color: var(--dark-gray);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.remove-item {
    background: var(--error);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    background: #7b0202;
    transform: translateY(-1px);
}

.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state h3 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.cart-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.summary-card h3 {
    color: var(--dark-purple);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.summary-details {
    margin-bottom: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-purple);
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    overflow-y: auto; /* 🔥 PERMITE SCROLL LIVRE */
    -webkit-overflow-scrolling: touch; /* 🔥 SCROLL SUAVE NO iOS */
}

.modal-content {
     background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto; 
    position: relative;
    animation: modalSlideIn 0.3s ease;
}
/* 🔥 PREVENIR TRAVAMENTO NO iOS */
.modal input,
.modal select,
.modal textarea {
    font-size: 16px; /* Previne zoom */
    transform: translateZ(0); /* Aceleração GPU */
}

/* 🔥 SCROLLBAR PERSONALIZADA PARA MELHOR UX */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--dark-purple);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close-modal:hover {
    color: var(--dark-purple);
}

/* ===== FORMS ===== */
.checkout-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.1);
}

.form-group textarea {
    height: 80px;
    resize: vertical;
    font-family: inherit;
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--light-purple);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Menu mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        display: block;
    }

    /* Controles mobile VISÍVEIS */
    .mobile-controls {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    /* Ajustes de layout */
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .cart-item-actions {
        align-items: center;
        flex-direction: row;
        justify-content: center;
    }

    .cart-item-controls {
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .about {
        padding: 60px 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}
