@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Dark Theme Variables (Default) */
    --bg-primary: #070913;
    --bg-secondary: #0c0f24;
    --bg-card: rgba(13, 18, 38, 0.55);
    --bg-input: rgba(5, 7, 18, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-cyan: #00f2fe;
    --accent-purple: #d946ef;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #3b82f6 50%, #d946ef 100%);
    --accent-neon-glow: 0 0 20px rgba(0, 242, 254, 0.35);
    --border-color: rgba(0, 242, 254, 0.15);
    --border-hover: rgba(217, 70, 239, 0.4);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --backdrop-blur: blur(16px);
}

body.light-theme {
    /* Light Theme Variables */
    --bg-primary: #f3f4f6;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-input: rgba(243, 244, 246, 0.9);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-cyan: #0284c7;
    --accent-purple: #c026d3;
    --accent-blue: #2563eb;
    --accent-gradient: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #c026d3 100%);
    --accent-neon-glow: 0 4px 15px rgba(2, 132, 199, 0.15);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(192, 38, 211, 0.3);
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
}

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

body {
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 242, 254, 0.04) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.04) 0%, transparent 45%);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg-primary), 0.7);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-color);
    transition: border-bottom 0.4s;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-section img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.logo-section .logo-text {
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.theme-toggle-btn:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--accent-neon-glow);
}

.cart-btn-nav {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    position: relative;
    transition: all 0.3s;
}

.cart-btn-nav:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.25);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-purple);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

@media(max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin: 40px auto;
    }
    .hero-image-container {
        order: -1;
    }
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 35px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: var(--accent-neon-glow);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    filter: blur(10px);
}

