/* Brand Colors and Custom Properties */
:root {
    --primary: #DA9100;
    --primary-light: #F4B400;
    --secondary: #E2A300;
    --secondary-light: #FEF2D5;
    --accent: #F4B400;
    --accent-hover: #C28100;
    --bg-light: #FAF8F2;
    --sidebar-bg: #111111;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --success: #34A853;
    --warning: #F4B400;
    --error: #D93025;
    --white: #FFFFFF;
    --border: #EBE5D6;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px rgba(218, 145, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius: 12px;
    --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 62px;
    --main-header-height: 62px;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Noto Sans', system-ui, -apple-system, 'Arial Unicode MS', sans-serif;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: clip;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

button, .btn, .nav-item, .card, .product-card, .stat-card, .inspect-thumb, .hamburger-btn, select, input {
    touch-action: manipulation;
}

/* Hardware Acceleration for Fluid Mobile Scrolling */
.hero-floater-slide,
.hero-laptop-img {
    will-change: transform;
    transform: translateZ(0);
}

/* App Container Layout */
#app-root {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 270px;
    background-color: var(--sidebar-bg);
    color: var(--white);
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 16px calc(env(safe-area-inset-bottom, 0px) + 20px);
    position: fixed;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    left: 0;
    top: 0;
    z-index: 1200;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    transform: translateX(-100%);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.sidebar.active {
    transform: translateX(0);
}

/* Custom Sleek Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Prevent background main page from scrolling while sandwich bar is open */
body.sidebar-open {
    overflow: hidden !important;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-logo h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
    font-size: 14px;
    flex-shrink: 0;
}

.nav-item:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.14);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border-left: none;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    padding-bottom: 16px;
    margin-top: auto;
    flex-shrink: 0;
}

/* Main Content Styling */
.main-content {
    flex-grow: 1;
    margin-left: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: var(--transition);
}

/* Header/Navbar */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(8px + env(safe-area-inset-top, 0px)) 20px 8px 20px;
    border-bottom: 1px solid var(--border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: var(--bg-light);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin: 0 !important;
    box-sizing: border-box;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@media (min-width: 769px) {
    /* Remove title from the top on PCs as requested */
    .main-header .header-title-wrap {
        display: none !important;
    }
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.user-profile:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--secondary);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.user-profile:hover .user-avatar {
    transform: scale(1.05);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary);
    color: #000000;
}

.btn-primary:hover {
    background-color: var(--secondary-light);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: #000000;
}

.btn-accent {
    background-color: var(--accent);
    color: #000000;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-danger {
    background-color: var(--error);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Card layout */
.card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Interactive Grid & Forms */
.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(229, 169, 59, 0.2);
}

/* Product Cards */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    min-height: 420px;
    height: auto;
    padding: 16px;
    background-color: var(--white);
    border: 1px solid var(--border);
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-md);
        border-color: var(--secondary);
    }
}

.product-img {
    height: 220px;
    width: 100%;
    background-color: #f1f5f9;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover .product-img img {
        transform: scale(1.05);
    }
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-hover);
    margin-top: 6px;
}

/* Table Design */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    padding: 12px 16px;
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    border-bottom: 2px solid var(--border);
}

td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

tr:hover td {
    background-color: rgba(245, 247, 250, 0.5);
}

/* Badge System */
.badge {
    display: inline-flex;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
}

.badge-pending {
    background-color: rgba(244, 180, 0, 0.15);
    color: #B07D00;
}

.badge-confirmed {
    background-color: rgba(66, 133, 244, 0.15);
    color: #1A73E8;
}

.badge-transit {
    background-color: rgba(147, 51, 234, 0.15);
    color: #7E22CE;
}

.badge-completed {
    background-color: rgba(52, 168, 83, 0.15);
    color: #137333;
}

.badge-void {
    background-color: rgba(217, 48, 37, 0.15);
    color: #C5221F;
}

.badge-success {
    background-color: rgba(52, 168, 83, 0.15);
    color: #137333;
}

.badge-warning {
    background-color: rgba(244, 180, 0, 0.15);
    color: #B07D00;
}

.badge-error {
    background-color: rgba(217, 48, 37, 0.15);
    color: #C5221F;
}

.badge-primary {
    background-color: rgba(66, 133, 244, 0.15);
    color: #1A73E8;
}

/* Unified Login Interface */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1d1a 0%, #111111 100%);
    padding: 16px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    margin: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 24px 20px;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    box-sizing: border-box;
    overflow: visible; /* Prevents internal scrollbar from flattening right-side rounded corners */
}

/* Auth Modal Header & Close Button */
.auth-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}
.auth-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: scale(1.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 14px;
    padding: 0 8px;
}
.auth-brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(218, 145, 0, 0.14), rgba(244, 180, 0, 0.24));
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 8px;
}
.auth-title {
    color: #0F172A;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.3px;
    margin-bottom: 3px;
}
.auth-subtitle {
    color: #64748B;
    font-size: 12.5px;
    line-height: 1.4;
    margin: 0;
}

/* Segmented Tab Switcher */
.auth-tab-pill-group {
    display: flex;
    background: #F1F5F9;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 12px;
    gap: 3px;
}
.auth-tab-pill {
    flex: 1;
    height: 35px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    color: #64748B;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-tab-pill.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Google Sign In */
.auth-social-wrap {
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.btn-google-auth {
    width: 100%;
    max-width: 320px;
    height: 42px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background: #FFFFFF;
    color: #3C4043;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}
#g_id_signin_slot {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}
#g_id_signin_slot iframe,
#g_id_signin_slot > div {
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}
.btn-google-auth:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}
.btn-google-auth:active {
    transform: translateY(0);
}
.auth-divider {
    display: flex;
    align-items: center;
    margin: 12px 0 10px 0;
    gap: 12px;
}
.auth-divider-line {
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}
.auth-divider-text {
    font-size: 11px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Groups & Inputs */
.auth-form-group {
    margin-bottom: 12px;
}
.auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 4px;
}
.auth-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 13.5px;
    color: #0F172A;
    background: #FFFFFF;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 145, 0, 0.15);
}
.auth-input::placeholder {
    color: #94A3B8;
    font-size: 12.5px;
}

/* Password Toggle Wrapper */
.auth-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-pass-wrap .auth-input {
    padding-right: 42px;
}
.auth-pass-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.auth-pass-toggle:hover {
    color: #334155;
}

/* Links & Buttons */
.auth-link-subtle {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}
.auth-link-subtle:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.auth-submit-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(218, 145, 0, 0.25);
    margin-top: 4px;
}
.auth-submit-btn-primary {
    background: linear-gradient(135deg, #DA9100 0%, #F4B400 100%);
    color: #111111;
}
.auth-submit-btn-primary:hover {
    background: linear-gradient(135deg, #C28100 0%, #DA9100 100%);
    box-shadow: 0 6px 16px rgba(218, 145, 0, 0.35);
    transform: translateY(-1px);
}
.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-footer-text {
    text-align: center;
    margin-top: 10px;
    font-size: 12.5px;
    color: #64748B;
}
.auth-footer-text a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.auth-footer-text a:hover {
    text-decoration: underline;
}

.auth-browse-guest-wrap {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
    text-align: center;
}
.auth-browse-guest-btn {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.auth-browse-guest-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
}

/* Order Confirmation & General Modals */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 99999 !important; /* Higher than all sticky topbars and subnavs */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    overscroll-behavior: contain;
    padding: 24px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.modal-overlay::-webkit-scrollbar {
    width: 6px;
}
.modal-overlay::-webkit-scrollbar-track {
    background: transparent;
}
.modal-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay > .login-card,
.modal-overlay > .modal-content {
    margin: auto;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 30px 28px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    color: #64748B;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-close-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: scale(1.05);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: #111827;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 380px;
}

@keyframes slideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Reports Layout */
.report-header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 24px;
    margin-top: 2px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* Print view optimization */
@media print {

    .sidebar,
    .main-header,
    .report-header-controls,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
    }
}

/* Find Us Map Pulse Animation */
.pulse-marker {
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Sidebar Backdrop overlay for Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1150;
}

.sidebar-backdrop.active {
    display: block;
}

@media (max-width: 992px) {
    #hamburger-btn {
        display: inline-flex !important;
    }
}

