/* =========================================================
   OUTLET WEBSHOP
   Main stylesheet
   Mobile-first responsive design
   PHP 8.5 - JSON storage
========================================================= */

/* =========================================================
   1. ROOT & RESET
========================================================= */

:root {
    color-scheme: dark;

    --bg-main: #050509;
    --bg-panel: #101018;
    --bg-panel-light: #171722;
    --bg-input: #09090f;

    --neon: #00eaff;
    --neon-hover: #00ffff;
    --neon-soft: rgba(0, 234, 255, 0.18);
    --neon-glow: rgba(0, 234, 255, 0.35);

    --purple: #a855ff;
    --success: #36e59a;
    --warning: #ffc857;
    --danger: #ff496c;

    --text: #f0f0f5;
    --text-muted: #b7bdc9;
    --text-dark: #08080c;

    --border: rgba(0, 234, 255, 0.45);
    --border-subtle: rgba(255, 255, 255, 0.10);

    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 18px;

    --shadow-panel: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-neon: 0 0 15px rgba(0, 234, 255, 0.12);

    --container-width: 1400px;
    --header-height: 64px;

    --transition: 0.2s ease;
}

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 280px;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;

    background: var(--bg-main);
    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

body,
button,
input,
select,
textarea {
    font-family: Arial, Helvetica, sans-serif;
}

main {
    flex: 1 0 auto;
    width: 100%;
}

img,
picture,
video,
svg {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

a {
    color: var(--neon);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--neon-hover);
}

button,
input,
select,
textarea {
    font-size: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

ul,
ol {
    padding-left: 22px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--text);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

p {
    margin-top: 0;
}

hr {
    height: 1px;
    margin: 24px 0;
    border: 0;
    background: var(--border-subtle);
}

::selection {
    background: var(--neon);
    color: var(--text-dark);
}

:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: 3px;
}

/* =========================================================
   2. GENERAL LAYOUT
========================================================= */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 12px;
}

.page-content {
    width: 100%;
    padding-block: 22px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    margin-bottom: 8px;
    color: var(--neon);
    font-size: clamp(1.5rem, 5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
}

.page-description {
    max-width: 760px;
    color: var(--text-muted);
}

.section {
    margin-bottom: 30px;
}

.section-title {
    margin-bottom: 18px;
    font-size: clamp(1.2rem, 4vw, 1.65rem);
}

.text-muted {
    color: var(--text-muted);
}

.text-neon {
    color: var(--neon);
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-danger {
    color: var(--danger);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.small {
    font-size: 0.85rem;
}

.w-100 {
    width: 100%;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* =========================================================
   3. HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    background: rgba(10, 10, 16, 0.97);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 234, 255, 0.06);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--header-height);
    padding-block: 10px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--neon);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    overflow-wrap: anywhere;
}

.site-logo:hover {
    color: var(--neon-hover);
}

.site-logo img {
    width: auto;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

.site-logo-text {
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

/* =========================================================
   4. NAVIGATION
========================================================= */

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;

    background: var(--bg-panel);
    color: var(--neon);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);

    font-size: 1.3rem;
}

.nav-toggle:hover {
    background: var(--neon-soft);
}

.site-nav {
    display: none;
    flex-basis: 100%;
    width: 100%;
}

.site-nav.is-open,
.site-nav.active {
    display: block;
}

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

.nav-list li {
    min-width: 0;
}

.nav-list a,
.nav-list button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;

    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-weight: 600;
    text-align: left;
}

.nav-list a:hover,
.nav-list button:hover,
.nav-list a.active {
    background: var(--neon-soft);
    color: var(--neon);
    border-color: var(--border);
}

.nav-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 6px;
    padding-inline: 6px;

    background: var(--neon);
    color: var(--text-dark);
    border-radius: 50px;

    font-size: 0.75rem;
    font-weight: 800;
}

/* =========================================================
   5. BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 44px;
    padding: 10px 16px;

    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--neon);
    color: var(--text-dark);
    border-color: var(--neon);
}

.btn-primary:hover {
    background: var(--neon-hover);
    color: var(--text-dark);
    box-shadow: 0 0 18px var(--neon-glow);
}

.btn-secondary {
    background: var(--bg-panel-light);
    color: var(--text);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: #222232;
    color: var(--neon);
    border-color: var(--border);
}

.btn-outline {
    background: transparent;
    color: var(--neon);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--neon-soft);
    color: var(--neon-hover);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #e93658;
    color: #fff;
}

.btn-success {
    background: var(--success);
    color: #06130d;
    border-color: var(--success);
}

.btn-sm {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 0.85rem;
}

.btn-lg {
    min-height: 50px;
    padding: 13px 22px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================================
   6. PANELS & CARDS
========================================================= */

.panel,
.card {
    min-width: 0;
    padding: 16px;

    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);

    box-shadow: var(--shadow-panel);
}

.panel-neon {
    border-color: var(--border);
    box-shadow: var(--shadow-neon);
}

