/* ═══════════════════════════════════════════════════════════
   Studiehjalpen – Shop Design System
   A professional, modern e-commerce CSS framework
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Color Palette ─────────────────────────── */
    --shop-primary: #2563eb;
    --shop-primary-dark: #1d4ed8;
    --shop-primary-light: #60a5fa;
    --shop-secondary: #0f172a;
    --shop-accent: #f59e0b;
    --shop-success: #059669;
    --shop-danger: #dc2626;
    --shop-warning: #f59e0b;

    --shop-bg: #f8fafc;
    --shop-surface: #ffffff;
    --shop-surface-hover: #f1f5f9;
    --shop-border: #e2e8f0;
    --shop-border-focus: #2563eb;

    --shop-text: #0f172a;
    --shop-text-secondary: #475569;
    --shop-text-muted: #94a3b8;
    --shop-text-inverse: #ffffff;

    --shop-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shop-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shop-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shop-shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

    --shop-radius-sm: 8px;
    --shop-radius: 12px;
    --shop-radius-lg: 16px;
    --shop-radius-xl: 24px;

    --shop-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --shop-max-width: 1400px;

    /* ── Typography ────────────────────────────── */
    --shop-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --shop-font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Base ─────────────────────────────────────────────── */

.shop-page {
    background: var(--shop-bg);
    font-family: var(--shop-font);
    color: var(--shop-text);
    min-height: 100vh;
}

.shop-container {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ── Shop Header / Hero ────────────────────────────────── */

.shop-hero {
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-primary-dark) 50%, #1e3a8a 100%);
    color: var(--shop-text-inverse);
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.shop-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.5) 25%,
        rgba(255,255,255,0.9) 50%,
        rgba(255,255,255,0.5) 75%,
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.shop-hero-inner {
    max-width: var(--shop-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.shop-hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.shop-hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    opacity: 0.85;
    margin: 0.25rem 0 0;
    font-weight: 400;
}

.shop-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.shop-cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.7rem 1.2rem;
    border-radius: var(--shop-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: var(--shop-transition);
}

.shop-cart-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-1px);
}

.shop-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--shop-danger);
    color: #fff;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--shop-primary);
}

/* ── Layout: Sidebar + Grid ────────────────────────────── */

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    align-items: start;
}

@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Sidebar ───────────────────────────────────────────── */

.shop-sidebar {
    position: sticky;
    top: 1rem;
}

.shop-sidebar-card {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow);
    overflow: hidden;
}

.shop-sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-text-muted);
    padding: 1.25rem 1.25rem 0.5rem;
    margin: 0;
}

.shop-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: var(--shop-transition);
    border-left: 3px solid transparent;
    color: var(--shop-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.shop-category-item:hover {
    background: var(--shop-surface-hover);
    color: var(--shop-text);
}

.shop-category-item.active {
    background: linear-gradient(90deg, rgba(37,99,235,0.08), transparent);
    border-left-color: var(--shop-primary);
    color: var(--shop-primary);
    font-weight: 600;
}

.shop-category-icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.shop-category-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--shop-text-muted);
    background: var(--shop-bg);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* ── Search & Filters Bar ──────────────────────────────── */

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.shop-search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.shop-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.shop-search input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    font-size: 0.95rem;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
    color: var(--shop-text);
    transition: var(--shop-transition);
    font-family: var(--shop-font);
    box-sizing: border-box;
}

.shop-search input:focus {
    outline: none;
    border-color: var(--shop-border-focus);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-sort label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--shop-text-muted);
    white-space: nowrap;
}

.shop-sort select {
    padding: 0.7rem 2rem 0.7rem 0.8rem;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius);
    background: var(--shop-surface);
    font-size: 0.9rem;
    color: var(--shop-text);
    font-family: var(--shop-font);
    cursor: pointer;
    transition: var(--shop-transition);
}

.shop-sort select:focus {
    outline: none;
    border-color: var(--shop-border-focus);
}

.shop-results-count {
    font-size: 0.85rem;
    color: var(--shop-text-muted);
    white-space: nowrap;
}

/* ── Product Grid ──────────────────────────────────────── */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

/* ── Product Card ──────────────────────────────────────── */

.product-card {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow-sm);
    overflow: hidden;
    transition: transform var(--shop-transition), box-shadow var(--shop-transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--shop-border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-lg);
    border-color: transparent;
}

