/* ========================================
   NETSHOPPING 25 - CSS COMPLETO
   Design Futurista | Responsivo | Slider Hero
   ======================================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --primary-glow: rgba(0, 212, 255, 0.3);
    --secondary: #ff006e;
    --secondary-glow: rgba(255, 0, 110, 0.3);
    --accent: #7b2ff7;
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --bg-sidebar: #0e0e16;
    --bg-input: #16161f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --border: #1e1e2e;
    --border-hover: #2e2e4e;
    --success: #00c853;
    --warning: #ffab00;
    --danger: #ff1744;
    --gradient-primary: linear-gradient(135deg, #00d4ff, #7b2ff7);
    --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 40px rgba(0, 212, 255, 0.15);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Rajdhani', 'Roboto', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
.main-header { position: sticky; top: 0; z-index: 1000; background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.top-bar { background: linear-gradient(90deg, var(--primary), var(--accent)); padding: 6px 0; font-size: 0.8rem; font-weight: 600; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar p { color: #fff; }
.top-bar .admin-link { color: #fff; font-weight: 600; }
.top-bar .admin-link:hover { opacity: 0.8; }
.header-main .container { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 48px; height: 48px; background: var(--gradient-primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 900; font-size: 1rem; color: #0a0a0f; }
.logo-text h1 { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.2; color: var(--text-primary); }
.logo-text .highlight { color: var(--primary); }
.logo-text .tagline { font-size: 0.7rem; color: var(--text-secondary); letter-spacing: 3px; text-transform: uppercase; }
.search-container { flex: 1; max-width: 500px; display: flex; background: var(--bg-input); border: 1px solid var(--border); border-radius: 50px; overflow: hidden; transition: var(--transition); }
.search-container:focus-within { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.search-container input { flex: 1; padding: 10px 20px; background: none; border: none; color: var(--text-primary); font-size: 0.95rem; font-family: var(--font-body); outline: none; }
.search-container input::placeholder { color: var(--text-muted); }
.search-btn { padding: 10px 18px; background: var(--gradient-primary); border: none; color: #0a0a0f; cursor: pointer; font-size: 1rem; transition: var(--transition); }
.search-btn:hover { opacity: 0.8; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.header-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; font-family: var(--font-body); font-size: 0.85rem; transition: var(--transition); position: relative; }
.header-btn:hover { border-color: var(--primary); color: var(--primary); }
.header-btn i { font-size: 1.1rem; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--secondary); color: #fff; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* HERO COM SLIDER */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); border-bottom: 1px solid var(--border); }
.hero-slider { position: relative; width: 100%; min-height: 380px; }
.hero-slides { display: flex; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); width: 100%; }
.hero-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; background: var(--bg-dark); }
.hero-slide-inner { display: flex; align-items: center; gap: 40px; max-width: 1200px; width: 100%; padding: 0 20px; }
.hero-slide-text { flex: 1; min-width: 0; }
.hero-slide-text .slide-badge { display: inline-block; padding: 4px 16px; background: rgba(0, 212, 255, 0.15); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 50px; color: var(--primary); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.hero-slide-text h2 { font-family: var(--font-heading); font-size: 2.2rem; line-height: 1.2; margin-bottom: 12px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-slide-text p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 20px; max-width: 500px; }
.hero-slide-image { flex: 0 0 320px; height: 260px; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-slide-image .img-glow { position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, var(--primary-glow), transparent 70%); border-radius: 50%; z-index: 0; animation: pulseGlow 3s ease-in-out infinite; }
.hero-slide-image img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 212, 255, 0.3)); transition: transform 0.3s ease; position: relative; z-index: 1; }
@keyframes pulseGlow { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 0.8; } }
.hero-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-muted); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.hero-dot.active { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); transform: scale(1.3); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 10, 15, 0.7); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: var(--transition); z-index: 10; }
.hero-arrow:hover { border-color: var(--primary); color: var(--primary); background: rgba(10, 10, 15, 0.9); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--gradient-primary); color: #0a0a0f; border: none; border-radius: 50px; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }

/* LAYOUT 3 COLUNAS */
.main-layout { display: grid; grid-template-columns: 240px 1fr 260px; gap: 24px; padding: 30px 0 60px; }

