/* ---------------------------------------------------
   GLOBAL PREMIUM + GLOW DARK MODE
--------------------------------------------------- */

:root {
    --bg: #f4f4f7;
    --bg-card: #ffffff;
    --bg-panel: #f7f7f7;
    --text: #222;
    --text-muted: #555;
    --border: #dcdcdc;

    /* Glow Colors */
    --glow: rgba(255, 200, 0, 0.35);
    --glow-strong: rgba(255, 200, 0, 0.55);
}

:root[data-theme="dark"] {
    --bg: #0f0f12;
    --bg-card: #1a1a1f;
    --bg-panel: #1c1c22;
    --text: #e6e6e6;
    --text-muted: #aaa;
    --border: #333;

    --glow: rgba(255, 200, 0, 0.25);
    --glow-strong: rgba(255, 200, 0, 0.45);
}

/* GLOBAL */
body {
    font-family: "Inter", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ---------------------------------------------------
   LAYOUT
--------------------------------------------------- */

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* LEFT PANEL */
.left-panel {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: 0.3s ease;
}

/* SEARCH */
.search-box input {
    width: 90%;
    padding: 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}

/* ---------------------------------------------------
   CATEGORY LIST
--------------------------------------------------- */

.category-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.category-list a {
    display: block;
    padding: 10px 8px;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    transition: 0.25s ease;
}

.category-list a:hover {
    background: rgba(255,255,255,0.05);
    border-left-color: #ffd400;
    box-shadow: 0 0 12px var(--glow);
}

/* ---------------------------------------------------
   PRODUCT GRID
--------------------------------------------------- */

.products {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
    grid-auto-rows: 390px;
}

/* ---------------------------------------------------
   PRODUCT CARD
--------------------------------------------------- */

.product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: 380px;
    transition: 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px var(--glow-strong);
}

/* PRODUCT IMAGE */
.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fafafa;
}

/* PRODUCT TITLE */
.product h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 10px 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PRICE */
.product p strong {
    font-size: 18px;
    color: #b30000;
    font-weight: 700;
}

/* PRODUCT BUTTON */
.product a {
    margin-top: auto;
    padding: 10px 14px;
    background: #333;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: 0.25s ease;
}

.product a:hover {
    background: #555;
    box-shadow: 0 0 12px var(--glow);
}

/* ---------------------------------------------------
   PREMIUM DETAILSEITE – Modellbau Universe
--------------------------------------------------- */

/* Detailseite rechts neben Kategorien */
.product-detail {
    grid-column: 2;              /* rechte Spalte */
    justify-self: start;         /* links innerhalb der rechten Spalte */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    float: none !important;      /* alte float-Regel überschreiben */
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 35px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

/* Header */
.detail-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text);
}

/* Layout */
.detail-content {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* Produktbild */
.detail-image img {
    width: 420px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fafafa;
    box-shadow: 0 0 12px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.detail-image img:hover {
    box-shadow: 0 0 22px var(--glow-strong);
}

/* Info-Block */
.detail-info {
    flex: 1;
    min-width: 280px;
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.detail-info p {
    margin: 10px 0;
}

/* Preis */
.detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #b30000;
    margin: 20px 0;
}

/* Buttons */
.back-btn {
    display: inline-block;
    padding: 10px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: 0.25s ease;
}

.back-btn:hover {
    background: var(--bg-card);
    box-shadow: 0 0 10px var(--glow);
}

.buy-btn {
    display: inline-block;
    padding: 12px 20px;
    background: #333;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: 0.25s ease;
    margin-top: 20px;
}

.buy-btn:hover {
    background: #555;
    box-shadow: 0 0 14px var(--glow-strong);
}

/* ---------------------------------------------------
   DARK MODE – Footer Glow
--------------------------------------------------- */

:root[data-theme="dark"] .footer-premium {
    background: var(--bg-card);
    color: var(--text);
    border-top: 1px solid var(--border);
    box-shadow: 0 0 18px rgba(0,0,0,0.45);
}

:root[data-theme="dark"] .footer-brand .subline {
    color: var(--text-muted);
}

:root[data-theme="dark"] .footer-line {
    background: #555;
}

:root[data-theme="dark"] .footer-info {
    color: var(--text-muted);
}

:root[data-theme="dark"] .footer-link:hover {
    text-shadow: 0 0 12px var(--glow-strong);
}

/* ---------------------------------------------------
   DARK MODE – Premium Glow
--------------------------------------------------- */

:root[data-theme="dark"] .mu-header {
    background: var(--bg-card);
    border-color: var(--border);
    box-shadow: 0 2px 14px rgba(0,0,0,0.45);
}

:root[data-theme="dark"] .mu-header-left h1 {
    color: var(--text);
}

:root[data-theme="dark"] .mu-subline {
    color: var(--text-muted);
}

:root[data-theme="dark"] .theme-btn {
    background: #2a2a33;
    border-color: #444;
    color: #ddd;
}

:root[data-theme="dark"] .theme-btn:hover {
    background: #3a3a44;
    box-shadow: 0 0 14px var(--glow-strong);
}

/* ---------------------------------------------------
   PAGINATION
--------------------------------------------------- */

.page-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: 0.25s ease;
	margin-bottom: 8pt !important;
}

.page-link:hover {
    background: var(--bg-card);
    border-color: #aaa;
    box-shadow: 0 0 10px var(--glow);
}

.page-link.active {
    background: #ffd400;
    color: #000;
    box-shadow: 0 0 12px var(--glow-strong);
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
/* ---------------------------------------------------
   FOOTER – Premium + Glow Dark Mode
--------------------------------------------------- */

.footer-premium {
    width: 100%;
    box-sizing: border-box;
    margin-top: 40px;
    padding: 25px 20px;
    background: var(--bg-panel);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 14px;
    border-top: 1px solid var(--border);
    transition: 0.3s ease;
    grid-column: 1 / -1; /* Footer immer über gesamte Breite */
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    font-weight: 600;
    font-size: 15px;
}

.footer-brand .subline {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.footer-line {
    width: 60px;
    height: 2px;
    background: #d4d4d4;
    margin: 15px auto;
    border-radius: 2px;
}

.footer-info {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Links */
.footer-link {
    color: #ffd400;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    text-shadow: 0 0 8px #ffd400;
}


/* ---------------------------------------------------
   PREMIUM HEADER – Modellbau Universe
--------------------------------------------------- */

.mu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    margin-bottom: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.mu-header-left h1 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
}

.mu-subline {
    display: block;
    margin-top: 4px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Theme Button */
.theme-btn {
    padding: 10px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: 0.25s ease;
}

.theme-btn:hover {
    background: var(--bg-card);
    box-shadow: 0 0 12px var(--glow);
}

.last-update-meta {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 6px;
    margin-top: 10px;
}