/* Grid layout rules for product cards */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

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

/* Product gallery inspect layout */
.inspect-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.inspect-main-img {
    width: 100%;
    height: 300px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.inspect-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.inspect-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inspect-thumb {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    transition: var(--transition);
}

.inspect-thumb.active {
    border-color: var(--secondary);
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .inspect-main-img:hover img {
        transform: scale(1.15);
    }

    .inspect-thumb:hover {
        border-color: var(--secondary);
        opacity: 0.9;
    }
}

.inspect-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Image URLs list styling in Add Product Modal */
.image-input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* Promo elements */
.promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    box-sizing: border-box;
    background-color: var(--error);
    color: var(--white);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    z-index: 3;
    pointer-events: none;
    /* 20-point starburst (40 vertices, outer r=50 inner r=43 = short spikes, circle-like) */
    clip-path: polygon(
        50% 0%,  57% 8%,  66% 3%,  70% 12%, 79% 10%,
        80% 20%, 91% 21%, 88% 31%, 98% 35%, 93% 43%,
        100% 50%, 93% 57%, 98% 66%, 88% 70%, 91% 79%,
        80% 80%, 79% 91%, 70% 88%, 66% 98%, 57% 93%,
        50% 100%, 43% 93%, 35% 98%, 31% 88%, 21% 91%,
        20% 80%, 10% 79%, 12% 70%, 3%  66%, 8%  57%,
        0%  50%, 8%  43%, 3%  35%, 12% 31%, 10% 21%,
        20% 20%, 21% 10%, 31% 12%, 35% 3%,  43% 8%
    );
    transform: rotate(9deg);
    filter: drop-shadow(0 3px 8px rgba(217, 48, 37, 0.45));
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 14px;
    margin-right: 6px;
}

.promo-price {
    color: var(--error) !important;
}

/* Map frame design */
.map-iframe-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Lightbox overlay styling */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1200;
}

@media (hover: hover) and (pointer: fine) {
    .lightbox-close:hover {
        background: rgba(0, 0, 0, 0.9);
        color: var(--accent);
        border-color: var(--accent);
        transform: scale(1.05);
    }
}

/* Category filter buttons style */
.filter-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary);
    color: #000000;
    border-color: var(--secondary);
}

/* Mobile store responsiveness layout styles */
@media (max-width: 992px) {
    #view-client-store > div {
        flex-direction: column !important;
    }

    #view-client-store > div > div:nth-child(2) {
        display: none !important; /* Hide right desktop cart column */
    }
}

/* Reports Layout */
.report-header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
}

.analytics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.stat-val {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-desc {
    font-size: 12px;
    color: var(--text-light);
}

/* Print view optimization */
@media print {

    .sidebar,
    .main-header,
    .report-header-controls,
    .btn {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: none !important;
    }
}

/* Mobile responsive adjustments for the Product Inspection Modal */
@media (max-width: 768px) {
    #modal-product-inspect .modal-content {
        padding: 16px !important;
        max-height: 95vh;
    }

    #modal-product-inspect .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    #modal-product-inspect .inspect-main-img {
        height: 220px !important;
    }
}

/* Lightbox Navigation Buttons */
.lightbox-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
    transition: var(--transition);
    border-radius: 50%;
}

@media (hover: hover) and (pointer: fine) {
    .lightbox-nav-btn:hover {
        background: rgba(0, 0, 0, 0.9);
        color: var(--accent);
        border-color: var(--accent);
    }
}

.lightbox-prev-btn {
    left: 16px;
}

.lightbox-next-btn {
    right: 16px;
}

/* Comprehensive Mobile & Tablet Responsive Enhancements */
@media (max-width: 768px) {

    .main-header > div:first-child {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    #topbar-auth-section {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
    }

    #page-title {
        font-size: 20px !important;
    }

    #page-subtitle {
        font-size: 11px !important;
    }

    #btn-topbar-signin,
    #btn-topbar-admin-toggle {
        height: 34px !important;
        font-size: 12px !important;
        padding: 0 10px !important;
    }

    /* Product catalog grid on small devices */
    #products-catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .product-card {
        height: auto !important;
        min-height: 400px;
    }

    .product-img {
        height: 220px !important;
    }

    /* Search bar and Category filter wrap nicely */
    .card > div:has(#client-search) {
        width: 100% !important;
    }

    /* Cart and checkout responsiveness */
    #view-client-cart .card {
        padding: 16px !important;
    }

    /* Table horizontal scrolling with visual indicator */
    .table-responsive {
        border-radius: var(--radius-sm);
        border: 1px solid var(--border);
    }
}

/* Hire Purchase Styles & Badge extensions */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.badge-primary {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

.badge-success {
    background-color: rgba(52, 168, 83, 0.1);
    color: var(--success);
}

.badge-warning {
    background-color: rgba(244, 180, 0, 0.1);
    color: var(--warning);
}

.badge-error {
    background-color: rgba(217, 48, 37, 0.1);
    color: var(--error);
}

/* Hide native password reveal icon in Edge/IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Report Download Dropdown Menu */
.report-download-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu-download {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 270px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm);
    padding: 6px;
    z-index: 1050;
    animation: fadeInDropdown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-download-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    touch-action: manipulation;
}

.dropdown-download-item:hover,
.dropdown-download-item:focus {
    background-color: var(--secondary-light);
    outline: none;
}

.dropdown-download-item i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.dropdown-download-text {
    display: flex;
    flex-direction: column;
}

.dropdown-download-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
}

.dropdown-download-desc {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 1px;
}

/* Product Card Favorite Toggle Button */
.btn-fav-card {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 6;
    touch-action: manipulation;
}

.btn-fav-card:hover {
    transform: scale(1.12);
    color: #e53e3e;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(229, 62, 62, 0.25);
}

.btn-fav-card.active {
    color: #e53e3e;
    background: #ffffff;
    border-color: rgba(229, 62, 62, 0.35);
}

