/* === E-shop Styles - Dark Industrial Theme === */

:root {
    --bg-primary: #0A0A0A;
    --bg-secondary: #141414;
    --bg-card: #1A1A1A;
    --bg-input: #1E1E1E;
    --border: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --text-muted: #666666;
    --accent: #32D74B;
    --accent-hover: #28b83e;
    --danger: #FF453A;
    --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* === HEADER === */

.eshop-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.header-main-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) saturate(100%) invert(67%) sepia(85%) saturate(423%) hue-rotate(76deg) brightness(95%) contrast(89%);
}
.logo-text { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }

.header-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus { border-color: var(--accent); }

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cart-btn, .cart-btn-sm {
    position: relative;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: background 0.2s;
}
.cart-btn:hover { background: var(--accent-hover); }

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* Desktop Nav */
.header-nav {
    border-top: 1px solid var(--border);
}

.header-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.nav-link {
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

/* Mobile Tabs */
.mobile-tabs {
    display: none;
    padding: 8px 16px;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-tabs::-webkit-scrollbar { display: none; }

.mobile-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s;
    text-transform: uppercase;
}

.mobile-tab.active {
    background: var(--accent);
    color: #000;
}

/* === MAIN LAYOUT === */

.eshop-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    gap: 32px;
    flex: 1;
    width: 100%;
}

/* === FILTERS SIDEBAR === */

.filters-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.filters-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.filter-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

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

.filter-input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
}
.filter-input:focus { border-color: var(--accent); }

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-subcategory {
    padding-left: 16px;
    font-size: 0.85rem;
}

.brand-categories {
    margin-left: 26px;
    margin-top: 2px;
    margin-bottom: 4px;
    border-left: 2px solid var(--border);
    padding-left: 10px;
}

.filter-checkbox--sub {
    font-size: 0.85rem;
}

