/* ============================================================
   SLV CUSTOM BRANDING LAYER
   Contains ONLY:
   - Variables
   - Colors
   - Gradients
   - Icons
   - Buttons
   - Fonts
   - Gallery
   - Floating icon
   - Social icons
   - Header/footer color styling

   Does NOT contain:
   - WooCommerce layout
   - Product grids
   - Product cards
   - Tabs
   - Pagination
   - Theme structure
============================================================ */

/* ===========================
   GOOGLE FONT — CINZEL
=========================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');

/* ===========================
   VARIABLES (Merged)
=========================== */
:root {
    --slv-bg: #ffffff;
    --slv-text: #111111;
    --slv-muted: #666666;
    --slv-border: #dddddd;

    /* Header Gradient */
    --slv-header-grad-start: #000000;
    --slv-header-grad-end: #ffffff;

    /* Footer Gradient */
    --slv-footer-grad-start: #000000;
    --slv-footer-grad-end: #ffffff;

    /* Button Gradient */
    --slv-button-grad-start: #d8d8d8;
    --slv-button-grad-end: #bcbcbc;

    /* Navigation */
    --slv-nav-bg: #000000;
    --slv-nav-text: #ffffff;
    --slv-nav-hover: #cccccc;

    /* Primary Accent */
    --slv-primary: #000000;

    /* Phone Bar */
    --slv-phone-text: #000000;
    --slv-phone-bg: #ffffff;
}

/* ===========================
   HEADER COLOR BRANDING
=========================== */

.lsm-header-main {
    background: var(--slv-phone-bg) !important;
}

.lsm-header-phone-text {
    font-family: 'Cinzel', serif !important;
    font-weight: 600;
    font-size: 1rem;
    color: var(--slv-phone-text) !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Header icons follow phone text color */
.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-phone i,
.lsm-header-account i,
.lsm-header-cart i {
    color: var(--slv-phone-text) !important;
}

/* ===========================
   FOOTER COLOR BRANDING
=========================== */

.site-footer,
.site-footer p,
.site-footer span {
    color: #D7F2FF !important;
}

.site-footer a {
    color: #D7F2FF !important;
}

.site-footer a:hover {
    color: #86AAB8 !important;
}

/* ===========================
   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 PRODUCT BUTTON
=========================== */

.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 (Your custom element)
=========================== */

.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;
}

/* ===========================
   NAV BRANDING + VISIBILITY
=========================== */

.lsm-nav {
    background: var(--slv-nav-bg) !important;
    border-bottom: 3px solid #ffffff !important;
}

.lsm-nav-menu > li > a {
    color: var(--slv-nav-text) !important;
}

.lsm-nav-menu > li > a:hover {
    color: var(--slv-nav-hover) !important;
}

/* ===========================
   NAV + SUBMENU BRANDING (UPDATED)
=========================== */

/* MAIN MENU — larger, elegant Cinzel */
.lsm-nav-menu > li > a {
    font-family: 'Cinzel', serif !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important; /* increased size */
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--slv-nav-text) !important;
    text-decoration: none !important;
}

/* SUBMENU BACKGROUND */
.lsm-nav-menu li .sub-menu {
    background: var(--slv-nav-bg) !important;
}

/* SUBMENU LINKS — smaller than main menu */
.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; /* stays small */
    color: var(--slv-nav-text) !important;
    text-decoration: none !important;
}

/* SUBMENU HOVER */
.lsm-nav-menu li .sub-menu li a:hover {
    color: var(--slv-nav-hover) !important;
    background: rgba(255,255,255,0.08);
}

/* HIDE DEFAULT FEATURED IMAGE / HEADER ON HOMEPAGE */
.home .entry-header,
.home .post-thumbnail,
.home .wp-block-post-featured-image {
    display: none !important;
}

/* ===========================
   FEATURED PRODUCTS GRID FIX
=========================== */

.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 {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #111;
    border-radius: 6px;
    overflow: hidden;
}

.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;
}

@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;
    }
}

