/* ============================================
   PARKDISAIN / METALCO — SITE CSS
   ============================================ */

:root {
    --nav-dark: #1a1a1a;
    --nav-border: #333;
    --accent: #2a6496;
    --accent-hover: #1a4a70;
    --accent-light: #d9eaf7;
    --text: #333333;
    --text-muted: #888;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
    --card-border: #ddd;
}

* { box-sizing: border-box; }

body {
    font-family: 'Barlow', sans-serif;
    background: var(--light-bg);
    color: var(--text);
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
    background: var(--nav-dark);
    padding: 7px 0;
    font-size: 12px;
    color: #aaa;
    letter-spacing: 0.04em;
}

.topbar a {
    color: #6ab0d4;
    text-decoration: none;
}

.topbar a:hover { color: #fff; }

/* ============================================
   NAVBAR
   ============================================ */
.main-nav {
    background: var(--nav-dark);
    border-bottom: 3px solid var(--accent);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.main-nav .container {
    display: flex;
    align-items: stretch;
    min-height: 68px;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 12px 0;
    margin-right: 30px;
    text-decoration: none;
}

.nav-logo img { height: 40px; width: auto; }

.nav-logo-text {
    display: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.1em;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid #2e2e2e;
    transition: all 0.2s;
}

.nav-links a:first-child { border-left: 1px solid #2e2e2e; }

.nav-links a:hover,
.nav-links a.active {
    background: #2a2a2a;
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.quote-btn {
    background: var(--accent);
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 22px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
}

.quote-btn:hover { background: var(--accent-hover); color: #fff !important; }

.quote-count {
    background: #fff;
    color: var(--accent);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.navbar-toggler-custom {
    background: none;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 12px;
    cursor: pointer;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 36px 0;
}

/* ============================================
   ALERTS
   ============================================ */
.alert-success {
    background: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    border-radius: 3px;
    padding: 12px 16px;
}

.alert-danger {
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    border-radius: 3px;
    padding: 12px 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--nav-dark);
    border-top: 3px solid var(--accent);
    padding: 40px 0 24px;
    margin-top: 60px;
}

.footer-logo img {
    height: 34px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.footer-contact a {
    color: #6ab0d4;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid #2e2e2e;
    margin-top: 28px;
    padding-top: 18px;
    font-size: 12px;
    color: #666;
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 4px;
}

.section-title span { color: var(--accent); }

.divider {
    width: 36px;
    height: 3px;
    background: var(--accent);
    margin: 10px 0 20px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    background: var(--white);
    border: 1px solid var(--card-border);
}

.sidebar-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    background: #f9f9f9;
}

/* Kategooriate nimekiri */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Peakategooria ilma alamkategooriateta — tavaline link */
.category-list > li > a {
    display: block;
    padding: 9px 16px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
}

.category-list > li > a:hover,
.category-list > li > a.active {
    background: var(--accent-light);
    color: var(--accent);
    padding-left: 22px;
}

/* Peakategooria rida koos noolega */
.category-parent-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
}

.category-parent-row > a {
    flex: 1;
    display: block;
    padding: 9px 16px;
    color: #222;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    border-bottom: none;
}

.category-parent-row > a:hover,
.category-parent-row > a.active {
    background: var(--accent-light);
    color: var(--accent);
    padding-left: 22px;
}

/* Accordion nool */
.cat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    cursor: pointer;
    font-size: 20px;
    color: #bbb;
    transition: transform 0.2s, color 0.2s;
    user-select: none;
    line-height: 1;
}

.cat-toggle:hover { color: var(--accent); }

.cat-toggle.open {
    transform: rotate(90deg);
    color: var(--accent);
}

/* Alamkategooriad — vaikimisi peidetud */
.category-list .sub-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fafafa;
}

.category-list .sub-list li a {
    display: block;
    padding: 8px 16px 8px 28px;
    font-size: 13px;
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.15s;
}

.category-list .sub-list li a:hover,
.category-list .sub-list li a.active {
    color: var(--accent);
    background: var(--accent-light);
    padding-left: 34px;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.search-bar {
    display: flex;
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
    background: var(--white);
}

.search-bar input {
    background: var(--white);
    border: none;
    color: var(--text);
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    flex: 1;
    outline: none;
}

.search-bar input::placeholder { color: #bbb; }

.search-bar button {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 11px 22px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.search-bar button:hover { background: var(--accent-hover); }

.results-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-img-wrap {
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-img-wrap img { transform: scale(1.03); }

.product-no-img {
    color: #ddd;
    font-size: 36px;
}

.product-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 5px;
    display: block;
}

.product-name:hover { color: var(--accent); }

.product-code {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.product-footer { padding: 0 14px 14px; }

.add-btn {
    width: 100%;
    background: var(--nav-dark);
    border: none;
    color: #fff;
    padding: 9px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover { background: var(--accent); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
}

.pagination .page-link:hover,
.pagination .active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================
   PRODUCT SHOW
   ============================================ */
.breadcrumb-bar {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    margin-bottom: 32px;
}

.breadcrumb-bar a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar span { color: #ccc; font-size: 12px; margin: 0 6px; }
.breadcrumb-bar .current { color: var(--accent); font-size: 12px; }

.product-image-box {
    background: var(--white);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 30px;
}

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

.product-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #222;
    line-height: 1.1;
    margin-bottom: 8px;
}

.product-code-badge {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    margin-bottom: 20px;
}

.product-meta {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}

.meta-row {
    display: flex;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.meta-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    width: 130px;
    flex-shrink: 0;
}

.meta-value { color: #333; }

.product-description {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.quote-action {
    margin-top: 28px;
    display: flex;
    gap: 10px;
}

.btn-add-quote {
    background: var(--accent);
    border: none;
    color: #fff;
    padding: 13px 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-add-quote:hover { background: var(--accent-hover); }

.btn-back {
    background: var(--nav-dark);
    border: none;
    color: #ccc;
    padding: 13px 22px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-back:hover { background: #2a2a2a; color: #fff; }

/* ============================================
   QUOTE PAGE
   ============================================ */
.quote-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    background: var(--white);
}

.quote-table th {
    background: #f5f5f5;
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
}

.quote-table td {
    border: 1px solid var(--border);
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text);
}

.form-control-dark {
    background: var(--white) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 2px !important;
    font-family: 'Barlow', sans-serif;
    padding: 10px 14px;
}

.form-control-dark:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px rgba(42,100,150,0.15) !important;
}

.form-label-dark {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
}

.btn-submit {
    background: var(--nav-dark);
    border: none;
    color: #fff;
    padding: 13px 36px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover { background: var(--accent); }

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 991px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--nav-dark);
        position: absolute;
        top: 68px;
        left: 0;
        border-bottom: 3px solid var(--accent);
        z-index: 999;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        border-right: none;
        border-bottom: 1px solid #2e2e2e;
        padding: 13px 20px;
        width: 100%;
        height: auto;
    }

    .nav-links a:first-child { border-left: none; }
    .main-nav .container { flex-wrap: wrap; position: relative; }
    .topbar .d-flex { flex-direction: column; gap: 3px; }
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content-wrap {
    background: var(--white);
    border: 1px solid var(--card-border);
    padding: 32px;
}

.page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 4px;
}

.page-body {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.page-body h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 28px;
    margin-bottom: 10px;
}

.page-body h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 8px;
}

.page-body p { margin-bottom: 14px; }
.page-body a { color: var(--accent); }

.page-body ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.page-body ul li { margin-bottom: 4px; }
.page-body strong { color: #333; }

/* Kontakt */
.contact-info-box {
    background: #f9f9f9;
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 28px;
}

.contact-info-box .contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.contact-info-box .contact-row:last-child { border-bottom: none; }

.contact-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    width: 80px;
    flex-shrink: 0;
}

.contact-form-wrap { margin-top: 28px; }
.contact-form-wrap .form-group { margin-bottom: 16px; }

/* Materjalid */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.material-card {
    background: #f9f9f9;
    border: 1px solid var(--border);
    padding: 20px;
    text-align: center;
}

.material-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid #ccc;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 12px;
}

.material-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #222;
    margin-bottom: 8px;
}

.material-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .page-content-wrap { padding: 20px; }
}

@media (max-width: 480px) {
    .materials-grid { grid-template-columns: 1fr; }
}

/* Kategooria filter lingid */
.cat-filter-link {
    padding: 8px 16px;
    font-size: 13px;
    text-decoration: none;
    color: #555;
    background: transparent;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
    font-family: 'Barlow', sans-serif;
}

.cat-filter-link:hover { background: var(--accent-light); color: var(--accent); }
.cat-filter-link.cat-active { background: var(--accent-light); color: var(--accent); }
.cat-filter-link.cat-parent { font-weight: 500; color: #333; }
.cat-filter-link.cat-child { background: #fafafa; color: #777; font-size: 12px; }

/* Quote remove button */
.remove-btn {
    background: none;
    border: 1px solid #ddd;
    color: #999;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Barlow', sans-serif;
}

.remove-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }/* ============================================
   MOBIIL: Sidebar hamburger
   ============================================ */

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--primary, #1a2332);
    color: #fff;
    border: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.sidebar-toggle-btn .filter-badge {
    color: var(--accent, #2563eb);
    margin-left: auto;
    font-size: 10px;
}

/* Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.sidebar-overlay.open {
    display: block;
}

/* Drawer */
.sidebar-drawer {
    /* Desktop: normaalne */
}

@media (max-width: 991px) {
    .sidebar-drawer {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background: #f5f5f5;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    }
    .sidebar-drawer.open {
        left: 0;
    }

    /* Peida col-lg-3 mobiilis */
    #sidebarCol {
        padding: 0 !important;
        margin: 0 !important;
    }
}

.sidebar-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--primary, #1a2332);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

/* ============================================
   MOBIIL: Kategooria list — 2 veerg
   ============================================ */

@media (max-width: 575px) {
    /* Piirame pildi kõrgust väikses gridis */
    .product-img-wrap {
        height: 140px !important;
    }

    .product-name {
        font-size: 13px !important;
    }

    .product-code {
        font-size: 11px !important;
    }

    /* "+" ikoon mobiilis, pikk tekst peidetud */
    .add-btn-full {
        display: none;
    }
    .add-btn-short {
        display: inline;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
    }

    .add-btn {
        padding: 8px 12px !important;
        min-width: 36px;
    }
}

@media (min-width: 576px) {
    .add-btn-short {
        display: none;
    }
    .add-btn-full {
        display: inline;
    }
}

/* ============================================
   MOBIIL: Tootelehe sticky footer
   ============================================ */

.mobile-product-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #fff;
    border-top: 2px solid var(--primary, #1a2332);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}

.mobile-sticky-back {
    flex-shrink: 0;
    padding: 10px 12px;
    background: #f0f0f0;
    color: var(--primary, #1a2332);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.mobile-sticky-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.mobile-sticky-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    background: #fff;
    flex-shrink: 0;
}

.mobile-sticky-qty button {
    width: 32px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.mobile-sticky-qty button:first-child {
    border-right: 1px solid #ddd;
}

.mobile-sticky-qty button:last-child {
    border-left: 1px solid #ddd;
}

.mobile-sticky-qty input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 14px;
    padding: 8px 4px;
    -moz-appearance: textfield;
}

.mobile-sticky-qty input::-webkit-outer-spin-button,
.mobile-sticky-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.mobile-sticky-add {
    flex: 1;
    padding: 10px 10px;
    background: var(--accent, #2563eb);
    color: #fff;
    border: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

/* Tootelehe sisu padding all sticky bari jaoks */
@media (max-width: 991px) {
    .main-content {
        padding-bottom: 80px;
    }
}

/* ============================================
   GRID / LIST VAADE TOGGLE
   ============================================ */

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #999;
    cursor: pointer;
    transition: all 0.15s;
}

.view-btn.active {
    background: var(--primary, #1a2332);
    color: #fff;
    border-color: var(--primary, #1a2332);
}

.product-card-list {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 4px;
    margin-bottom: 0;
}

.product-card-list:hover {
    background: #fafafa;
}

.product-list-img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    overflow: hidden;
    display: block;
}

.product-list-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-list-body {
    flex: 1;
    min-width: 0;
}

.product-list-body .product-name {
    font-size: 14px;
}

.product-list-action {
    flex-shrink: 0;
}

#products-grid.list-view {
    display: block !important;
}

#products-grid.list-view .col {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
}

#products-grid.list-view .product-card-grid {
    display: none !important;
}

#products-grid.list-view .product-card-list {
    display: flex !important;
}
/* Sidebar alamkategooriate nool */
.category-list .has-sub > a::after {
    content: '›';
    float: right;
    font-size: 16px;
    line-height: 1;
    color: #aaa;
    transition: transform 0.2s;
}
.category-list .has-sub.open > a::after {
    transform: rotate(90deg);
    color: #2a6496;
}
