/*
Theme Name: slv-shop
Theme URI: https://winters-anvil.com/
Author: Lilia
Description: SLV variable-driven bullion-style WooCommerce grid theme.
Version: 2.0
*/

/* ============================================================
   THEME STRUCTURE LAYER
   Contains ONLY:
   - Header layout
   - Footer layout
   - Navigation layout
   - Containers
   - Typography
   - Spacing
   - Responsive structure

   Does NOT contain:
   - Variables
   - Branding
   - Buttons
   - Icons
   - WooCommerce layout
============================================================ */

/* ===========================
   GLOBAL
=========================== */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.lsm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.lsm-main {
    min-height: 60vh;
    padding-bottom: 2rem;
}

/* ===========================
   TOP BAR
=========================== */

.lsm-top-bar {
    font-size: 12px;
}

.lsm-top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

/* ===========================
   MAIN HEADER
=========================== */

.lsm-header-main {
    border-bottom: 1px solid #dddddd;
}

.lsm-header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.lsm-header-logo img {
    max-height: 52px;
    width: auto;
    display: block;
}

.lsm-header-search {
    flex: 1;
    max-width: 480px;
}

.lsm-header-search form {
    display: flex;
}

.lsm-header-search input[type="search"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #dddddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.lsm-header-search button {
    padding: 8px 14px;
    border: 1px solid #dddddd;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    cursor: pointer;
}

.lsm-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lsm-header-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.lsm-header-cart-count {
    border-radius: 999px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 700;
}

/* ===========================
   NAVIGATION
=========================== */

.lsm-nav {
    border-bottom: 3px solid #ffffff;
}

.lsm-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.lsm-nav-menu > li {
    position: relative;
}

.lsm-nav-menu > li > a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}

/* DROPDOWNS */

.lsm-nav-menu li .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    border: 1px solid rgba(255,255,255,0.15);
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    display: none;
    z-index: 9999;
}

.lsm-nav-menu li:hover > .sub-menu {
    display: block;
}

.lsm-nav-menu li .sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
}

/* ===========================
   CONTENT
=========================== */

.lsm-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.lsm-page-title,
.lsm-archive-title,
.lsm-article-title {
    text-align: center;
}

.lsm-article-meta {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* ===========================
   FOOTER
=========================== */

.lsm-footer,
    padding: 24px 0;
    border-top: 3px solid #ffffff;
}

.lsm-footer-social {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.lsm-footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 2rem;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.lsm-footer-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.6rem;
}

.lsm-footer-widget-col .widget {
    font-size: 0.85rem;
    line-height: 1.6;
}

.lsm-footer-widget-col .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lsm-footer-widget-col .widget ul li {
    margin-bottom: 4px;
}

/* BRAND NAME + COPYRIGHT */

.lsm-brand-name {
    font-weight: 700;
}

.lsm-footer-copy {
    margin: 0;
    font-size: 0.85rem;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
    .lsm-header-main-inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .lsm-header-logo {
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    .lsm-header-search {
        flex-basis: 100%;
        max-width: none;
        margin-bottom: 8px;
    }
    .lsm-header-right {
        justify-content: center;
        flex-basis: 100%;
    }
    .lsm-nav-menu {
        flex-wrap: wrap;
        gap: 14px;
    }
    .lsm-footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}