/*
Theme Name: slv-shop
Theme URI: https://winters-anvil.com/
Author: Lilia
Description: SLV variable-driven bullion-style WooCommerce grid theme.
Version: 2.0
*/

/* ============================================================
   GLOBAL STRUCTURE / TYPOGRAPHY / CONTAINERS
============================================================ */

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;
}

/* ============================================================
   HEADER
============================================================ */

.lsm-header {
    position: relative;
    z-index: 9999;
}

.lsm-header-main {
    border-bottom: 1px solid #dddddd;
    min-height: 70px !important;
}

.lsm-header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

/* Logo */

.lsm-header-logo img {
    max-height: 52px;
    width: auto;
    display: block;
}

.custom-logo {
    height: 60px !important;
    width: auto !important;
    max-height: 60px !important;
}

/* Search */

.lsm-header-search {
    flex: 1 1 auto;
    max-width: 350px;
}

.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;
}

/* Header right icons */

.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 (DESKTOP)
============================================================ */

.lsm-nav {
    display: block;
    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: 5px 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    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;
}

/* ============================================================
   HAMBURGER (MOBILE TOGGLE)
============================================================ */

.lsm-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 9999;
}

.lsm-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: linear-gradient(90deg, #b5b5b5, #e0e0e0, #b5b5b5);
    margin: 6px 0;
    transition: 0.3s ease;
}

/* ============================================================
   MOBILE NAVIGATION
============================================================ */

.lsm-mobile-nav {
    display: none;
    background: #0a0a0a;
    padding: 10px;
}

.lsm-mobile-nav.active {
    display: block;
}

.lsm-mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lsm-mobile-menu li {
    border-bottom: 1px solid #333;
    padding: 10px 0;
}

.lsm-mobile-menu li:last-child {
    border-bottom: none;
}

.lsm-mobile-menu a {
    color: #c0c0c0;
    text-decoration: none;
    font-size: 16px;
    display: block;
}

.lsm-mobile-menu a:hover {
    color: #ffffff;
}

/* ============================================================
   CONTENT / TYPOGRAPHY
============================================================ */

.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;
}

.lsm-brand-name {
    font-weight: 800;
}

.lsm-footer-copy {
    margin: 0;
    font-size: 0.90rem;
}

/* ============================================================
   ADMIN BAR / MISC FIXES
============================================================ */

#wpadminbar {
    z-index: 999999 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

/* Fix Jetpack Stats breaking mobile layout */
#wpadminbar .quicklinks li#wp-admin-bar-stats a div {
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
    margin: 0 !important;
}

/* Prevent Stripe from scanning mobile menu */
#mobile-nav-wrapper .gpay-button {
    display: none !important;
}

/* ============================================================
   BLOG / POSTS
============================================================ */

.blog-card,
.post-card,
.blog-grid article {
    overflow: hidden;
}

.blog-card img,
.post-card img,
.blog-grid article img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card .entry-summary,
.blog-grid article .entry-summary {
    max-height: 80px;
    overflow: hidden;
}

.lsm-blog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.lsm-blog-card-horizontal {
    display: flex;
    gap: 20px;
    overflow: hidden;
    align-items: flex-start;
}

.lsm-blog-card-thumb img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.lsm-blog-card-body {
    flex: 1;
    min-width: 0;
}

/* Legacy blog header (kept for safety if still used) */

.blog-header-image {
    height: 250px;
    overflow: hidden;
}

.blog-header-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ============================================================
   PRODUCT / WOO LAYOUT HOOKS
============================================================ */

/* Remove underline from product card links */
.lsm-product-card a.lsm-product-link {
    text-decoration: none;
}

/* Optional: hover style */
.lsm-product-card a.lsm-product-link:hover {
    text-decoration: none;
}

