/* ============================================================
   AutoMax – Hlavný stylesheet
   Téma: Dark industrial minimalism s červeným akcentom
   ============================================================ */

:root {
    --bg:          #0e0e0e;
    --bg2:         #161616;
    --bg3:         #1e1e1e;
    --surface:     #242424;
    --border:      #2e2e2e;
    --accent:      #e63030;
    --accent-h:    #ff4444;
    --text:        #f0f0f0;
    --text-muted:  #888;
    --text-dim:    #555;
    --success:     #22c55e;
    --warning:     #f59e0b;
    --info:        #3b82f6;
    --radius:      6px;
    --radius-lg:   12px;
    --shadow:      0 4px 24px rgba(0,0,0,.5);
    --transition:  .2s ease;
    --header-height: 106px;
}


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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Bebas Neue', sans-serif; letter-spacing: .03em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.site-main  { flex: 1; padding-top: 0; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.site-header {
    background: var(--bg2);
    border-bottom: none;
    box-shadow: 0 4px 0 var(--bg3);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 2rem 2.5rem;
    display: flex; align-items: center; justify-content: center; gap: 2.5rem;
}

.site-logo {
    display: flex; flex-direction: column; line-height: 1;
    flex-shrink: 0;
}
.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem; letter-spacing: .05em;
    color: var(--text);
}
.logo-accent { color: var(--accent); }
.logo-sub { font-size: .6rem; color: var(--text-muted); letter-spacing: .2em; text-transform: uppercase; }

.univ-logos {
    display: flex; gap: .75rem; align-items: center;
    margin-left: .5rem;
}
.univ-logo { height: 32px; width: auto; filter: brightness(.8); }

.header-search {
    flex: 1; display: flex;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 500px;
    transition: border-color var(--transition);
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
    flex: 1; padding: .6rem 1rem;
    background: transparent; border: none; outline: none;
    color: var(--text); font-family: inherit; font-size: .9rem;
}
.header-search input::placeholder { color: var(--text-dim); }
.header-search button {
    padding: .6rem .9rem; background: var(--accent); border: none;
    color: #fff; cursor: pointer; display: flex; align-items: center;
    transition: background var(--transition);
}
.header-search button:hover { background: var(--accent-h); }