.btn-fav-card.active i {
    animation: heartBeat 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ============================================================
   KMAP COMPUTERS - DEDICATED STOREFRONT LANDING PAGE STYLING
   ============================================================ */

/* 1. Landing Mode Container Behavior */
body.landing-mode .main-header {
    display: none !important;
}

body.landing-mode .main-content {
    padding: 0 !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background-color: #f8fafc;
}

body.landing-mode .sidebar {
    display: none !important;
}

.landing-view-wrapper {
    width: 100%;
    /* NOTE: do NOT add overflow-x:hidden here — it breaks position:sticky on .landing-sticky-header */
    color: #1e293b;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Sticky Header Wrapper (topbar + brand header + nav all stick together) */
.landing-sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding-top: env(safe-area-inset-top, 0px);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 2. Top Info Bar */
.landing-topbar {
    background-color: #0b1523;
    color: #cbd5e1;
    font-size: 12px;
    padding: 7px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-topbar-left, .landing-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
}

.topbar-item i {
    color: #DA9100;
}

.topbar-link {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 0.2s;
}

.topbar-link:hover {
    color: #ffffff;
}

.topbar-link i {
    color: #DA9100;
}

.topbar-social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar-social a {
    color: #cbd5e1;
    font-size: 13px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-social a:hover {
    color: #ffffff;
    background: #0d4cb5;
    transform: translateY(-1px);
}

/* 3. Main Brand Header */
.landing-header {
    background: #ffffff;
    padding: 14px 24px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.landing-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Brand Logo */
.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.landing-logo-img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.landing-logo:hover .landing-logo-img {
    transform: scale(1.06);
}

.app-header-logo {
    transition: transform 0.2s ease;
}

.btn-logo-home {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-logo-home:hover {
    transform: scale(1.08);
}

.btn-logo-home:active {
    transform: scale(0.95);
}

.landing-logo-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-k-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    background: #0b1e36;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-k-letter {
    font-size: 32px;
    font-weight: 900;
    color: #f7bf00;
    line-height: 1;
}

.logo-laptop-icon {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 14px;
    color: #ffffff;
}

.logo-text-col {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: #DA9100;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 800;
    color: #0b1e36;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 9.5px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* Search Bar */
.landing-search-wrap {
    flex: 1;
    max-width: 540px;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.landing-search-input {
    width: 100%;
    height: 42px;
    border: 2px solid #0d4cb5;
    border-radius: 4px;
    padding: 0 52px 0 16px;
    font-size: 13.5px;
    outline: none;
    color: #1e293b;
    background: #ffffff;
    transition: box-shadow 0.2s;
}

.landing-search-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 76, 181, 0.15);
}

.landing-search-btn {
    position: absolute;
    right: 2px;
    top: 2px;
    height: 38px;
    width: 46px;
    background: #0d4cb5;
    color: #ffffff;
    border: none;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s;
}

.landing-search-btn:hover {
    background: #093784;
}

/* Header Right Actions */
.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: #1e293b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.header-action-btn:hover {
    background: #f1f5f9;
    color: #0d4cb5;
}

.header-action-btn i {
    font-size: 20px;
}

.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.landing-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #d92d20;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    border: 2px solid #ffffff;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.header-call-btn {
    background: #0b1e36;
}

.header-call-btn i {
    font-size: 18px;
    color: #f7bf00;
}

.header-wa-btn {
    background: #25D366;
}

.header-wa-btn i {
    font-size: 22px;
    color: #ffffff;
}

.header-cta-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cta-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    line-height: 1.1;
}

.cta-val {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

/* 4. Royal Blue Category Nav Bar */
.landing-nav {
    background: #0d4cb5;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(13, 76, 181, 0.2);
    /* sticky removed: parent .landing-sticky-header handles stickiness */
}

.landing-nav-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.landing-nav-inner::-webkit-scrollbar {
    display: none;
}

.landing-nav-link {
    color: #ffffff;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s;
    border-radius: 2px;
}

.landing-nav-link:hover, .landing-nav-link.active {
    background: rgba(255, 255, 255, 0.16);
}

.landing-nav-link i.fa-chevron-down {
    font-size: 9px;
    opacity: 0.7;
}

/* 5. Hero Section (Vibrant Golden Yellow) */
.landing-hero {
    background: linear-gradient(135deg, #f7bf00 0%, #fabc00 50%, #f3b500 100%);
    padding: 38px 24px 34px;
    position: relative;
    overflow: visible;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.landing-hero-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.landing-hero-left {
    flex: 1;
    max-width: 580px;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #0b1e36;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.hero-headline {
    font-size: 46px;
    line-height: 1.05;
    font-weight: 900;
    color: #0b1e36;
    letter-spacing: -1.2px;
    margin-bottom: 12px;
}

.hero-subtext {
    font-size: 15.5px;
    color: #1e293b;
    line-height: 1.45;
    margin-bottom: 22px;
    font-weight: 500;
}

.hero-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 26px;
}

.hero-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0b1e36;
}

.hero-check-item i {
    color: #0b1e36;
    font-size: 15px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: #0b1e36;
    color: #ffffff;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 800;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(11, 30, 54, 0.25);
    transition: all 0.2s;
}

.hero-btn-primary:hover {
    background: #153359;
    transform: translateY(-1px);
}

.hero-btn-secondary {
    background: #ffffff;
    color: #0b1e36;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.hero-btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.landing-hero-right {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    overflow: visible;
}

.hero-brand-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.brand-item {
    font-weight: 900;
    font-size: 13px;
    color: #0b1e36;
}

.brand-item.brand-dell {
    color: #0076ce;
    font-family: monospace, sans-serif;
    letter-spacing: 1px;
}

.brand-item.brand-hp {
    color: #0096d6;
    font-style: italic;
}

.brand-item.brand-lenovo {
    background: #e2231a;
    color: white;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 11px;
}

.brand-item.brand-asus {
    color: #00539b;
}

.brand-item.brand-acer {
    color: #83b81a;
}

.hero-circular-badge {
    position: absolute;
    right: -30px;
    top: -14px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #0b1e36;
    border: 3px solid #f7bf00;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: badgeSpin 18s linear infinite;
}

.badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    line-height: 1.1;
    animation: badgeSpin 18s linear infinite reverse; /* counter-rotate text to stay upright */
}

.badge-small {
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.badge-bold {
    font-size: 10px;
    font-weight: 900;
    color: #f7bf00;
}

.badge-tag {
    font-size: 8px;
    font-weight: 800;
    color: #ffffff;
    margin-top: 2px;
}

.badge-sub {
    font-size: 8px;
    font-weight: 800;
    color: #f7bf00;
}

.hero-laptop-showcase {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hero-floater-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    cursor: pointer;
    padding: 8px;
    /* stays absolute always - no layout shift */
}

.hero-floater-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    /* bounce handled by floating-wrapper on the image, not on this element */
}

.hero-laptop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
    animation: heroFloaterBounce 4s ease-in-out infinite alternate;
}

.hero-floater-slide:not(.active) .hero-laptop-img {
    animation: none;
}

.hero-floater-slide:hover .hero-laptop-img {
    transform: scale(1.03);
}

@keyframes heroFloaterBounce {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

@keyframes badgeSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-slide-badge {
    position: absolute;
    top: 10px;
    left: 6px;
    background: rgba(11, 30, 54, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
    transition: transform 0.2s ease;
    max-width: 78%;
}

.hero-floater-slide:hover .hero-slide-badge {
    transform: scale(1.04);
}

.slide-badge-brand {
    font-size: 9px;
    font-weight: 800;
    color: #f7bf00;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slide-badge-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    white-space: normal;
    line-height: 1.3;
}

.slide-badge-price {
    font-size: 13px;
    font-weight: 900;
    color: #4ade80;
}

.hero-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(11, 30, 54, 0.3);
    cursor: pointer;
}

.hero-dot.active {
    background: #0b1e36;
    width: 18px;
    border-radius: 4px;
}

/* 6. General Landing Sections */
.landing-section {
    max-width: 1360px;
    margin: 0 auto;
    padding: 34px 24px;
}

.landing-section-header {
    margin-bottom: 22px;
}

.landing-section-header.text-center {
    text-align: center;
}

.landing-section-title {
    font-size: 22px;
    font-weight: 900;
    color: #0b1e36;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.landing-section-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-top: 3px;
}

/* Shop By Category Grid */
.landing-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.landing-cat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-cat-card:hover {
    border-color: #0d4cb5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(13, 76, 181, 0.12);
}

.cat-card-thumb {
    height: 82px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.cat-card-thumb img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.cat-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.cat-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0b1e36;
    margin-bottom: 4px;
}

.cat-card-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    margin-bottom: 12px;
    min-height: 30px;
}

.cat-card-link {
    font-size: 12px;
    font-weight: 700;
    color: #0d4cb5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
}

/* 7. Featured Slightly Used Laptops + Deals */
.landing-showcase-grid {
    display: grid;
    grid-template-columns: 3.2fr 1.2fr;
    gap: 24px;
}

.showcase-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.showcase-view-all {
    color: #0d4cb5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.showcase-view-all:hover {
    gap: 8px;
}

.featured-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.featured-laptop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.25s ease;
}

.featured-laptop-card:hover {
    border-color: #0d4cb5;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.feat-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
}

.brand-dell-pill {
    background: rgba(0, 118, 206, 0.1);
    color: #0076ce;
    border: 1px solid rgba(0, 118, 206, 0.2);
}

.brand-hp-pill {
    background: rgba(0, 150, 214, 0.1);
    color: #0096d6;
    border: 1px solid rgba(0, 150, 214, 0.2);
}

.brand-lenovo-pill {
    background: #e2231a;
    color: white;
}

.brand-toshiba-pill {
    background: #d91c1c;
    color: white;
}

.feat-card-thumb {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    cursor: pointer;
}

.feat-card-thumb img {
    max-height: 105px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s;
}

.featured-laptop-card:hover .feat-card-thumb img {
    transform: scale(1.04);
}

.feat-card-title {
    font-size: 14.5px;
    font-weight: 800;
    color: #0b1e36;
    margin-bottom: 5px;
    cursor: pointer;
    line-height: 1.25;
}

.feat-card-specs {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 32px;
}

.feat-card-price {
    font-size: 17px;
    font-weight: 900;
    color: #d92d20;
    margin-bottom: 4px;
}

.feat-card-stock {
    font-size: 11.5px;
    font-weight: 700;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}

.feat-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.feat-tag {
    font-size: 10px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 6px;
    border-radius: 2px;
}

