/* ============================================================
   SLV CUSTOM BRANDING LAYER
   Contains ONLY:
   - Colors applied via CSS variables
   - Gradients
   - Icons
   - Buttons
   - Fonts
   - Gallery
   - Floating icon
   - Social icons
   - Header/footer color styling

   Does NOT contain:
   - :root variable definitions (owned by functions.php)
   - WooCommerce layout
   - Product grids
   - Product cards
   - Tabs
   - Pagination
   - Theme structure
============================================================ */

/* ===========================
   HEADER COLOR BRANDING
=========================== */

.lsm-header {
    background: linear-gradient(
        to bottom,
        var(--slv-header-grad-start),
        var(--slv-header-grad-end)
    ) !important;
}

.lsm-header-main {
    background: var(--slv-phone-bg) !important;
}

.lsm-header-phone-text,
.lsm-header-phone {
    font-family: 'Cinzel', serif !important;
    font-weight: 600;
    font-size: 1rem;
    color: var(--slv-phone-text) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--slv-phone-bg) !important;
}

/* Header icons */
.lsm-header-icon svg,
.lsm-header-phone svg,
.lsm-header-account svg,
.lsm-header-cart svg {
    fill: var(--slv-phone-text) !important;
}

.lsm-header-icon i,
.lsm-header-icon i.fa-solid,
.lsm-header-phone i,
.lsm-header-phone i.fa-solid,
.lsm-header-account i,
.lsm-header-account i.fa-solid,
.lsm-header-cart i,
.lsm-header-cart i.fa-solid {
    color: var(--slv-phone-text) !important;
}

/* ===========================
   NAV BRANDING
   FIX: Was defined in two separate sections — merged into one
=========================== */

.lsm-nav {
    background: var(--slv-nav-bg) !important;
    border-bottom: 3px solid #ffffff !important;
}

.lsm-nav a {
    color: var(--slv-nav-text) !important;
}

.lsm-nav a:hover {
    color: var(--slv-nav-hover) !important;
}

/* Main menu links */
.lsm-nav-menu > li > a {
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--slv-nav-text) !important;
    text-decoration: none !important;
}

.lsm-nav-menu > li > a:hover {
    color: var(--slv-nav-hover) !important;
}

/* Submenu */
.lsm-nav-menu li .sub-menu {
    background: var(--slv-nav-bg) !important;
}

.lsm-nav-menu li .sub-menu li a {
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    font-size: 0.65rem !important;
    color: var(--slv-nav-text) !important;
    text-decoration: none !important;
}

.lsm-nav-menu li .sub-menu li a:hover {
    color: var(--slv-nav-hover) !important;
    background: rgba(255,255,255,0.08);
}

/* ===========================
   FOOTER COLOR BRANDING
=========================== */

.lsm-footer,
footer {
    background: linear-gradient(
        to bottom,
        var(--slv-footer-grad-start),
        var(--slv-footer-grad-end)
    ) !important;
    color: #D7F2FF !important;
}

.lsm-footer a,
.site-footer a {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #D7F2FF !important;
}

.lsm-footer a:hover,
.site-footer a:hover {
    color: #86AAB8 !important;
    text-decoration: none;
}

.site-footer,
.site-footer p,
.site-footer span {
    color: #D7F2FF !important;
}

.lsm-footer-widget-col,
.lsm-footer-widget-col .widget-title,
.lsm-footer-widget-title {
    color: #D7F2FF !important;
}

/* ===========================
   FOOTER WIDGET GRID
   FIX: Was defined twice (3-col !important then 5-col). Merged to 5-col with responsive.
=========================== */

