/* ==========================================================================
   SoVintage.se — Stylesheet
   Matches the original 2018 design: 999px fixed width, left sidebar, classic look.
   ========================================================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #333;
    background: url(/assets/images/bodybg.webp) repeat-x;
    background-color: #efefef;
}

a { color: #333; text-decoration: none; }
a:hover { text-decoration: underline; color: #000; }

img { max-width: 100%; height: auto; border: 0; }

ul { list-style: none; }

.clearBoth { clear: both; }

/* ==========================================================================
   Layout
   ========================================================================== */

#mainWrapper {
    width: 999px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#contentWrapper {
    display: flex;
    min-height: 500px;
}

/* ==========================================================================
   Header / Top Bar
   ========================================================================== */

#topBar {
    background: #1a1a1a;
    color: #fff;
    position: relative;
}

.topLogoLink {
    display: block;
    line-height: 0;
}

.topLogoImage {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Menu */
#topMenu {
    background: #8b1a1a;
    margin: 0;
    padding: 0 15px;
}

.mobileMenuToggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.menuList {
    display: flex;
    list-style: none;
}

.menuList > li {
    position: relative;
}

.menuList > li > a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s;
}

.menuList > li > a:hover,
.menuList > li:hover > a {
    background: #a02020;
    color: #fff;
    text-decoration: none;
}

/* Dropdown submenu */
.hasSubmenu:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #8b1a1a;
    min-width: 250px;
    z-index: 1000;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.submenu li a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.submenu li a:hover {
    background: #a02020;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

#breadcrumbs {
    padding: 8px 15px;
    font-size: 11px;
    color: #666;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

#breadcrumbs a { color: #555; }
#breadcrumbs a:hover { color: #000; }
#breadcrumbs .current { font-weight: bold; color: #333; }

/* ==========================================================================
   Sidebar
   ========================================================================== */

#sidebar {
    width: 180px;
    min-width: 180px;
    padding: 10px;
    border-right: 1px solid #eee;
}

.sidebarBox {
    margin-bottom: 15px;
}

.sidebarHeading {
    background: #1a1a1a;
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.sidebarHeading:hover {
    background: #333;
}

.toggleIcon {
    font-size: 8px;
    margin-right: 4px;
    display: inline-block;
    width: 12px;
}

.sidebarList {
    display: none;
    border: 1px solid #ddd;
    border-top: none;
}

.sidebarBox.open .sidebarList {
    display: block;
}

.sidebarList li {
    border-bottom: 1px solid #eee;
}

.sidebarList li:last-child {
    border-bottom: none;
}

.sidebarLink {
    display: block;
    padding: 5px 10px;
    font-size: 11px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}

.sidebarLink:hover {
    background: #f5f5f5;
    color: #000;
    text-decoration: none;
}

.itemCount {
    color: #999;
    font-size: 10px;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

#mainContent {
    flex: 1;
    padding: 15px 20px;
    min-width: 0;
}

#pageHeading {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.resultCount {
    font-size: 11px;
    color: #666;
    margin-bottom: 15px;
}