.feat-add-cart-btn {
    background: #0d4cb5;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    transition: background 0.2s;
}

.feat-add-cart-btn:hover {
    background: #093784;
}

/* Right Column: Deals */
.deals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.deal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.deal-card-blue {
    background: #1565c0;
}

.deal-card-navy {
    background: #0f1f38;
}

.deal-card-orange {
    background: #ea580c;
}

.deal-card-dark {
    background: #1e293b;
}

.deal-content {
    display: flex;
    flex-direction: column;
}

.deal-title {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.deal-price-tag {
    font-size: 13px;
    font-weight: 900;
    color: #fde047;
}

.deal-thumb {
    width: 60px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deal-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.btn-all-deals {
    background: #0b1e36;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    width: 100%;
    transition: background 0.2s;
}

.btn-all-deals:hover {
    background: #153359;
}

/* 8. Why Choose KMAP Computers */
.landing-why-section {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.why-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.why-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ffffff;
    padding: 22px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.why-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 76, 181, 0.1);
    color: #0d4cb5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.why-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #0b1e36;
    margin-bottom: 6px;
}

.why-card-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

/* 9. Landing Footer */
.landing-footer {
    background: #071529;
    color: #94a3b8;
    padding-top: 44px;
}

.landing-footer-main {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.3fr 1.8fr 1.5fr;
    gap: 28px;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px 38px;
}

.footer-col-brand .footer-tagline-text {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 14px;
    line-height: 1.5;
    max-width: 260px;
}

.footer-heading {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 12.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #f7bf00;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list li, .footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: #cbd5e1;
    text-decoration: none;
}

.footer-contact-list a:hover {
    color: #f7bf00;
}

.footer-contact-list i {
    color: #f7bf00;
    font-size: 14px;
    width: 16px;
}

.footer-social-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 18px;
}

.footer-social-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, color 0.2s, box-shadow 0.2s;
}

.footer-social-row a.social-fb:hover {
    background: #1877F2;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.footer-social-row a.social-ig:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(214, 36, 159, 0.4);
}

.footer-social-row a.social-x:hover {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.footer-social-row a.social-tt:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: -2px -2px 0px #25F4EE, 2px 2px 0px #FE2C55;
}

.footer-social-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.social-badge-link i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.social-badge-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #f7bf00;
    border-color: rgba(247, 191, 0, 0.3);
    transform: translateX(3px);
}

/* Find Us Social Channels Grid */
.social-channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.social-channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.social-channel-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.channel-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.social-channel-fb .channel-icon-wrap { background: #1877F2; }
.social-channel-ig .channel-icon-wrap { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-channel-x .channel-icon-wrap { background: #000000; }
.social-channel-tt .channel-icon-wrap { background: #000000; box-shadow: -2px -2px 0px #25F4EE, 2px 2px 0px #FE2C55; }

.channel-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    line-height: 1.2;
}

.channel-handle {
    font-size: 12px;
    color: var(--text-light);
    font-family: monospace;
    font-weight: 600;
    margin-top: 2px;
}

.channel-action {
    font-size: 11px;
    font-weight: 700;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 992px) {
    .social-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .social-channels-grid {
        grid-template-columns: 1fr;
    }
}

.payment-badge-img {
    max-width: 180px;
    height: auto;
    border-radius: 3px;
    display: block;
}

.landing-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}


/* ============================================================
   RESPONSIVE DESIGN - PROFESSIONAL MOBILE-FIRST
   ============================================================ */

/* 1200px: Large tablets / small laptops */
@media (max-width: 1200px) {
    .landing-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .landing-showcase-grid { grid-template-columns: 1fr; }
    .featured-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .deals-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .btn-all-deals { grid-column: 1 / -1; }
    .why-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .landing-footer-main { grid-template-columns: repeat(3, 1fr); gap: 28px; }
    .footer-col-brand { grid-column: 1 / -1; }
    .hero-laptop-showcase { max-width: 420px; }
}

/* 1024px: Tablets landscape */
@media (max-width: 1024px) {
    .landing-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .why-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .landing-footer-main { grid-template-columns: repeat(2, 1fr); }
    .footer-col-brand { grid-column: 1 / -1; }
    #products-catalog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* 900px: Tablets portrait */
@media (max-width: 900px) {
    .landing-topbar-inner { flex-direction: column; align-items: flex-start; gap: 4px; padding: 4px 0; }
    .landing-topbar-left, .landing-topbar-right { flex-wrap: wrap; gap: 12px; }
    .landing-header { padding: 12px 16px; }
    .landing-header-inner { flex-wrap: wrap; gap: 12px; }
    .landing-search-wrap { order: 3; width: 100%; max-width: 100%; margin: 0; flex: none; }
    .landing-header-actions { gap: 8px; }
    .landing-hero { padding: 32px 20px 28px; }
    .landing-hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 28px; }
    .landing-hero-left { max-width: 100%; }
    .hero-check-grid { justify-content: center; }
    .hero-cta-group { justify-content: center; flex-wrap: wrap; }
    .landing-hero-right { width: 100%; min-height: auto; }
    .hero-laptop-showcase { max-width: 480px; width: 100%; aspect-ratio: 4 / 3; }
    .hero-circular-badge { right: 8px; top: -12px; width: 90px; height: 90px; }
    .hero-brand-strip { justify-content: center; }
    .landing-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .why-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-footer-main { grid-template-columns: repeat(2, 1fr); }
    .footer-col-brand { grid-column: 1 / -1; }
}

/* 768px: Large phones / small tablets */
@media (max-width: 768px) {
    .landing-topbar { display: none; }
    .landing-header { padding: 10px 14px; }
    .landing-header-inner { gap: 10px; }
    .landing-logo-img { max-height: 38px; }
    .logo-title { font-size: 18px; }
    .logo-subtitle { font-size: 9px; }
    .logo-tagline { display: none; }
    .landing-search-input { font-size: 13px; height: 40px; }
    .header-action-btn > span { display: none; }

    .landing-header-actions .btn-pwa-install { display: none !important; }
    .landing-header-actions .header-cta-btn { display: none !important; }
    .header-action-btn { 
        width: 38px; 
        height: 38px; 
        min-width: 38px; 
        padding: 0; 
        border-radius: 50%;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #1e293b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    .header-action-btn:hover,
    .header-action-btn:active {
        background: #f1f5f9;
        color: var(--primary);
        border-color: var(--primary);
        transform: scale(1.05);
    }
    .header-action-btn i { font-size: 16px; }



    .landing-nav { padding: 0 10px; }
    .landing-nav-link { font-size: 12px; padding: 10px 9px; }
    .landing-hero { padding: 24px 16px 20px; }
    .hero-eyebrow { font-size: 11px; letter-spacing: 1.5px; }
    .hero-headline { font-size: 32px; letter-spacing: -0.8px; }
    .hero-subtext { font-size: 14px; }
    .hero-check-grid { gap: 8px; }
    .hero-check-item { font-size: 13px; }
    .hero-btn-primary, .hero-btn-secondary { font-size: 12px; padding: 10px 18px; }
    .hero-laptop-showcase { max-width: 100%; border-radius: 12px; }
    .hero-circular-badge { width: 80px; height: 80px; right: 6px; top: -10px; }
    .badge-bold { font-size: 9px; }
    .badge-small, .badge-tag, .badge-sub { font-size: 7px; }
    .landing-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .cat-card-thumb { height: 70px; }
    .cat-card-title { font-size: 12px; }
    .cat-card-desc { display: none; }
    .featured-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .deals-list { grid-template-columns: 1fr; gap: 10px; }
    .why-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .landing-footer-main { grid-template-columns: 1fr 1fr; gap: 22px; }
    .footer-col-brand { grid-column: 1 / -1; }
    /* Inner app header: Keep single horizontal row, profile badge at extreme right */
    .main-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px !important;
        margin: 0 !important;
    }
    .main-header > div:first-child {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
    #topbar-auth-section {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        width: auto !important;
    }
    /* Mobile profile: badge only, without names and positions */
    .user-profile-info {
        display: none !important;
    }
    #topbar-user-profile {
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }
    #profile-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
        flex-shrink: 0 !important;
    }
    #page-title { font-size: 17px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-subtitle { font-size: 11px !important; }
    #btn-topbar-signin, #btn-topbar-admin-toggle { height: 34px !important; font-size: 12px !important; padding: 0 10px !important; }
    /* Product catalog: 2-col on medium phones */
    #products-catalog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
    .product-card { height: auto !important; min-height: 360px; }
    .product-img { height: 180px !important; }
    .product-price { font-size: 15px; }
    /* Modal */
    #modal-product-inspect .modal-content { padding: 16px !important; max-height: 95vh; }
    #modal-product-inspect .grid-2 { grid-template-columns: 1fr !important; gap: 16px !important; }
    #modal-product-inspect .inspect-main-img { height: 220px !important; }
    /* Cart */
    #view-client-cart .card { padding: 16px !important; }
    /* Table */
    .table-responsive { border-radius: var(--radius-sm); border: 1px solid var(--border); }
    /* Toasts: full width */
    #toast-container { left: 12px; right: 12px; bottom: 16px; }
    .toast { width: 100%; font-size: 13px; }
}