.filter-checkbox input[type="radio"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-toggle input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.filter-submit {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}
.filter-submit:hover { background: var(--accent-hover); }

.filter-reset {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: color 0.2s, border-color 0.2s;
}
.filter-reset:hover { color: var(--danger); border-color: var(--danger); }

/* === PRODUCTS SECTION === */

.products-section { flex: 1; min-width: 0; }

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.products-count-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.filter-reset-link {
    font-size: 0.8rem;
    color: var(--danger);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.filter-reset-link:hover { opacity: 1; }

.products-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.products-sort select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

/* === PRODUCT GRID === */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.product-image-wrapper {
    position: relative;
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: #fff;
}

/* Card image arrows — desktop only */
.card-img-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s;
}
.product-image-wrapper:hover .card-img-arrow { opacity: 1; }
.card-img-prev { left: 8px; }
.card-img-next { right: 8px; }

@media (min-width: 769px) {
    .card-img-arrow { display: block; }
}

.akce-badge {
    position: absolute;
    top: 10px;
    left: 0;
    background: #32D74B;
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 2;
}

.sale-sticker {
    position: absolute;
    bottom: -18px;
    right: 12px;
    width: 80px;
    height: 80px;
    background: #e63946;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    line-height: 1.25;
    padding: 6px;
    text-align: center;
    pointer-events: none;
}

.sale-old-price {
    font-size: 0.52rem;
    color: rgba(255,255,255,0.75);
    text-decoration: line-through;
    white-space: nowrap;
}

.sale-new-price {
    font-size: 0.62rem;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.sale-pct {
    font-size: 0.72rem;
    color: #fff;
    font-weight: 800;
}

.product-info {
    padding: 16px;
    padding-top: 24px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.product-price-sale {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.product-price-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-price-old {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted, #888);
    text-decoration: line-through;
}

.product-price-pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: #e63946;
    background: rgba(230,57,70,0.12);
    padding: 1px 5px;
    border-radius: 4px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.product-price.action {
    color: #e63946;
}

.product-stock {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}
.product-stock.in {
    background: rgba(50,215,75,0.15);
    color: var(--accent);
}
.product-stock.out {
    background: rgba(255,165,0,0.15);
    color: #FFA500;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.btn-cart {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-cart:hover { background: var(--accent-hover); }

.btn-info {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.btn-info:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.no-products p { margin-bottom: 20px; font-size: 1.1rem; }

/* === PAGINATION === */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.page-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* === PRODUCT MODAL === */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open { display: flex; }

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
    z-index: 10;
    transition: background 0.2s;
}
.modal-close:hover { background: var(--border); }

.modal-mobile-header { display: none; }

.modal-body {
    display: flex;
    gap: 0;
}

.modal-image {
    width: 45%;
    flex-shrink: 0;
    position: relative;
}
.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px 0 0 16px;
    background-color: #fff;
}

.modal-img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}
.modal-img-arrow:hover { background: rgba(0,0,0,0.7); }
.modal-img-prev { left: 10px; }
.modal-img-next { right: 10px; }

.modal-img-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.modal-img-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
}
.modal-img-dot.active {
    background: var(--accent);
}

.modal-details {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.modal-breadcrumb a { color: var(--text-muted); }
.modal-breadcrumb a:hover { color: var(--text-secondary); }

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.modal-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.modal-stock {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.modal-stock.in-stock {
    background: rgba(50,215,75,0.15);
    color: var(--accent);
}
.modal-stock.out-of-stock {
    background: rgba(255,165,0,0.15);
    color: #FFA500;
}

.modal-description-section h4,
.modal-params-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.modal-description-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.params-table {
    width: 100%;
    border-collapse: collapse;
}
.params-table tr {
    border-bottom: 1px solid var(--border);
}
.params-table td {
    padding: 8px 0;
    font-size: 0.85rem;
}
.params-table td:first-child {
    color: var(--text-muted);
    width: 40%;
}
.params-table td:last-child {
    text-align: right;
    font-weight: 500;
}

.modal-cart-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.quantity-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}
.quantity-selector button:hover { background: var(--border); }
.quantity-selector input {
    width: 48px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}
.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button { -webkit-appearance: none; }

.btn-add-to-cart {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.btn-add-to-cart:hover { background: var(--accent-hover); }

/* === CART DRAWER === */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: none;
}
.cart-overlay.open { display: block; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    z-index: 301;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
}
.cart-drawer.open { right: 0; }

.cart-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-size: 1.2rem; }

.cart-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.cart-item-qty button {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
}
.cart-item-qty span {
    width: 32px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cart-footer {
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}
.cart-total strong { color: var(--accent); font-size: 1.2rem; }

.btn-order {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-order:hover { background: var(--accent-hover); }

/* Order Form */
.order-form {
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    flex: 1;
}
.order-form h3 { margin-bottom: 16px; }

.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent);
}
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font);
    outline: none;
    cursor: pointer;
}
.delivery-note {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.btn-submit-order {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s;
}
.btn-submit-order:hover { background: var(--accent-hover); }

.btn-back-to-cart {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}
.btn-back-to-cart:hover { border-color: var(--text-secondary); }

.order-success {
    padding: 40px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.order-success p { color: var(--text-secondary); }
.order-success .btn-cart {
    flex: none;
    padding: 12px 32px;
    margin-top: 16px;
    align-self: center;
}

/* === FOOTER === */

.eshop-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.footer-col p, .footer-col li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-inner .footer-col:nth-child(1) { text-align: left; }
.footer-inner .footer-col:nth-child(2) { text-align: center; }
.footer-inner .footer-col:nth-child(3) { text-align: right; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

/* === RESPONSIVE === */

@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .header-nav { display: none; }
    .mobile-tabs { display: flex; }
    .mobile-menu-btn { display: block; }
    .logo-text { display: none; }

    .header-search { max-width: none; }

    .eshop-main {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .filters-sidebar {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 150;
        background: var(--bg-card);
        width: 100%;
        padding: 24px;
        overflow-y: auto;
    }
    .filters-sidebar.open { display: block; }
    .filters-close { display: block; }

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

    .product-info { padding: 12px; }
    .product-title { font-size: 0.8rem; }
    .product-price { font-size: 0.95rem; }
    .product-price-row { margin-bottom: 8px; }
    .product-stock { font-size: 0.65rem; padding: 2px 6px; }

    .product-actions { flex-direction: column; gap: 6px; }
    .btn-cart, .btn-info { font-size: 0.75rem; padding: 7px 8px; }

    /* Modal mobile */
    .modal-overlay { padding: 0; align-items: stretch; }
    .modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        height: 100vh;
    }
    .modal-close { display: none; }
    .modal-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid var(--border);
    }
    .modal-back {
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.9rem;
    }
    .modal-mobile-header span {
        font-weight: 600;
        font-size: 0.95rem;
    }
    .cart-btn-sm {
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 4px;
    }
    .modal-body { flex-direction: column; }
    .modal-image { width: 100%; }
    .modal-image img { border-radius: 0; max-height: 300px; }
    .modal-details { padding: 20px 16px; }
    .modal-cart-row {
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding: 16px;
        margin: 0 -16px;
        border-top: 1px solid var(--border);
    }

    /* Cart drawer */
    .cart-drawer { width: 100vw; right: -100vw; }

    /* Footer */
    .footer-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-inner .footer-col:nth-child(1),
    .footer-inner .footer-col:nth-child(2),
    .footer-inner .footer-col:nth-child(3) { text-align: center; }
}