.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.card-body {
    min-width: 0;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

/* =========================================================
   7. HERO / HOMEPAGE
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 30px 16px;
    margin-bottom: 28px;

    background:
        radial-gradient(
            circle at top right,
            rgba(0, 234, 255, 0.12),
            transparent 45%
        ),
        var(--bg-panel);

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-neon);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.hero h1 {
    margin-bottom: 14px;
    color: var(--neon);
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    line-height: 1.1;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 22px;
}

/* =========================================================
   8. PRODUCT GRID
========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.product-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-neon);
}

.product-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1 / 1;

    background: #0b0b12;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;

    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;

    background: var(--neon);
    color: var(--text-dark);
    border-radius: var(--radius-sm);

    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
}

.product-badge.sale {
    background: var(--danger);
    color: #fff;
}

.product-badge.new {
    background: var(--purple);
    color: #fff;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 14px;
}

.product-category {
    margin: 0;
    color: var(--neon);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.product-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.product-title a {
    color: var(--text);
}

.product-title a:hover {
    color: var(--neon);
}

.product-description {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-price-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.product-price {
    color: var(--neon);
    font-size: 1.3rem;
    font-weight: 800;
}

.product-old-price {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: line-through;
}

.product-stock {
    color: var(--success);
    font-size: 0.8rem;
}

.product-stock.out-of-stock {
    color: var(--danger);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.product-actions .btn {
    width: 100%;
}

/* =========================================================
   9. PRODUCT DETAIL
========================================================= */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-width: 0;
    padding: 16px;

    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.product-detail-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.product-detail-info {
    min-width: 0;
}

.product-detail-info h1 {
    margin-bottom: 12px;
    font-size: clamp(1.5rem, 5vw, 2.3rem);
}

.product-detail-price {
    margin-block: 18px;
    color: var(--neon);
    font-size: 1.8rem;
    font-weight: 800;
}

/* =========================================================
   10. FORMS & INPUTS
========================================================= */

.form {
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.form-label,
label {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 11px 12px;

    background: var(--bg-input);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);

    outline: none;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--neon);
    box-shadow: 0 0 0 3px var(--neon-soft);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--neon);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group label {
    font-weight: 400;
}

.form-help {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
}

.form-success {
    color: var(--success);
    font-size: 0.85rem;
}

/* =========================================================
   11. ALERTS & STATUS BADGES
========================================================= */

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);

    overflow-wrap: anywhere;
}

.alert-success {
    background: rgba(54, 229, 154, 0.09);
    color: var(--success);
    border-color: rgba(54, 229, 154, 0.4);
}

.alert-error,
.alert-danger {
    background: rgba(255, 73, 108, 0.09);
    color: var(--danger);
    border-color: rgba(255, 73, 108, 0.4);
}

.alert-warning {
    background: rgba(255, 200, 87, 0.09);
    color: var(--warning);
    border-color: rgba(255, 200, 87, 0.4);
}

.alert-info {
    background: var(--neon-soft);
    color: var(--neon);
    border-color: var(--border);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;

    background: var(--bg-panel-light);
    color: var(--text);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;

    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.badge-success {
    color: var(--success);
    border-color: rgba(54, 229, 154, 0.45);
}

.badge-danger {
    color: var(--danger);
    border-color: rgba(255, 73, 108, 0.45);
}

.badge-warning {
    color: var(--warning);
    border-color: rgba(255, 200, 87, 0.45);
}

.badge-neon {
    color: var(--neon);
    border-color: var(--border);
}

/* =========================================================
   12. SHOPPING CART
========================================================= */

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;

    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    object-fit: contain;

    background: #0b0b12;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    min-width: 0;
}

.cart-item-title {
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cart-item-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quantity-control input {
    width: 65px;
    min-height: 40px;
    text-align: center;
}

.quantity-control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;

    background: var(--bg-panel-light);
    color: var(--neon);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.cart-summary {
    margin-top: 22px;
    padding: 18px;

    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.summary-row span:last-child {
    text-align: right;
}

.summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 1.2rem;
    font-weight: 800;
}

.cart-empty {
    padding: 35px 16px;
    text-align: center;
    background: var(--bg-panel);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* =========================================================
   13. CHECKOUT
========================================================= */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

.checkout-section {
    margin-bottom: 22px;
    padding: 16px;

    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.checkout-section h2 {
    margin-bottom: 18px;
    font-size: 1.15rem;
}

.checkout-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================================
   14. CATEGORY FILTERS & SEARCH
========================================================= */

.shop-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.shop-search {
    display: flex;
    width: 100%;
    gap: 8px;
}

.shop-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.category-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;

    background: var(--bg-panel);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;

    font-size: 0.85rem;
    font-weight: 600;
}

.category-link:hover,
.category-link.active {
    background: var(--neon-soft);
    color: var(--neon);
    border-color: var(--border);
}

/* =========================================================
   15. ADMINISTRATION
========================================================= */

.admin-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.admin-sidebar {
    min-width: 0;
    padding: 14px;

    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-sidebar h2 {
    margin-bottom: 14px;
    color: var(--neon);
    font-size: 1.05rem;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;

    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
}

.admin-menu a:hover,
.admin-menu a.active {
    background: var(--neon-soft);
    color: var(--neon);
    border-color: var(--border);
}

.admin-content {
    min-width: 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.admin-stat-card {
    min-width: 0;
    padding: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 234, 255, 0.08),
            transparent 70%
        ),
        var(--bg-panel);

    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neon);
}

.admin-stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-stat-value {
    color: var(--neon);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.admin-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

/* =========================================================
   16. TABLES
========================================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;

    background: var(--bg-panel);
    color: var(--text);
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    vertical-align: middle;
}

.table th {
    background: var(--bg-panel-light);
    color: var(--neon);
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

.table tbody tr:hover {
    background: rgba(0, 234, 255, 0.035);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* =========================================================
   17. PAGINATION
========================================================= */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;

    background: var(--bg-panel);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.pagination a:hover,
.pagination .active {
    background: var(--neon);
    color: var(--text-dark);
    border-color: var(--neon);
}

/* =========================================================
   18. LOGIN & ACCOUNT
========================================================= */

.auth-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding-block: 28px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 22px;

    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-neon);
}