/* 600px: Small phones */
@media (max-width: 600px) {
    .landing-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card-thumb { height: 64px; }
    .featured-cards-grid { grid-template-columns: 1fr; gap: 12px; }
    #products-catalog-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .product-card { min-height: 400px; }
    .product-img { height: 200px !important; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

/* 480px: Small phones */
@media (max-width: 480px) {
    .landing-header { padding: 8px 12px; }
    .landing-logo-img { max-height: 34px; }
    .landing-header-actions { gap: 6px; }
    .landing-hero { padding: 20px 14px 18px; }
    .hero-headline { font-size: 28px; }
    .hero-eyebrow { font-size: 10px; }
    .hero-subtext { font-size: 13px; }
    .hero-check-grid { gap: 7px; }
    .hero-check-item { font-size: 12px; gap: 5px; }
    .hero-check-item i { font-size: 13px; }
    .hero-cta-group { gap: 10px; flex-direction: column; align-items: stretch; }
    .hero-btn-primary, .hero-btn-secondary { font-size: 12px; padding: 11px 14px; width: 100%; justify-content: center; }
    .hero-laptop-showcase { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
    .hero-circular-badge { width: 72px; height: 72px; right: 4px; top: -8px; }
    .hero-brand-strip { flex-wrap: wrap; gap: 8px; padding: 5px 10px; }
    .brand-item { font-size: 11px; }
    .slide-badge-title { font-size: 11px; }
    .slide-badge-price { font-size: 12px; }
    .landing-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-card-thumb { height: 60px; }
    .cat-card-body { padding: 8px 6px; }
    .cat-card-title { font-size: 11.5px; }
    .deal-card { padding: 12px 14px; }
    .deal-title { font-size: 13px; }
    .why-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .why-card { padding: 16px 12px; }
    .why-icon-circle { width: 40px; height: 40px; font-size: 17px; }
    .why-card-title { font-size: 12.5px; }
    .why-card-desc { font-size: 11px; }
    .landing-section { padding: 22px 14px; }
    .landing-section-title { font-size: 18px; }
    .landing-section-subtitle { font-size: 12px; }
    .landing-section-header { margin-bottom: 16px; }
    .landing-footer { padding: 0; }
    .landing-footer-main { grid-template-columns: 1fr; gap: 22px; padding: 24px 16px; }
    .footer-col-brand { grid-column: auto; }
    .footer-heading { font-size: 13px; margin-bottom: 12px; }
    .footer-links a, .footer-contact-list li, .footer-contact-list a { font-size: 13px; }
    .landing-footer-bottom { padding: 14px 16px; font-size: 11px; }
    #page-title { font-size: 16px !important; }
    #btn-back-to-landing span { display: none; }
    .modal-content { padding: 20px 16px; max-height: 96vh; width: 95%; }
}

/* 380px: Very small phones */
@media (max-width: 380px) {
    .hero-headline { font-size: 24px; }
    .landing-nav-link { font-size: 11px; padding: 9px 7px; }
    .hero-btn-primary, .hero-btn-secondary { font-size: 11.5px; padding: 10px 12px; }
    .landing-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .cat-card-thumb { height: 54px; }
    .why-cards-grid { grid-template-columns: 1fr; }
    .hero-circular-badge { display: none; }

    .landing-header-actions { gap: 4px; }
}

/* Touch / Pointer: larger tap targets */
@media (hover: none) and (pointer: coarse) {
    .landing-nav-link { padding-top: 12px; padding-bottom: 12px; min-height: 44px; }
    .feat-add-cart-btn { min-height: 44px; }
    .btn-fav-card { width: 40px; height: 40px; }
    .landing-cat-card { transform: none !important; }
}
/* ============================================================
   PROFESSIONAL POLISH - INNER APP VIEWS - LAYOUT ONLY
   No color changes - spacing, grid, responsive fixes only
   ============================================================ */

/* App shell overflow guard */
.app-view { width: 100%; box-sizing: border-box; padding: 22px 20px 24px; }
/* Landing page overrides app-view padding */
.landing-view-wrapper { padding: 0 !important; }
body { overflow-x: clip; }
/* overflow-x guard: body only — do NOT apply overflow-x:hidden to .main-content or #app-root as it breaks position:sticky */
.app-view { max-width: 100vw; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Main content padding */
@media (max-width: 992px) { .app-view { padding: 18px 14px 16px; } }
@media (max-width: 480px) { .app-view { padding: 16px 10px 14px; } }

/* Cards mobile padding */
@media (max-width: 600px) { .card { padding: 16px; } }
@media (max-width: 380px) { .card { padding: 12px; } }

/* Main header: Keep single horizontal row on small phones */
@media (max-width: 600px) {
    .main-header {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px !important;
        margin: 0 !important;
    }
    .main-header > div:first-child {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }
    #topbar-auth-section {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
        width: auto !important;
    }
    #page-title { font-size: 15px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #page-subtitle { display: none !important; }
    .user-profile-info { display: none !important; }
}

/* Store filter toolbar & Search bars sticky underneath header */
#view-client-store > div { flex-wrap: wrap; }
#store-filter-card {
    height: auto !important;
    min-height: 0 !important;
}
.store-filter-col-search {
    flex: 1 1 240px;
    width: 100%;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
}
.store-filter-col-actions {
    flex: 1 1 240px;
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    height: auto !important;
    min-height: 0 !important;
}
#client-category-select,
#client-price-filter {
    font-size: 13px !important;
    padding: 8px 22px 8px 10px !important;
    height: 40px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    letter-spacing: -0.2px;
}
/* Edge-to-edge Store Filter Toolbar */
#view-client-store {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
}

#store-filter-card {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border) !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 0 !important;
}

#products-catalog-grid {
    padding: 0 20px 24px 20px !important;
}

@media (max-width: 992px) {
    #store-filter-card {
        padding: 10px 16px !important;
    }
    #products-catalog-grid {
        padding: 0 14px 20px 14px !important;
    }
}

#store-filter-card,
.search-sticky-bar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: var(--header-h, var(--main-header-height, 62px)) !important;
    z-index: 990 !important;
    background-color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    height: auto !important;
    min-height: 0 !important;
}
@media (max-width: 768px) {
    #store-filter-card,
    .search-sticky-bar { 
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--header-h, var(--main-header-height, 62px)) !important;
        z-index: 990 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        padding: 8px 12px !important; 
        gap: 6px !important; 
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid var(--border) !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        flex-direction: column !important;
    }
    #products-catalog-grid {
        padding: 0 12px 20px 12px !important;
    }
    .store-filter-col-search,
    .store-filter-col-actions,
    #store-filter-card > div { 
        flex: 0 0 auto !important; 
        min-width: 100% !important; 
        width: 100% !important; 
        height: auto !important; 
        min-height: 0 !important; 
        justify-content: space-between; 
    }
    #client-category-select,
    #client-price-filter {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        font-size: 13px !important;
        padding: 8px 18px 8px 8px !important;
        height: 38px !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px;
    }
}
@media (max-width: 480px) {
    #store-filter-card,
    .search-sticky-bar { 
        position: -webkit-sticky !important;
        position: sticky !important;
        top: var(--header-h, var(--main-header-height, 62px)) !important;
        z-index: 990 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        flex-direction: column !important; 
        height: auto !important;
        min-height: 0 !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: 1px solid var(--border) !important;
        width: 100% !important;
    }
    #products-catalog-grid {
        padding: 0 10px 16px 10px !important;
    }
    .store-filter-col-search,
    .store-filter-col-actions,
    #store-filter-card > div { 
        flex: 0 0 auto !important; 
        min-width: 100% !important; 
        width: 100% !important; 
        height: auto !important; 
        min-height: 0 !important; 
        justify-content: space-between; 
    }
    #client-category-select,
    #client-price-filter {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        font-size: 12px !important;
        padding: 6px 14px 6px 6px !important;
        height: 36px !important;
        letter-spacing: -0.3px;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    #btn-store-favorites,
    .store-filter-col-actions .btn {
        height: 36px !important;
        padding: 0 10px !important;
        flex-shrink: 0 !important;
    }
}