/* SIDEBAR ESQUERDA */
.sidebar-left { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.sidebar-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.sidebar-section h3 { font-family: var(--font-heading); font-size: 0.95rem; color: var(--primary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filter-group { margin-bottom: 16px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.filter-options { display: flex; flex-direction: column; gap: 2px; }
.filter-cat-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; background: none; border: none; border-radius: var(--radius-sm); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.9rem; cursor: pointer; transition: var(--transition); text-align: left; }
.filter-cat-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.filter-cat-btn.active { background: rgba(0, 212, 255, 0.1); color: var(--primary); font-weight: 600; }
.filter-cat-btn .cat-icon { margin-right: 8px; width: 20px; text-align: center; }
.filter-cat-btn .cat-count { font-size: 0.75rem; background: var(--bg-input); padding: 2px 8px; border-radius: 50px; }
.filter-subcats { display: none; flex-direction: column; padding-left: 28px; gap: 1px; }
.filter-subcats.open { display: flex; }
.filter-sub-btn { padding: 6px 12px; background: none; border: none; border-left: 2px solid var(--border); color: var(--text-muted); font-family: var(--font-body); font-size: 0.82rem; cursor: pointer; transition: var(--transition); text-align: left; }
.filter-sub-btn:hover { color: var(--text-secondary); border-color: var(--primary); }
.filter-sub-btn.active { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.price-filter { padding: 4px 0; }
.price-filter input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; }
.price-display { font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; text-align: center; }

/* AREA DE PRODUTOS */
.products-main { min-width: 0; }
.products-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--text-primary); }
.products-controls select { padding: 8px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; outline: none; }
.products-controls select:focus { border-color: var(--primary); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* CARDS DE PRODUTO */
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; position: relative; cursor: pointer; }
.product-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card .card-image { position: relative; width: 100%; padding-top: 100%; background: var(--bg-input); overflow: hidden; }
.product-card .card-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.4s ease; }
.product-card:hover .card-image img { transform: scale(1.08); }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.card-badge { padding: 3px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.card-badge.discount { background: var(--secondary); color: #fff; }
.card-badge.featured { background: var(--warning); color: #0a0a0f; }
.card-badge.low-stock { background: var(--danger); color: #fff; }
.card-badge.out-stock { background: var(--text-muted); color: #fff; }
.card-quick-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(10px); transition: var(--transition); z-index: 2; }
.product-card:hover .card-quick-actions { opacity: 1; transform: translateX(0); }
.quick-action-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(10, 10, 15, 0.8); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition); backdrop-filter: blur(4px); }
.quick-action-btn:hover { background: var(--primary); color: #0a0a0f; border-color: var(--primary); }
.card-info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-category { font-size: 0.72rem; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 600; }
.card-name { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-stock { font-size: 0.75rem; margin-bottom: 10px; }
.card-stock.in-stock { color: var(--success); }
.card-stock.low-stock { color: var(--warning); }
.card-stock.out-stock { color: var(--danger); }
.card-pricing { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.card-old-price { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; }
.card-add-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; background: transparent; border: 1px solid var(--border); border-top: 1px solid var(--border); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; border-radius: 0 0 var(--radius) var(--radius); }
.card-add-btn:hover { background: var(--primary); color: #0a0a0f; border-color: var(--primary); }
.card-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.card-add-btn:disabled:hover { background: transparent; color: var(--text-muted); border-color: var(--border); }

/* SIDEBAR DIREITA */
.sidebar-right { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.promo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 16px; transition: var(--transition); }
.promo-card:hover { border-color: var(--primary); }
.promo-card.featured { border-color: var(--secondary); background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), var(--bg-card)); }
.promo-icon { font-size: 2rem; margin-bottom: 10px; color: var(--primary); }
.promo-card.featured .promo-icon { color: var(--secondary); }
.promo-card h4 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 6px; }
.promo-card p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.promo-btn { display: inline-block; padding: 8px 20px; background: transparent; border: 1px solid var(--primary); border-radius: 50px; color: var(--primary); font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }
.promo-btn:hover { background: var(--primary); color: #0a0a0f; }
.cart-summary { font-size: 0.85rem; color: var(--text-secondary); }
.empty-cart { text-align: center; padding: 10px 0; color: var(--text-muted); }
.cart-summary-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.cart-summary-total { display: flex; justify-content: space-between; padding: 10px 0 0; font-weight: 700; color: var(--primary); font-size: 0.95rem; }

/* MODAL CARRINHO */
.cart-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; display: none; }
.cart-modal.active { display: flex; }
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }
.modal-content { position: absolute; right: 0; top: 0; width: 420px; max-width: 100%; height: 100%; background: var(--bg-card); border-left: 1px solid var(--border); display: flex; flex-direction: column; animation: slideInRight 0.3s ease; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-family: var(--font-heading); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.3rem; cursor: pointer; padding: 4px; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item-img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: contain; background: var(--bg-input); padding: 4px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.9rem; color: var(--primary); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 4px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-input); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; transition: var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-value { min-width: 24px; text-align: center; font-weight: 600; font-size: 0.9rem; }
.cart-item-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; font-size: 0.9rem; transition: var(--transition); }
.cart-item-remove:hover { color: var(--danger); }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 1.1rem; }
.cart-total strong { font-family: var(--font-heading); }
.cart-total span { color: var(--primary); font-family: var(--font-heading); font-size: 1.3rem; }
.btn-checkout { width: 100%; padding: 14px; background: var(--gradient-primary); border: none; border-radius: var(--radius-sm); color: #0a0a0f; font-family: var(--font-body); font-weight: 700; font-size: 1rem; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-checkout:hover { box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.btn-checkout:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.cart-empty-msg { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.cart-empty-msg i { font-size: 3rem; margin-bottom: 12px; display: block; }
.cart-empty-msg p { font-size: 0.95rem; }

/* FOOTER */
.main-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 40px 0 0; margin-top: 40px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; padding-bottom: 30px; }
.footer-section h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 12px; }
.footer-section h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-primary); }
.footer-section p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.footer-section i { color: var(--primary); margin-right: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* PAGINA DO PRODUTO */
.product-page { padding: 30px 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 30px; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { width: 100%; aspect-ratio: 1; background: var(--bg-input); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { max-width: 90%; max-height: 90%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumb { width: 70px; height: 70px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-input); cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: var(--transition); padding: 4px; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-info-section h1 { font-family: var(--font-heading); font-size: 1.6rem; line-height: 1.3; margin-bottom: 12px; }
.product-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.product-badge { padding: 4px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.product-badge.category { background: rgba(0, 212, 255, 0.1); color: var(--primary); border: 1px solid rgba(0, 212, 255, 0.3); }
.product-badge.subcategory { background: rgba(123, 47, 247, 0.1); color: var(--accent); border: 1px solid rgba(123, 47, 247, 0.3); }
.product-pricing { margin-bottom: 20px; }
.product-old-price { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-bottom: 2px; }
.product-price { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); font-weight: 700; }
.product-discount-tag { display: inline-block; margin-left: 10px; padding: 2px 10px; background: var(--secondary); color: #fff; border-radius: 50px; font-size: 0.8rem; font-weight: 700; vertical-align: middle; }
.product-stock { margin-bottom: 20px; font-size: 0.9rem; }
.product-stock.in-stock { color: var(--success); }
.product-stock.low-stock { color: var(--warning); }
.product-stock.out-stock { color: var(--danger); }
.product-description-short { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
.product-quantity { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.product-quantity label { font-weight: 600; font-size: 0.9rem; }
.product-quantity .qty-controls { display: flex; align-items: center; gap: 0; }
.product-quantity .qty-btn { border-radius: var(--radius-sm); width: 36px; height: 36px; }
.product-quantity .qty-value { width: 50px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg-input); border: 1px solid var(--border); font-size: 1rem; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-actions .btn-primary { flex: 1; min-width: 180px; justify-content: center; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; background: transparent; border: 1px solid var(--primary); border-radius: 50px; color: var(--primary); font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 1px; }
.btn-secondary:hover { background: rgba(0, 212, 255, 0.1); }
.product-tabs { margin-top: 30px; }
.tabs-header { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 12px 24px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); }
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }
.tab-content.active { display: block; }
.related-products { margin-top: 40px; }
.related-products h2 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* ADMIN */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; padding: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-header h1 { font-family: var(--font-heading); font-size: 1.5rem; }
.admin-tabs { display: flex; gap: 0; margin-bottom: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.admin-tab-btn { flex: 1; padding: 14px 20px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; }
.admin-tab-btn:hover { background: var(--bg-card-hover); color: var(--text-secondary); }
.admin-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); background: rgba(0, 212, 255, 0.05); }
.admin-panel { display: none; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.admin-panel.active { display: block; }
.admin-panel h2 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem; transition: var(--transition); outline: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.btn-admin { padding: 10px 20px; border: none; border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-admin.primary { background: var(--gradient-primary); color: #0a0a0f; }
.btn-admin.primary:hover { box-shadow: var(--shadow-glow); }
.btn-admin.secondary { background: var(--bg-input); border: 1px solid var(--border); color: var(--text-secondary); }
.btn-admin.secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-admin.danger { background: rgba(255, 23, 68, 0.1); border: 1px solid var(--danger); color: var(--danger); }
.btn-admin.danger:hover { background: var(--danger); color: #fff; }
.btn-admin.small { padding: 6px 12px; font-size: 0.78rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px; text-align: left; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px; font-size: 0.85rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg-card-hover); }
.admin-table .product-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: contain; background: var(--bg-input); padding: 2px; }

/* NOTIFICACOES */
.notification { position: fixed; top: 80px; right: 20px; padding: 14px 24px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; z-index: 9999; animation: notifSlide 0.3s ease; display: flex; align-items: center; gap: 8px; max-width: 360px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5); }
.notification.success { background: var(--success); color: #fff; }
.notification.error { background: var(--danger); color: #fff; }
.notification.warning { background: var(--warning); color: #0a0a0f; }
@keyframes notifSlide { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* LOGIN */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-dark); }

/* RESPONSIVIDADE */
@media (max-width: 1200px) {
    .main-layout { grid-template-columns: 220px 1fr 220px; gap: 16px; }
    .hero-slide-text h2 { font-size: 1.8rem; }
    .hero-slide-image { flex: 0 0 260px; height: 220px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .main-layout { grid-template-columns: 200px 1fr; }
    .sidebar-right { display: none; }
    .hero-slide-inner { gap: 24px; }
    .hero-slide-text h2 { font-size: 1.5rem; }
    .hero-slide-image { flex: 0 0 220px; height: 180px; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .header-btn span { display: none; }
    .admin-tabs { flex-wrap: wrap; }
    .admin-tab-btn { flex: none; padding: 10px 16px; font-size: 0.8rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .main-layout { grid-template-columns: 1fr; }
    .sidebar-left { position: static; max-height: none; }
    .header-main .container { flex-wrap: wrap; gap: 10px; }
    .search-container { order: 3; max-width: 100%; flex: 0 0 100%; }
    .hero-slider { min-height: 300px; }
    .hero-slide { padding: 30px 16px; }
    .hero-slide-inner { flex-direction: column; text-align: center; gap: 20px; }
    .hero-slide-text p { max-width: 100%; }
    .hero-slide-image { flex: 0 0 auto; width: 200px; height: 160px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .products-header { flex-direction: column; align-items: flex-start; }
    .product-detail { padding: 20px; }
    .product-info-section h1 { font-size: 1.3rem; }
    .product-price { font-size: 1.6rem; }
    .product-actions { flex-direction: column; }
    .product-actions .btn-primary, .product-actions .btn-secondary { width: 100%; }
    .gallery-thumbs { justify-content: center; }
    .modal-content { width: 100%; }
    .admin-table { font-size: 0.78rem; }
    .admin-table th, .admin-table td { padding: 8px 6px; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .container { padding: 0 12px; }
    .logo-text h1 { font-size: 1.1rem; }
    .logo-icon { width: 40px; height: 40px; font-size: 0.85rem; }
    .hero-slider { min-height: 260px; }
    .hero-slide-text h2 { font-size: 1.3rem; }
    .hero-slide-text .slide-badge { font-size: 0.7rem; }
    .hero-slide-image { width: 160px; height: 130px; }
    .hero-arrow { width: 32px; height: 32px; font-size: 0.8rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .card-info { padding: 10px; }
    .card-name { font-size: 0.82rem; }
    .card-price { font-size: 1rem; }
    .card-old-price { font-size: 0.7rem; }
    .card-add-btn { font-size: 0.75rem; padding: 8px; }
    .product-detail { padding: 14px; }
    .tabs-header { overflow-x: auto; }
    .tab-btn { padding: 10px 16px; white-space: nowrap; font-size: 0.8rem; }
    .admin-container { padding: 10px; }
    .admin-header { flex-direction: column; gap: 10px; text-align: center; }
    .admin-tab-btn { padding: 8px 10px; font-size: 0.75rem; }
    .admin-panel { padding: 14px; }
}

.sidebar-toggle { display: none; padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.9rem; cursor: pointer; margin-bottom: 12px; width: 100%; text-align: left; transition: var(--transition); }
.sidebar-toggle i { margin-right: 8px; }
.sidebar-toggle:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 768px) {
    .sidebar-toggle { display: block; }
    .sidebar-left { display: none; flex-direction: column; }
    .sidebar-left.open { display: flex; flex-direction: column; }
    .sidebar-left.open .sidebar-section { min-width: auto; }
}
/* ========== COUNTDOWN TIMER ========== */
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 12px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.countdown-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.countdown-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ff4757;
    line-height: 1;
}

.countdown-group small {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    margin-top: 2px;
}

.countdown-sep {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ff4757;
    font-weight: 700;
    margin-top: -8px;
}

.countdown-expired {
    color: #ff4757;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    padding: 8px;
}
