/*
Theme Name:   	Storefront Child Theme
Theme URI:    	https://github.com/stuartduff/storefront-child-theme
Author:       	Stuart Duff
Author URI:    	http://stuartduff.com
Template:     	storefront
Description:  	This is a blank child theme for WooThemes StoreFront theme
Version:      	1.0.0
License:      	GNU General Public License v2 or later
License URI:  	http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  	storefront
Tags:         	black, white, light, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, threaded-comments, accessibility-ready
*/

/* =======================================
   Import Google Font
   ======================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

body, button, input, select, textarea {
    font-family: 'Montserrat', Arial, sans-serif;
}

/* =======================================
   Banner styling
   ======================================= */
.storefront-banner {
    margin-bottom: 30px;
}

.storefront-banner .col-full {
    padding-left: 0;
    padding-right: 0;
}

.storefront-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (min-width: 1200px) {
    .storefront-banner img { max-height: 600px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    .storefront-banner img { max-height: 400px; }
}
@media (max-width: 767px) {
    .storefront-banner img { max-height: 250px; }
}

/* Remove unexpected black bar above header/banner */
.site-header,
.storefront-banner {
    background: transparent !important;
}

/* =======================================
   WooCommerce product grid (responsive 4 columns)
   ======================================= */
.woocommerce-page #primary {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

ul.products li.product {
    margin: 0 !important;
    box-sizing: border-box;
    width: auto !important;
}

/* Force first product into first column */
ul.products li.product:first-child {
    grid-column: 1 !important;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* =======================================
   Product text styling
   ======================================= */
ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    color: #111;
    margin-bottom: 8px;
}

ul.products li.product .price {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

ul.products li.product .woocommerce-product-details__short-description {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Product Buttons - white background with black text */
ul.products li.product .button {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    padding: 10px 16px;
    border-radius: 4px;
    background-color: #fff;   /* white background */
    color: #111;              /* black text */
    border: 1px solid #111;   /* subtle border */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button hover effect */
ul.products li.product .button:hover {
    background-color: #111;   /* black background on hover */
    color: #fff;              /* white text on hover */
    border-color: #111;
}

/* =======================================
   Footer styling
   ======================================= */
.site-footer.custom-footer {
    background-color: #fff;
    color: #333;
    padding: 50px 20px 20px;
    font-family: 'Montserrat', Arial, sans-serif;
    border-top: 1px solid #ddd;
}

.site-footer.custom-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer.custom-footer .footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

/* Footer 2-column layout (column 1 left, column 4 right) */
.site-footer.custom-footer .footer-column {
    flex: 1 1 45%;
    min-width: 200px;
}

.site-footer.custom-footer .footer-column:first-child {
    text-align: left;
}

.site-footer.custom-footer .footer-column:last-child {
    text-align: right;
}

.site-footer.custom-footer .footer-column:last-child .social-links {
    justify-content: flex-end;
}

/* Footer headings */
.site-footer.custom-footer .footer-column h4 {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

/* Footer links */
.site-footer.custom-footer .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer.custom-footer .footer-column ul li {
    margin-bottom: 8px;
}

.site-footer.custom-footer .footer-column ul li a {
    color: #333;
    text-decoration: none;
}

.site-footer.custom-footer .footer-column ul li a:hover {
    text-decoration: underline;
}

/* Social links */
.site-footer.custom-footer .social-links {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer.custom-footer .social-links img {
    width: 20px;
    height: 20px;
    display: block;
}

/* Footer bottom */
.site-footer.custom-footer .footer-bottom {
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-footer.custom-footer .footer-widgets {
        flex-direction: column;
        gap: 20px;
    }
    .site-footer.custom-footer .footer-column {
        text-align: left;
    }
    .site-footer.custom-footer .footer-column:last-child .social-links {
        justify-content: flex-start;
    }
}
.site-footer.custom-footer .footer-column ul li a::before {
    content: none !important; /* remove any icon or bullet added */
}

.site-footer.custom-footer .footer-column ul li img {
    display: none !important; /* hide any tiny images accidentally inside nav */
}
@media (max-width: 768px) {
    .site-footer.custom-footer .footer-widgets {
        flex-direction: column;
        gap: 20px;
    }
    .site-footer.custom-footer .footer-column {
        text-align: center;
    }
    .site-footer.custom-footer .footer-column:last-child .social-links {
        justify-content: center;
    }
}
/* Footer 2-column layout (column 1 left, column 4 right) */
.site-footer.custom-footer .footer-widgets {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.site-footer.custom-footer .footer-column {
    flex: 1 1 45%;
    min-width: 200px;
}

.site-footer.custom-footer .footer-column-right {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-footer.custom-footer .footer-widgets {
        flex-direction: column;
        gap: 20px;
    }
    .site-footer.custom-footer .footer-column-right {
        text-align: left;
    }
}
/* Remove any icons/images next to footer menu items */
.site-footer.custom-footer .footer-column ul li a::before,
.site-footer.custom-footer .footer-column ul li a img {
    display: none !important;
}

/* Ensure no list-style bullets */
.site-footer.custom-footer .footer-column ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Footer links styling */
.site-footer.custom-footer .footer-column ul li {
    margin-bottom: 8px;
}

.site-footer.custom-footer .footer-column ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.site-footer.custom-footer .footer-column ul li a:hover {
    text-decoration: underline;
}
/* ===========================
   Remove legacy widget images/icons in footer
   =========================== */

/* Hide all images in footer widgets */
.site-footer .footer-widgets .widget img {
    display: none !important;
}

/* Keep social icons visible */
.site-footer .footer-column .social-links img {
    display: inline-block !important;
}

/* Remove background images from all elements inside widgets */
.site-footer .footer-widgets .widget * {
    background-image: none !important;
}

/* Remove pseudo-element bullets/icons (like ::before) */
.site-footer .footer-widgets .widget li::before,
.site-footer .footer-widgets .widget p::before,
.site-footer .footer-widgets .widget span::before {
    content: none !important;
}
/* Footer widgets container */
.site-footer.custom-footer .footer-widgets {
    display: flex;
    justify-content: space-between; /* pushes first and last columns apart */
    flex-wrap: wrap;
    gap: 30px;
}

/* Left column */
.site-footer.custom-footer .footer-column:first-child {
    flex: 0 1 auto;  /* width as needed */
    text-align: left;
}

/* Right column */
.site-footer.custom-footer .footer-column:last-child {
    flex: 0 1 auto;  /* width as needed */
    margin-left: auto; /* push to right */
    text-align: right;
}

/* Social links within right column */
.site-footer.custom-footer .footer-column:last-child .social-links {
    justify-content: flex-end; /* aligns icons to the right */
}
.main-navigation a {
    font-weight: bold;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

/* Body styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #111;
}

/* Links */
a {
    color: #ff0000; /* Primary color */
    text-decoration: none;
}

a:hover {
    color: #000; 
}
/* Wrapper matches nav styling */
.header-currency-switcher {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;      /* match nav size */
  font-weight: 600;     /* match nav weight */
  color: #222;          /* same as nav text */
  display: inline-flex;
  align-items: center;
}

/* Each currency link */
.header-currency-switcher li a {
  color: inherit;
  text-decoration: none;
  padding: 0 8px;       /* clickable space */
  transition: color 0.2s ease;
}

/* Hover effect */
.header-currency-switcher li a:hover {
  color: #000;          /* same hover as nav links */
}

/* Active currency */
.header-currency-switcher li.current a {
  font-weight: 700;     /* slightly bolder for active */
  color: #000;
}

/* Separator between currencies */
.header-currency-switcher li + li:before {
  content: "|";
  margin: 0 8px;
  color: #bbb;
}
/* Hide the Shop page title */
body.post-type-archive-product .woocommerce-products-header {
    display: none !important;
}

/* Hide the default WooCommerce sorting dropdown */
body.post-type-archive-product .woocommerce-ordering {
    display: none !important;
}

/* Hide any additional top page sorting menus (if theme adds extra) */
body.post-type-archive-product .woocommerce-top-sorting {
    display: none !important;
}
/* Hide "Showing 1–12 of X results" at the top */
body.post-type-archive-product .woocommerce-result-count {
    display: none !important;
}

/* Hide "Showing 1–12 of X results" at the top */
body.post-type-archive-product .woocommerce-result-count {
    display: none !important;
}
/* ================================
   WooCommerce Product Grid Fix
   Align buttons across all rows
   ================================ */

/* Make each product card a flex container */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* stretch to equal height */
}

/* Ensure product inner elements use full space */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Keep product title heights consistent */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 3em; /* adjust for your longest product title */
  line-height: 1.4em;
  margin-bottom: 0.5em;
}

/* Keep price area aligned */
.woocommerce ul.products li.product .price {
  min-height: 2em;
  display: flex;
  align-items: center;
  margin-bottom: 0.5em;
}

/* Force buttons to align at bottom */
.woocommerce ul.products li.product .button {
  margin-top: auto;
  align-self: flex-start;
}
/* ================================
   WooCommerce Product Grid – Centered Layout
   ================================ */

/* Product container */
body.woocommerce ul.products li.product,
body.woocommerce-page ul.products li.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Product title */
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title {
  width: 100%;
  text-align: center;
}

/* Price */
body.woocommerce ul.products li.product .price,
body.woocommerce-page ul.products li.product .price {
  display: block;
  margin: 0.5rem 0;
  text-align: center;
  width: 100%;
}

/* Add to cart button */
body.woocommerce ul.products li.product .button,
body.woocommerce ul.products li.product a.button,
body.woocommerce ul.products li.product .add_to_cart_button,
body.woocommerce-page ul.products li.product .button,
body.woocommerce-page ul.products li.product a.button,
body.woocommerce-page ul.products li.product .add_to_cart_button {
  display: inline-block;
  margin: 0.5rem auto 0;
  text-align: center;
  align-self: center;
}
/* Make cart icon white and remove text */
.header-cart .cart-link {
    display: inline-block;
    color: #fff;
    font-size: 1.5rem; /* adjust to match nav height */
    text-decoration: none;
}

.header-cart .cart-link:hover {
    color: #ff0000; /* optional hover */
}

/* Hide any remaining WooCommerce text inside the link */
.header-cart .cart-link span:not(.cart-icon) {
    display: none !important;
}