.product-card-media {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a2e;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.product-badge-item {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-featured {
    background: var(--shop-accent);
    color: #000;
}

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

.badge-new {
    background: var(--shop-success);
    color: #fff;
}

.badge-shipping {
    background: var(--shop-primary);
    color: #fff;
}

.product-card-video-icon {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    backdrop-filter: blur(4px);
}

.product-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--shop-primary);
    margin-bottom: 0.4rem;
}

.product-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop-text);
    margin: 0 0 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--shop-transition);
}

.product-card-name a:hover {
    color: var(--shop-primary);
}

.product-card-desc {
    font-size: 0.875rem;
    color: var(--shop-text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.product-price {
    display: flex;
    flex-direction: column;
}

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

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

.product-price-vat {
    font-size: 0.7rem;
    color: var(--shop-text-muted);
    font-weight: 500;
}

/* ── Buttons ───────────────────────────────────────────── */

.btn-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--shop-radius);
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--shop-font);
    border: none;
    cursor: pointer;
    transition: all var(--shop-transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-shop:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--shop-surface);
    color: var(--shop-text);
    border: 2px solid var(--shop-border);
}

.btn-secondary:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--shop-success), #047857);
    color: #fff;
}

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

.btn-danger:hover {
    background: #b91c1c;
}

.btn-ghost {
    background: transparent;
    color: var(--shop-text-secondary);
    padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
    background: var(--shop-surface-hover);
    color: var(--shop-text);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

/* ── Product Detail Layout ─────────────────────────────── */

.product-detail {
    padding: 2.5rem 0 4rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.product-gallery {
    position: sticky;
    top: 1rem;
}

.product-gallery-main {
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    background: #1a1a2e;
    box-shadow: var(--shop-shadow);
    aspect-ratio: 1 / 1;
    max-height: 500px;
    margin-bottom: 1rem;
    border: 1px solid var(--shop-border);
}

.product-gallery-main img,
.product-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.product-gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--shop-transition);
    flex-shrink: 0;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--shop-primary);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 0.5rem 0;
}

.product-info-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--shop-text-muted);
    margin-bottom: 1rem;
}

.product-info-breadcrumb a {
    color: var(--shop-primary);
    text-decoration: none;
}

.product-info-breadcrumb a:hover {
    text-decoration: underline;
}

.product-info-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--shop-text);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.product-info-short {
    font-size: 1.05rem;
    color: var(--shop-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-info-price-block {
    background: var(--shop-bg);
    border-radius: var(--shop-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--shop-border);
}

.product-info-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--shop-text);
}

.product-info-compare {
    font-size: 1.1rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
    margin-left: 0.75rem;
}

.product-info-vat-note {
    font-size: 0.8rem;
    color: var(--shop-text-muted);
    margin-top: 0.25rem;
}

.product-info-shipping {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--shop-text-secondary);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--shop-border);
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.product-quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
}

.product-quantity button {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--shop-surface);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--shop-transition);
    color: var(--shop-text);
}

.product-quantity button:hover {
    background: var(--shop-surface-hover);
}

.product-quantity input {
    width: 48px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--shop-border);
    border-right: 1px solid var(--shop-border);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--shop-font);
    color: var(--shop-text);
}

.product-quantity input:focus {
    outline: none;
}

.product-specs {
    margin-top: 2rem;
}

.product-specs-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--shop-text);
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs-table tr {
    border-bottom: 1px solid var(--shop-border);
}

.product-specs-table td {
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.product-specs-table td:first-child {
    font-weight: 600;
    color: var(--shop-text-secondary);
    width: 40%;
}

.product-description-full {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--shop-border);
}

.product-description-full h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-description-full .desc-content {
    font-size: 0.95rem;
    color: var(--shop-text-secondary);
    line-height: 1.8;
}

/* ── Cart Page ─────────────────────────────────────────── */

.shop-cart-page {
    padding: 2rem 0 4rem;
}

.shop-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .shop-cart-layout {
        grid-template-columns: 1fr;
    }
}

.shop-cart-items {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow);
    overflow: hidden;
}

.shop-cart-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--shop-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-cart-header h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.shop-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--shop-border);
    transition: var(--shop-transition);
}

.shop-cart-item:last-child { border-bottom: none; }

.shop-cart-item:hover { background: var(--shop-surface-hover); }

.shop-cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--shop-radius-sm);
    object-fit: cover;
    background: var(--shop-bg);
}

.shop-cart-item-info h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.shop-cart-item-info .meta {
    font-size: 0.8rem;
    color: var(--shop-text-muted);
}

