/* Vendora Theme - B2B Multi-Vendor Marketplace for South Africa */

/* ============================================
   CSS Variables & Root Settings
   ============================================ */
:root {
    /* Vendora brand colours (from logo): deep navy, royal blue, electric cyan */
    --brand-navy: #0b1a4f;
    --brand-navy-deep: #060f33;
    --brand-blue: #1f4bff;
    --brand-indigo: #3a1cf2;
    --brand-cyan: #1fc8f5;
    --brand-gradient: linear-gradient(135deg, #2a2cf0 0%, #1f6bff 55%, #1fc8f5 100%);
    --brand-gradient-dark: linear-gradient(160deg, #0b1a4f 0%, #060f33 100%);

    --primary: #1f4bff;
    --primary-dark: #1435c9;
    --primary-light: #4f74ff;
    --secondary: #0b1a4f;
    --accent: #0ea5d9;
    --accent-dark: #0284b8;
    --success: #16a34a;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #1fc8f5;
    
    --text-dark: #0b1a4f;
    --text-muted: #5b6785;
    --text-light: #94a0bd;
    
    --bg-white: #ffffff;
    --bg-light: #f4f6fc;
    --bg-gray: #e8ecf7;
    --bg-dark: #0b1a4f;
    
    --border-color: #e1e6f2;
    --border-radius: 14px;
    --border-radius-sm: 10px;
    --border-radius-lg: 20px;
    
    --shadow-sm: 0 1px 2px rgba(11,26,79,0.06);
    --shadow: 0 4px 12px rgba(11,26,79,0.08);
    --shadow-md: 0 10px 24px rgba(11,26,79,0.10);
    --shadow-lg: 0 20px 40px rgba(11,26,79,0.14);
    
    --transition: all 0.2s ease;
    --transition-slow: all 0.3s ease;
    
    --header-height: 72px;
    --mobile-nav-height: 64px;
}

/* Light theme (default) - Vendora */
:root {
    /* Optimized theme variables */
    --theme-bg: #f4f6fc;
    --theme-text: #0b1a4f;
    --theme-border: #e1e6f2;
    --theme-card-bg: #ffffff;
    --theme-input-bg: #ffffff;
    --theme-header-bg: rgba(255,255,255,0.88);
    --theme-footer-bg: linear-gradient(160deg, #0b1a4f 0%, #060f33 100%);
    --theme-footer-text: #ffffff;
    
    /* Commonly used components */
    --theme-shadow: 0 4px 14px rgba(11,26,79,0.07);
    --theme-shadow-md: 0 14px 30px rgba(11,26,79,0.12);
    --theme-nav-text: #0b1a4f;
    --theme-nav-hover: #1f4bff;
    --theme-button-text: #ffffff;
    --theme-link: #1f4bff;
    --theme-link-hover: #1435c9;
    --theme-accent: #1fc8f5;
    --theme-success: #16a34a;
    --theme-error: #ef4444;
}

/* Dark theme - Vendora */
[data-theme="dark"] {
    /* Optimized theme variables */
    --theme-bg: #050b24;
    --theme-text: #e8edfb;
    --theme-border: #1c2a5c;
    --theme-card-bg: #0c1640;
    --theme-input-bg: #0c1640;
    --theme-header-bg: rgba(5,11,36,0.88);
    --theme-footer-bg: linear-gradient(160deg, #040920 0%, #02051a 100%);
    --theme-footer-text: #e8edfb;
    
    /* Commonly used components */
    --theme-shadow: 0 4px 14px rgba(0,0,0,0.4);
    --theme-shadow-md: 0 14px 30px rgba(0,0,0,0.5);
    --theme-nav-text: #e8edfb;
    --theme-nav-hover: #5fb8ff;
    --theme-button-text: #ffffff;
    --theme-link: #5f8bff;
    --theme-link-hover: #8aa9ff;
    --theme-accent: #1fc8f5;
    --theme-success: #34d399;
    --theme-error: #f87171;
    
    /* Remap base color variables for dark mode */
    --primary: #4f74ff;
    --primary-dark: #1f4bff;
    --text-dark: #e8edfb;
    --text-muted: #9aa6c8;
    --text-light: #6c7aa3;
    --bg-white: #0c1640;
    --bg-light: #111d4d;
    --bg-gray: #0a1336;
    --bg-dark: #050b24;
    --border-color: #1c2a5c;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.3), 0 10px 10px -5px rgba(0,0,0,0.2);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--theme-text);
    background-color: var(--theme-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
    padding-bottom: var(--mobile-nav-height);
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--theme-link);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--theme-link-hover);
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
}

.container-fluid {
    width: 100%;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container, .container-fluid {
        padding: 0 24px;
    }
}

.full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* ============================================
   Header Styles
   ============================================ */
.site-header {
    background: var(--theme-header-bg);
    box-shadow: var(--theme-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo:hover {
    color: var(--theme-link-hover);
}

.logo img {
    height: 40px;
    width: auto;
}

/* Make logo visible in dark theme */
[data-theme="dark"] .logo img {
    filter: brightness(0) invert(1);
}

/* Dark mode specific fixes */
[data-theme="dark"] .header-btn i {
    color: var(--theme-text);
}

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
    display: none;
}

@media (min-width: 768px) {
    .header-search {
        display: block;
    }
}

.search-form {
    position: relative;
    display: flex;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--theme-border);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--theme-input-bg);
    color: var(--theme-text);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--theme-input-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-text);
    opacity: 0.7;
    pointer-events: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--theme-text);
    font-size: 1.25rem;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    line-height: 1;
}

.header-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.header-btn:hover {
    background: var(--theme-border);
    color: var(--theme-link);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--theme-error);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-count:empty {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: flex;
    color: var(--theme-text);
}

