/* catalogo/assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Orbitron:wght@700&display=swap');

:root {
    --bg-dark: #05070a;
    /* Darker, deeper black */
    --bg-card: #11161f;
    --primary: #ffb703;
    /* Amarelo Arcade */
    --primary-hover: #ffaa00;
    --primary-glow: rgba(255, 183, 3, 0.4);
    --accent: #219ebc;
    --danger: #ef233c;
    --success: #2ecc71;
    --text-main: #f8f9fa;
    --text-muted: #8d99ae;
    --border: #2b2d42;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);

    --font-main: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.price-value {
    font-family: var(--font-display);
    letter-spacing: 0.5px;
}

/* === HEADER === */
header {
    background: rgba(5, 7, 10, 0.95);
    /* Almost solid black */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: #fff;
    /* Always white in header */
}

.logo img {
    max-height: 50px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.7);
    /* Always light grey */
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Default Hover */
.nav-links a:hover {
    color: #fff;
    /* Always white */
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Active State */
.nav-links a.active {
    color: var(--primary);
    background: rgba(255, 183, 3, 0.1);
    border-color: rgba(255, 183, 3, 0.3);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    /* Wider for better reading */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    border: 1px solid #333;
    border-radius: 6px;
    top: 100%;
    margin-top: 5px;
    /* Spacing from bar */
    left: 50%;
    transform: translateX(-50%);
    /* Centered dropdown */
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #ccc;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #222;
    text-align: left;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #333;
    color: var(--primary);
    padding-left: 20px;
    /* Animation effect */
}

/* Compact Admin Nav */
.admin-nav {
    justify-content: center;
    /* Center the whole nav */
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.admin-nav>a,
.admin-nav .dropdown-btn {
    font-size: 0.85rem !important;
    padding: 0.6rem 0.8rem !important;
    white-space: nowrap;
    border-radius: 4px;
    margin: 0 2px;
}

.admin-nav .dropdown-btn {
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
}

.admin-nav .dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Specific styling for Cart (CTA) */
.nav-links a[href*="cart.php"] {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
    font-weight: 800;
}

.nav-links a[href*="cart.php"]:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.5);
}

/* Specific styling for Logout */
.nav-links a[href*="logout.php"] {
    color: var(--danger);
    border: 1px solid rgba(239, 35, 60, 0.3);
}

.nav-links a[href*="logout.php"]:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 35, 60, 0.4);
}

/* === HERO SLIDER REFINED === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 380px;
    background: #000;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    /* Align content to bottom for classic hero look */
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    z-index: 2;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 80%, transparent 100%);
    padding: 1rem 2rem 1rem 1rem;
    border-left: 3px solid var(--primary);
    border-radius: 0 4px 4px 0;
    backdrop-filter: blur(4px);
    max-width: 90%;
    /* Responsive width */
    margin: 0;
    text-align: left;
}

.hero-content h1 {
    font-size: 1.4rem;
    /* Smaller for mobile/desktop balance */
    color: var(--primary);
    text-shadow: none;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
}

.hero-content p {
    font-size: 0.85rem;
    color: #ddd;
    margin-bottom: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Limit text lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-tag-hero {
    display: none;
    /* Hide price in hero for cleaner look */
}

.btn-hero {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    height: auto;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-hero:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-glow);
}

.hero-banner {
    width: 100%;
    height: 350px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
}

/* === BUTTONS & INPUTS FIXED === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    /* Sharper corners for tech look */
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 48px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--primary-glow);
    /* Neon Glow */
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 183, 3, 0.6);
    /* Stroger Glow */
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-card);
    color: white;
}

.btn-secondary.active {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

input,
select,
textarea {
    width: 100%;
    padding: 0 1rem;
    /* Use padding for text inside */
    height: 48px;
    /* Fixed height match button */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-main);
    margin-bottom: 1rem;
    line-height: normal;
    /* Normal line height for input */
}

textarea {
    padding: 0.8rem;
    height: auto;
    /* textarea can be taller */
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

/* === GRID LAYOUTS === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding-bottom: 3rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: 8px;
    /* Sharper */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Softer border */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border-color: var(--primary);
}

