:root {
    --bg-body: #0B132B;
    --bg-card: #1C2541;
    --bg-card-border: #3A506B;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --navbar-bg: rgba(11, 19, 43, 0.95);
    
    --orange: #F37032;
    --sky-blue: #38BDF8;
    --purple: #9B26B6;
    --teal: #1B5B65;
    --input-bg: #0B132B;
    --input-border: #3A506B;
}

body.light-theme {
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-border: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --input-bg: #FFFFFF;
    --input-border: #CBD5E1;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; transition: background-color 0.2s, color 0.2s; }
body { background: var(--bg-body); color: var(--text-main); font-size: 16px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }

/* Device Switcher Bar */
.device-switcher-bar {
    background: #070D1E;
    border-bottom: 2px solid var(--orange);
    padding: 6px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 2000;
}
.device-btn-group { display: flex; gap: 8px; }
.device-btn {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    color: var(--text-main);
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.8rem;
}
.device-btn.active { background: var(--orange); color: white; border-color: var(--orange); }

/* Mobile Viewport Mode */
body.mobile-mode { background: #030712; padding-bottom: 2rem; }
body.mobile-mode .site-wrapper {
    max-width: 390px;
    margin: 1.5rem auto;
    border: 10px solid #1F2937;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    position: relative;
    background: var(--bg-body);
}

/* Navigation */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 3%; background: var(--navbar-bg); position: sticky; top: 0; z-index: 1000; border-bottom: 3px solid var(--orange); backdrop-filter: blur(12px); flex-wrap: wrap; gap: 1rem; }
.logo-container { display: flex; align-items: center; }
.brand-logo-link { display: flex; align-items: center; text-decoration: none; }
.brand-logo-img { height: 48px; width: auto; max-width: 160px; object-fit: contain; }

.nav-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 1.2rem; }
.nav-menu a { text-decoration: none; color: var(--text-main); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.nav-menu a:hover, .lang-btn.active { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.cart-btn { background: linear-gradient(135deg, var(--orange), #D95E22); color: white !important; padding: 0.45rem 1.1rem; border-radius: 20px; font-weight: 800; text-decoration: none; font-size: 0.85rem; box-shadow: 0 4px 12px rgba(243, 112, 50, 0.3); }
.user-status { font-size: 0.85rem; color: var(--sky-blue); font-weight: 700; }
.auth-link { color: var(--text-main); text-decoration: none; font-weight: 700; font-size: 0.85rem; }
.theme-toggle-btn { background: var(--bg-card); border: 1px solid var(--bg-card-border); color: var(--text-main); font-size: 1.1rem; padding: 3px 8px; border-radius: 20px; cursor: pointer; }

.lang-picker { display: flex; align-items: center; gap: 4px; }
.lang-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); font-weight: bold; font-size: 0.85rem; padding: 3px 6px; border-radius: 4px; }
.lang-btn.active { background: var(--orange); color: white !important; }

/* Hero Section */
.hero { min-height: 28vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: linear-gradient(135deg, #092C34 0%, #184B53 45%, #E05D2B 100%); color: white; padding: 1.2rem 5%; position: relative; }
.hero-badge { display: inline-block; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.25); color: #FFFFFF; padding: 4px 14px; border-radius: 20px; font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.6rem; backdrop-filter: blur(8px); }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.hero p { font-size: 0.95rem; max-width: 650px; margin-bottom: 1rem; color: #E2E8F0; line-height: 1.4; }

.btn-hero { background: linear-gradient(135deg, var(--orange), #D95E22); color: #FFFFFF !important; border: none; padding: 0.55rem 1.8rem; border-radius: 25px; font-weight: 800; font-size: 0.9rem; text-decoration: none; cursor: pointer; display: inline-block; box-shadow: 0 4px 18px rgba(243, 112, 50, 0.45); }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; padding: 3rem 5%; max-width: 1200px; margin: 0 auto; }
.product-card { background: var(--bg-card); border-radius: 18px; overflow: hidden; border: 1px solid var(--bg-card-border); box-shadow: 0 10px 25px rgba(0,0,0,0.3); display: flex; flex-direction: column; }
.product-img-wrapper { height: 260px; width: 100%; overflow: hidden; background: #1B5B65; position: relative; }
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 1.3rem; color: var(--text-main); margin-bottom: 0.5rem; font-weight: 800; }
.product-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--bg-card-border); padding-top: 1rem; margin-top: auto; flex-wrap: wrap; }
.product-price { font-size: 1.3rem; font-weight: 900; color: var(--sky-blue); white-space: nowrap; }
.product-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-basket { background: var(--orange); color: #FFFFFF !important; padding: 0.55rem 0.95rem; border-radius: 8px; font-weight: 800; font-size: 0.85rem; text-decoration: none; border: none; cursor: pointer; }
.btn-amazon { background: #FF9900; color: #111111 !important; padding: 0.55rem 0.95rem; border-radius: 8px; font-weight: 800; font-size: 0.85rem; text-decoration: none; border: none; display: inline-flex; align-items: center; }

/* Admin and Auth Card Forms */
.auth-container { max-width: 420px; margin: 3rem auto; padding: 0 1rem; flex: 1; }
.admin-card { background: var(--bg-card); border: 1px solid var(--bg-card-border); border-radius: 16px; padding: 2rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.4rem; color: var(--sky-blue); font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem; border: 1px solid var(--input-border); border-radius: 8px; font-size: 0.95rem; background: var(--input-bg); color: var(--text-main); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Table & Footer */
.table-responsive { overflow-x: auto; margin-top: 1rem; }
.table { width: 100%; border-collapse: collapse; min-width: 100%; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--bg-card-border); color: var(--text-main); }
.table th { background: var(--bg-body); color: var(--sky-blue); }

.footer { text-align: center; padding: 3rem 2rem; background: #070D1E; color: #94A3B8; margin-top: auto; border-top: 3px solid var(--orange); }
.footer-logo { height: 50px; max-width: 180px; margin-bottom: 0.8rem; object-fit: contain; }