/* Standalone iPhone PWA Home Screen app display rules */
@media all and (display-mode: standalone) {
    .main-header {
        padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
        margin-top: 0 !important;
    }
    .landing-sticky-header {
        padding-top: env(safe-area-inset-top, 0px) !important;
        margin-top: 0 !important;
    }
}

/* Product cards (120Hz Off-Screen Render Containment) */
.product-card { 
    height: auto; 
    min-height: 380px; 
    content-visibility: auto;
    contain-intrinsic-size: auto 380px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
@media (max-width: 480px) {
    .product-card { min-height: 340px; }
    .product-img { height: 160px !important; }
    .product-price { font-size: 14px; }
}

/* Favorites grid */
#favorites-catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { #favorites-catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { #favorites-catalog-grid { grid-template-columns: 1fr; } }

/* Tables: scrollable + sticky head */
.table-responsive { -webkit-overflow-scrolling: touch; overflow-x: auto; }
.table-responsive thead th { position: sticky; top: 0; z-index: 1; background: var(--bg-light); }
@media (max-width: 768px) {
    #client-orders-tbody td, #admin-orders-tbody td, #staff-list-tbody td,
    #promos-list-tbody td, #admin-inventory-tbody td, #report-orders-tbody td, #recent-orders-tbody td {
        font-size: 12px; padding: 10px 8px;
    }
    th { font-size: 12px; padding: 10px 8px; }
}
@media (max-width: 480px) {
    #client-orders-tbody td, #admin-orders-tbody td { font-size: 11px; padding: 8px 6px; }
    th { font-size: 11px; padding: 8px 6px; }
}

/* Sticky Admin & Client Management Toolbars */
#admin-orders-toolbar,
#admin-hp-toolbar,
#admin-reports-toolbar,
#admin-featured-toolbar,
#client-favorites-toolbar {
    position: sticky;
    top: var(--header-h, var(--main-header-height, 62px));
    z-index: 990;
    background-color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
    #admin-orders-toolbar,
    #admin-hp-toolbar,
    #admin-featured-toolbar,
    #client-favorites-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    #admin-orders-toolbar > div,
    #admin-hp-toolbar > div,
    #admin-featured-toolbar > div:last-child { width: 100%; flex-wrap: wrap; gap: 8px; }
    #admin-order-search,
    #admin-hp-search { width: 100% !important; min-width: 0; }
    #admin-order-status-filter,
    #admin-hp-status-filter { width: 100% !important; }
}

/* Client orders toolbar: stack on mobile */
@media (max-width: 768px) {
    #view-client-orders > .card { flex-direction: column; align-items: stretch; gap: 10px; }
    #view-client-orders > .card > div { min-width: 100% !important; justify-content: space-between; }
    #order-search { width: 100% !important; }
}

/* Find Us: stack on mobile */
#view-client-find-us .grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
    #view-client-find-us .grid-2 { grid-template-columns: 1fr; }
    #view-client-find-us .map-iframe-container { min-height: 280px; }
}
@media (max-width: 480px) { #view-client-find-us .btn { flex: 1; font-size: 13px; padding: 10px 8px; } }

/* Admin dashboard */
.analytics-summary { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 900px) { #view-admin-dashboard .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .analytics-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 14px; }
    .stat-val { font-size: 20px; }
    .stat-desc { font-size: 11px; }
}
@media (max-width: 380px) {
    .stat-card { padding: 10px 8px; }
    .stat-val { font-size: 18px; }
    .analytics-summary { gap: 8px; }
}

/* Admin reports controls */
.report-header-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
@media (max-width: 600px) {
    .report-header-controls > * { width: 100%; }
    .report-header-controls .form-group { margin-bottom: 0; }
    .report-header-controls select, .report-header-controls input[type="date"] { width: 100%; }
    .report-header-controls .btn { width: 100%; justify-content: center; }
    .report-download-dropdown { width: 100%; }
    .report-download-dropdown > .btn { width: 100%; justify-content: center; }
}

/* Admin grid-2 views: stack on mobile */
@media (max-width: 768px) {
    #view-admin-backups .grid-2, #view-admin-promos .grid-2 { grid-template-columns: 1fr; }
    #view-admin-staff .grid-2 { grid-template-columns: 1fr; }
    #view-admin-staff .form-group + .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    #view-admin-staff .form-group + .grid-2 { grid-template-columns: 1fr; }
}

/* HP admin view */
@media (max-width: 600px) {
    #view-admin-hp .card > div:first-child { flex-direction: column; align-items: flex-start; }
    #admin-hp-status-filter { width: 100% !important; }
    #view-admin-hp .table-responsive td, #view-admin-hp .table-responsive th { font-size: 11.5px; padding: 8px 6px; white-space: nowrap; }
}

/* Modals: slide up on very small phones */
@media (max-width: 480px) {
    .modal-overlay { align-items: center; padding: 16px; }
    .modal-content {
        border-radius: 20px;
        max-height: 92vh;
        width: 100%;
        padding: 20px 16px 24px;
    }
}

/* Login card responsive override */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 16px;
        border-radius: 20px;
        max-width: 95%;
    }
}

