/*
 * style.css
 * Main stylesheet for Software Seller Hub.
 * Covers: neumorphic admin UI, public storefront, responsive design.
 */

/* ═══════════════════════════════════════════
   CSS VARIABLES
   ═══════════════════════════════════════════ */
:root {
    /* Neumorphic palette */
    --neu-bg:          #dde3ee;
    --neu-shadow-dark: #b8bec7;
    --neu-shadow-light:#ffffff;

    /* Text colours — checked for 4.5:1+ contrast on --neu-bg */
    --text-primary:    #2c3e50;
    --text-secondary:  #4a5568;
    --text-muted:      #6b7a8d;

    /* Brand / accent */
    --accent:          #5b6af0;
    --accent-hover:    #4757e8;
    --accent-light:    #eef0fd;
    --success:         #27ae60;
    --warning:         #f39c12;
    --danger:          #e74c3c;
    --info:            #2980b9;

    /* Sidebar */
    --sidebar-bg:      #2c3e50;
    --sidebar-text:    #ecf0f1;
    --sidebar-active:  #5b6af0;
    --sidebar-hover:   #34495e;

    /* Store palette */
    --store-hero-bg:   #1a1f36;
    --store-hero-text: #ffffff;
    --store-card-bg:   #ffffff;
    --store-border:    #e9ecef;

    --radius:          12px;
    --radius-sm:       8px;
    --transition:      0.2s ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Inter', sans-serif; color: var(--text-primary); }

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

/* ═══════════════════════════════════════════
   ADMIN — BODY & LAYOUT
   ═══════════════════════════════════════════ */
.admin-body {
    background: var(--neu-bg);
    min-height: 100vh;
}

/* Top navigation bar */
.admin-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: var(--sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.nav-brand i { color: var(--accent); font-size: 22px; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-user { color: var(--sidebar-text); font-size: 14px; }

.btn-nav-logout {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    transition: var(--transition);
}
.btn-nav-logout:hover { background: var(--accent); border-color: var(--accent); }

/* Sidebar + content layout */
.admin-layout {
    display: flex;
    padding-top: 60px; /* navbar height */
    min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
    width: 220px;
    min-height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    padding: 20px 0;
    flex-shrink: 0;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--sidebar-text);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav li a:hover {
    background: var(--sidebar-hover);
    color: #fff;
    border-left-color: var(--accent);
}
.sidebar-nav li a.active {
    background: rgba(91,106,240,0.2);
    color: #fff;
    border-left-color: var(--accent);
}
.sidebar-nav li a i { width: 18px; text-align: center; }
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 10px 20px;
    list-style: none;
}

/* Main content */
.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 30px;
}

.admin-content { max-width: 1200px; margin: 0 auto; }

/* Page title */
.page-title-bar { border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 12px; }
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* ═══════════════════════════════════════════
   NEUMORPHIC COMPONENTS
   ═══════════════════════════════════════════ */

/* Raised card */
.neu-card {
    background: var(--neu-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 6px 6px 14px var(--neu-shadow-dark),
               -6px -6px 14px var(--neu-shadow-light);
    margin-bottom: 0;
}

.card-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Neumorphic input — inset */
.neu-input {
    width: 100%;
    background: var(--neu-bg);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    box-shadow: inset 3px 3px 7px var(--neu-shadow-dark),
                inset -3px -3px 7px var(--neu-shadow-light);
    transition: box-shadow var(--transition);
    outline: none;
}
.neu-input:focus {
    box-shadow: inset 4px 4px 9px var(--neu-shadow-dark),
                inset -4px -4px 9px var(--neu-shadow-light),
                0 0 0 3px rgba(91,106,240,0.25);
}
.neu-input::placeholder { color: var(--text-muted); }
textarea.neu-input { resize: vertical; min-height: 80px; }

/* Neumorphic select */
.neu-select {
    width: 100%;
    background: var(--neu-bg);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    box-shadow: inset 3px 3px 7px var(--neu-shadow-dark),
                inset -3px -3px 7px var(--neu-shadow-light);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a8d' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
/* CRITICAL: Dropdown options must have solid backgrounds for accessibility */
.neu-select option,
select option {
    background: #2c3e50;
    color: #ffffff;
}
.neu-select:focus {
    box-shadow: inset 4px 4px 9px var(--neu-shadow-dark),
                inset -4px -4px 9px var(--neu-shadow-light),
                0 0 0 3px rgba(91,106,240,0.25);
}

/* File input */
.neu-file-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--neu-bg);
    box-shadow: inset 3px 3px 7px var(--neu-shadow-dark),
                inset -3px -3px 7px var(--neu-shadow-light);
    border: none;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Checkbox label */
.neu-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}
.neu-checkbox-label input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Form hint */
.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Bootstrap form-label override */
.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn-primary-neu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--accent);
    color: #ffffff !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 4px 4px 10px rgba(91,106,240,0.4),
               -2px -2px 6px rgba(255,255,255,0.6);
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary-neu:hover {
    background: var(--accent-hover);
    color: #fff !important;
    box-shadow: 5px 5px 14px rgba(91,106,240,0.5),
               -2px -2px 8px rgba(255,255,255,0.7);
    transform: translateY(-1px);
}
.btn-primary-neu:active {
    transform: translateY(0);
    box-shadow: inset 2px 2px 6px rgba(0,0,0,0.15);
}