.product-img {
    height: 200px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-img img {
    max-height: 100%;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.prices {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-value {
    font-weight: 700;
    color: var(--primary);
}

/* === PRODUCT SINGLE PAGE === */
.product-single-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.main-image-stage {
    border: 1px solid #333;
    border-radius: 8px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    position: relative;
}

.wholesale-badge {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 5px;
    text-align: right;
}

/* === ALERTS & TABLES === */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid;
}

.alert-error {
    background: rgba(239, 35, 60, 0.1);
    border-color: var(--danger);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--success);
    color: #2ecc71;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: #0f131a;
    font-weight: 600;
    color: var(--primary);
}

/* === AUTH & FOOTER === */
.auth-box {
    max-width: 400px;
    margin: 4rem auto;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-box h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* === PRO FOOTER === */
.site-footer {
    background: #0f131a;
    border-top: 1px solid var(--border);
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-top {
    background: var(--bg-card);
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.newsletter-box {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.newsletter-box strong {
    display: block;
    color: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 5px;
    background: #000;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid #333;
}

.newsletter-form input {
    background: transparent;
    border: none;
    height: 30px;
    color: #fff;
    padding: 0 10px;
    margin: 0;
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #000;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons a {
    width: 30px;
    height: 30px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-middle {
    padding: 3rem 0;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-middle h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-middle ul li {
    margin-bottom: 0.5rem;
}

.footer-middle ul li a {
    color: var(--text-muted);
}

.footer-middle ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    background: #000;
    padding: 1.5rem 0;
    border-top: 1px solid #222;
}

.pay-badge {
    display: inline-block;
    padding: 5px 10px;
    background: #fff;
    color: #000;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.7rem;
    margin-right: 5px;
}

.seal-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-left: 10px;
}

.seal-badge.safe {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.seal-badge.ssl {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    color: #555;
    font-size: 0.8rem;
}

/* === PRODUCT REVIEWS === */
.reviews-section {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.review-card {
    border-bottom: 1px solid #333;
    padding: 1rem 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-stars {
    color: gold;
}

.review-date {
    font-size: 0.8rem;
    color: #666;
}

.review-body {
    color: #ddd;
    line-height: 1.5;
}

.review-form-box {
    margin-top: 3rem;
    background: #000;
    padding: 1.5rem;
}

/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {

    /* Layout & Containers */
    .container {
        padding: 0 10px;
    }

    /* Stretched Header & Footer */
    header .container,
    footer .container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Header Adjustments */
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo {
        margin-bottom: 0.2rem;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 0;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.7rem 0.5rem;
        justify-content: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        white-space: normal;
        /* Allow wrapping in grid if needed */
    }

    /* Stretch last item if odd */
    .nav-links a:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    /* Hero Slider Mobile */
    .hero-slider {
        height: 320px !important;
    }

    .hero-content {
        bottom: 15px;
        left: 10px;
        right: 10px;
        max-width: 100%;
        padding: 1.2rem;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-hero {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    /* Product Grid Mobile (Stretched) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        padding: 0 5px;
    }

    .product-card {
        border-radius: 6px;
        display: flex;
        flex-direction: column;
    }

    .product-img {
        height: 140px;
        padding: 0.5rem;
    }

    .product-info {
        padding: 0.8rem 0.6rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

    .product-category {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .product-title {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.2rem;
        line-height: 1.1rem;
    }

    .product-sku {
        display: none;
    }

    .prices {
        margin-top: auto;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .price-tag {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        margin-bottom: 0.5rem;
    }

    .price-label {
        font-size: 0.65rem;
    }

    .price-value {
        font-size: 1rem;
    }

    /* Fit button in 2 cols */
    .product-info .btn {
        width: 100%;
        padding: 0 0.2rem;
        font-size: 0.65rem;
        height: 34px;
        letter-spacing: 0;
    }

    /* Product Single Mobile */
    .product-single-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .main-image-stage {
        height: 350px !important;
        width: 100% !important;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff !important;
        /* White background for seamless JPG integration */
        border-radius: 8px;
        /* Optional: Keep rounded corners or remove if fully seamless is desired */
    }

    .main-image-stage img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .product-details-box {
        padding: 0 0.5rem;
    }

    /* Footer Mobile (Stretched) */
    .footer-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer .grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
        width: 100%;
        text-align: left;
    }

    .footer-middle div {
        width: 100%;
    }

    /* === MOBILE BOTTOM NAV === */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #0d1117;
        border-top: 1px solid var(--border);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(15px);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #8b949e;
        text-decoration: none;
        font-size: 0.7rem;
        gap: 4px;
        transition: 0.2s;
        flex: 1;
    }

    .bottom-nav-item.active {
        color: var(--primary);
        font-weight: bold;
    }

    .bottom-nav-item i {
        font-size: 1.4rem;
        margin-bottom: 2px;
    }

    body {
        padding-bottom: 75px !important;
    }

    .whatsapp-float {
        bottom: 85px !important;
        /* Above the bar */
    }

    .footer-bottom {
        padding-bottom: 100px;
    }
}

/* Global Hidden Bottom Nav for Desktop */
.mobile-bottom-nav {
    display: none;
}

/* Description Animation */
.description-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}