.header-nav {
    display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
}
.nav-link {
    display: flex; align-items: center; gap: .35rem;
    padding: .45rem .7rem; border-radius: var(--radius);
    font-size: .85rem; font-weight: 400;
    color: var(--text-muted); transition: color var(--transition);
}
.nav-link:hover { color: var(--text); }
.nav-btn-outline {
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.nav-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn-fill {
    background: var(--accent); color: #fff !important;
    border: 1px solid var(--accent); padding: .45rem 1rem;
}
.nav-btn-fill:hover { background: var(--accent-h); }

.nav-cart { position: relative; }
.cart-badge {
    position: absolute; top: 0; right: 0;
    background: var(--accent); color: #fff;
    font-size: .6rem; font-weight: 700;
    min-width: 17px; height: 17px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    transform: translate(30%, -30%);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: .4rem;
}
.mobile-menu-btn span {
    display: block; width: 22px; height: 2px;
    background: var(--text-muted); transition: var(--transition);
}
.mobile-nav {
    display: none; flex-direction: column; padding: 1rem 1.5rem;
    background: var(--bg2); border-top: 1px solid var(--border);
    gap: .5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: .5rem 0; border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.mobile-search { display: flex; gap: .5rem; margin-bottom: .5rem; }
.mobile-search input {
    flex: 1; padding: .5rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); outline: none; font-family: inherit;
}
.mobile-search button {
    padding: .5rem 1rem; background: var(--accent);
    border: none; border-radius: var(--radius); color: #fff; cursor: pointer;
}

/* ── Category bar ── */
.cat-bar {
    background: var(--bg3);
    border-top: 3px solid var(--bg3);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 98;
    margin-top: 0;
}
.cat-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
}
.cat-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .4rem .3rem;
    font-size: .72rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color var(--transition), border-color var(--transition);
    flex: 0 1 auto;
}
.cat-link:hover,
.cat-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
/* ── Flash messages ── */
.flash {
    max-width: 1280px; margin: 1rem auto;
    padding: .85rem 1.25rem; border-radius: var(--radius);
    border-left: 4px solid;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
}
.flash-success { background: rgba(34,197,94,.1); border-color: var(--success); color: #86efac; }
.flash-error   { background: rgba(230,48,48,.1);  border-color: var(--accent);  color: #fca5a5; }
.flash-info    { background: rgba(59,130,246,.1); border-color: var(--info);    color: #93c5fd; }
.flash-close { background: none; border: none; color: inherit; cursor: pointer; font-size: 1rem; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, #0e0e0e 0%, #1a0a0a 50%, #0e0e0e 100%);
    padding: 5rem 1.5rem 4rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(230,48,48,.08), transparent);
    pointer-events: none;
}
.hero-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-tagline {
    font-size: .8rem; letter-spacing: .3em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .75rem;
}
.hero h1 { color: var(--text); margin-bottom: 1rem; }
.hero h1 span { color: var(--accent); }
.hero p {
    color: var(--text-muted); font-size: 1.05rem;
    max-width: 420px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .8rem 1.8rem; border-radius: var(--radius);
    font-family: inherit; font-size: .9rem; font-weight: 600;
    cursor: pointer; border: none; transition: all var(--transition);
    letter-spacing: .03em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(230,48,48,.35); }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

.hero-stats {
    display: flex; gap: 2rem;
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--accent);
}
.stat-label { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }

.hero-visual {
    display: flex; justify-content: center; align-items: center;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--border); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; width: 100%;
    max-width: 420px;
}
.hero-grid-item {
    background: var(--surface); padding: 1.5rem;
    display: flex; flex-direction: column; gap: .5rem;
    transition: background var(--transition);
}
.hero-grid-item:hover { background: var(--bg3); }
.hero-grid-item .icon {
    font-size: 1.8rem; line-height: 1;
}
.hero-grid-item span { font-size: .75rem; color: var(--text-muted); }
.hero-grid-item strong { font-size: .95rem; }

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.section { padding: 4rem 1.5rem; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 2rem;
}
.section-header h2 { }
.section-header a { font-size: .85rem; color: var(--accent); }
.section-header a:hover { text-decoration: underline; }

/* ── Product grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.product-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(230,48,48,.12);
}
.product-img {
    aspect-ratio: 4/3; background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.product-cat {
    font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent);
}
.product-name {
    font-size: .95rem; font-weight: 600; line-height: 1.3;
    color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-brand { font-size: .8rem; color: var(--text-muted); }
.product-footer {
    padding: .75rem 1rem; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.product-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; color: var(--text); }
.product-price small { font-family: 'DM Sans', sans-serif; font-size: .7rem; color: var(--text-muted); }
.btn-cart {
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-muted); border-radius: var(--radius);
    padding: .4rem .7rem; cursor: pointer;
    transition: all var(--transition); font-size: .8rem;
    display: flex; align-items: center; gap: .3rem;
}
.btn-cart:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Badge dostupnosť */
.badge {
    display: inline-block; padding: .2rem .6rem;
    font-size: .7rem; border-radius: 20px;
    font-weight: 600; letter-spacing: .05em;
}
.badge-green  { background: rgba(34,197,94,.15);  color: #86efac; }
.badge-yellow { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-red    { background: rgba(230,48,48,.15);  color: #fca5a5; }

/* ══════════════════════════════════════
   PRODUKTY stránka – filtrovanie
══════════════════════════════════════ */
.products-layout {
    max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem;
    display: grid; grid-template-columns: 240px 1fr; gap: 2rem;
}
.sidebar {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
    align-self: start; position: sticky; top: 80px;
}
.sidebar h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.filter-group { margin-bottom: 1.5rem; }
.filter-group label { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: .4rem; }
.filter-group select, .filter-group input {
    width: 100%; padding: .55rem .75rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: inherit; font-size: .85rem;
    appearance: none; outline: none;
    transition: border-color var(--transition);
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--accent); }
.filter-group select option { background: var(--bg2); }
.btn-filter {
    width: 100%; padding: .65rem;
    background: var(--accent); border: none;
    border-radius: var(--radius); color: #fff;
    font-family: inherit; font-size: .9rem; font-weight: 600;
    cursor: pointer; transition: background var(--transition);
}
.btn-filter:hover { background: var(--accent-h); }
.btn-reset {
    width: 100%; padding: .55rem;
    background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-muted);
    font-family: inherit; font-size: .85rem;
    cursor: pointer; margin-top: .5rem;
    transition: border-color var(--transition), color var(--transition);
}
.btn-reset:hover { border-color: var(--text-muted); color: var(--text); }

.products-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.25rem;
}
.products-count { font-size: .85rem; color: var(--text-muted); }
.products-sort {
    padding: .45rem .75rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: inherit; font-size: .85rem;
    appearance: none; outline: none;
}

