/* CDN ACCESS DISABLED FOR ONION SPEED */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap'); */

:root {
  --primary: #d4af37; /* Gold */
  --primary-dark: #b8860b; /* Dark Gold */
  --accent: #ffd700; /* Bright Gold */
  --bg: #0a0a0a; /* Deep Charcoal */
  --bg-offset: #1a1a1a;
  --white: #ffffff;
  --text: #e0e0e0;
  --text-muted: #a0a0a0;
  --card-bg: #141414;
  --card-radius: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px; /* Physical Law */
    line-height: 1.6;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    box-sizing: border-box;
}

/* Global Form & Table Elements (For Shop/Checkout/Auth pages) */
.se-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #222;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
    box-sizing: border-box;
    margin-bottom: 15px;
}
/* Mobile Toggle Button */
.se-mobile-nav-toggle {
    display: none;
}
.se-card-wrap {
    background: var(--card-bg);
    border-radius: 0;
    padding: 30px;
    box-shadow: none;
    margin: 40px auto;
    max-width: 100%;
    box-sizing: border-box;
}
.se-page-title {
    font-size: 32px !important; /* Physical Law #2 */
    color: var(--primary-dark);
    margin: 0 0 30px 0;
    font-weight: 700;
    text-align: center;
    word-break: break-word;
}

h1 { font-size: 32px !important; }
h2 { font-size: 24px !important; }
h3 { font-size: 18px !important; }

@media (max-width: 768px) {
    .se-page-title, h1 {
        font-size: 24px !important;
        margin-bottom: 20px;
    }
}

/* Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    min-width: 500px;
}

img {
    max-width: 100%;
    height: auto;
}

.auth, nav {
    word-break: break-word;
}

/* HEADER */
.header-wrap {
    background: #000;
    border-bottom: 2px solid var(--primary);
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: var(--white);
}
.header .logo {
    font-size: 26px;
    font-weight: 700;
}
.header nav {
    display: none; /* Replaced by nav-desktop below */
}
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-search {
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
}
.header-search form {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s;
}
.header-search form:focus-within {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}
.header-search input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    flex: 1;
    font-size: 14px;
    outline: none;
}
.header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}
.header-search button {
    background: transparent;
    border: none;
    color: white;
    padding: 0 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.8;
}
.header-search button:hover { opacity: 1; }

@media (max-width: 991px) {
    .header-search { display: none; }
}

/* AJAX Search Results */
.header-search-wrap {
    position: relative;
}
#headerSearchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin-top: 10px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    border: 1px solid #edf2f7;
}
#headerSearchResults.active {
    display: block;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--primary-dark);
    transition: 0.2s;
    border-bottom: 1px solid #f7fafc;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover {
    background: #f8fafc;
}
.search-result-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #f1f5f9;
}
.search-result-info {
    flex: 1;
}
.search-result-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}
.search-result-meta {
    font-size: 12px;
    color: var(--text-muted);
}
.search-result-price {
    font-weight: 700;
    color: var(--accent);
    font-size: 14px;
}
.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