/* Ensure menu icon is visible in dark mode */
.menu-toggle i {
    font-size: 1.5rem;
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }
}

.nav-link {
    color: var(--theme-text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--theme-link);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--theme-link);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Mobile Navigation (Bottom Tab Bar)
   ============================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--theme-card-bg);
    border-top: 1px solid var(--theme-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--mobile-nav-height);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    color: var(--theme-text);
    font-size: 0.7rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    opacity: 0.7;
    transition: var(--transition);
}

.mobile-nav-item.active {
    color: var(--theme-link);
    opacity: 1;
}

.mobile-nav-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.mobile-nav-item .nav-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(14px);
    background: var(--theme-error);
    color: white;
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Mobile Slide Menu
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 85%;
    max-width: 350px;
    background: var(--theme-card-bg);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--theme-shadow);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--theme-border);
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--theme-border);
    color: var(--theme-text);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-nav {
    padding: 16px;
    flex: 1;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--theme-text);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    margin-bottom: 4px;
    transition: var(--transition);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: var(--theme-border);
    color: var(--theme-link);
    transform: translateX(4px);
}

.mobile-menu-nav a i {
    font-size: 1.25rem;
    width: 24px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--theme-link) 0%, var(--theme-link-hover) 100%);
    color: var(--theme-button-text);
    padding: 40px 0;
    text-align: center;
    box-shadow: inset 0 -1px 0 var(--theme-border);
}

@media (min-width: 768px) {
    .hero {
        padding: 60px 0;
    }
}

.hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile Search in Hero */
.hero-search {
    max-width: 500px;
    margin: 24px auto 0;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .hero-search {
        display: none;
    }
}

.hero-search .search-input {
    background: white;
    border-color: white;
}

/* ============================================
   Category Pills
   ============================================ */
.category-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 16px 0;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pills {
    display: flex;
    gap: 10px;
    padding: 0 16px;
    width: max-content;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    border-radius: 50px;
    color: var(--theme-text);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: var(--theme-shadow);
}