.hero-image {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    z-index: 2;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

/* Products Showcase */
.products-section {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

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

.product-card {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s;
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(217, 70, 239, 0.15);
}

.product-img-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-img-placeholder {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.product-action-btn {
    padding: 10px 20px;
    border: 1px solid var(--accent-cyan);
    background: transparent;
    color: var(--accent-cyan);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.product-action-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    box-shadow: var(--accent-neon-glow);
}

/* Detail Page */
.product-detail-container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--accent-cyan);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media(max-width: 850px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-view {
    width: 100%;
    height: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.main-image-view img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-info h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 25px;
}

.detail-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.action-row {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.add-to-cart-btn {
    padding: 15px 30px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--accent-neon-glow);
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.demo-btn {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.demo-btn:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}

/* Video Section */
.video-section {
    margin-top: 50px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Shopping Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    transition: right 0.3s ease;
}

.cart-overlay.open .cart-drawer {
    right: 0;
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.close-cart-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart-btn:hover {
    color: var(--accent-cyan);
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.95rem;
    color: var(--accent-cyan);
}

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

.qty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.qty-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.remove-item-btn:hover {
    opacity: 0.8;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: var(--accent-neon-glow);
    transition: all 0.3s;
}

.cart-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 0;
}

/* Cart / Checkout Page Layout */
.checkout-container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

@media(max-width: 900px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

.checkout-panel {
    background: var(--bg-card);
    backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
}

.checkout-panel h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 3px solid var(--accent-cyan);
    padding-left: 12px;
}

/* Forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media(max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: var(--accent-neon-glow);
}

/* Radio Buttons Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.02);
}

.payment-option input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.payment-option-label {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.payment-title {
    font-weight: 600;
    font-size: 1rem;
}

.payment-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Order Summary */
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* Admin Styling */
.admin-container {
    max-width: 1200px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.admin-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
    color: var(--accent-cyan);
    background: rgba(0, 242, 254, 0.05);
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table.admin-table th, table.admin-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table.admin-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
}

table.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.action-btn-sm {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn-sm:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.danger-btn-sm {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.danger-btn-sm:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--accent-cyan);
    text-decoration: none;
}

/* ==========================================================================
   Responsive & Mobile Optimization
   ========================================================================== */

/* Menu Hamburger Button (Hidden on Desktop) */
.menu-toggle-btn {
    display: none;
}

/* Responsive Rules */
@media (max-width: 768px) {
    /* Header & Mobile Drawer Menu */
    .header-container {
        padding: 15px 20px;
    }
    
    .menu-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--border-color);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        color: var(--text-primary);
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .menu-toggle-btn:hover {
        border-color: var(--accent-cyan);
        box-shadow: var(--accent-neon-glow);
    }
    
    .nav-links {
        position: fixed;
        top: 72px; /* Adaptive header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(7, 9, 19, 0.96);
        backdrop-filter: var(--backdrop-blur);
        -webkit-backdrop-filter: var(--backdrop-blur);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 30px;
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
        z-index: 99;
        border-top: 1px solid var(--border-color);
    }
    
    body.light-theme .nav-links {
        background: rgba(243, 244, 246, 0.98);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.35rem;
        font-weight: 600;
        width: 80%;
        text-align: center;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid transparent;
        transition: all 0.3s;
    }
    
    .nav-links a:hover {
        background: rgba(0, 242, 254, 0.08);
        border-color: var(--border-color);
        color: var(--accent-cyan);
    }
    
    .nav-controls {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Typography Otimization */
    .hero-text h1 {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .detail-info h1 {
        font-size: 1.9rem;
    }
    
    .recommendation-title {
        font-size: 1.5rem;
    }
    
    /* Hero layout margin adjustments */
    .hero {
        margin: 25px auto;
        gap: 30px;
        padding: 0 15px;
    }
    
    .hero-text p {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }
    
    .hero-image {
        max-width: 250px;
    }
    
    .hero-logo-large {
        font-size: 3.5rem;
        width: 140px;
        height: 140px;
    }

    /* Products grid padding and item size adjustment */
    .products-section {
        margin-bottom: 50px;
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Cart Table turned into clean mobile card layouts */
    .cart-table thead {
        display: none;
    }
    
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    
    .cart-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 15px;
        box-shadow: var(--card-shadow);
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
    }
    
    body.light-theme .cart-table td {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .cart-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .cart-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-secondary);
        float: left;
        text-align: left;
        font-size: 0.9rem;
    }
    
    .cart-table td[data-label="Quantidade"] {
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    /* Product details gallery and action buttons stacking */
    .product-detail-container {
        padding: 0 15px;
        margin-top: 20px;
    }
    
    .main-image-view {
        height: 260px;
    }
    
    .action-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-row button, .action-row a {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px;
        font-size: 1rem;
    }
    
    .gallery-thumbnails {
        margin-top: 10px;
    }
    
    .thumb-wrapper {
        width: 70px;
        height: 52px;
    }

    /* Checkout & Panels */
    .checkout-container {
        padding: 0 15px;
        margin-top: 20px;
    }
    
    .checkout-panel {
        padding: 20px;
        border-radius: 12px;
    }
    
    .payment-option {
        padding: 12px;
        gap: 10px;
    }
    
    .payment-title {
        font-size: 0.95rem;
    }
    
    .payment-desc {
        font-size: 0.8rem;
    }
    
    /* Bank Wire Transfer formatting */
    .bank-details-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .bank-row {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    
    body.light-theme .bank-row {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .bank-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .bank-label {
        font-size: 0.85rem;
    }
    
    .bank-value {
        font-size: 0.95rem;
        word-break: break-all;
    }
    
    /* Admin UI */
    .admin-header-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        text-align: left;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .admin-nav a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Product card inner elements adjustment on tiny phones */
    .product-card {
        padding: 18px;
    }
    
    .product-img-wrapper {
        height: 150px;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .product-footer .product-price {
        text-align: center;
    }
    
    .product-footer div {
        justify-content: center;
        width: 100%;
    }
    
    .product-footer div a, .product-footer div button {
        flex-grow: 1;
        text-align: center;
        justify-content: center;
        font-size: 0.9rem;
        padding: 10px 14px;
    }
}

@media (max-width: 400px) {
    /* Logo scaling down on narrow devices */
    .logo-text {
        font-size: 1.25rem !important;
        letter-spacing: 0.8px !important;
    }
    
    .logo-hexagon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .header-container {
        padding: 15px 12px;
    }
    
    .cart-drawer {
        max-width: 100%;
    }
}

/* Catalog Actions Wrapper & Buttons */
.product-actions-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.demo-btn-catalog {
    border-color: var(--accent-purple) !important;
    color: var(--accent-purple) !important;
}

.demo-btn-catalog:hover {
    background: var(--accent-purple) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.35) !important;
}

.info-btn-catalog {
    border-color: var(--text-secondary) !important;
    color: var(--text-primary) !important;
}

.info-btn-catalog:hover {
    border-color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.light-theme .info-btn-catalog {
    border-color: var(--text-secondary) !important;
    color: var(--text-primary) !important;
}

.light-theme .info-btn-catalog:hover {
    border-color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Image Zoom and Lightbox */
.main-image-view.zoomable {
    position: relative;
    cursor: pointer;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 19, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    backdrop-filter: blur(2px);
}

.main-image-view.zoomable:hover .zoom-overlay {
    opacity: 1;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(7, 9, 19, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 850px;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--accent-neon-glow);
    animation: zoomLightbox 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomLightbox {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: var(--text-primary);
    font-size: 40px;
    font-weight: 800;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--accent-cyan);
}

.lightbox-caption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    font-weight: 600;
}

/* ==========================================================================
   Google Translate Custom Styling & Layout Overrides
   ========================================================================== */

/* Custom styled Google Translate Dropdown Selector */
#google_translate_element select.goog-te-combo {
    background-color: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    padding: 8px 16px !important;
    padding-right: 36px !important;
    border-radius: 8px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    height: 40px !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    outline: none !important;
    backdrop-filter: var(--backdrop-blur) !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

#google_translate_element select.goog-te-combo:hover {
    border-color: var(--accent-cyan) !important;
    box-shadow: var(--accent-neon-glow) !important;
}

#google_translate_element select.goog-te-combo option {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    font-family: 'Outfit', sans-serif !important;
    padding: 8px !important;
}

/* Hide Google Translate top bar, tooltips and highlights completely */
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe[class*="goog-te-banner-frame"],
.goog-te-banner,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe[class*="VIpgJd"],
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover {
    display: none !important;
    visibility: hidden !important;
}
.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

/* Prevent Google Translate from shifting layout down */
html {
    top: 0px !important;
    margin-top: 0px !important;
}
body {
    top: 0px !important;
    margin-top: 0px !important;
    position: static !important;
}
html.translated-ltr,
html.translated-rtl,
body.translated-ltr,
body.translated-rtl {
    top: 0px !important;
    margin-top: 0px !important;
}

.goog-te-gadget {
    font-size: 0px !important;
}
.goog-te-gadget > * {
    font-size: 13px !important;
}
.goog-te-gadget span {
    display: none !important;
}
.goog-logo-link {
    display: none !important;
}
#google_translate_element {
    display: inline-flex;
    align-items: center;
}
.goog-te-gadget {
    margin: 0 !important;
    padding: 0 !important;
}