/* DESKTOP NAV (2 ROWS — always exactly 2 lines) */
.nav-desktop {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 5px;
}
.nav-row {
    display: flex;
    justify-content: center;
    gap: 0 8px;
    flex-wrap: nowrap;
    width: 100%;
    padding: 3px 0;
}
.nav-row a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: none;
    padding: 12px 10px; /* 44px Tap Target Law */
    flex: 0 1 auto;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-row a:hover, .nav-row a.active {
    color: white;
    border-bottom: 2px solid white;
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 10001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.mobile-menu.active {
    right: 0;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: 0.3s;
}
.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}
.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-menu-header .logo {
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 20px;
}
.close-menu {
    border: none;
    background: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
}
.mobile-menu-links {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}
.mobile-menu-links a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 16px;
    padding: 5px 0;
}
.mobile-menu-links a:hover {
    color: var(--primary);
}
.header .auth {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-nav-outline {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    height: 44px; /* Physical Law #4 */
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-nav-outline:hover {
    background: rgba(255,255,255,0.25);
}
.btn-nav-primary {
    background: var(--accent);
    color: #000;
    height: 44px; /* Physical Law #4 */
    padding: 0 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-nav-primary:hover {
    background: #e65a28;
}

.btn-solid-blue {
    background: var(--primary);
    color: #000;
    height: 44px; /* Physical Law #4 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    border: none;
    transition: 0.2s;
    cursor: pointer;
}

.btn-solid-blue:hover {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-full {
    width: 100%;
}

/* HERO SLIDER */
.hero-swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e4ebf5;
}
.hero-inner-slide {
    padding: 30px 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.hero-inner {
    display: flex;
    gap: 30px;
    align-items: center;
    width: 100%;
}
.swiper-button-next, .swiper-button-prev {
    display: none;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    display: none;
}
.swiper-button-next::after, .swiper-button-prev::after {
    display: none;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--primary-dark);
    opacity: 0.3;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--accent);
    width: 30px;
    border-radius: 6px;
}

/* --- APEX SCARCITY & TRUST UI --- */
.apex-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    margin-bottom: 8px;
}
.apex-scarcity {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    animation: apexPulse 2s infinite;
}
.apex-trust {
    color: var(--primary);
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}
.apex-status-online {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
    margin-right: 4px;
}
@keyframes apexPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

/* Institutional Product Card Overhaul */
.product-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
    border-color: var(--primary) !important;
}
.stock-bar-wrap {
    height: 3px;
    background: #111;
    margin: 10px 0;
    width: 100%;
}
.stock-bar-fill {
    height: 100%;
    background: var(--primary);
}
.stock-bar-fill.low {
    background: #ff6b35;
}

/* Custom Invictus Hero */
.inv-hero {
    background: #000 url('assets/images/grid-bg.png') repeat;
    padding: 60px 0 !important; /* Physical Law #3: Section Margin */
    border-bottom: 1px solid #222;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}
.inv-hero-slider {
    position: relative;
    height: 100%;
}
.inv-slide {
    display: none;
    animation: fadeEffect 0.8s;
}
.inv-slide.active {
    display: block;
}
@keyframes fadeEffect {
    from {opacity: 0.4;} 
    to {opacity: 1;}
}

.inv-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    position: relative;
    z-index: 10;
}
.dot {
    height: 12px;
    width: 44px; /* Physical Law #4: Tap Target Width */
    min-height: 44px; /* Physical Law #4: Tap Target Height */
    background-color: #333;
    border: 1px solid #444;
    cursor: pointer;
    transition: background-color 0.4s;
    display: block;
    position: relative;
}
.dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: inherit;
    border: inherit;
}
.dot.active {
    background-color: var(--primary);
}
.dot.active::after {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

@media (max-width: 991px) {
    .inv-hero {
        padding: 60px 0 !important; /* Keep section rhythm */
        min-height: auto;
    }
    .inv-hero .container > div {
        flex-direction: column !important;
        gap: 20px !important;
    }
}

.inv-hero h1 {
    font-size: 32px !important; /* Physical Law #2 Sync */
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.inv-hero p {
    font-size: 14.5px !important; /* Physical Law #2 Sync */
    color: var(--text-muted);
    max-width: 600px;
}

.hero-left {
    flex: 1.1;
}
.hero-left h1 {
    font-size: 32px !important; /* Physical Law #2 Sync */
    color: var(--primary-dark);
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}
.hero-left > p {
    color: var(--text-muted);
    font-size: 16px;
    margin: 0 0 25px 0;
}

.search-box {
    display: flex;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(59,108,183,0.12);
    border-radius: 6px;
    overflow: hidden;
}
.search-box input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
}
.search-box input::placeholder {
    color: #a0aec0;
}
.search-box button {
    padding: 0 25px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}
.search-box button:hover {
    background: var(--primary-dark);
}

.features {
    display: flex;
    background: rgba(160, 174, 192, 0.15);
    border-radius: 6px;
    padding: 12px 20px;
    gap: 30px;
}
.features span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
}