.category-pill:hover,
.category-pill.active {
    background: var(--theme-link);
    border-color: var(--theme-link);
    color: var(--theme-button-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-pill i {
    font-size: 1rem;
}

/* ============================================
   Product Grid
   ============================================ */
.products-section {
    padding: 24px 0;
}

@media (min-width: 768px) {
    .products-section {
        padding: 40px 0;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theme-text);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
}

.view-all {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .product-grid {
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

/* ============================================
   Product Card
   ============================================ */
.product-card {
    background: var(--theme-card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
}

.product-card:hover {
    box-shadow: var(--theme-shadow-md);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-light);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
    padding: 8px;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.product-badge.sale {
    background: var(--danger);
}

.product-wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-card-bg);
    border: none;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.product-card:hover .product-wishlist {
    opacity: 1;
    transform: scale(1);
}

.product-wishlist:hover {
    color: var(--danger);
}

.product-wishlist.active {
    color: var(--danger);
}

.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-info {
        padding: 16px;
    }
}

.product-vendor {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.product-vendor a {
    color: var(--text-muted);
}

.product-vendor a:hover {
    color: var(--primary);
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-name {
        font-size: 1rem;
    }
}

.product-name a {
    color: inherit;
}

.product-name a:hover {
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.product-rating i {
    font-size: 0.85rem;
    color: var(--accent);
}

.product-rating span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 768px) {
    .price-current {
        font-size: 1.25rem;
    }
}

.price-old {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.add-cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.add-cart-btn:active {
    transform: scale(0.95);
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
    padding: 16px 0 40px;
}

@media (min-width: 768px) {
    .product-detail {
        padding: 24px 0 60px;
    }
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--theme-card-bg);
    border: 1px solid var(--border-color);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumbnail {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: var(--bg-light);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.product-detail-info {
    padding: 0;
}

@media (min-width: 768px) {
    .product-detail-info {
        padding: 0 16px;
    }
}

.product-detail-vendor {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-detail-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-detail-name {
        font-size: 2rem;
    }
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 768px) {
    .detail-price-current {
        font-size: 2rem;
    }
}

.detail-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-detail-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quantity-label {
    font-weight: 600;
    color: var(--text-dark);
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--bg-gray);
    color: var(--primary);
}

.quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: var(--theme-card-bg);
    color: var(--theme-text);
}

.quantity-input:focus {
    outline: none;
}

.add-to-cart-full {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-add-cart {
    flex: 1;
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-buy-now {
    flex: 1;
    padding: 16px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-buy-now:hover {
    background: var(--accent-dark);
}

/* ============================================
   Cart Page
   ============================================ */
.cart-page {
    padding: 16px 0 40px;
}

@media (min-width: 768px) {
    .cart-page {
        padding: 32px 0 60px;
    }
}

.cart-header {
    margin-bottom: 24px;
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .cart-title {
        font-size: 2rem;
    }
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr 380px;
        gap: 32px;
    }
}

.cart-items {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 576px) {
    .cart-item {
        gap: 20px;
        padding: 20px;
    }
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    flex-shrink: 0;
}

@media (min-width: 576px) {
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-vendor {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    padding: 4px;
}

.cart-item-remove:hover {
    color: var(--danger);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-size: 1rem;
}

.cart-item-qty input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
    background: var(--theme-card-bg);
    color: var(--theme-text);
}

.cart-item-qty input:focus {
    outline: none;
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.cart-summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--border-color);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Account Layout */
.account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .account-layout {
        grid-template-columns: 220px 1fr;
        gap: 28px;
    }
}

.account-sidebar {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.account-nav-link:hover {
    background: var(--bg-light);
}

.account-nav-link.active {
    background: var(--bg-light);
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.account-nav-link.logout {
    color: var(--danger);
    border-top: 1px solid var(--border-color);
}

.account-nav-link.logout:hover {
    background: #fef2f2;
}

[data-theme="dark"] .account-nav-link.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.account-nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

.account-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 24px;
    min-height: 300px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-checkout:hover {
    background: var(--primary-dark);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-cart h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--theme-footer-bg);
    color: var(--theme-footer-text);
    padding: 40px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (min-width: 576px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    display: block;
}

.footer-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-payments {
    display: flex;
    gap: 8px;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-payments {
        justify-content: flex-end;
    }
}

.footer-payments img {
    height: 24px;
    opacity: 0.7;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--theme-link);
    color: var(--theme-button-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: var(--theme-link-hover);
    color: var(--theme-button-text);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--theme-border);
    color: var(--theme-text);
}

.btn-outline:hover {
    border-color: var(--theme-link);
    color: var(--theme-link);
    transform: translateY(-1px);
}

/* ============================================
   Alerts & Toasts
   ============================================ */
.toast-container {
    position: fixed;
    bottom: calc(var(--mobile-nav-height) + 16px);
    left: 16px;
    right: 16px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .toast-container {
        bottom: 24px;
        left: auto;
        right: 24px;
        width: 360px;
    }
}

.toast {
    background: var(--bg-dark);
    color: white;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    opacity: 0.7;
    font-size: 1.25rem;
    padding: 0;
}

.toast-close:hover {
    opacity: 1;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs i {
    font-size: 0.7rem;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    color: var(--theme-text);
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--theme-link);
    color: var(--theme-link);
    box-shadow: var(--theme-shadow);
    transform: translateY(-2px);
}

.pagination .active {
    background: var(--theme-link);
    border-color: var(--theme-link);
    color: var(--theme-button-text);
    box-shadow: var(--theme-shadow);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   Theme Switcher
   ============================================ */
.theme-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    gap: 12px;
    will-change: transform; /* Performance optimization */
}

.theme-switcher-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
    background: transparent;
    overflow: hidden; /* Performance optimization */
}

.theme-switcher-button:hover {
    transform: scale(1.1);
    border-color: white;
}

.theme-switcher-button.active {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px var(--brand-navy-deep), 0 0 0 5px var(--brand-cyan);
}

.theme-switcher-button.light {
    background: #f8fafc;
    color: #1e293b !important;
    border-color: rgba(30, 41, 59, 0.2);
}

.theme-switcher-button.dark {
    background: #0f172a;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-switcher-button.light.active,
.theme-switcher-button.dark.active {
    border-color: var(--brand-cyan);
    box-shadow: 0 0 0 3px var(--brand-navy-deep), 0 0 0 5px var(--brand-cyan);
}

/* Override general dark mode icon rules for theme switcher */
[data-theme="dark"] .theme-switcher-button.light .bi {
    color: #1e293b !important;
}

[data-theme="light"] .theme-switcher-button.dark .bi {
    color: white !important;
}

/* ============================================
   Dark Mode Comprehensive Overrides
   ============================================ */
[data-theme="dark"] .quantity-btn {
    background: var(--bg-light);
    color: var(--theme-text);
}

[data-theme="dark"] .quantity-btn:hover {
    background: var(--bg-gray);
}

[data-theme="dark"] .cart-item-qty button {
    color: var(--theme-text);
}

[data-theme="dark"] .quantity-control {
    border-color: var(--border-color);
}

[data-theme="dark"] .cart-item-qty {
    border-color: var(--border-color);
}

[data-theme="dark"] .thumbnail {
    border-color: var(--border-color);
}

[data-theme="dark"] .hero-search .search-input {
    background: var(--theme-input-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

[data-theme="dark"] select,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] textarea {
    background-color: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

[data-theme="dark"] select option {
    background: var(--theme-card-bg);
    color: var(--theme-text);
}

[data-theme="dark"] ::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

/* Dark mode product detail inline styles override */
[data-theme="dark"] .product-detail-info [style*="background:var(--bg-light)"],
[data-theme="dark"] .product-detail-info [style*="background:#f8f9fa"] {
    background: var(--bg-light) !important;
}

/* ============================================
   Loading States
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-auto { margin-top: auto; }
.d-none { display: none; }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }

@media (min-width: 768px) {
    .d-md-block { display: block; }
    .d-md-none { display: none; }
}

/* ============================================
   Vendora Design Layer
   ============================================ */
h1, h2, h3, h4, .section-title, .product-detail-name, .cart-title {
    letter-spacing: -0.02em;
}

::selection {
    background: rgba(31,75,255,0.18);
}

/* Header */
.site-header {
    background: var(--theme-header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: none;
    border-bottom: 1px solid var(--theme-border);
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--brand-gradient);
    opacity: 0.9;
}

.logo img,
.mobile-menu-header .logo img {
    height: 38px;
    width: auto;
    margin: 0;
}

@media (min-width: 768px) {
    .site-header .logo img {
        height: 42px;
    }
}

.logo .logo-light,
[data-theme="dark"] .logo .logo-default {
    display: none;
}

[data-theme="dark"] .logo .logo-light {
    display: block;
}

[data-theme="dark"] .logo img {
    filter: none;
}

.search-input {
    border: 1.5px solid var(--theme-border);
    background: var(--bg-light);
    padding: 12px 18px 12px 46px;
}

.search-input:focus {
    border-color: var(--primary);
    background: var(--theme-input-bg);
    box-shadow: 0 0 0 4px rgba(31,75,255,0.12);
}

.desktop-nav .nav-link {
    font-weight: 600;
    font-size: 0.95rem;
}

.desktop-nav .nav-link::after {
    background: var(--brand-gradient);
    border-radius: 2px;
}

.header-btn:hover {
    background: rgba(31,75,255,0.08);
    color: var(--primary);
}

.cart-count {
    background: var(--brand-gradient);
    box-shadow: 0 2px 6px rgba(31,75,255,0.35);
}

.btn-sell {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(31,75,255,0.3);
    transition: var(--transition);
}

.btn-sell:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31,75,255,0.4);
}

@media (min-width: 992px) {
    .btn-sell {
        display: inline-flex;
    }
}

/* Mobile menu */
.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: rgba(31,75,255,0.08);
    color: var(--primary);
}

.mobile-nav {
    background: var(--theme-header-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--brand-gradient);
}

.mobile-nav-item .nav-badge {
    background: var(--brand-gradient);
}

/* Buttons */
.btn {
    border-radius: 50px;
}

.btn-primary,
.btn-checkout,
.btn-add-cart {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(31,75,255,0.28);
}

.btn-primary:hover,
.btn-checkout:hover,
.btn-add-cart:hover {
    background: var(--brand-gradient);
    color: #fff;
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(31,75,255,0.36);
}

.btn-buy-now {
    background: var(--brand-navy);
}

.btn-buy-now:hover {
    background: var(--brand-navy-deep);
}

[data-theme="dark"] .btn-buy-now {
    background: #1c2a5c;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Category pills */
.category-pill {
    box-shadow: none;
}

.category-pill:hover,
.category-pill.active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(31,75,255,0.25);
}

/* Sections */
.section-title {
    font-weight: 800;
    color: var(--text-dark);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}

.view-all {
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(31,75,255,0.07);
}

.view-all:hover {
    background: rgba(31,75,255,0.14);
    color: var(--primary-dark);
}

/* Product cards */
.product-card {
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--theme-shadow-md);
    border-color: rgba(31,75,255,0.35);
}

.product-image {
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--theme-card-bg) 100%);
}

.product-badge {
    background: var(--brand-gradient);
    border-radius: 50px;
}

.product-vendor a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.price-current {
    color: var(--text-dark);
    font-weight: 800;
}

.add-cart-btn {
    background: var(--brand-gradient);
    box-shadow: 0 6px 14px rgba(31,75,255,0.3);
}

.add-cart-btn:hover {
    background: var(--brand-gradient);
    filter: brightness(1.1);
}

/* Cards & panels */
.cart-items,
.cart-summary,
.account-sidebar,
.account-content,
.empty-cart {
    border: 1px solid var(--theme-border);
    box-shadow: var(--shadow-sm);
}

.toast {
    background: var(--brand-navy);
    border-radius: var(--border-radius);
}

.pagination .active {
    background: var(--brand-gradient);
    border-color: transparent;
}

/* ---------- Home: Hero ---------- */
.v-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--brand-gradient-dark);
    padding: 56px 0 64px;
    isolation: isolate;
}