/* Cart view */
#view-client-cart { display: flex; justify-content: center; align-items: flex-start; }
#view-client-cart > .card { width: 100%; }
@media (max-width: 480px) { #view-client-cart > .card { padding: 14px 12px; } }

/* Image input grid in modals */
@media (max-width: 480px) { .image-input-grid { grid-template-columns: repeat(2, 1fr); } }

/* Dropdown menus */
@media (max-width: 480px) { .dropdown-menu-download { min-width: 100%; right: auto; left: 0; } }

/* Toasts */
@media (max-width: 380px) {
    #toast-container { left: 8px; right: 8px; bottom: 12px; }
    .toast { padding: 12px 14px; font-size: 12px; }
}

/* Micro-interactions (layout/motion only, no color) */
.stat-card { transition: box-shadow 0.2s, transform 0.2s; }
.stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.filter-btn { white-space: nowrap; touch-action: manipulation; }
.btn { transition: all 0.18s ease; }
.form-control { transition: border-color 0.18s, box-shadow 0.18s; }

/* Filter button row: horizontal scroll on mobile */
.filter-buttons-row { display: flex; flex-wrap: wrap; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.filter-buttons-row::-webkit-scrollbar { display: none; }

/* Focus ring (uses existing brand color variable, no new color) */
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* Admin Inventory: Fixed header + Scroll Containment ("Swallow the scrolls") */
.admin-inventory-card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    min-height: 520px;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.admin-inventory-sticky-header {
    flex-shrink: 0;
    background: var(--white);
    padding: 16px 20px 14px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-inventory-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    border: none;
    border-radius: 0;
}

.admin-inventory-scroll-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-inventory-scroll-container thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.admin-inventory-scroll-container tbody tr:first-child td {
    padding-top: 14px;
}

@media (max-width: 768px) {
    .admin-inventory-card {
        height: calc(100vh - 140px);
        max-height: calc(100vh - 140px);
        min-height: 440px;
    }
    .admin-inventory-sticky-header {
        padding: 12px 14px;
    }
}
/* Header Title Constraint */
.header-title-wrap { min-width: 0 !important; flex: 1 1 auto !important; overflow: hidden !important; }
#page-title { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; }
#page-subtitle { white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 100% !important; }
#btn-topbar-admin-toggle { display: none !important; }

/* Notification Bell and Notification Center */
.btn-topbar-notif {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
}
.btn-topbar-notif:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}
.btn-topbar-notif:active {
    transform: scale(0.96);
}
.header-notif-btn {
    position: relative;
}
.notif-badge-pill {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: #D93025;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(217, 48, 37, 0.45);
    border: 2px solid #ffffff;
    animation: notifPulse 2s infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Notification Backdrop */
.notif-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1250;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Notification Center Dropdown Panel */
.kmap-notif-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 100px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 1300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: notifSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes notifSlideDown {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #FAF8F2;
}
.notif-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 15px;
    color: var(--text-dark);
}
.notif-unread-count-pill {
    font-size: 11px;
    font-weight: 700;
    background: rgba(218, 145, 0, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
}
.notif-panel-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.notif-action-text-btn {
    background: transparent;
    border: none;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 600;
    padding: 4px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.notif-action-text-btn:hover {
    color: var(--primary);
}
.notif-panel-close-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
}
.notif-panel-close-btn:hover {
    color: var(--error);
}

.notif-permission-banner {
    padding: 10px 14px;
    background: #FEF9EB;
    border-bottom: 1px solid #FDE68A;
    color: #92400E;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.notif-perm-btn {
    height: 32px !important;
    font-size: 12px !important;
    padding: 0 12px !important;
    font-weight: 700 !important;
    width: 100%;
}

.notif-items-list {
    flex: 1 1 auto;
    overflow-y: auto;
    max-height: 360px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.notif-item-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    text-align: left;
}
.notif-item-card:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateX(2px);
}
.notif-item-card.unread {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.notif-item-card.unread::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
}
.notif-item-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.notif-item-content {
    flex: 1 1 auto;
    min-width: 0;
}
.notif-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    line-height: 1.3;
}
.notif-item-body {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.35;
    margin-bottom: 4px;
}
.notif-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: #888888;
}
.notif-item-target {
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notif-empty-state {
    padding: 36px 16px;
    text-align: center;
    color: var(--text-light);
}
.notif-empty-state i {
    font-size: 32px;
    color: #CCCCCC;
    margin-bottom: 8px;
    display: block;
}

.notif-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}
.notif-clear-btn {
    background: transparent;
    border: none;
    font-size: 11.5px;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: underline;
}

/* High Priority Screen Override Alert Banner */
.kmap-screen-alert-banner {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 520px;
    z-index: 100000;
    animation: screenAlertDrop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes screenAlertDrop {
    from { opacity: 0; transform: translate(-50%, -40px) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.alert-banner-inner {
    background: #111111;
    color: #ffffff;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(218, 145, 0, 0.4);
}
.alert-banner-icon-pulse {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    animation: alertPulse 1.2s infinite;
}
@keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(218, 145, 0, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(218, 145, 0, 0); }
}
.alert-banner-content {
    flex: 1 1 auto;
    min-width: 0;
}
.alert-banner-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 2px;
}
.alert-banner-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}
.alert-banner-body {
    font-size: 12px;
    color: #D1D5DB;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.alert-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.alert-banner-btn {
    height: 34px !important;
    font-size: 12px !important;
    padding: 0 12px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    border-radius: var(--radius-sm) !important;
}
.alert-banner-close {
    background: transparent;
    border: none;
    color: #9CA3AF;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.alert-banner-close:hover {
    color: #ffffff;
}

@media (max-width: 600px) {
    .kmap-notif-panel {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* Remove title from top header on PCs as explicitly requested */
@media (min-width: 769px) {
    .header-title-wrap,
    .main-header .header-title-wrap,
    #page-title,
    #page-subtitle {
        display: none !important;
    }
}



/* ============================================================
   PROMOTIONS: SEARCH & SELECT PRODUCT COMBOBOX
   ============================================================ */
.promo-combobox-wrapper {
    position: relative;
    width: 100%;
}

.promo-search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.promo-search-icon {
    position: absolute;
    left: 12px;
    color: #9CA3AF;
    pointer-events: none;
    font-size: 13px;
    z-index: 2;
}

.promo-search-input {
    padding-left: 36px !important;
    padding-right: 36px !important;
    width: 100%;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    font-size: 13px;
    background: #FFFFFF;
    transition: var(--transition-fast);
}

.promo-search-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(218, 145, 0, 0.16) !important;
    outline: none;
}

.promo-clear-btn {
    position: absolute;
    right: 9px;
    width: 24px;
    height: 24px;
    background: #E5E7EB;
    border: none;
    color: #4B5563;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: var(--transition-fast);
    z-index: 2;
}

.promo-clear-btn:hover {
    background: #FEE2E2;
    color: #DC2626;
}

.promo-product-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    z-index: 1050;
    max-height: 270px;
    overflow-y: auto;
    overflow-x: hidden;
}

.promo-product-results-list {
    display: flex;
    flex-direction: column;
}

.promo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s ease, border-left 0.15s ease;
    user-select: none;
}

.promo-dropdown-item:last-child {
    border-bottom: none;
}

.promo-dropdown-item:hover,
.promo-dropdown-item.active {
    background: #FEF9EE;
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

.promo-item-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.promo-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 15px;
    background: #F1F5F9;
}

.promo-item-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.promo-item-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.promo-item-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.promo-item-price {
    font-weight: 700;
    color: #B45309;
}

.promo-item-cat {
    background: #F3F4F6;
    color: #4B5563;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 10px;
}

.promo-item-id {
    color: #9CA3AF;
    font-family: monospace;
    font-size: 10px;
}

.promo-selected-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #FFFDF7;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(218, 145, 0, 0.08);
    animation: fadeIn 0.2s ease;
}

.promo-selected-img-wrap {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-selected-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-selected-info {
    flex: 1;
    min-width: 0;
}

.promo-selected-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.promo-selected-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.promo-selected-meta .badge-category {
    background: #FEF3C7;
    color: #92400E;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

.promo-selected-meta .promo-selected-price {
    font-weight: 700;
    color: #B45309;
}

.promo-selected-meta .promo-selected-id {
    color: #6B7280;
    font-family: monospace;
    font-size: 10px;
}

.promo-selected-remove-btn {
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.promo-selected-remove-btn:hover {
    background: #F3F4F6;
    border-color: #9CA3AF;
    color: var(--primary);
}

.promo-empty-msg {
    padding: 18px 12px;
    text-align: center;
    color: var(--text-light);
    font-size: 12.5px;
}

/* Deal Card Target Highlight Animation */
@keyframes dealTargetPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.45);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(30, 58, 138, 0.2), 0 12px 28px rgba(30, 58, 138, 0.16);
        transform: scale(1.02);
        border-color: #1e3a8a;
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 138, 0);
        transform: scale(1);
    }
}

.product-card.highlight-deal-target {
    animation: dealTargetPulse 1.4s ease-in-out 2;
    border-color: #1e3a8a !important;
    z-index: 10;
}

/* ==========================================================================
   DEAL OF THE WEEK - PREMIER HERO BANNER (BIG & BOLD)
   ========================================================================== */
.landing-weekly-deal-section {
    max-width: 1360px;
    margin: 0 auto;
    padding: 32px 20px 20px 20px;
    box-sizing: border-box;
    width: 100%;
}

.weekly-deal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg, 12px);
    padding: 0;
    color: var(--text-dark);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Center-aligned Inspo Banner & Countdown Header */
.weekly-deal-header-center {
    width: 100%;
    background: #ffffff;
    padding: 24px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    box-sizing: border-box;
}

/* Inspo Words and User Flame (Flame Snug Beside Text, No Background) */
.weekly-deal-inspo-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0 auto;
    position: relative;
    gap: 8px;
    width: auto;
    max-width: 100%;
}

.weekly-deal-inspo-text {
    font-family: 'Impact', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: clamp(38px, 4.4vw, 54px);
    font-weight: 900;
    letter-spacing: clamp(6px, 1.1vw, 14px);
    background: linear-gradient(90deg, #E50914 0%, #F5222D 25%, #FA541C 60%, #FA8C16 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #E50914;
    text-transform: uppercase;
    line-height: 1.1;
    display: inline-block;
}

.weekly-deal-inspo-flame-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    top: -2px;
    margin-left: 4px;
}

