
/* loja_style.css - Tropa Light Theme */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --primary: #39ff14; /* Neon Green Tropa */
    --primary-hover: #32d912;
    --dark: #111111;
    --dark-accent: #1a1a1a;
    --light-bg: #f4f6f8; /* Fundo claro suave */
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border: #e1e4e8;
    --danger: #ff3333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--light-bg); 
    color: var(--text-main); 
    margin: 0; 
    padding-bottom: 60px;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'Rajdhani', sans-serif; text-transform: uppercase; font-weight: 700; color: var(--dark); }

/* --- HEADER --- */
header { 
    background: var(--white); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-top: 3px solid var(--primary);
}

.navbar { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--dark); 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    letter-spacing: 1px;
}
.logo span { color: var(--dark); border-bottom: none; padding-bottom: 0; }
.logo img { height: 90px; width: auto; object-fit: contain; }

/* Search Box */
.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border-radius: 4px;
    border: 2px solid var(--border);
    background-color: var(--light-bg);
    outline: none;
    font-size: 0.95rem;
    color: var(--dark);
    font-family: 'Roboto', sans-serif;
    transition: 0.3s;
}

.search-input:focus {
    background-color: var(--white);
    border-color: var(--dark);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: var(--dark);
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}
.search-btn:hover { color: var(--primary-hover); }

/* Nav Icons */
.nav-icons { display: flex; gap: 20px; align-items: center; margin-left: auto; }
.icon-btn { 
    position: relative; 
    color: var(--dark); 
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: normal;
}
.icon-btn i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}
.icon-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.icon-btn:hover { color: #000; transform: translateY(-2px); }

.badge-count { 
    position: absolute; 
    top: -5px; 
    right: -8px; 
    background: var(--primary); 
    color: var(--dark); 
    font-size: 0.65rem; 
    font-weight: 800; 
    min-width: 18px; 
    height: 18px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid #fff;
}

/* --- CONTAINER & LAYOUT --- */
.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

/* --- CAROUSEL STYLES --- */
.promo-carousel-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto 40px auto;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #333;
}

.promo-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    box-sizing: border-box;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.promo-content {
    flex: 1;
    padding-right: 40px;
    animation: fadeIn 0.8s ease-out;
}

.promo-tag {
    background: var(--danger);
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.promo-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.1;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.promo-desc {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
    max-width: 500px;
}

.promo-pricing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.promo-old {
    text-decoration: line-through;
    color: #666;
    font-size: 1.2rem;
}

.promo-new {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Rajdhani', sans-serif;
}

.promo-discount {
    background: rgba(57, 255, 20, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 2px 8px;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
}

.promo-btn {
    background: var(--primary);
    color: #000;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    transition: 0.3s;
}

.promo-btn:hover {
    background: var(--white);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.promo-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.promo-visual img {
    max-width: 400px;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: 0.5s;
}

.promo-slide:hover .promo-visual img {
    transform: scale(1.05) rotate(2deg);
}

.promo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid #444;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    font-size: 1.2rem;
}

.promo-nav:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.promo-nav.prev { left: 20px; }
.promo-nav.next { right: 20px; }

.promo-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.promo-dot {
    width: 10px;
    height: 10px;
    background: #444;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.promo-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- SHOP LAYOUT (SIDEBAR + CONTENT) --- */
.shop-layout {
    display: flex;
    gap: 30px;
}

.shop-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    height: fit-content;
}

.shop-content {
    flex: 1;
}

/* Sidebar Sections */
.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.filter-section:last-of-type { border-bottom: none; }

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--dark);
    text-transform: uppercase;
}

/* Category List */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li { margin-bottom: 8px; }
.cat-list a {
    display: block;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    transition: 0.2s;
}
.cat-list a:hover, .cat-list a.active { color: var(--primary-hover); font-weight: 700; }

.sub-cat-list {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
    border-left: 2px solid var(--border);
}
.sub-cat-list li { margin-bottom: 5px; }
.sub-cat-list a { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.sub-cat-list a:hover, .sub-cat-list a.active { color: var(--primary-hover); }

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-inputs input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
}
.price-inputs span { color: var(--text-muted); }

/* Checkboxes */
.checkbox-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    accent-color: var(--dark);
    margin-right: 8px;
    transform: scale(1.1);
}

.promo-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
}
.promo-check input { accent-color: var(--danger); transform: scale(1.2); }

/* Filter Buttons */
.btn-apply-filters {
    width: 100%;
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    transition: 0.3s;
}
.btn-apply-filters:hover { background: var(--primary); color: var(--dark); }

.btn-clear-filters {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
}
.btn-clear-filters:hover { color: var(--danger); }

/* Shop Toolbar (Sort & Count) */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.results-count { font-weight: 600; color: var(--text-muted); font-size: 0.95rem; }