.v-hero::before,
.v-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    opacity: 0.55;
}

.v-hero::before {
    width: 520px;
    height: 520px;
    background: #2a2cf0;
    top: -220px;
    left: -140px;
}

.v-hero::after {
    width: 460px;
    height: 460px;
    background: #1fc8f5;
    bottom: -260px;
    right: -120px;
    opacity: 0.4;
}

.v-hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .v-hero {
        padding: 88px 0 96px;
    }
    .v-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

.v-hero-content {
    text-align: center;
}

@media (min-width: 992px) {
    .v-hero-content {
        text-align: left;
    }
}

.v-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cfe9ff;
    margin-bottom: 20px;
}

.v-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 0 4px rgba(31,200,245,0.25);
}

.v-hero h1 {
    font-size: 2.1rem;
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 18px;
    color: #fff;
}

@media (min-width: 768px) {
    .v-hero h1 {
        font-size: 3.25rem;
    }
}

.v-gradient-text {
    background: linear-gradient(90deg, #6f8bff 0%, #1fc8f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.v-hero-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(232,237,251,0.82);
    max-width: 560px;
    margin: 0 auto 28px;
}

@media (min-width: 992px) {
    .v-hero-lead {
        margin-left: 0;
    }
}

.v-hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto 24px;
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

@media (min-width: 992px) {
    .v-hero-search {
        margin-left: 0;
    }
}

.v-hero-search i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.v-hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent !important;
    color: #0b1a4f !important;
    padding: 12px 12px 12px 46px;
    font-size: 1rem;
    font-family: inherit;
}

.v-hero-search button {
    border: none;
    border-radius: 50px;
    padding: 0 22px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.v-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .v-hero-actions {
        justify-content: flex-start;
    }
}

.btn-ghost-light {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
}

.btn-ghost-light:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    transform: translateY(-1px);
}

.v-hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
    font-size: 0.85rem;
    color: rgba(232,237,251,0.7);
}

.v-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v-hero-trust i {
    color: var(--brand-cyan);
}

@media (min-width: 992px) {
    .v-hero-trust {
        justify-content: flex-start;
    }
}

/* Hero visual card */
.v-hero-visual {
    display: none;
    position: relative;
}

@media (min-width: 992px) {
    .v-hero-visual {
        display: block;
    }
}

.v-hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 24px;
    padding: 28px;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.v-hero-card img {
    width: 120px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 10px 30px rgba(31,200,245,0.45));
}

.v-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.v-hero-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 16px;
}

.v-hero-stat strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.v-hero-stat span {
    font-size: 0.8rem;
    color: rgba(232,237,251,0.7);
}

.v-hero-stat i {
    font-size: 1.25rem;
    color: var(--brand-cyan);
    display: block;
    margin-bottom: 8px;
}

/* ---------- Home: generic section ---------- */
.v-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .v-section {
        padding: 72px 0;
    }
}