.lsm-footer-widgets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .lsm-footer-widgets {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .lsm-footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lsm-footer-widgets {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   SOCIAL ICONS
=========================== */

.lsm-footer-social {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.lsm-footer-social a {
    font-size: 1.4rem;
    color: var(--slv-primary);
    transition: 0.2s ease;
}

.lsm-footer-social a:hover {
    color: var(--slv-button-grad-start);
}

/* ===========================
   GLOBAL BUTTON BRANDING
=========================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .woocommerce-button,
.woocommerce .woocommerce-form-login__submit,
.woocommerce .woocommerce-form-register__submit,
.woocommerce-cart .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background: linear-gradient(
        to right,
        var(--slv-button-grad-start),
        var(--slv-button-grad-end)
    ) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid var(--slv-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .woocommerce-button:hover,
.woocommerce .woocommerce-form-login__submit:hover,
.woocommerce .woocommerce-form-register__submit:hover,
.woocommerce-cart .button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    filter: brightness(1.05);
}

.single_add_to_cart_button {
    background: linear-gradient(
        to right,
        var(--slv-button-grad-start),
        var(--slv-button-grad-end)
    ) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid var(--slv-primary) !important;
    padding: 12px 20px !important;
    font-weight: 600;
}

/* ===========================
   FLOATING ICON
=========================== */

.lsm-floating-icon {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 80px;
    height: 80px;
    background: var(--slv-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lsm-floating-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

/* ===========================
   GALLERY
=========================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.gallery-item {
    margin: 0 !important;
}

.gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

/* ===========================
   CARE BUTTON
=========================== */

.care-button {
    display: inline-block;
    background: linear-gradient(#f2f2f2, #d9d9d9);
    color: #333;
    padding: 10px 22px;
    border-radius: 25px;
    border: 1px solid #bfbfbf;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    text-decoration: none;
}

.care-block {
    margin-bottom: 30px;
}

/* ===========================
   HIDE DEFAULT FEATURED IMAGE ON HOMEPAGE
=========================== */

.home .entry-header,
.home .post-thumbnail,
.home .wp-block-post-featured-image {
    display: none !important;
}

/* ===========================
   FEATURED PRODUCTS GRID
=========================== */

.lsm-featured-wrapper ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lsm-featured-wrapper ul.products li.product,
.lsm-featured-wrapper ul.products li.lsm-product-card {
    list-style: none !important;
    margin: 0 !important;
    padding: 12px !important;
    background: #000 !important;
    border-radius: 6px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
}

.lsm-featured-wrapper ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
}

.lsm-featured-wrapper ul.products li.product .woocommerce-loop-product__title,
.lsm-featured-wrapper ul.products li.product .price,
.lsm-featured-wrapper ul.products li.product .stock {
    color: #fff !important;
}

.lsm-featured-wrapper ul.products li.product .button {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-top: 8px;
    border-radius: 4px;
    background: #c0c0c0;
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
}

.lsm-featured-wrapper ul.products li.product .button:hover {
    background: #e5e5e5;
}

/* ===========================
   PRODUCT CARD ELEMENTS
   FIX: .lsm-product-image-wrap, .lsm-product-title, .lsm-card-footer were each defined twice — merged
=========================== */

.lsm-product-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.lsm-product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lsm-product-title {
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 12px;
    color: #fff;
    text-align: center;
}

.lsm-card-footer {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.lsm-price-stock {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lsm-price-stock .price,
.lsm-price-stock .stock {
    color: #fff !important;
}

.lsm-actions-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.lsm-actions-flex .quantity .qty {
    width: 55px !important;
    height: 36px !important;
    text-align: center;
    font-size: 0.9rem;
}

.lsm-actions-flex .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 36px !important;
    padding: 0 14px !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    background: linear-gradient(
        to right,
        var(--slv-button-grad-start),
        var(--slv-button-grad-end)
    ) !important;
    color: #000 !important;
    border-radius: 4px !important;
}

/* ===========================
   HOMEPAGE BUTTON OVERRIDES
=========================== */

.home .lsm-actions-flex .button {
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.85rem !important;
    color: #D7F2FF !important;
}

.home .lsm-actions-flex .button:visited {
    color: #86AAB8 !important;
}

.home .lsm-actions-flex .button:hover {
    color: #ffffff !important;
    filter: brightness(1.08);
}

.home .lsm-actions-flex .quantity {
    width: auto !important;
    min-width: 55px !important;
    max-width: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.home .lsm-actions-flex .quantity .qty {
    width: 50px !important;
    height: 30px !important;
    font-size: 0.80rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===========================
   SHOP & CATEGORY PAGES — restore WC defaults
=========================== */

body:not(.home) ul.products li.product {
    background: #ffffff !important;
    color: #111111 !important;
}

body:not(.home) ul.products li.product .woocommerce-loop-product__title,
body:not(.home) ul.products li.product .price,
body:not(.home) ul.products li.product .stock {
    color: #111111 !important;
}

/* ===========================
   RESPONSIVE PRODUCT GRIDS
   FIX: ul.products mobile rules were defined twice identically — merged
=========================== */

@media (max-width: 1199px) {
    .lsm-featured-wrapper ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .lsm-featured-wrapper ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .lsm-featured-wrapper ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    body.home .lsm-featured-wrapper ul.products.columns-5 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
    body.home .lsm-featured-wrapper ul.products.columns-5 > li {
        width: auto !important;
        float: none !important;
    }
}

@media (max-width: 479px) {
    .lsm-featured-wrapper ul.products {
        grid-template-columns: 1fr !important;
    }
    ul.products {
        grid-template-columns: 1fr !important;
    }
    body.home .lsm-featured-wrapper ul.products.columns-5 {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   MISC FIXES
=========================== */

header.site-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#mobile-nav-wrapper .gpay-button {
    display: none !important;
}

/* ===========================
   CATEGORY IMAGE RESPONSIVE
=========================== */

.lsm-category-card .lsm-category-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lsm-category-card .lsm-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.slv-container-1200 {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ===========================Paste this block at the very bottom of your `custom.css`:

```css
/* ===========================
   PRODUCT CARD — FONT & BACKGROUND
=========================== */

/* Small-caps compact title font on all cards */
.lsm-product-title,
.woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cinzel', serif !important;
    font-variant: small-caps !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03
   PRODUCT CARD — FONT & BACKGROUND
=========================== */

/* Small-caps compact title font on all cards */
.lsm-product-title,
.woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cinzel', serif !important;
    font-variant: small-caps !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    word-spacing: normal !important;
}

/* Light silver card background — shop & category pages only */
/* Homepage black cards are untouched */
body:not(.home) ul.products li.product,em !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    word-spacing: normal !important;
}

/* Light silver card background — shop & category pages only
body:not(.home) ul.products li.lsm-product-card {
    background: #f2f2f2 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
} */
/* Homepage black cards are untouched */
body:not(.home) ul.products li.product,
body:not(.home) ul.products li.lsm-product-card {
    background: #f2f2f2 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
}

/* Keep text dark on light cards */
body:not(.home) ul.products li.product .woocommerce-loop-product__title,
body:not(.home) ul.products li.product .price,
body:not(.home) ul.products li.product .stock {
    color: #1a1a1a !important

/* Keep text dark on light cards */
body:not(.home) ul.products li.product .woocommerce-loop-product__title,
body:not(.home) ul.products li.product .price,
body:not(.home) ul.products li.product .stock {
    color: #1a1a1a !important;
}


/* Product Grid Layout (5‑column, clean, centered) */
.lsm-woo-wrapper ul.products {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}

/* Product Card Styling (dark metal, clean borders) */
.lsm-woo-wrapper ul.products li.product {
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    padding: 18px;
    text-align: center;
    transition: 0.2s ease;
}

.lsm-woo-wrapper ul.products li.product:hover {
    border-color: #fada05;
    transform: translateY(-3px);
}

/* Product Images (consistent height, no stretching) */
.lsm-woo-wrapper ul.products li.product img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

/* Product Titles (gold, readable, leveled) */
.lsm-woo-wrapper ul.products li.product h2 {
    color: #fada05;
    font-size: 17px;
    min-height: 48px;
    margin: 10px 0;
    line-height: 1.3;
}

/* Price Styling (silver/white) */
.lsm-woo-wrapper ul.products li.product .price {
    color: #e6e6e6;
    font-weight: 600;
    margin: 8px 0 12px;
    display: block;
}

/* Add to Cart Button (silver button, gold hover) */
.lsm-woo-wrapper ul.products li.product .button {
    background: #444;
    color: #fff;
    padding: 10px 14px;
    border-radius: 3px;
    transition: 0.2s ease;
}

.lsm-woo-wrapper ul.products li.product .button:hover {
    background: #fada05;
    color: #000;
}