/* ══════════════════════════════════════
   DETAIL PRODUKTU
══════════════════════════════════════ */
.product-detail {
    max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.product-detail-img {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 6rem;
}
.product-detail-info {}
.product-detail-info .product-cat { font-size: .8rem; margin-bottom: .5rem; }
.product-detail-info h1 { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: .5rem; }
.product-detail-price {
    font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem;
    color: var(--accent); margin: 1rem 0;
}
.product-detail-price .with-dph { font-size: 1rem; color: var(--text-muted); font-family: 'DM Sans', sans-serif; }
.qty-row { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.qty-input {
    width: 80px; padding: .6rem .75rem; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: inherit; font-size: 1rem;
}
.product-meta { margin-top: 2rem; }
.meta-row {
    display: flex; justify-content: space-between;
    padding: .65rem 0; border-bottom: 1px solid var(--border);
    font-size: .9rem;
}
.meta-row:last-child { border: none; }
.meta-label { color: var(--text-muted); }

/* Kompatibilita + predajne */
.tabs { margin-top: 3rem; }
.tab-buttons { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
    padding: .65rem 1.25rem; background: none; border: none;
    color: var(--text-muted); font-family: inherit; font-size: .9rem;
    cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color var(--transition);
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ══════════════════════════════════════
   TABUĽKA
══════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem 1rem; text-align: left; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { border-bottom: 1px solid var(--border); }
tr:hover td { background: var(--surface); }

/* ══════════════════════════════════════
   KOŠÍK
══════════════════════════════════════ */
.cart-layout {
    max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem;
    display: grid; grid-template-columns: 1fr 340px; gap: 2rem;
}
.cart-items { }
.cart-item {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
    display: grid; grid-template-columns: 80px 1fr auto auto;
    gap: 1rem; align-items: center; margin-bottom: 1rem;
}
.cart-item-img {
    width: 80px; height: 80px; background: var(--surface);
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; font-size: 2rem;
    border: 1px solid var(--border);
}
.cart-item-name { font-weight: 600; }
.cart-item-brand { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; }
.qty-btn {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.qty-btn:hover { background: var(--accent); border-color: var(--accent); }
.cart-item-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem; white-space: nowrap; }
.btn-remove {
    background: none; border: none; color: var(--text-dim);
    cursor: pointer; font-size: 1.1rem; transition: color var(--transition);
    padding: .3rem;
}
.btn-remove:hover { color: var(--accent); }

.cart-summary {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.5rem;
    align-self: start; position: sticky; top: 80px;
}
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.summary-row {
    display: flex; justify-content: space-between;
    padding: .5rem 0; font-size: .9rem; color: var(--text-muted);
}
.summary-row.total {
    border-top: 1px solid var(--border); margin-top: .75rem;
    padding-top: 1rem; font-size: 1.1rem; color: var(--text); font-weight: 700;
}
.summary-row.total .val { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--accent); }

/* ══════════════════════════════════════
   FORMULÁRE – prihlásenie / registrácia
══════════════════════════════════════ */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1.5rem;
}
.auth-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2.5rem;
    width: 100%; max-width: 420px;
}
.auth-card h2 { margin-bottom: .4rem; }
.auth-card .subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .8rem; color: var(--text-muted); margin-bottom: .45rem; letter-spacing: .05em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: .7rem 1rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: inherit; font-size: .9rem; outline: none;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-footer { margin-top: 1.5rem; text-align: center; font-size: .85rem; color: var(--text-muted); }
.auth-footer a { color: var(--accent); }
.btn-block { width: 100%; justify-content: center; padding: .85rem; font-size: 1rem; }