.v-section-alt {
    background: var(--bg-white);
    border-top: 1px solid var(--theme-border);
    border-bottom: 1px solid var(--theme-border);
}

.v-section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 32px;
}

.v-section-head h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .v-section-head h2 {
        font-size: 2.1rem;
    }
}

.v-section-head p {
    color: var(--text-muted);
}

/* Category cards */
.v-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 768px) {
    .v-cat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.v-cat-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border-radius: var(--border-radius-lg);
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
    color: var(--text-dark);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.v-cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31,75,255,0.35);
    box-shadow: var(--theme-shadow-md);
    color: var(--text-dark);
}

.v-cat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(31,75,255,0.3);
}

.v-cat-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.v-cat-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.v-cat-card:hover span {
    color: var(--primary);
}

/* Feature cards */
.v-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 992px) {
    .v-feature-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.v-feature {
    padding: 22px;
    border-radius: var(--border-radius-lg);
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border);
}

.v-feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31,75,255,0.08);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.v-feature h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.v-feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* How it works / Why Vendora */
.v-why {
    background: var(--brand-gradient-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.v-why::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #1f4bff;
    filter: blur(110px);
    opacity: 0.35;
    top: -300px;
    right: -200px;
    z-index: -1;
}

.v-why .v-section-head h2 {
    color: #fff;
}

.v-why .v-section-head p {
    color: rgba(232,237,251,0.75);
}

.v-steps {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .v-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.v-step {
    position: relative;
    padding: 26px;
    border-radius: var(--border-radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-slow);
}

.v-step:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(31,200,245,0.4);
}

.v-step-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,0.07);
}

.v-step-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    font-size: 1.4rem;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(31,75,255,0.4);
}

.v-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.v-step p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(232,237,251,0.72);
}

/* Seller CTA */
.v-cta {
    border-radius: 24px;
    padding: 36px 24px;
    background: var(--brand-gradient);
    color: #fff;
    display: grid;
    gap: 20px;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(31,75,255,0.3);
}

@media (min-width: 768px) {
    .v-cta {
        grid-template-columns: 1fr auto;
        text-align: left;
        padding: 48px 56px;
    }
}

.v-cta h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.v-cta p {
    color: rgba(255,255,255,0.88);
    max-width: 520px;
}

.v-cta .btn {
    background: #fff;
    color: var(--brand-navy);
    padding: 14px 28px;
    box-shadow: 0 10px 24px rgba(6,15,51,0.25);
}

.v-cta .btn:hover {
    color: var(--brand-blue);
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.v-footer {
    background: var(--theme-footer-bg);
    color: rgba(232,237,251,0.7);
    padding: 56px 0 calc(var(--mobile-nav-height) + 32px);
    position: relative;
}

@media (min-width: 768px) {
    .v-footer {
        padding-bottom: 32px;
    }
}

.v-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.v-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .v-footer-grid {
        grid-template-columns: 1.6fr repeat(3, 1fr);
    }
}

.v-footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .v-footer-brand {
        grid-column: auto;
    }
}

.v-footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.v-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 18px;
}

.v-social {
    display: flex;
    gap: 10px;
}

.v-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.05rem;
}

.v-social a:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
}

.v-footer h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.v-footer ul {
    list-style: none;
}

.v-footer li {
    margin-bottom: 10px;
}

.v-footer li a {
    color: rgba(232,237,251,0.65);
    font-size: 0.9rem;
}

.v-footer li a:hover {
    color: var(--brand-cyan);
}

.v-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .v-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.v-footer-bottom .theme-switcher {
    margin-top: 0;
}

.v-payments {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(232,237,251,0.55);
}

.v-payments i {
    font-size: 1.2rem;
}

.v-payments .v-pill {
    font-size: 0.7rem;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 6px;
}

/* Newsletter widget (shortcode output uses inline styles) */
.newsletter-widget {
    background: var(--bg-white) !important;
    color: var(--text-dark) !important;
    padding: 48px 20px !important;
    border-top: 1px solid var(--theme-border);
}

.newsletter-widget h3 {
    font-size: 1.5rem !important;
    font-weight: 800;
    color: var(--text-dark);
}

.newsletter-widget p {
    color: var(--text-muted);
}

.newsletter-widget input[type="email"] {
    background: var(--bg-light) !important;
    border: 1.5px solid var(--theme-border) !important;
    color: var(--text-dark) !important;
    border-radius: 50px;
    padding: 12px 20px !important;
    font-family: inherit;
}

.newsletter-widget input[type="email"]:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(31,75,255,0.12);
}

.newsletter-widget button[type="submit"] {
    background: var(--brand-gradient) !important;
    border-radius: 50px;
    padding: 12px 24px !important;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(31,75,255,0.28);
}

/* ============================================
   Header layout
   Mobile:  [menu]  [logo]  [icons]  + full-width search row
   Desktop: [logo]  [wide search]  [sell + icons]  + centred nav bar
   ============================================ */
.site-header {
    height: auto;
    padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    height: auto;
    min-height: var(--header-height);
    padding: 10px 0 8px;
}

.menu-toggle {
    justify-self: start;
}

.site-header .logo {
    justify-self: center;
}

.header-actions {
    justify-self: end;
    gap: 4px;
}

.header-search {
    display: none;
}