.auth-title {
    margin-bottom: 8px;
    color: var(--neon);
    font-size: 1.65rem;
    text-align: center;
}

.auth-description {
    margin-bottom: 24px;
    color: var(--text-muted);
    text-align: center;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    text-align: center;
}

/* =========================================================
   19. FOOTER
========================================================= */

.site-footer {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    padding: 24px 0 16px;

    background: #09090e;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-brand {
    color: var(--neon);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--neon);
}

.footer-copy {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* =========================================================
   20. EMPTY STATES & LOADING
========================================================= */

.empty-state {
    padding: 30px 16px;
    color: var(--text-muted);
    text-align: center;

    background: var(--bg-panel);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
}

.empty-state h2 {
    color: var(--neon);
}

.loading {
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;

    border: 3px solid var(--border-subtle);
    border-top-color: var(--neon);
    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}

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

/* =========================================================
   21. MODAL
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px;
    background: rgba(0, 0, 0, 0.8);
}

.modal {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;

    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 30px var(--neon-soft);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.modal-title {
    margin: 0;
    color: var(--neon);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;

    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

/* =========================================================
   22. RESPONSIVE: SMALL PHONES
   Base layout: 280px and wider
========================================================= */

@media (min-width: 380px) {
    .container {
        padding-inline: 14px;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-info {
        padding: 12px;
    }

    .product-price {
        font-size: 1.15rem;
    }

    .hero {
        padding: 28px 18px;
    }
}

/* =========================================================
   23. RESPONSIVE: TABLETS
========================================================= */

@media (min-width: 600px) {
    :root {
        --header-height: 72px;
    }

    .container {
        padding-inline: 20px;
    }

    .page-content {
        padding-block: 30px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .product-info {
        padding: 14px;
    }

    .product-actions {
        flex-direction: row;
    }

    .product-actions .btn {
        flex: 1;
        width: auto;
    }

    .hero {
        padding: 38px 28px;
    }

    .hero-actions {
        flex-direction: row;
        align-items: center;
    }

    .shop-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .shop-search {
        max-width: 360px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
        align-items: start;
    }

    .checkout-actions {
        flex-direction: row;
    }

    .cart-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .cart-item-image {
        width: 88px;
        height: 88px;
    }

    .auth-card {
        padding: 30px;
    }

    .footer-inner {
        gap: 12px;
    }
}

/* =========================================================
   24. RESPONSIVE: SMALL LAPTOPS
========================================================= */

@media (min-width: 900px) {
    .container {
        padding-inline: 24px;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .product-detail {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 30px;
    }

    .product-detail-image {
        position: sticky;
        top: 20px;
    }

    .admin-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: start;
    }

    .admin-sidebar {
        position: sticky;
        top: 20px;
    }

    .admin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cart-summary {
        max-width: 480px;
        margin-left: auto;
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* =========================================================
   25. RESPONSIVE: DESKTOP
========================================================= */

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }

    .hero {
        padding: 52px 42px;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .panel,
    .card {
        padding: 20px;
    }

    .admin-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* =========================================================
   26. LARGE SCREENS
========================================================= */

@media (min-width: 1500px) {
    .container {
        padding-inline: 28px;
    }

    .product-grid {
        gap: 22px;
    }
}

/* =========================================================
   27. REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   28. PRINT
========================================================= */

@media print {
    body {
        display: block;
        min-width: 0;
        background: #fff;
        color: #000;
    }

    .site-header,
    .site-footer,
    .site-nav,
    .nav-toggle,
    .btn,
    .admin-sidebar,
    .shop-toolbar,
    .pagination {
        display: none !important;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .panel,
    .card,
    .product-card {
        background: #fff;
        color: #000;
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