/* ══════════════════════════════════════
   PROFIL / OBJEDNÁVKY
══════════════════════════════════════ */
.profile-layout {
    max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem;
    display: grid; grid-template-columns: 240px 1fr; gap: 2rem;
}
.profile-nav {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1rem;
    align-self: start; position: sticky; top: 80px;
}
.profile-nav a {
    display: flex; align-items: center; gap: .6rem;
    padding: .65rem .9rem; border-radius: var(--radius);
    font-size: .9rem; color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
    margin-bottom: .25rem;
}
.profile-nav a:hover, .profile-nav a.active {
    background: var(--surface); color: var(--text);
}
.profile-nav a.active { border-left: 3px solid var(--accent); }

.panel {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem; margin-bottom: 1.5rem;
}
.panel h3 { font-size: 1.1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }

.order-row {
    display: grid; grid-template-columns: auto 1fr auto auto;
    gap: 1rem; align-items: center; padding: .85rem;
    background: var(--surface); border-radius: var(--radius);
    margin-bottom: .75rem;
}
.order-num { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--accent); }
.order-date { font-size: .8rem; color: var(--text-muted); }
.order-total { font-weight: 600; white-space: nowrap; }
.status-badge {
    display: inline-block; padding: .25rem .65rem;
    font-size: .72rem; border-radius: 20px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
}
.status-nova          { background: rgba(59,130,246,.15); color: #93c5fd; }
.status-spracovava_sa { background: rgba(245,158,11,.15); color: #fcd34d; }
.status-odoslana      { background: rgba(139,92,246,.15); color: #c4b5fd; }
.status-dorucena      { background: rgba(34,197,94,.15);  color: #86efac; }
.status-zrusena       { background: rgba(156,163,175,.15);color: #9ca3af; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
    background: var(--bg2); border-top: 1px solid var(--border);
    margin-top: auto;
}
.footer-inner {
    max-width: 1280px; margin: 0 auto; padding: 3rem 1.5rem;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand .logo-text { font-size: 1.6rem; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); margin-top: .75rem; max-width: 260px; }
.footer-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: .4rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-logos { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 1rem 1.5rem;
    text-align: center; font-size: .8rem; color: var(--text-dim);
}

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.pagination {
    display: flex; gap: .4rem; justify-content: center;
    margin-top: 2rem; flex-wrap: wrap;
}
.page-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-muted); font-size: .85rem;
    transition: all var(--transition); cursor: pointer; text-decoration: none;
}
.page-btn:hover, .page-btn.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
    max-width: 1280px; margin: 0 auto; padding: 1rem 1.5rem .25rem;
    display: flex; gap: .5rem; align-items: center;
    font-size: .8rem; color: var(--text-dim);
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }

/* ══════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════ */
.empty-state {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state p { margin: .5rem 0 1.5rem; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
        flex-basis: 100%;
    }
    .cat-bar {
        top: calc(var(--header-height) + 52px);
    }
    .cat-link-special {
        margin-left: 0;
    }
}
@media (max-width: 1100px) {
    .cat-bar { position: static; }
    .cat-bar-inner {
        justify-content: flex-start;
        gap: .15rem .8rem;
        flex-wrap: wrap;
        padding: .4rem 1.5rem;
    }
    .cat-link {
        min-height: 36px;
        padding: .25rem 0;
    }
}

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .products-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .profile-layout { grid-template-columns: 1fr; }
    .profile-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .product-detail { grid-template-columns: 1fr; }
    .header-search { display: none; }
    .univ-logos { display: none; }
    .mobile-menu-btn { display: flex; }
    .header-nav { display: none; }
    .cat-bar { position: static; }
    .cat-bar-inner { padding: .5rem 1rem; }
    .cat-link { font-size: .72rem; min-height: 34px; padding: .45rem .8rem; }
}
@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 60px 1fr; }
    .cart-item-qty, .cart-item-price { grid-column: 2; }
    .form-row { grid-template-columns: 1fr; }
    .order-row { grid-template-columns: 1fr 1fr; }
    .hero-stats { gap: 1rem; }
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-1 { animation-delay: .1s; }
.fade-up-2 { animation-delay: .2s; }
.fade-up-3 { animation-delay: .3s; }

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--surface) 25%, var(--bg3) 50%, var(--surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.cat-link-special {
    color: var(--accent) !important;
    font-weight: 700;
}
.cat-link-special:hover,
.cat-link-special.active {
    color: var(--accent-h) !important;
}