/* Search box with inline submit */
.search-form .search-submit {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    padding: 0 20px;
    border: none;
    border-radius: 50px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.search-form .search-submit:hover {
    filter: brightness(1.08);
}

.header-search .search-input {
    padding: 13px 110px 13px 46px;
    text-overflow: ellipsis;
}

/* Mobile search row */
.header-mobile-search {
    padding: 0 0 12px;
}

.header-mobile-search .search-input {
    padding: 11px 16px 11px 44px;
    text-overflow: ellipsis;
}

/* Secondary navigation bar (desktop) */
.header-nav {
    display: none;
}

.mobile-menu-nav a.mobile-menu-cta {
    background: var(--brand-gradient);
    color: #fff;
    margin: 8px 0;
}

.mobile-menu-nav a.mobile-menu-cta:hover {
    color: #fff;
}

@media (min-width: 992px) {
    .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 32px;
        padding: 14px 0 12px;
    }

    .site-header .logo {
        justify-self: start;
    }

    .header-search {
        display: block;
        justify-self: center;
        width: 100%;
        max-width: 720px;
    }

    .btn-sell {
        margin-right: 8px;
    }

    .header-mobile-search {
        display: none;
    }

    .header-nav {
        display: block;
        border-top: 1px solid var(--theme-border);
    }

    .header-nav-inner {
        display: flex;
        align-items: center;
        gap: 4px;
        height: 48px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header-nav-inner::-webkit-scrollbar {
        display: none;
    }

    /* Centres the links when they fit, scrolls cleanly when they don't */
    .header-nav-inner > :first-child {
        margin-left: auto;
    }

    .header-nav-inner > :last-child {
        margin-right: auto;
    }

    .header-nav .nav-link {
        flex-shrink: 0;
        padding: 7px 14px;
        border-radius: 50px;
        font-size: 0.9rem;
        font-weight: 600;
        white-space: nowrap;
        color: var(--theme-text);
    }

    .header-nav .nav-link::after {
        display: none;
    }

    .header-nav .nav-link:hover {
        background: rgba(31,75,255,0.07);
        color: var(--primary);
    }

    .header-nav .nav-link.active {
        background: rgba(31,75,255,0.1);
        color: var(--primary);
    }

    .header-nav-divider {
        flex-shrink: 0;
        width: 1px;
        height: 20px;
        margin: 0 8px;
        background: var(--theme-border);
    }

    .cart-summary {
        top: 150px;
    }
}

/* Product wishlist button must be visible on touch devices (no hover) */
@media (hover: none) {
    .product-wishlist {
        opacity: 1;
        transform: none;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }
}

/* ============================================
   Mobile optimisation (< 768px)
   ============================================ */
@media (max-width: 767px) {
    :root {
        --header-height: 64px;
    }

    /* Prevent iOS zoom-on-focus */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px !important;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .header-inner {
        gap: 8px;
    }

    .logo img,
    .site-header .logo img {
        height: 32px;
    }

    .mobile-menu-header .logo img {
        height: 34px;
    }

    .header-actions {
        gap: 2px;
    }

    .header-btn {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    /* Hero */
    .v-hero {
        padding: 36px 0 44px;
    }

    .v-badge {
        font-size: 0.68rem;
        margin-bottom: 16px;
    }

    .v-hero h1 {
        font-size: 2rem;
        margin-bottom: 14px;
    }

    .v-hero-lead {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    .v-hero-search {
        margin-bottom: 16px;
        padding: 5px;
    }

    .v-hero-search input {
        padding: 11px 8px 11px 42px;
    }

    .v-hero-search i {
        left: 18px;
    }

    .v-hero-search button {
        padding: 0 18px;
    }

    .v-hero-actions {
        gap: 10px;
    }

    .v-hero-actions .btn {
        flex: 1 1 100%;
        white-space: nowrap;
        padding: 13px 16px;
        font-size: 0.95rem;
    }

    .v-hero-trust {
        gap: 8px 16px;
        margin-top: 20px;
        font-size: 0.78rem;
    }

    /* Sections */
    .v-section {
        padding: 36px 0;
    }

    .v-section-head {
        margin-bottom: 22px;
    }

    .v-section-head h2,
    .v-cta h2 {
        font-size: 1.4rem;
    }

    .section-header {
        margin-bottom: 16px;
        align-items: flex-end;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .view-all {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    /* Category cards */
    .v-cat-grid {
        gap: 10px;
    }

    .v-cat-card {
        padding: 14px;
        gap: 10px;
        border-radius: var(--border-radius);
    }

    .v-cat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .v-cat-card h3 {
        font-size: 0.9rem;
    }

    .v-cat-card span {
        font-size: 0.78rem;
    }

    /* Product grid & cards */
    .product-grid {
        gap: 10px;
    }

    .product-card {
        border-radius: var(--border-radius);
    }

    .product-card:hover {
        transform: none;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .price-current {
        font-size: 1rem;
    }

    .add-cart-btn {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    /* Features & steps */
    .v-feature-grid {
        gap: 10px;
    }

    .v-feature {
        padding: 16px;
        border-radius: var(--border-radius);
    }

    .v-feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .v-feature h3 {
        font-size: 0.9rem;
    }

    .v-feature p {
        font-size: 0.8rem;
    }

    .v-steps {
        gap: 12px;
    }

    .v-step {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        align-items: start;
        padding: 18px;
    }

    .v-step-icon {
        grid-row: span 2;
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .v-step h3 {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .v-step p {
        font-size: 0.85rem;
    }

    .v-step-num {
        top: 14px;
        right: 16px;
        font-size: 1.8rem;
    }

    /* CTA */
    .v-cta {
        padding: 28px 20px;
        border-radius: var(--border-radius-lg);
    }

    .v-cta .btn {
        width: 100%;
    }

    /* Newsletter */
    .newsletter-widget {
        padding: 36px 16px !important;
    }

    .newsletter-widget h3 {
        font-size: 1.25rem !important;
    }

    /* Footer */
    .v-footer {
        padding-top: 40px;
    }

    .v-footer-grid {
        gap: 28px 16px;
        margin-bottom: 28px;
    }

    .v-footer-brand img {
        height: 34px;
    }

    .v-footer li {
        margin-bottom: 4px;
    }

    .v-footer li a {
        display: inline-block;
        padding: 4px 0;
    }

    /* Shop page */
    .shop-hero .shop-hero-inner {
        padding: 28px 16px 24px !important;
    }

    /* Product detail */
    .product-detail {
        padding: 8px 0 32px;
    }

    .product-detail-name {
        font-size: 1.35rem;
    }

    .detail-price-current {
        font-size: 1.5rem;
    }

    .add-to-cart-full {
        gap: 8px;
    }

    .btn-add-cart,
    .btn-buy-now {
        padding: 14px 12px;
        font-size: 0.95rem;
    }

    /* Cart, account & auth */
    .cart-page {
        padding: 12px 0 32px;
    }

    .cart-title {
        font-size: 1.35rem;
    }

    .cart-summary {
        position: static;
        padding: 20px;
    }

    .account-content {
        padding: 18px;
    }

    .auth-wrap {
        align-items: flex-start !important;
        min-height: 0 !important;
        padding: 24px 16px 40px !important;
    }

    .auth-card {
        padding: 24px 20px !important;
    }

    .toast-container {
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 12px);
    }
}

/* Very small phones */
@media (max-width: 374px) {
    .v-hero h1 {
        font-size: 1.75rem;
    }

    .v-cat-grid,
    .v-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Seller guide (CMS page content using .sg-* classes)
   ============================================ */
.page-content .sg h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 36px 0 14px;
}

.page-content .sg h3 .bi {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31,75,255,0.08);
    color: var(--primary);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sg-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    background: var(--brand-gradient-dark);
    color: #fff;
    isolation: isolate;
}

.sg-hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: #1fc8f5;
    filter: blur(90px);
    opacity: 0.35;
    right: -120px;
    top: -140px;
    z-index: -1;
}

.page-content .sg-hero h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 6px 0 10px;
    color: #fff;
}

.page-content .sg-hero p {
    color: rgba(232,237,251,0.82);
    max-width: 560px;
    margin-bottom: 22px;
}

.sg-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-cyan);
}

.sg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-content a.sg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.page-content a.sg-btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 8px 20px rgba(31,75,255,0.28);
}

.page-content a.sg-btn-ghost {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: #fff;
}

.page-content a.sg-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
    color: #fff;
}

/* Steps */
.page-content ol.sg-steps {
    list-style: none;
    padding: 0;
    counter-reset: sg-step;
    display: grid;
    gap: 10px;
}

.page-content ol.sg-steps li {
    counter-increment: sg-step;
    position: relative;
    margin: 0;
    padding: 14px 16px 14px 62px;
    border: 1px solid var(--theme-border);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.page-content ol.sg-steps li::before {
    content: counter(sg-step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sg-steps strong {
    color: var(--text-dark);
}

.sg-steps span {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Fees table */
.page-content table.sg-table {
    border: 1px solid var(--theme-border);
    border-radius: var(--border-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.page-content table.sg-table tbody tr:last-child td {
    border-bottom: none;
}

.page-content table.sg-table td:last-child {
    font-weight: 600;
}

.sg-tag {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 6px;
    border-radius: 50px;
    background: rgba(22,163,74,0.12);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Fulfilment cards */
.sg-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.sg-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--theme-border);
    border-radius: var(--border-radius);
    background: var(--theme-card-bg);
    line-height: 1.5;
}

.sg-card .bi {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.sg-card strong {
    color: var(--text-dark);
}

.sg-card span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Support */
.sg-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    border: 1px solid var(--theme-border);
}

.page-content .sg-support p {
    margin: 0;
}

@media (max-width: 767px) {
    .sg-hero {
        padding: 24px 20px;
    }

    .page-content .sg-hero h2 {
        font-size: 1.4rem;
    }

    .sg-actions .sg-btn {
        flex: 1 1 100%;
    }

    .page-content .sg h3 {
        font-size: 1.05rem;
        margin-top: 28px;
    }

    .page-content ol.sg-steps li {
        padding: 12px 14px 12px 56px;
    }

    .sg-cards {
        gap: 10px;
    }

    .sg-card {
        padding: 14px;
    }

    .sg-support {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .page-content table.sg-table {
        display: table;
        white-space: normal;
    }

    .page-content table.sg-table th,
    .page-content table.sg-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 374px) {
    .sg-cards {
        grid-template-columns: 1fr;
    }
}

/* Show fewer category links in the nav bar as the screen narrows */
@media (max-width: 1399px) {
    .header-nav .nav-cat-5 { display: none; }
}

@media (max-width: 1199px) {
    .header-nav .nav-cat-4 { display: none; }
}

@media (max-width: 1099px) {
    .header-nav .nav-cat-3 { display: none; }
    .header-nav .nav-link { padding: 7px 11px; }
}

/* ============================================
   South African flavour: beadwork, handshake, local touches
   ============================================ */
.icon-handshake {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
    vertical-align: -0.22em;
    background-color: currentColor;
    -webkit-mask: url(assets/icon-handshake.svg) center / contain no-repeat;
    mask: url(assets/icon-handshake.svg) center / contain no-repeat;
}

.v-flag {
    display: inline-block;
    width: 20px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
    flex-shrink: 0;
}

/* Beadwork bands */
.bead-strip {
    height: 26px;
    background: #0b1a4f url(assets/beads-strip.svg) repeat-x center / auto 26px;
}

.bead-strip-thin {
    height: 12px;
    background-size: auto 12px;
}

/* Top bar */
.v-topbar {
    background: var(--brand-navy-deep);
    color: rgba(232,237,251,0.85);
    font-size: 0.8rem;
}

.v-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.v-topbar span,
.v-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.v-topbar i {
    color: #FFB81C;
}

.v-topbar a {
    color: #fff;
    font-weight: 600;
}

.v-topbar a .icon-handshake {
    color: #FFB81C;
}

.v-topbar a:hover {
    color: var(--brand-cyan);
}

.v-topbar-extra {
    display: none !important;
}

@media (min-width: 992px) {
    .v-topbar-extra {
        display: inline-flex !important;
    }
}

/* Mobile menu greeting */
.mobile-menu-greeting {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    padding: 4px 16px 16px;
}

.mobile-menu-greeting span {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Hero badge flag */
.v-badge .v-flag {
    width: 18px;
}

/* Hero medallion: handshake inside a ring of beads */
.v-medallion {
    position: relative;
    width: 420px;
    max-width: 100%;
    aspect-ratio: 1;
    margin: 0 auto;
}

.v-medallion-ring {
    position: absolute;
    inset: 0;
    background: url(assets/bead-ring.svg) center / contain no-repeat;
    animation: v-spin 90s linear infinite;
}

.v-medallion-core {
    position: absolute;
    inset: 23%;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 70px rgba(31,75,255,0.45), inset 0 0 0 8px rgba(255,255,255,0.12);
}

.v-medallion-core .icon-handshake {
    width: 50%;
    height: 50%;
    color: #fff;
}

.v-medallion-tag {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 50px;
    background: rgba(11,26,79,0.72);
    border: 1px solid rgba(255,255,255,0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.v-medallion-tag i {
    color: #FFB81C;
}

.v-tag-1 { top: 6%; left: -8%; }
.v-tag-2 { top: 47%; right: -12%; }
.v-tag-3 { bottom: 5%; left: 2%; }

@keyframes v-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 991px) {
    .v-hero-visual {
        display: block;
        order: -1;
    }

    .v-medallion {
        width: 150px;
    }

    .v-medallion-tag {
        display: none;
    }

    .v-medallion-core {
        box-shadow: 0 14px 30px rgba(31,75,255,0.45), inset 0 0 0 4px rgba(255,255,255,0.12);
    }

    .v-hero-grid {
        gap: 20px;
    }
}

/* Greetings & provinces marquee */
.v-local-band {
    background: var(--bg-white);
    border-bottom: 1px solid var(--theme-border);
    overflow: hidden;
    padding: 14px 0;
}

.v-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: v-marquee 60s linear infinite;
}

.v-local-band:hover .v-marquee-track {
    animation-play-state: paused;
}

.v-marquee-track > span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.v-marquee-track > span::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 22px;
    background: #E03C31;
}

.v-marquee-track > span:nth-child(4n+2)::after { background: #FFB81C; }
.v-marquee-track > span:nth-child(4n+3)::after { background: #007749; }
.v-marquee-track > span:nth-child(4n+4)::after { background: var(--brand-blue); }

.v-band-greeting {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.v-band-province {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@keyframes v-marquee {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .v-medallion-ring,
    .v-marquee-track {
        animation: none;
    }
}

/* Ubuntu quote */
.v-ubuntu {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 780px;
    margin: 0 auto 56px;
    padding: 26px 30px;
    border-radius: var(--border-radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
}

.v-ubuntu-mark {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    margin: 13px;
    border-radius: 50%;
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 0 0 4px #0b1a4f, 0 0 0 7px #FFB81C, 0 0 0 10px #0b1a4f, 0 0 0 13px #E03C31;
}

.v-ubuntu blockquote p {
    font-size: 1.55rem;
    font-weight: 800;
    font-style: italic;
    color: #fff;
    margin-bottom: 6px;
}

.v-ubuntu cite {
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(232,237,251,0.78);
}

.v-step-icon .icon-handshake {
    width: 1.1em;
    height: 1.1em;
}

/* CTA: eyebrow + beaded bottom edge */
.v-cta {
    padding-bottom: 60px;
}

.v-cta::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    background: url(assets/beads-strip.svg) repeat-x center / auto 14px;
}

.v-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255,255,255,0.16);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Footer: beaded top edge + greetings */
.v-footer {
    padding-top: 64px;
}

.v-footer::before {
    height: 14px;
    background: #0b1a4f url(assets/beads-strip.svg) repeat-x center / auto 14px;
}

.v-footer-brand p.v-footer-greet {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFB81C;
    margin-top: -6px;
}

@media (max-width: 767px) {
    .bead-strip {
        height: 20px;
        background-size: auto 20px;
    }

    .bead-strip-thin {
        height: 10px;
        background-size: auto 10px;
    }

    .v-topbar-inner {
        min-height: 32px;
        font-size: 0.75rem;
    }

    .v-ubuntu {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        margin-bottom: 36px;
        padding: 22px 18px;
    }

    .v-ubuntu blockquote p {
        font-size: 1.2rem;
    }

    .v-ubuntu cite {
        font-size: 0.88rem;
    }

    .v-local-band {
        padding: 10px 0;
    }

    .v-band-greeting {
        font-size: 0.95rem;
    }

    .v-band-province {
        font-size: 0.85rem;
    }

    .v-cta {
        padding-bottom: 44px;
    }
}

/* Chunkier beadwork so individual beads read clearly */
.bead-strip {
    height: 40px;
    background-size: auto 40px;
}

.bead-strip-thin {
    height: 14px;
    background-size: auto 14px;
}

.v-footer::before {
    height: 20px;
    background-size: auto 20px;
}

.v-cta::after {
    height: 20px;
    background-size: auto 20px;
}

@media (max-width: 767px) {
    .bead-strip {
        height: 30px;
        background-size: auto 30px;
    }

    .bead-strip-thin {
        height: 12px;
        background-size: auto 12px;
    }
}

/* New flag logo: slightly larger on desktop */
@media (min-width: 992px) {
    .site-header .logo img {
        height: 48px;
    }
}