@media (max-width: 479px) {
    .lsm-featured-wrapper ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* GLOBAL: WooCommerce product grids = 2 columns on mobile */
@media (max-width: 767px) {
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 479px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   FEATURED PRODUCTS – SAFE CARD STYLE
=========================== */

.lsm-featured-wrapper ul.products li.product {
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    padding: 12px;
}

.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;
}

@media (max-width: 767px) {
    ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 479px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   FEATURED PRODUCTS – CUSTOM CARD LAYOUT
=========================== */

.lsm-featured-wrapper ul.products li.lsm-product-card {
    background: #000 !important;
    border-radius: 6px;
    overflow: hidden;
    padding: 12px;
    display: flex !important;
    flex-direction: column !important;
}

.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;
}

/* ===========================
   FINAL MOBILE OVERRIDES
=========================== */

@media (max-width: 767px) {
    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) {
    body.home .lsm-featured-wrapper ul.products.columns-5 {
        grid-template-columns: 1fr !important;
    }
}

/* HOMEPAGE — Fix Add to Cart button size + colors */
.home .lsm-actions-flex .button {
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 12px !important;
    font-size: 0.85rem !important;

    /* Text colors */
    color: #D7F2FF !important;        /* normal */
}

.home .lsm-actions-flex .button:visited {
    color: #86AAB8 !important;        /* visited */
}

/* Optional: hover color for better contrast */
.home .lsm-actions-flex .button:hover {
    color: #ffffff !important;
    filter: brightness(1.08);
}

/* HOMEPAGE — Fix quantity container size */
.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;
}

/* Fix the input itself */
.home .lsm-actions-flex .quantity .qty {
    width: 50px !important;
    height: 30px !important;
    font-size: 0.80rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* FIX: Restore default WooCommerce colors on SHOP & CATEGORY pages */
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;
}

/* ===========================
   FIX FOOTER VISIBILITY
=========================== */

.lsm-footer {
    background: linear-gradient(
        to bottom,
        var(--slv-footer-grad-start),
        var(--slv-footer-grad-end)
    ) !important;
    color: #D7F2FF !important;
}

.lsm-footer a {
    color: #D7F2FF !important;
}

.lsm-footer a:hover {
    color: #86AAB8 !important;
}

/* Fix widget column layout */
.lsm-footer-widgets {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

.lsm-footer-widget-col {
    color: #D7F2FF !important;
}

.lsm-footer-widget-col .widget-title,
.lsm-footer-widget-title {
    color: #D7F2FF !important;
}

/* ===========================
   FOOTER 5-COLUMN GRID FIX
=========================== */
.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;
    }
}


/* FINAL FIX — FORCE COLOR ON FONT AWESOME HEADER ICONS */
.lsm-header-icon i.fa-solid,
.lsm-header-phone i.fa-solid,
.lsm-header-account i.fa-solid,
.lsm-header-cart i.fa-solid {
    color: var(--slv-phone-text) !important;
}

/* FIX PHONE NUMBER TEXT */
.lsm-header-phone-text {
    color: var(--slv-phone-text) !important;
}

/* HEADER BACKGROUND (GRADIENT) */
.lsm-header {
    background: linear-gradient(
        to bottom,
        var(--slv-header-grad-start),
        var(--slv-header-grad-end)
    ) !important;
}

/* NAV BACKGROUND */
.lsm-nav {
    background: var(--slv-nav-bg) !important;
}

/* NAV TEXT */
.lsm-nav a {
    color: var(--slv-nav-text) !important;
}

.lsm-nav a:hover {
    color: var(--slv-nav-hover) !important;
}

/* PHONE TEXT + BACKGROUND */
.lsm-header-phone {
    color: var(--slv-phone-text) !important;
    background: var(--slv-phone-bg) !important;
}

/* HEADER ICONS (account, cart, phone icon) */
.lsm-header-icon i {
    color: var(--slv-text-color) !important;
    fill: var(--slv-text-color) !important;
}

/* FOOTER BACKGROUND (GRADIENT) */
footer {
    background: linear-gradient(
        to bottom,
        var(--slv-footer-grad-start),
        var(--slv-footer-grad-end)
    ) !important;
}

header.site-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* FOOTER LINK STYLE */
.lsm-footer a {
    font-family: 'Cinzel', serif;   /* change to your preferred font */
    font-size: 0.85rem;             /* adjust size */
    font-weight: 600;               /* adjust weight */
    text-decoration: none;          /* remove underline */
    color: #ddd;                    /* footer link color */
}

/* FOOTER LINK HOVER */
.lsm-footer a:hover {
    color: #fff;                    /* hover color */
    text-decoration: none;
}

/* CATEGORY IMAGE RESPONSIVE FIX — SCALE WITHOUT CROPPING */
.lsm-category-card .lsm-category-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* adjust if you want a different shape */
    background: #f5f5f5; /* optional neutral background */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image scales up/down to fit, no cropping */
.lsm-category-card .lsm-category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* <-- THIS fixes your issue */
    object-position: center;
    display: block;
}