.noResults {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* ==========================================================================
   Product Grid
   ========================================================================== */

.productGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.productCard {
    width: 140px;
    text-align: center;
    padding: 5px;
    transition: box-shadow 0.2s;
}

.productCard:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.productCardImage {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: #fafafa;
    border: 1px solid #eee;
}

.productCardTitle {
    display: block;
    font-size: 11px;
    color: #333;
    margin-top: 5px;
    line-height: 1.3;
    text-decoration: none;
    text-transform: uppercase;
}

.productCardTitle:hover {
    color: #000;
    text-decoration: underline;
}

/* ==========================================================================
   Category Grid (Homepage)
   ========================================================================== */

.categoryGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.categoryCard {
    display: block;
    padding: 10px 14px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.categoryCard:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    text-decoration: none;
}

.categoryCard:hover .categoryName,
.categoryCard:hover .categoryCount {
    color: #fff;
}

.categoryName {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.categoryCount {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */

.productDetail {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.productImageWrapper {
    flex-shrink: 0;
    width: 350px;
}

.productMainImage {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    background: #fafafa;
}

.productImageLink {
    display: block;
    cursor: zoom-in;
}

.productInfo {
    flex: 1;
    min-width: 0;
}

.productMeta {
    margin-bottom: 8px;
    font-size: 12px;
}

.metaLabel {
    font-weight: bold;
    color: #555;
}

.metaValue { color: #333; }
.metaValue a { color: #1a73e8; }
.metaValue a:hover { text-decoration: underline; }

.productDescription {
    margin: 15px 0;
    font-size: 12px;
    line-height: 1.6;
    color: #444;
}

.productDescription p { margin-bottom: 10px; }

.productNotice {
    margin-top: 20px;
    padding: 12px 15px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 3px;
    font-size: 12px;
    color: #5d4037;
}

.productNotice a { color: #1a73e8; }

/* ==========================================================================
   Section Headers
   ========================================================================== */

.sectionHeader {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.sectionSubtitle {
    display: block;
    font-size: 11px;
    font-weight: normal;
    color: #888;
    margin-top: 2px;
}

/* ==========================================================================
   Hero Banner (Homepage)
   ========================================================================== */

.heroBanner {
    background: #1a1a1a;
    color: #fff;
    padding: 30px 25px;
    margin-bottom: 20px;
}

.heroBanner h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.heroBanner p {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
    max-width: 550px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    text-align: center;
    padding: 15px 0;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.paginationLink {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.15s;
}

.paginationLink:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    text-decoration: none;
}

.paginationCurrent {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    font-size: 12px;
    font-weight: bold;
}

.paginationEllipsis {
    display: inline-block;
    padding: 5px 5px;
    color: #999;
}

/* ==========================================================================
   Static / Info Pages
   ========================================================================== */

.staticPage .pageContent,
.contactPage .contactInfo {
    font-size: 13px;
    line-height: 1.7;
    color: #444;
}

.staticPage .pageContent p,
.contactSection p {
    margin-bottom: 12px;
}

.contactSection {
    margin-bottom: 20px;
}

.contactSection h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contactSection h3 {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.contactSection a { color: #1a73e8; }

/* ==========================================================================
   404 Page
   ========================================================================== */

.notFoundContent {
    padding: 30px 0;
    font-size: 13px;
    line-height: 1.7;
}

.notFoundContent ul {
    list-style: disc;
    margin: 10px 0 10px 25px;
}

.notFoundContent a { color: #1a73e8; }

/* ==========================================================================
   Related Products
   ========================================================================== */

.relatedProducts {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Footer
   ========================================================================== */

#siteFooter {
    background: transparent;
    color: #555;
    padding: 25px 20px 15px;
    font-size: 12px;
    border-top: 1px solid #ddd;
}

.footerInner {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.footerSection {
    flex: 1;
}

.footerHeader {
    font-size: 12px;
    font-weight: bold;
    color: #cc6600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footerSection ul {
    list-style: none;
}

.footerSection li {
    padding: 3px 0;
    color: #666;
    font-size: 11px;
}

.footerSection a {
    color: #555;
    text-decoration: none;
}

.footerSection a:hover {
    color: #000;
    text-decoration: underline;
}

.footerCopyright {
    border-top: 1px solid #ddd;
    padding-top: 12px;
    font-size: 11px;
    color: #777;
    text-align: center;
}

.footerCopyright a { color: #555; text-decoration: underline; }
.footerCopyright a:hover { color: #000; }
.footerCopyright p { margin-bottom: 5px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
    #mainWrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #contentWrapper {
        flex-direction: column;
    }

    #mainContent { order: 1; }
    #sidebar {
        order: 2;
        width: 100%;
        min-width: 100%;
        border-right: none;
        border-top: 1px solid #eee;
        padding: 10px 15px;
    }


    #topMenu { padding: 0; }
    .mobileMenuToggle { display: block; padding: 10px 15px; }
    .menuList { display: none; flex-direction: column; }
    .menuList.open { display: flex; }
    .menuList > li > a { padding: 10px 15px; border-top: 1px solid rgba(255,255,255,0.15); }
    .submenu { position: static; box-shadow: none; background: #6b1515; }
    .submenu li a { padding: 10px 25px; }
    .hasSubmenu:hover .submenu { display: none; }
    .hasSubmenu.open .submenu { display: block; }

    .productDetail { flex-direction: column; }
    .productImageWrapper { width: 100%; max-width: 350px; }

    .footerInner { flex-direction: column; gap: 20px; }

    .productGrid { justify-content: center; }
    .categoryGrid { justify-content: center; }
}