.hero-right {
    flex: 0.9;
    background: linear-gradient(135deg, #6ba1e0, #4075c2);
    border-radius: 12px;
    height: 320px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(59,108,183,0.2);
    position: relative;
    overflow: hidden;
}
.hero-right-content {
    padding: 40px;
    color: white;
    position: relative;
    z-index: 2;
}
.hero-right-content h2 {
    font-size: 42px;
    margin: 0;
    line-height: 1;
    text-transform: capitalize;
    font-weight: 800;
}
.hero-right-content p {
    font-size: 20px;
    margin: 10px 0 25px 0;
    text-transform: uppercase;
}
.hero-right-content p strong {
    font-size: 46px;
    color: var(--primary);
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* FOOTER */
footer {
    background: #000;
    padding: 60px 0;
    color: var(--text-muted);
    border-top: 1px solid #222;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* BUTTONS */
.btn-solid-blue {
    background: var(--primary);
    color: #000;
    padding: 0 30px;
    height: 44px; /* 44px Tap Target Law */
    line-height: 44px;
    border: 1px solid var(--primary);
    border-radius: 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: none;
    text-transform: uppercase;
}
.btn-solid-blue:hover { background: var(--primary-dark); }

.btn-solid-orange {
    background: var(--accent);
    color: white;
    padding: 10px 30px;
    border: 1px solid var(--accent);
    border-radius: 0;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: none;
}
.btn-solid-orange:hover { background: #e65a28; }

.btn-full {
    width: 100%;
}

/* PRODUCTS */
.products-section {
    padding: 60px 0 !important; /* Physical Law #3 */
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-Column Mobile Grid Law */
        gap: 20px;
    }
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(2, 1fr); /* 2-Column Mobile Grid Law */
        gap: 20px;
    }
}
.card {
    background: var(--card-bg);
    border-radius: 0; /* Forced Sharp Edges */
    padding: 15px; /* Physical Law */
    box-shadow: none; /* Low-Noise: No soft shadows */
    text-align: left;
    transition: none; /* Low-Noise: No movement */
    display: flex;
    flex-direction: column;
    border: 1px solid #333; /* Industrial Border */
}
.card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}
.card img {
    width: 100%;
    height: 160px; /* Physical Law: Hard-Locked */
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 0; /* Forced Sharp Edges */
    background: #000;
}
.card h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: var(--primary-dark);
    font-weight: 700;
    flex: 1;
}
.card .price {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px; /* Physical Law: Price Scale */
    margin: 0 0 12px 0;
    font-family: monospace; /* Technical feel */
}