.weekly-deal-user-flame {
    height: clamp(52px, 5.5vw, 70px);
    width: auto;
    max-width: 70px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(229, 9, 20, 0.4));
    animation: weeklyInspoFlamePulse 2.5s ease-in-out infinite alternate;
}

@keyframes weeklyInspoFlamePulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08) rotate(2deg);
    }
}

.weekly-deal-banner-timer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.weekly-deal-timer-caption {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #475569;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weekly-deal-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weekly-cd-segment {
    background: #fffdf8;
    border: 1.5px solid #fed7aa;
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 66px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.08);
}

.weekly-cd-val {
    font-size: 32px;
    font-weight: 900;
    color: #0b1e36;
    line-height: 1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
}

.weekly-cd-tag {
    font-size: 11px;
    font-weight: 800;
    color: #ea580c;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.weekly-cd-divider {
    font-size: 26px;
    font-weight: 900;
    color: #f97316;
    line-height: 1;
}

/* Card Body Content */
.weekly-deal-card-body {
    padding: 32px 36px;
}

.weekly-deal-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

/* Media / Video Spotlight Frame (9:16 Portrait Reel Mode) */
.weekly-deal-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.weekly-deal-player-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    height: auto;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    box-shadow: 0 14px 34px rgba(11, 30, 54, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.weekly-deal-player-frame.is-vertical {
    aspect-ratio: 9 / 16;
    max-width: 320px;
    height: auto;
}

.weekly-deal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: transparent;
    display: block;
    border-radius: 16px;
}

.weekly-deal-no-video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.weekly-deal-no-video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.weekly-deal-upload-hint {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.weekly-deal-video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    z-index: 4;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.weekly-deal-video-spinner i {
    font-size: 32px;
    color: #f59e0b;
}

/* Floating Video Controls */
.weekly-video-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.weekly-video-ctrl-btn {
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.weekly-video-ctrl-btn:hover {
    background: #da9100;
    border-color: #da9100;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Right Column Details */
.weekly-deal-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.weekly-deal-brand,
#weekly-deal-brand {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.weekly-deal-title {
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 900;
    color: var(--text-dark, #0b1e36);
    line-height: 1.15;
    margin: 0 0 16px 0;
    padding-top: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.5px;
}

.weekly-deal-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.weekly-spec-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    max-width: 100%;
}

.weekly-spec-pill i {
    color: #da9100;
    flex-shrink: 0;
}

.weekly-deal-price-card {
    background: linear-gradient(135deg, #fffcf6 0%, #fff7ed 100%);
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    box-shadow: 0 4px 18px rgba(234, 88, 12, 0.07);
}

.weekly-price-caption {
    font-size: 11px;
    font-weight: 800;
    color: #8a5a00;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.weekly-price-numbers {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.weekly-price-current {
    font-size: 36px;
    font-weight: 900;
    color: #8a5a00;
    line-height: 1;
}

.weekly-price-orig {
    font-size: 17px;
    color: #8c7355;
    text-decoration: line-through;
}

.weekly-discount-tag {
    background: #fee2e2;
    color: #dc2626;
    border: 1.5px solid #fca5a5;
    font-size: 15px;
    font-weight: 900;
    padding: 10px 18px;
    border-radius: 8px;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
    letter-spacing: 0.4px;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.14);
}

.weekly-deal-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
}

.btn-weekly-claim {
    flex: 1;
    min-width: 190px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 14px rgba(218, 145, 0, 0.3);
    box-sizing: border-box;
}

.btn-weekly-claim:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(218, 145, 0, 0.4);
}

.btn-weekly-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
    box-sizing: border-box;
}

.btn-weekly-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.weekly-deal-guarantee {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    width: 100%;
}

.weekly-deal-guarantee i {
    color: var(--success);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .landing-weekly-deal-section {
        padding: 20px 14px 14px 14px;
    }
    .weekly-deal-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .weekly-deal-card {
        padding: 0;
    }
    .weekly-deal-header-center {
        padding: 18px 14px 14px 14px;
        gap: 12px;
    }
    .weekly-deal-inspo-banner {
        width: auto;
        padding: 0;
        gap: 6px;
    }
    .weekly-deal-inspo-text {
        font-size: 26px;
        letter-spacing: 2.5px;
    }
    .weekly-deal-user-flame {
        height: 38px;
        width: auto;
    }
    .weekly-deal-card-body {
        padding: 20px 16px;
    }
    .weekly-deal-title {
        font-size: 22px;
    }
    .weekly-price-current {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .landing-weekly-deal-section {
        padding: 14px 10px 10px 10px;
    }
    .weekly-deal-header-center {
        padding: 16px 12px 12px 12px;
        gap: 10px;
    }
    .weekly-deal-inspo-text {
        font-size: clamp(20px, 6vw, 24px);
        letter-spacing: clamp(1px, 0.8vw, 2px);
    }
    .weekly-deal-user-flame {
        height: 32px;
    }
    .weekly-deal-card-body {
        padding: 16px 12px;
    }
    .weekly-deal-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    .weekly-deal-specs {
        gap: 6px;
        margin-bottom: 16px;
    }
    .weekly-spec-pill {
        font-size: 12px;
        padding: 5px 9px;
    }
    .weekly-deal-price-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 14px;
        gap: 10px;
        margin-bottom: 16px;
    }
    .weekly-discount-tag {
        align-self: flex-start;
        white-space: normal;
        font-size: 12px;
        padding: 5px 10px;
    }
    .weekly-deal-cta-group {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
    }
    .btn-weekly-claim,
    .btn-weekly-whatsapp {
        width: 100%;
        min-width: 0;
        padding: 12px 16px;
        font-size: 14px;
    }
    .weekly-deal-player-frame.is-vertical {
        max-width: 270px;
        height: auto;
        aspect-ratio: 9 / 16;
    }
    .weekly-deal-guarantee {
        font-size: 11.5px;
        line-height: 1.45;
    }
}

@media (max-width: 480px) {
    .weekly-deal-banner-timer-wrap {
        gap: 8px;
    }
    .weekly-deal-timer-caption {
        font-size: 11.5px;
    }
    .weekly-cd-segment {
        min-width: 44px;
        padding: 4px 8px;
    }
    .weekly-cd-val {
        font-size: 17px;
    }
    .weekly-cd-tag {
        font-size: 8.5px;
    }
    .weekly-cd-divider {
        font-size: 16px;
    }
}

/* Vertical / Reel Video Grid Alignment */
.weekly-deal-layout.has-vertical-video {
    grid-template-columns: 320px 1fr;
    gap: 36px;
    align-items: start;
}

@media (max-width: 900px) {
    .weekly-deal-layout.has-vertical-video {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

/* Search & Select Autocomplete Dropdown in Admin Deal Manager & Featured Slots */
.weekly-deal-dropdown-results {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.weekly-deal-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.weekly-deal-result-item:hover,
.weekly-deal-result-item.is-selected {
    background: #f8fafc;
}

.weekly-deal-result-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #f1f5f9;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.weekly-deal-result-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.weekly-deal-result-spec {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.weekly-deal-result-price {
    font-size: 13px;
    font-weight: 800;
    color: #d97706;
    margin-left: auto;
    flex-shrink: 0;
}

.weekly-deal-result-empty {
    padding: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Admin Deal of the Week Responsive Grid & Expiring Alert */
.admin-weekly-deal-expiring-alert {
    background: #fff7ed;
    border: 1.5px solid #f97316;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.12);
    animation: alertBorderPulse 2s infinite ease-in-out;
}

@keyframes alertBorderPulse {
    0%, 100% { border-color: #f97316; box-shadow: 0 2px 10px rgba(249, 115, 22, 0.12); }
    50% { border-color: #ea580c; box-shadow: 0 4px 14px rgba(234, 88, 12, 0.22); }
}

.admin-weekly-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .admin-weekly-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .admin-weekly-price-row {
        grid-template-columns: 1fr !important;
    }
    .admin-weekly-lifecycle-btns {
        flex-direction: column !important;
    }
    .admin-weekly-lifecycle-btns button {
        width: 100% !important;
        min-width: 0 !important;
    }
    #admin-deal-of-week-manager {
        padding: 14px 12px !important;
    }
}