.btn-secondary-neu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--neu-bg);
    color: var(--text-primary) !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 4px 4px 10px var(--neu-shadow-dark),
               -4px -4px 10px var(--neu-shadow-light);
    transition: var(--transition);
    text-decoration: none;
}
.btn-secondary-neu:hover {
    color: var(--accent) !important;
    box-shadow: 5px 5px 12px var(--neu-shadow-dark),
               -5px -5px 12px var(--neu-shadow-light);
}

/* Small action buttons in tables */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
    box-shadow: 2px 2px 5px var(--neu-shadow-dark),
               -2px -2px 5px var(--neu-shadow-light);
    background: var(--neu-bg);
}
.btn-edit       { color: var(--accent); }
.btn-delete     { color: var(--danger); }
.btn-toggle-off { color: var(--warning); }
.btn-toggle-on  { color: var(--success); }
.btn-action:hover { transform: translateY(-1px); }

/* ═══════════════════════════════════════════
   STAT CARDS (Dashboard)
   ═══════════════════════════════════════════ */
.stat-card {
    background: var(--neu-bg);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 6px 6px 14px var(--neu-shadow-dark),
               -6px -6px 14px var(--neu-shadow-light);
}
.stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.15),
                inset -2px -2px 5px rgba(255,255,255,0.5);
}
.stat-icon-primary { background: rgba(91,106,240,0.15); color: var(--accent); }
.stat-icon-success { background: rgba(39,174,96,0.15);  color: var(--success); }
.stat-icon-warning { background: rgba(243,156,18,0.15); color: var(--warning); }
.stat-icon-info    { background: rgba(41,128,185,0.15); color: var(--info); }
.stat-number { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label  { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════
   ADMIN TABLE
   ═══════════════════════════════════════════ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.admin-table th {
    background: var(--sidebar-bg);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.admin-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    vertical-align: middle;
    color: var(--text-primary);
}
.admin-table tr:hover td { background: rgba(91,106,240,0.04); }
.admin-table tr:last-child td { border-bottom: none; }

/* Product thumbnail in table */
.product-thumb {
    width: 44px; height: 44px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}
.product-thumb-placeholder {
    width: 44px; height: 44px;
    background: var(--neu-bg);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    box-shadow: inset 2px 2px 5px var(--neu-shadow-dark),
                inset -2px -2px 5px var(--neu-shadow-light);
}

/* Status badges */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-active   { background: rgba(39,174,96,0.15);  color: #1e8449; }
.badge-inactive { background: rgba(231,76,60,0.15);  color: #c0392b; }
.badge-featured { background: rgba(243,156,18,0.15); color: #d68910; font-size:12px; font-weight:600; }

/* ═══════════════════════════════════════════
   CATEGORY ROW
   ═══════════════════════════════════════════ */
.category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--neu-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    box-shadow: 3px 3px 8px var(--neu-shadow-dark),
               -3px -3px 8px var(--neu-shadow-light);
}
.category-info { display: flex; align-items: center; }

/* ═══════════════════════════════════════════
   STORE URL BOX & MISC ADMIN
   ═══════════════════════════════════════════ */
.store-url-box {
    background: var(--neu-bg);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    box-shadow: inset 3px 3px 7px var(--neu-shadow-dark),
                inset -3px -3px 7px var(--neu-shadow-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    word-break: break-all;
}
.btn-copy {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.existing-file-box {
    background: rgba(39,174,96,0.1);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1e8449;
    display: flex;
    align-items: center;
}

/* ═══════════════════════════════════════════
   PUBLIC STOREFRONT — HERO
   ═══════════════════════════════════════════ */
.store-body {
    background: #f0f2f8;
    font-family: 'Inter', sans-serif;
    color: #2c3e50;
}

.store-hero {
    background: linear-gradient(135deg, #1a1f36 0%, #2c3e50 100%);
    padding: 60px 0 50px;
    text-align: center;
}
.store-logo {
    max-height: 80px;
    max-width: 300px;
    margin-bottom: 20px;
    object-fit: contain;
}
.store-name-text {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.store-headline {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}
.store-subheadline {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* ═══════════════════════════════════════════
   STORE — FILTER BAR
   ═══════════════════════════════════════════ */
.store-filter-bar {
    background: #2c3e50;
    padding: 20px 0;
}
.store-search-input {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px 14px 10px 38px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.store-search-input::placeholder { color: rgba(255,255,255,0.5); }
.store-search-input:focus { border-color: var(--accent); background: rgba(255,255,255,0.15); }

.search-wrap { position: relative; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.6); }

.store-select {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}
/* IMPORTANT: Dropdown options need solid backgrounds */
.store-select option {
    background: #2c3e50;
    color: #ffffff;
}

.btn-store-search {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.btn-store-search:hover { background: var(--accent-hover); }

/* ═══════════════════════════════════════════
   STORE — PRODUCT GRID
   ═══════════════════════════════════════════ */
.store-products { padding: 50px 0; }

.filter-info {
    font-size: 15px;
    color: var(--text-secondary);
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
}
.clear-filter {
    color: var(--danger);
    margin-left: 8px;
    font-size: 13px;
}

/* Product card */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
.product-card-featured {
    box-shadow: 0 2px 12px rgba(91,106,240,0.2), 0 0 0 2px var(--accent);
}
.featured-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--warning);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
    z-index: 10;
}

.product-image-link { display: block; }
.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.product-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fa8da;
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-card-title a { color: inherit; }
.product-card-title a:hover { color: var(--accent); }

.product-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.5;
}

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

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.btn-buy {
    display: inline-block;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-buy:hover { background: var(--accent-hover); color: #fff !important; }

.btn-buy-secondary {
    display: inline-block;
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-buy-secondary:hover { background: var(--accent); color: #fff !important; }

/* ═══════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════ */
.store-mini-nav {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}
.store-back-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}
.store-back-link:hover { color: var(--accent); }

.product-detail-section { padding: 50px 0; }

.product-detail-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-detail-img {
    width: 100%;
    object-fit: cover;
    display: block;
    max-height: 420px;
}
.product-detail-img-placeholder {
    width: 100%; height: 300px;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fa8da;
}

.product-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}
.product-detail-short {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}
.product-detail-price {
    font-size: 42px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 24px;
}
.btn-buy-large {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #fff !important;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(91,106,240,0.4);
}
.btn-buy-large:hover {
    background: var(--accent-hover);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(91,106,240,0.5);
}

.product-detail-meta { display: flex; flex-direction: column; gap: 8px; }
.meta-item { font-size: 14px; color: var(--text-muted); display: flex; align-items: center; }
.meta-item i { color: var(--accent); width: 20px; }

.btn-store-link { font-size: 14px; color: var(--accent); font-weight: 600; }

.product-description-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.product-description-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.section-heading { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }

/* ═══════════════════════════════════════════
   STORE FOOTER
   ═══════════════════════════════════════════ */
.store-footer {
    background: var(--store-hero-bg);
    padding: 30px 0;
    text-align: center;
}
.store-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}
.store-footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.store-footer-links a:hover { color: #fff; }
.store-footer-text { color: rgba(255,255,255,0.5); font-size: 13px; margin: 4px 0; }

/* ═══════════════════════════════════════════
   STATIC PAGES (Terms, Privacy, Contact)
   ═══════════════════════════════════════════ */
.static-page-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    max-width: 800px;
    margin: 0 auto;
}
.static-page-card h1 { font-size: 28px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.static-page-card h4 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 20px 0 8px; }
.static-page-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0; }

/* ═══════════════════════════════════════════
   ALERT OVERRIDES (Bootstrap)
   ═══════════════════════════════════════════ */
.alert { border: none; border-radius: var(--radius-sm); font-size: 14px; }
.alert-success { background: rgba(39,174,96,0.12);  color: #1e8449; }
.alert-danger  { background: rgba(231,76,60,0.12);  color: #c0392b; }
.alert-warning { background: rgba(243,156,18,0.12); color: #d68910; }
.alert-info    { background: rgba(41,128,185,0.12); color: #1a5276; }

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-220px);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 16px; }
    .admin-navbar { padding: 0 16px; }
    .nav-brand span { display: none; }

    .stat-card { padding: 14px; }
    .stat-number { font-size: 22px; }
    .store-hero { padding: 40px 0 30px; }
    .store-headline { font-size: 22px; }
    .product-detail-title { font-size: 24px; }
    .product-detail-price { font-size: 30px; }
    .btn-buy-large { font-size: 16px; padding: 12px 24px; }
}

/* Mobile sidebar toggle button */
.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px 0 0;
}
.store-social-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 14px;
}
.store-social-links a {
    color: rgba(255,255,255,0.75);
    font-size: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.store-social-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}
/* ── Reviews ── */
.review-stars { color: #f39c12; letter-spacing: 1px; }
.review-summary { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.product-reviews-box {
    background: #fff; border-radius: 16px; padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.review-item { padding: 16px 0; border-bottom: 1px solid #eee; }
.review-item:last-of-type { border-bottom: none; }
.review-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-item-body { margin: 8px 0 0; color: var(--text-secondary); line-height: 1.6; }
.review-form-wrap { border-top: 2px solid #eee; padding-top: 24px; }
.star-picker { font-size: 26px; color: #f39c12; cursor: pointer; display: inline-flex; gap: 4px; }
.star-picker i { transition: transform 0.1s ease; }
.star-picker i:hover { transform: scale(1.15); }
.admin-review-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 14px; background: var(--neu-bg); border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: 3px 3px 8px var(--neu-shadow-dark), -3px -3px 8px var(--neu-shadow-light);
}
.admin-review-main { flex: 1; }
/* ── Social proof popup ── */
.sales-popup {
    position: fixed;
    bottom: 20px; left: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    z-index: 2000;
    animation: salesPopIn 0.4s ease;
}
@keyframes salesPopIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sales-popup-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--accent); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.sales-popup-body { flex: 1; }
.sales-popup-title { font-size: 12px; color: var(--text-muted); }
.sales-popup-product { font-size: 14px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.sales-popup-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.sales-popup-close {
    background: none; border: none; font-size: 20px; line-height: 1;
    color: var(--text-muted); cursor: pointer; align-self: flex-start;
}
@media (max-width: 480px) {
    .sales-popup { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (max-width: 768px) { .sidebar-toggle-btn { display: block; } }