/* Institutional Components */
.trust-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 2px;
    letter-spacing: 0.5px;
    z-index: 10;
}
.trust-tier-gold { background: var(--primary); color: #000; }
.trust-tier-silver { background: #c0c0c0; color: #000; }
.trust-tier-bronze { background: #cd7f32; color: #000; }

.escrow-ribbon {
    background: #1a1a1a;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border: 1px solid var(--primary);
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.market-dashboard {
    background: #050505;
    border-bottom: 1px solid #222;
    padding: 10px 0;
}
.dashboard-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
@media (max-width: 768px) {
    .dashboard-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .stat-item {
        flex: 1 1 120px;
        text-align: center;
    }
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-value {
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    font-family: monospace;
}
.promo-banner {
    background: linear-gradient(135deg, #f7ede2, rgba(255,107,53,0.1));
    border-radius: 10px;
    height: 100%;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.promo-banner::after {
    content: "Shop Home Goods";
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    padding: 20px;
}

/* VENDORS */
.section-heading {
    text-align: center;
    margin-bottom: 30px;
}
.section-heading h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin: 0 0 5px 0;
    font-weight: 700;
}
.section-heading p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.vendors-section {
    padding: 60px 0;
    background: #f8fafc;
}
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.vendor-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    text-align: left;
}
.vendor-card .v-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}
.vendor-card h3 {
    font-size: 16px;
    color: var(--primary-dark);
    margin: 0 0 4px 0;
    font-weight: 700;
}
.vendor-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 15px 0;
}

/* TESTIMONIALS */
.testimonials-section {
    padding: 60px 0 80px 0;
    background: #edf2f7;
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.testi-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
}
.testi-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.testi-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.testi-quote-icon {
    color: var(--primary);
    font-size: 32px;
    font-family: serif;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: bold;
}
.testi-text {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}
.testi-stars {
    color: #f6ad55;
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 2px;
}
.testi-footer-txt {
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 14px;
}

/* SHOP LAYOUT */
.shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.shop-sidebar {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}
.shop-main {
    flex: 3;
    min-width: 300px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .promo-banner { display: none; }
    .vendors-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    .hero-swiper { 
        margin-bottom: 30px; 
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }
    .hero-inner { flex-direction: row; text-align: left; gap: 15px; }
    .hero-inner-slide { min-height: 300px; padding: 20px 0; }
    .hero-left h1 { font-size: 22px; margin-bottom: 8px; }
    .hero-left > p { font-size: 13px; margin-bottom: 15px; }
    .search-box { margin-bottom: 15px; }
    .search-box input { padding: 10px 12px; font-size: 13px; }
    .search-box button { padding: 0 15px; }
    .hero-right { height: 220px; min-height: auto; flex: 0.8; border-radius: 8px; }
    .hero-right-content { padding: 20px; }
    .hero-right-content h2 { font-size: 24px; }
    .hero-right-content p { font-size: 14px; margin: 5px 0 15px; }
    .hero-right-content p strong { font-size: 28px; }
    
    .shop-sidebar { display: none; } /* User requested no sidebar on mobile */
    .shop-main { min-width: 100%; border: none; padding: 0; }
    
    .products-grid, .shop-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
    }
    .card { padding: 10px; }
    .card h3 { font-size: 13px; height: 36px; }
    .card .price { font-size: 14px; }
    
    .vendors-grid, .testi-grid { grid-template-columns: 1fr; }
    .header nav, .nav-desktop { display: none; }
    .menu-toggle { display: block; }
    /* .hero-right kept visible on mobile — same layout as desktop */
    .header { flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 0; }
    .header .logo { font-size: 20px; }
    .auth { display: none; } /* Hide in header, already in side drawer */
    .features { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
        background: rgba(255,255,255,0.5);
        padding: 15px;
    }
    .features span { font-size: 11px; }
}

/* CART & CHECKOUT SHARED */
.cart-checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}
.cart-checkout-main {
    flex: 1.8;
    min-width: 300px;
}
.cart-checkout-side {
    flex: 1;
    min-width: 300px;
}

/* CART SPECIFIC */
.cart-container-inner {
    margin: 0;
    padding: 25px;
}
.cart-table-header {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
}
.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
    gap: 20px;
}
.cart-item-info {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #edf2f7;
}
.cart-item-meta {
    flex: 1;
}
.cart-item-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
    line-height: 1.4;
}
.cart-item-options {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-top: 2px;
}
.cart-item-remove {
    font-size: 13px;
    color: #e53e3e;
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
    transition: opacity 0.2s;
}
.cart-item-remove:hover { opacity: 0.8; }