.shop-cart-item-price {
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

.shop-cart-item-remove {
    padding: 0.4rem;
    background: none;
    border: none;
    color: var(--shop-text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: var(--shop-radius-sm);
    transition: var(--shop-transition);
}

.shop-cart-item-remove:hover {
    color: var(--shop-danger);
    background: rgba(220,38,38,0.08);
}

@media (max-width: 640px) {
    .shop-cart-item {
        grid-template-columns: 60px 1fr;
        gap: 0.75rem;
    }
    .shop-cart-item-price,
    .shop-cart-item-remove {
        grid-column: 2;
    }
}

/* ── Cart Summary Sidebar ──────────────────────────────── */

.shop-cart-summary {
    background: var(--shop-surface);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow);
    padding: 1.5rem;
    position: sticky;
    top: 1rem;
}

.shop-cart-summary h3 {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--shop-text-secondary);
}

.summary-line.discount { color: var(--shop-success); font-weight: 600; }

.summary-divider {
    height: 1px;
    background: var(--shop-border);
    margin: 0.75rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--shop-text);
}

.summary-vat-note {
    font-size: 0.78rem;
    color: var(--shop-text-muted);
    text-align: right;
    margin-bottom: 1rem;
}

/* ── Coupon Input ──────────────────────────────────────── */

.coupon-box {
    margin-bottom: 1.25rem;
}

.coupon-box label {
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
    color: var(--shop-text-secondary);
}

.coupon-row {
    display: flex;
    gap: 0.5rem;
}

.coupon-row input {
    flex: 1;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-size: 0.9rem;
    font-family: var(--shop-font);
}

.coupon-row input:focus {
    outline: none;
    border-color: var(--shop-border-focus);
}

.coupon-msg {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    font-weight: 600;
}

.coupon-msg.success { color: var(--shop-success); }
.coupon-msg.error { color: var(--shop-danger); }

/* ── Empty State ───────────────────────────────────────── */

.shop-empty {
    text-align: center;
    padding: clamp(3rem, 8vw, 5rem) 2rem;
    background: var(--shop-surface);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow);
}

.shop-empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.shop-empty h2 {
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
    color: var(--shop-text);
}

.shop-empty p {
    color: var(--shop-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Loading / Spinner ─────────────────────────────────── */

.shop-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1rem;
    grid-column: 1 / -1;
}

.shop-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--shop-border);
    border-top-color: var(--shop-primary);
    border-radius: 50%;
    animation: shop-spin 0.8s linear infinite;
}

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

.shop-loading-text {
    font-size: 0.95rem;
    color: var(--shop-text-muted);
}

/* ── Tags ──────────────────────────────────────────────── */

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.product-tag {
    font-size: 0.72rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--shop-bg);
    color: var(--shop-text-muted);
    font-weight: 600;
    border: 1px solid var(--shop-border);
}

/* ── Pagination ────────────────────────────────────────── */

.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding: 1rem 0;
}

.shop-pagination button {
    min-width: 40px;
    height: 40px;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    background: var(--shop-surface);
    color: var(--shop-text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--shop-transition);
}

.shop-pagination button:hover:not(:disabled) {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.shop-pagination button.active {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
}

.shop-pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ── Mobile category toggle ────────────────────────────── */

.shop-mobile-cat-toggle {
    display: none;
    background: var(--shop-surface);
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--shop-text);
    cursor: pointer;
    margin-bottom: 1rem;
    justify-content: space-between;
    align-items: center;
    font-family: var(--shop-font);
    transition: var(--shop-transition);
}

.shop-mobile-cat-toggle:hover {
    border-color: var(--shop-primary);
}

@media (max-width: 900px) {
    .shop-mobile-cat-toggle { display: flex; }
    .shop-sidebar { display: none; }
    .shop-sidebar.mobile-open { display: block; position: relative; }
}

/* ── Toast / Notifications ─────────────────────────────── */

.shop-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.shop-toast-item {
    background: var(--shop-secondary);
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--shop-radius);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shop-shadow-lg);
    animation: toast-in 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-toast-item.success { background: var(--shop-success); }
.shop-toast-item.error { background: var(--shop-danger); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Breadcrumb ────────────────────────────────────────── */

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--shop-text-muted);
}

.shop-breadcrumb a {
    color: var(--shop-text-secondary);
    text-decoration: none;
    transition: var(--shop-transition);
}

.shop-breadcrumb a:hover { color: var(--shop-primary); }

.shop-breadcrumb .sep {
    opacity: 0.5;
    margin: 0 0.1rem;
}

/* ── Stock Badge ───────────────────────────────────────── */

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.stock-in { background: #dcfce7; color: #15803d; }
.stock-low { background: #fef3c7; color: #a16207; }
.stock-out { background: #fee2e2; color: #b91c1c; }