.sort-wrapper { display: flex; align-items: center; gap: 10px; }
.sort-wrapper label { font-size: 0.9rem; color: var(--text-muted); }
.sort-select {
    padding: 8px 30px 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: #f9f9f9;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    outline: none;
}

/* Grid */
.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 30px; 
}

/* --- PRODUCT CARD --- */
.card { 
    background: var(--white); 
    border-radius: 8px; 
    border: 1px solid transparent; 
    overflow: hidden; 
    transition: 0.3s; 
    display: flex; 
    flex-direction: column; 
    position: relative; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
    border-color: var(--primary);
}

.card-img-box { 
    height: 240px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
    background: #fff; 
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.card-img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    transition: 0.4s;
}

.card:hover .card-img { transform: scale(1.08); }

.card-body { 
    padding: 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.card-title { 
    font-size: 1.15rem; 
    font-weight: 600; 
    color: var(--dark); 
    margin-bottom: 10px; 
    line-height: 1.3; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    font-family: 'Rajdhani', sans-serif;
}

.card-price { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--dark); 
    margin-top: auto; 
    margin-bottom: 15px;
}

.btn-buy { 
    background: var(--dark); 
    color: var(--white); 
    text-align: center; 
    padding: 12px; 
    border-radius: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 0.95rem; 
    display: block; 
    width: 100%;
    border: 1px solid var(--dark);
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

.btn-buy:hover { 
    background: var(--primary); 
    color: var(--dark); 
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

.btn-primary {
    background: var(--dark); 
    color: var(--white); 
    padding: 12px 20px; 
    border: none;
    border-radius: 4px; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}
.btn-primary:hover {
    background: var(--primary); 
    color: var(--dark);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

/* --- PRODUCT DETAIL PAGE --- */
.product-detail {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.pd-image {
    flex: 1;
    min-width: 350px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-right: 1px solid #f0f0f0;
}
.pd-image img { max-width: 100%; max-height: 500px; }

.pd-info {
    flex: 1;
    min-width: 350px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stock-badge {
    display: inline-block;
    padding: 5px 12px;
    background: #eee;
    color: #555;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}

.pd-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 15px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.pd-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 10px 0 25px 0;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
}

.pd-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 15px;
}
.form-control:focus { border-color: var(--dark); outline: none; }

/* Table */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); }
.table th { background: #f8f9fa; padding: 15px; text-align: left; font-weight: 700; color: var(--dark); text-transform: uppercase; font-size: 0.85rem; font-family: 'Rajdhani', sans-serif; }
.table td { padding: 15px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-main); }
.table tr:last-child td { border-bottom: none; }

/* Empty State */
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    color: var(--text-muted);
}

/* Mobile Toggle & Sidebar Logic */
.mobile-filter-toggle { display: none; }
.sidebar-header-mobile { display: none; }

/* Mobile */
@media(max-width: 900px) {
    .navbar { flex-direction: column; gap: 15px; align-items: stretch; padding: 15px; }
    .logo { justify-content: center; }
    .search-box { width: 100%; max-width: 100%; margin: 0; }
    .nav-icons { justify-content: center; margin: 0 auto; width: 100%; gap: 30px; }
    
    .container { padding: 20px 15px; }
    
    .shop-layout { display: block; position: relative; }
    
    /* Off-canvas Filter Sidebar */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 2000;
        overflow-y: auto;
        transition: 0.3s;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    .shop-sidebar.active { left: 0; }

    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
    }
    .sidebar-header-mobile h3 { margin: 0; font-size: 1.2rem; }
    .sidebar-header-mobile button { background: none; border: none; font-size: 2rem; color: var(--dark); cursor: pointer; }

    .mobile-filter-toggle {
        display: block;
        width: 100%;
        margin-bottom: 20px;
        background: var(--white);
        border: 1px solid var(--border);
        padding: 12px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--dark);
        border-radius: 4px;
        cursor: pointer;
    }

    .shop-toolbar { flex-direction: column; gap: 15px; align-items: stretch; text-align: center; }
    .sort-wrapper { justify-content: space-between; }

    .grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .card-img-box { height: 160px; padding: 10px; }
    .card-body { padding: 12px; }
    .card-title { font-size: 0.95rem; margin-bottom: 5px; }
    .card-price { font-size: 1.4rem; margin-bottom: 10px; }
    .btn-buy { padding: 8px; font-size: 0.8rem; }
    
    .product-detail { flex-direction: column; }
    .pd-image, .pd-info { padding: 25px; border-right: none; }
    .pd-title { font-size: 1.8rem; }
    .pd-price { font-size: 2.2rem; }
    
    .promo-slide { flex-direction: column-reverse; padding: 30px 20px; text-align: center; }
    .promo-content { padding-right: 0; }
    .promo-visual { margin-bottom: 20px; }
    .promo-visual img { max-width: 100%; max-height: 200px; }
    .promo-title { font-size: 1.8rem; }
    .promo-desc { margin: 0 auto 20px auto; }
    .promo-pricing { justify-content: center; }
}