.cart-item-details {
    flex: 1.5;
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-item-price, .cart-item-total {
    flex: 1;
    font-weight: 600;
    color: var(--primary-dark);
}
.cart-item-price { text-align: center; color: var(--text-muted); font-size: 14px; }
.cart-item-total { text-align: right; font-size: 16px; color: var(--accent); }
.cart-item-qty {
    flex: 1;
    display: flex;
    justify-content: center;
}
.cart-item-qty .se-input {
    width: 60px;
    text-align: center;
    padding: 8px;
}

/* CHECKOUT SPECIFIC */
.checkout-section {
    margin: 0;
    padding: 35px;
}
.checkout-step-title {
    font-size: 20px;
    color: var(--primary-dark);
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.step-num {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.grid-span-2 { grid-column: span 2; }

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.payment-method-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-method-item:hover { border-color: var(--primary); background: #fff; }
.payment-method-item.checked { border-color: var(--primary); background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    width: 100%;
    color: var(--primary-dark);
}
.payment-icons img { height: 24px; filter: grayscale(0.2); }
.wallet-balance { margin-left: auto; color: #38a169; font-weight: 700; }
.payment-note { font-size: 13px; color: var(--text-muted); margin: 20px 0 0 0; }

/* SUMMARY CARD */
.order-summary-card { position: sticky; top: 20px; padding: 30px; }
.summary-title { margin: 0 0 25px 0; font-size: 20px; color: var(--primary-dark); border-bottom: 1px solid #edf2f7; padding-bottom: 15px; }
.summary-items { max-height: 400px; overflow-y: auto; margin-bottom: 25px; padding-right: 10px; }
.summary-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.summary-item-img-wrap { position: relative; }
.summary-item-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid #edf2f7; }
.summary-item-qty { position: absolute; top: -8px; right: -8px; background: var(--primary-dark); color: white; font-size: 11px; font-weight: bold; padding: 2px 7px; border-radius: 20px; }
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 14px; font-weight: 600; color: var(--primary-dark); line-height: 1.3; }
.summary-item-options { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.summary-item-total { font-weight: 600; color: var(--text); font-size: 15px; }

.summary-totals { border-top: 2px solid #edf2f7; padding-top: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 15px; }
.summary-row span:first-child { color: var(--text-muted); }
.summary-row span:last-child { font-weight: 700; color: var(--primary-dark); }
.shipping-tag { color: var(--primary) !important; font-weight: 600; }
.summary-row.total { margin-top: 20px; padding-top: 20px; border-top: 1px dashed #edf2f7; font-size: 19px; }
.summary-row.total strong:last-child { color: var(--accent); font-size: 24px; }

@media (max-width: 991px) {
    .cart-checkout-container { flex-direction: column; }
    .cart-checkout-main, .cart-checkout-side { width: 100%; min-width: 100%; }
    .order-summary-card { position: static; margin-top: 30px; }
}

@media (max-width: 768px) {
    .cart-table-header { display: none; }
    .cart-item { flex-direction: column; align-items: stretch; padding: 20px 0; gap: 15px; }
    .cart-item-info { gap: 15px; }
    .cart-item-img { width: 100px; height: 100px; }
    .cart-item-details { 
        padding-top: 15px; 
        border-top: 1px dashed #edf2f7;
        justify-content: space-between;
    }
    .cart-item-price { display: none; }

    .checkout-section { padding: 25px 20px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .grid-mobile-span-2 { grid-column: span 1; }
}

@media (max-width: 480px) {
    .cart-item-img { width: 80px; height: 80px; }
    .cart-item-name { font-size: 14px; }
    .summary-row.total { font-size: 17px; }
    .summary-row.total strong:last-child { font-size: 20px; }
}

/* DASHBOARD LAYOUT */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}
.dashboard-sidebar {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
}
.dashboard-main {
    flex: 3;
    min-width: 320px;
}

@media (max-width: 991px) {
    .dashboard-container {
        flex-direction: column;
        gap: 15px;
    }
    .dashboard-sidebar, .dashboard-main {
        max-width: 100%;
        width: 100%;
        min-width: 100%;
    }

    /* Mobile Nav Toggle */
    .se-mobile-nav-toggle {
        display: flex !important;
        align-items: center;
        gap: 20px;
        background: white;
        border: 1px solid #e2e8f0;
        height: 44px !important; /* Physical Law #4 */
        padding: 0 15px;
        border-radius: 12px;
        color: var(--primary-dark);
        font-weight: 700;
        cursor: pointer;
        margin-bottom: 15px;
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-sidebar {
        display: none; /* Toggle via JS */
        opacity: 0;
        transition: all 0.3s ease;
    }

    .dashboard-sidebar.active {
        display: block;
        opacity: 1;
    }

    /* Horizontal Pill Navigation */
    .dashboard-sidebar .se-card-wrap {
        border-radius: 0;
        margin-bottom: 20px;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .dashboard-sidebar > div:first-child > div:first-child {
        display: none !important; /* Hide user avatar header on mobile menu to save space */
    }

    .dashboard-sidebar div[style*="display:flex; flex-direction:column"] {
        flex-direction: row !important;
        overflow-x: auto !important;
        padding: 5px 0 15px 0 !important;
        gap: 10px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dashboard-sidebar div[style*="display:flex; flex-direction:column"]::-webkit-scrollbar {
        display: none;
    }

    .dashboard-nav-item {
        flex: 0 0 auto;
        height: 44px !important; /* Physical Law #4 */
        padding: 0 18px !important;
        display: inline-flex !important;
        align-items: center;
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 30px !important;
        font-size: 13px !important;
        border-left: none !important;
    }

    .dashboard-nav-item.active {
        background: var(--primary) !important;
        color: white !important;
        border-color: var(--primary) !important;
    }

    .dashboard-nav-item svg {
        width: 16px;
        height: 16px;
    }

    .dashboard-main .se-card-wrap {
        padding: 20px 15px !important;
    }
}

/* TABLE RESPONSIVENESS */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-responsive table {
    min-width: 600px;
}

@media (max-width: 480px) {
    .products-grid, .shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* --- PRODUCT CARD DESIGN SYSTEM (PHYSICAL LAWS SYNC) --- */
.product-grid-master {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .product-grid-master {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .product-grid-master {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid-master {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* 🔒 PERMANENCE_LOCK: SYMMETRY_LAW_V1.0 */
.product-card-master {
    background: var(--card-bg);
    border: 1px solid #222;
    padding: 0 !important; /* Zero padding for edge-to-edge image */
    border-radius: 12px !important;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Ensure image doesn't overflow rounded corners */
    gap: 0;
    height: 100%;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

.product-card-master:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.product-card-visual {
    position: relative;
    width: 100%;
    height: 220px !important; /* Uniform height for visual symmetry */
    overflow: hidden;
    background: transparent; /* No empty outer layer */
    border-radius: 0; /* Bleed to top edges */
}

.product-card-img {
    width: 100%;
    height: 220px !important; /* Force height to match container for object-fit: cover */
    display: block;
    object-fit: cover !important;
    transition: transform 0.5s;
}

.product-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-card-master:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-title {
    font-size: 14.5px !important;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    height: 36px !important; /* Exactly 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
}

@media (max-width: 480px) {
    .product-card-title {
        font-size: 13px !important;
        height: 32px !important;
    }
}

.product-card-price {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-top: 10px;
    font-family: monospace;
}

@media (max-width: 480px) {
    .product-card-price {
        font-size: 14px !important;
    }
}

.product-card-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- VENDOR REGISTRY DESIGN SYSTEM --- */
.vendor-card {
    background: #050505;
    border: 1px solid #222;
    padding: 20px !important;
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.vendor-card:hover {
    border-color: var(--primary);
    background: #0a0a0a;
}

.vendor-avatar {
    width: 64px;
    height: 64px;
    background: #111;
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: var(--primary);
}

.vendor-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    display: block;
}

.vendor-rank {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 15px;
}

.vendor-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid #111;
    padding-top: 15px;
    margin-top: 15px;
}

.product-card-price {
    font-size: 18px !important;
    font-weight: 800;
    color: var(--primary);
}

/* --- MOBILE RESPONSIVENESS INJECTIONS (LOCKED RULE: ALWAYS 2 COLUMNS) --- */
@media (max-width: 576px) {
    .product-grid-master {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .product-card-master {
        padding: 10px !important;
        gap: 8px;
    }
    .product-card-visual {
        height: 120px !important;
    }
    .product-card-title {
        font-size: 12px !important;
        height: 31px !important;
    }
    .product-card-meta {
        font-size: 9px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .product-card-price {
        font-size: 14px !important;
    }
    
    .dashboard-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .inv-hero-slider h1 {
        font-size: 24px !important;
    }
    
    .inv-hero > .container > div {
        flex-direction: column;
    }
    
    .stat-item {
        width: 100%;
        border-bottom: 1px solid #111;
        padding-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .product-grid-master { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .product-grid-master {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* End of Invictus Final Polish */