/* Kill WooCommerce placeholder items */
ul.products li.product.placeholder,
ul.products li.product.hidden {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================
   PAGE BANNER (ROUNDED + GLOW)
============================================================ */

.page-banner {
    display: block;
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

.page-banner img {
    width: 100%;
    max-width: 1200px;
    height: auto;        /* ⭐ THIS FIXES EVERYTHING */
    object-fit: cover;
    display: block;
    margin: 0 auto;      /* centers the 1200px image */
}

/* Outer glow */
.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(0, 255, 180, 0.45);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

/* Inner glow */
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 40px rgba(0, 255, 180, 0.35);
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
}

/* ============================================================
   SEARCH BUTTON OVERRIDES (HEADER)
============================================================ */

header .lsm-header-search form.search-form input[type="submit"] {
    background: #254949 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 7px 14px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    height: 32px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.25s ease !important;
}

header .lsm-header-search form.search-form input[type="submit"]:hover {
    background: #d7f2ff !important;
    color: #254949 !important;
}

/* Submit button */
header .lsm-header-search form.search-form input.search-submit,
header .lsm-header-search form.search-form button.search-submit {
    background: #254949 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
    margin-left: 6px !important;
    cursor: pointer !important;
    transition: background 0.25s ease !important;
}

header .lsm-header-search form.search-form input.search-submit:hover,
header .lsm-header-search form.search-form button.search-submit:hover {
    background: #d7f2ff !important;
    color: #254949 !important;
}

/* ============================================================
   RESPONSIVE — 900px
============================================================ */

@media (max-width: 900px) {
    .lsm-header-main-inner {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
    }

    .lsm-nav-menu {
        flex-wrap: wrap;
        gap: 14px;
    }

    .lsm-footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* ============================================================
   RESPONSIVE — 768px
============================================================ */

@media (max-width: 768px) {

    .lsm-header-main {
        min-height: 80px;
    }

    .lsm-nav {
        display: none;
    }

    .lsm-hamburger {
        display: block;
    }

    .lsm-mobile-nav {
        display: none;
    }

    /* Blog cards stack on mobile */
    .lsm-blog-card-horizontal {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .lsm-blog-card-thumb img {
        width: 100%;
        height: auto;
        max-height: 220px;
        object-fit: cover;
    }

    .lsm-blog-card-body {
        width: 100%;
        padding-top: 10px;
    }

    /* Hide desktop icons on mobile */
    .lsm-header-right {
        display: none;
    }

    /* Shrink search bar on mobile */
    .lsm-header-search .search-field {
        width: 80px !important;
        max-width: 80px !important;
        min-width: 0 !important;
    }

}


/* PAGINATION — LIGHT + EMERALD */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: #e0e0e0 !important;
    color: #000 !important;
    border: none !important;
    padding: 8px 14px !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
    font-weight: 600;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #254949 !important;
    color: #ffffff !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #d7f2ff !important;
    color: #254949 !important;
}

/* ============================================================
   EMERALD BUTTONS — MAXIMUM OVERRIDE
============================================================ */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .button,
.woocommerce .single_add_to_cart_button,
.woocommerce .checkout-button,
.woocommerce .wc-forward,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    background-color: #254949 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Hover */
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .checkout-button:hover,
.woocommerce .wc-forward:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
    background-color: #d7f2ff !important;
    color: #254949 !important;
}

/* Banner wrapper (rounded bottom) */
.page-banner-wrapper {
    overflow: hidden;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

/* Banner container */
.page-banner {
    height: 250px;
    overflow: hidden;
}

/* Banner image */
.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Center the banner image inside the wrapper */
.page-banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure the image itself is centered and not stretching weirdly */
.page-banner img {
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* ============================================================
   FIXED RESPONSIVE HEADER — ONE ROW ON ALL MOBILE SIZES
============================================================ */

/* Fix hamburger so it stays in the row */
.lsm-hamburger {
    position: static !important;
    right: auto !important;
    top: auto !important;
    margin-left: 8px !important;
}

/* 900px — Clean layout, no wrapping */
@media (max-width: 900px) {

    /* Keep header on ONE row */
    .lsm-header-main-inner {
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    /* Allow search to shrink properly */
    .lsm-header-search {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin-bottom: 0 !important;
    }

    /* Logo + icons normal width */
    .lsm-header-logo,
    .lsm-header-right {
        flex-basis: auto !important;
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    /* Hide icons on mobile */
    .lsm-header-right {
        display: none !important;
    }
}

/* 768px — unify search width rules */
@media (max-width: 768px) {

    /* Shrink search field consistently */
    .lsm-header-search .search-field {
        width: 80px !important;
        max-width: 80px !important;
        min-width: 0 !important;
    }
}

.woocommerce-tabs ul.tabs li.description_tab {
    display: none !important;
}

/* Hide the specific Description tab row */
.woocommerce-tabs ul.tabs.wc-tabs:first-of-type {
    display: none !important;
}

/* Make WooCommerce product price a rich emerald */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #046b4f !important; /* deep emerald */
    font-weight: 700;
}

/* Force 2 columns on mobile for related/recommended */
.related ul.products li.product,
.upsells ul.products li.product,
.cross-sells ul.products li.product {
    width: 50% !important;
    float: left;
}

/* Tablet (3 columns) */
@media (min-width: 600px) and (max-width: 991px) {
    .related ul.products li.product,
    .upsells ul.products li.product,
    .cross-sells ul.products li.product {
        width: 33.333% !important;
    }
}

/* Desktop (5 columns) */
@media (min-width: 992px) {
    .related ul.products li.product,
    .upsells ul.products li.product,
    .cross-sells ul.products li.product {
        width: 20% !important;
    }
}

.lsm-payment-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0 20px;
}

.lsm-payment-title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.pm-icon {
    height: 26px;
    width: auto;
    display: block;
}

/* ===========================
   SLV THEME BREADCRUMBS
   Silver / Emerald / Black
=========================== */

.slv-breadcrumbs {
    font-size: 14px;
    color: #cfcfcf; /* soft silver */
    margin: 1px 0;
    padding: 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.slv-breadcrumbs span {
    display: flex;
    align-items: center;
}

.slv-breadcrumbs a {
    color: #0e6b4f; /* emerald */
    text-decoration: none;
    font-weight: 500;
}

.slv-breadcrumbs a:hover {
    color: #0a4f3a; /* darker emerald */
    text-decoration: underline;
}

/* Remove top gap when no banner exists */
.lsm-main > .lsm-container.lsm-content:first-child {
    margin-top: 0;
    padding-top: 0;
}