/*
Theme Name: woo-ecomm-theme
Theme URI: https://smithandpixel.co.uk
Template: botiga
Author: Will Smith
Author URI: https://smithandpixel.co.uk
Description: A classic ecomm theme.
Tags: e-commerce,custom-menu,custom-logo,grid-layout,featured-images,right-sidebar,left-sidebar,custom-colors,editor-style,theme-options,threaded-comments,translation-ready,blog,one-column,two-columns,rtl-language-support,custom-background,custom-header,footer-widgets,post-formats,wide-blocks
Version: 2.3.7.1759496212
Updated: 2025-10-03 12:56:52

*/
/* =====================================
   FILTER + SORT MODALS
   Botiga + WooCommerce (CONDENSED)
   ===================================== */

/* WooCommerce bar alignment */
.woocommerce-before-shop-loop {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Shared buttons */
.fe-open-modal {
  background: #000;
  color: #fff;
  padding: 0 20px;
  height: 44px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  display: inline-flex;
  align-items: center;
}

/* Overlay */
#fe-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

/* ================================
   MODAL BASE (FILTER + SORT)
   ================================ */
#fe-modal,
#sort-modal {
  position: fixed;
  background: #fff;
  box-sizing: border-box;
  z-index: 9999;
  display: none;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  font-family: inherit;
}

#fe-modal.is-open,
#sort-modal.is-open {
  display: block;
}

/* Close buttons */
#close-fe-filters,
#close-sort-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#close-fe-filters:hover,
#close-sort-modal:hover {
  background: #f2f2f2;
}

/* ================================
   DESKTOP – CENTER MODALS
   ================================ */
@media (min-width: 769px) {
  #fe-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 48px 20px 20px;
  }

  #sort-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 360px;
    padding: 48px 20px 20px;
  }
}

/* ================================
   MOBILE – OFF CANVAS
   ================================ */
@media (max-width: 768px) {
  #fe-modal,
  #sort-modal {
    top: 0;
    right: -100%;
    left: auto;
    width: 85%;
    height: 100vh;
    transform: none;
    overflow-y: auto;
    padding: 20px;
    border-radius: 0;
    transition: right 0.3s ease;
  }

  #fe-modal.is-open,
  #sort-modal.is-open {
    right: 0;
  }

  #close-fe-filters,
  #close-sort-modal {
    position: sticky;
    top: 0;
    margin-left: auto;
    z-index: 1;
  }

  .fe-open-modal {
    width: 100%;
    justify-content: center;
  }
}

/* ================================
   MODAL CONTENT STYLING
   ================================ */

/* Headings & labels */
#fe-modal h1,
#fe-modal h2,
#fe-modal h3,
#fe-modal h4,
#fe-modal label,
#sort-modal label {
  display: block;
  font-size: 16px;
  margin-bottom: 12px;
  color: #111;
}

/* Filter labels stay bold */
#fe-modal label {
  font-weight: 600;
}

/* Sort label override */
#sort-modal label {
  font-weight: 400 !important;
  text-align: left;
}
#sort-modal label strong {
	font-weight:400 !important;
}

/* Select dropdowns */
#fe-modal select,
#sort-modal select {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: 48px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #dcdfe4;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

#fe-modal select:focus,
#sort-modal select:focus {
  outline: none;
  border-color: #000;
}

/* ================================
   FILTER EVERYTHING CLEANUP
   ================================ */
#fe-modal .fe-filter,
#fe-modal .fe-filter-group,
#fe-modal .fe-filter-content,
#fe-modal .fe-select,
#fe-modal .fe-field,
#fe-modal .fe-control {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 24px;
}

#fe-modal .fe-select > *,
#fe-modal .fe-filter-content > * {
  max-width: 100% !important;
}

/* Links inside filter modal */
#fe-modal a {
  color: #111;
  font-size: 13px;
  text-decoration: none;
}

#fe-modal a:hover {
  text-decoration: underline;
}

span.onsale {
	display:none !important;
}
.wp-block-woocommerce-checkout-contact-information-block {
    margin-bottom: 0 !important;
}

.wp-block-woocommerce-checkout-shipping-address-block {
    margin-top: 0 !important;
}

.wp-block-woocommerce-checkout-fields-block > * {
    margin-bottom: 0.75rem;
}
/* Hide empty shipping method block in Checkout */
.wp-block-woocommerce-checkout-shipping-method-block:empty {
    display: none;
}
/* Hide empty shipping method block (handles &nbsp;) */
.wp-block-woocommerce-checkout-shipping-method-block {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-woocommerce-checkout-shipping-method-block:has(:not(:empty)) {
    display: block;
}
.wp-block-woocommerce-checkout-shipping-method-block {
    display: none;
}

.wp-block-woocommerce-checkout-shipping-method-block:has(*),
.wp-block-woocommerce-checkout-shipping-method-block:not(:empty) {
    display: block;
}

/* ================================
   BOTIGA DESKTOP MEGA DROPDOWN
   4 links per column – no titles
   ================================ */

@media (min-width: 1024px) {

  /* Main dropdown container */
  .main-navigation ul li.menu-item-has-children > ul.sub-menu {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto); /* 4 items per column */
    gap: 0px 60px;

    /* Box styling */
    background-color: #ffffff;
    padding: 30px;
    width: max-content;          /* size to columns */
    max-width: calc(100vw - 60px); /* safety clamp */
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);

    /* Positioning fix for Botiga */
    left: 0 !important;
    right: auto;
  }

  /* Individual menu items */
  .main-navigation ul li.menu-item-has-children > ul.sub-menu > li {
    padding: 0;
    margin: 0;
    white-space: nowrap;
  }

  /* Links */
  .main-navigation ul li.menu-item-has-children > ul.sub-menu > li > a {
    display: inline-block;
    padding: 6px 10px;
    text-decoration: none;
  }

  /* Hover effect */
  .main-navigation ul li.menu-item-has-children > ul.sub-menu > li > a:hover {
    background-color: rgba(0,0,0,0.04);
    border-radius: 4px;
  }

}
@media (min-width: 1024px) {

  /* When a mega menu is hovered, disable sibling menu items */
  .main-navigation ul:has(> li.menu-item-has-children > ul.sub-menu:hover)
    > li:not(:has(> ul.sub-menu:hover)) {
    pointer-events: none;
  }

  /* Ensure the active menu item still works */
  .main-navigation ul > li:has(> ul.sub-menu:hover) {
    pointer-events: auto;
  }

}

.wpcf7-response-output {
  display: none !important;
}

/* Modal overlay */
.cf7-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

/* Modal box */
.cf7-modal-content {
  background: #fff;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  text-align: center;
}

/* Close button */
.cf7-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.home-hero {
    display: flex;
    gap: 20px;
}

/* RED box wrapper = 2/3 width */
.home-hero > a.hero-link:first-of-type {
    flex: 2;
    display: block;
}

/* BLUE box wrapper = 1/3 width */
.home-hero > a.hero-link:last-of-type {
    flex: 1;
    display: block;
}

.woocommerce-page-header .woocommerce-breadcrumb {
	display:none;
}
.woocommerce-sorting-wrapper {
	margin-top:30px;
}
/* Collapsible text base */
.category-description-text {
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* MOBILE — 3 lines */
@media (max-width: 767px) {
    .category-description-text.collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        max-height: 3em;
    }
}

/* DESKTOP — 6 lines */
@media (min-width: 768px) {
    .category-description-text.collapsed {
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        max-height: 5em;
    }
}

/* Button styling */
.toggle-description-btn {
    background: none;
    border: none;
    color: #0073aa;
    padding: 0;
    margin-top: 8px;
    font-weight: 600;
    cursor: pointer;
}

.toggle-description-btn:hover {
    text-decoration: underline;
}

.related.products>.products {
	border:none !important;
	padding-top:0 !important;
}
.downloadme {
	padding:8px 20px;
	background:#18a400 !important;
	color:#fff !important;
	border-radius:5px;
	display:inline-block;
	margin:12px 0 18px 0;
	text-decoration:none !important;
}
.downloadme:hover {
	text-decoration:underline !important;
	color:#fff !important;
}
/* Base badge styling */
.grip-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    z-index: 99;
}

/* Midsize grips (Green) */
.grip-badge-midsize-grips {
    background: #2ecc71; /* green */
}

/* Standard grips (blue example, change if needed) */
.grip-badge-standard-grips {
    background: #3498db; /* blue */
}

/* Jumbo grips (orange example) */
.grip-badge-jumbo-grips {
    background: #e67e22; /* orange */
}

/* Make sure product image wrapper is positioned */
.woocommerce ul.products li.product,
.woocommerce div.product div.images {
    position: relative;
}

.wc-block-components-product-metadata__description {
    display: none !important;
}

#wps-slider-section #sp-woo-product-slider-224.sp-wps-custom-template .wpsf-product .wps-product-data {
	border:none !important;
}
.alte {
	padding-right:0 !important;
	padding-left:0 !important;
}
.product .onsale,
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
    display: none !important;
}

/* Force RRP + crossed-out price to black on single product */
.woocommerce.single-product div.product p.price del,
.woocommerce.single-product div.product span.price del,
.woocommerce.single-product div.product p.price del *,
.woocommerce.single-product div.product span.price del * {
    color: #000 !important;
    text-decoration-color: #000 !important;
	opacity:1 !important;
}

/* Related Products - 2 Columns on Mobile */
@media (max-width: 768px) {
    .related.products ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
	.bhfb.bhfb-header .custom-logo-link img {
		width:80px;
	}
	.copy {
		text-align:center !important;
	}
	.sma {
		margin-right:auto;
		margin-left:auto;
		width:90%;
	}
	.newsll h4 {
		font-size:22px;
	}
	.fop p {
		font-size:12px;
		margin-bottom:35px;
	}
    .related.products ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
    }
	/* Single product title size on mobile */
    .single-product .product_title {
        font-size: 24px !important;
    }
	.single-product .quantity {
		margin-bottom:0 !important;
		margin-top:8px;
	}
}

.single-product .product_meta {
    display: inline-flex;
    gap: 12px;
    font-size: 12px;
}
.related.products, .upsells.products, .recently-viewed-products {
	padding-top:20px;
}
.sku_wrapper {
	display:inline-flex !important;
}
/* Wrapper background */
.upsell-before-cart .upsell-item {
    background: #1d184e;
	border:3px solid #1d184e !important;
	color:#fff !important;
	border:1px solid grey;
    padding: 8px 20px 8px 20px;
    border-radius:0 4px 4px 4px;
    margin-bottom: 8px;
}
.upsell-before-cart a:hover {
	text-decoration:underline;
	color:#fff !important;
}
/* Layout (desktop) */
.upsell-before-cart .upsell-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
}
.upsell-before-cart .woocommerce-Price-amount {
	color:#fff !important;
}
.upsell-label {
    font-weight: 500;
    display: inline-block;
    background: red;
    color: #fff;
	font-size:13px;
    padding: 6px 47px 6px 12px;
    position: relative;
    clip-path: polygon(0 0, 83% 0, 100% 100%, 0 100%);
}

/* Thumbnail small size */
.upsell-before-cart .upsell-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 3px;
	margin-right:10px;
    border: 1px solid #ddd;
}

/* Hover text color */
.upsell-before-cart .upsell-link:hover {
    color: #005177;
}

/* Mobile stacking */
@media (max-width: 480px) {
    .upsell-before-cart .upsell-link {
        flex-direction: row;
        align-items: flex-start;
        gap: 4px;
    }
}

.woocommerce-tabs {
    margin-top: 40px;
    margin-bottom: 60px;
}
/* Add border to product images in the loop */
.woocommerce ul.products li.product a img,
.woocommerce .products a img {
    border: 1px solid grey !important;
}

.single-product.no-single-breadcrumbs .woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 40px;
    margin-top: 0px;
}
/* Default color for all prices */
.woocommerce ul.products li.product .price,
.woocommerce div.product .price {
    color: inherit !important;
}

/* Make ONLY the sale price red */
.woocommerce ul.products li.product .price ins .amount,
.woocommerce div.product .price ins .amount {
    color: red !important;
}

/* Make the crossed-out original price grey (optional) */
.woocommerce ul.products li.product .price del .amount,
.woocommerce div.product .price del .amount {
    color: #777 !important;
}

/* new code for hero section */
/* Desktop: show desktop images, hide mobile */
.home-hero img.hero-img-desktop {
  display: block !important;
}
.home-hero img.hero-img-mobile {
  display: none !important;
}

/* Mobile view: hide desktop images, show mobile */
@media (max-width: 768px) {
  .home-hero img.hero-img-desktop {
    display: none !important;
  }
  .home-hero img.hero-img-mobile {
    display: block !important;
  }
}
.home-hero img {
	border-radius:8px;
}
/*  */
.single_add_to_cart_button {
  background-color: #18a400 !important;
  border-color: #18a400 !important;
  color: #ffffff !important;
}
.single_add_to_cart_button:hover {
  background-color: #186400 !important;
  border-color: #186400 !important;
  color: #ffffff !important;
}
.related.products > h2,
.upsells.products > h2,
.recently-viewed-products > h2 {
  font-size: 1.6rem;
}
/* paymnet icons */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.payment-icons img {
  height: 32px;
  width: auto;
  display: block;
}

/* MOBILE: exactly 3 icons per row */
@media (max-width: 600px) {
  .payment-icons img {
    flex: 0 0 calc(33.33% - 10px);
    height: 28px; /* smaller so they don’t look oversized */
    margin: 0;
  }
  .payment-icons {
    gap: 4px;
  }
}

/* Mobile: 3 icons on top row, 3 on bottom row */
@media (max-width: 600px) {
  .payment-icons img {
    flex: 0 0 calc(33.33% - 10px);
    margin-bottom: 10px;
  }
}
/*  */
.faqs strong {
  display: block;
  margin-bottom: -20px;
}
.grips-extra-text {
  margin-bottom: 35px;
}
/* Mobile only */
@media (max-width: 768px) {
  /* Center the actual typed text in all fields inside .newsign */
  .newsign input,
  .newsign textarea {
    text-align: center !important;
  }

  /* Center placeholder text (with vendor prefixes for mobile browsers) */
  .newsign input::placeholder,
  .newsign textarea::placeholder,
  .newsign input::-webkit-input-placeholder,
  .newsign textarea::-webkit-input-placeholder,
  .newsign input::-moz-placeholder,
  .newsign textarea::-moz-placeholder,
  .newsign input:-moz-placeholder,
  .newsign textarea:-moz-placeholder,
  .newsign input:-ms-input-placeholder,
  .newsign textarea:-ms-input-placeholder {
    text-align: center !important;
  }
}

/* -----------------------------------------------------------
   MOBILE ONLY — Botiga built-in search area layout adjustments
----------------------------------------------------------- */
@media (max-width: 1024px) {
  /* Move search container to the bottom of the header main row */
  .site-header .header-main .header-search {
    order: 99 !important;
    width: 100% !important;
    display: block !important;
    text-align: left;
    margin-top: 10px;
  }

  /* Hide Botiga search icon on mobile */
  .site-header .header-main .header-search i {
    display: none !important;
  }

  /* Remove default Botiga padding */
  .site-header .header-main .header-search {
    padding: 0 !important;
  }

  /* Reveal our custom search form */
  .site-header .header-main .header-search form {
    display: flex !important;
    width: 100%;
    margin-top: 5px;
  }

  /* Basic mobile input style (still overridden by custom styling below) */
  .site-header .header-main .header-search form input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
  }
}

/* -----------------------------------------------------------
   SEARCH BAR + AJAX DROPDOWN (Universal styling)
----------------------------------------------------------- */

/* Wrapper for search + AJAX dropdown */
.ggd-search-wrapper {
  position: relative;
  width: 100%;
  background: #1d184e;
  padding: 14px 0;
}

/* The form wrapper — NOW the anchor for dropdown width */
.ggd-header-searchbar {
  position: relative; /* **** IMPORTANT for dropdown alignment **** */
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Search field with extra right padding for icon */
.ggd-search-field {
  width: 100%;
  padding: 12px 42px 12px 14px; /* room for icon */
  border: 1px solid #ccc !important;
  border-radius: 10px !important;
  font-size: 16px;
}

/* Remove dark border when focused (DOES NOT affect other fields) */
.ggd-search-field:focus {
  outline: none !important;
  border-color: #ccc !important;
  box-shadow: none !important;
}

/* Search icon positioned inside input */
.ggd-search-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #555;
  font-size: 18px;
}

.ggd-search-btn:hover,
.ggd-search-btn:focus {
  color: #000;
  background: none;
  border: none;
  box-shadow: none;
}

/* -----------------------------------------------------------
   AJAX RESULTS — now exactly same width as search bar
----------------------------------------------------------- */
.ggd-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100% !important; /* EXACT width match */
  box-sizing: border-box; /* prevent width overflow */
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 0;
  z-index: 9999;
  display: none;
  border-radius: 0 0 12px 12px;
  max-height: 300px;
  overflow-y: auto;
}

.ggd-search-results a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f3f3;
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.ggd-search-results a:hover {
  background: #f7f7f7;
}

/* AJAX result item wrapper */
.ggd-search-item {
  display: block;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

/* Category labels */
.ggd-cat-labels {
  font-size: 12px;
  color: #555;
  margin-top: 3px;
}

/* -----------------------------------------------------------
   MOBILE full width adjustments
----------------------------------------------------------- */
@media (max-width: 768px) {
  .ggd-header-searchbar {
    width: 100%;
    padding: 0 10px;
  }

  .ggd-search-field,
  .ggd-search-btn {
    font-size: 15px;
  }
  .ggd-search-btn {
    right: 20px;
  }
}

/* -----------------------------------------------------------
   DESKTOP — hide mobile replacement form if needed
----------------------------------------------------------- */
@media (min-width: 1025px) {
  .site-header .header-main .header-search form {
    display: none !important;
  }
}
/* Remove native browser "X" clear button ONLY for our search bar */
.ggd-search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 0;
  width: 0;
}

/* HOMEPAGE STYLE */
.content-wrapper {
  margin-top: 40px !important;
  margin-bottom: 120px;
}
.woocommerce-page-header {
  padding-top: 40px !important;
  padding-bottom: 20px !important;
}
.alert-bar {
  background: #65b24d;
  color: #fff;
  text-align: center;
  padding: 2px 0 2px 0;
}
.hhwrap {
  display: block;
  width: 100%;
}
.home-hero {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: flex-start; /* align boxes at the top */
  flex-wrap: wrap;
}

.home-hero .box-red,
.home-hero .box-blue {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* align internal content at top */
  justify-content: flex-start;
  min-height: 300px;
}

.home-hero .box-red {
  flex: 2; /* wider box */
  min-height: 300px;
}

.home-hero .box-blue {
  flex: 1;
}

.home-hero img {
  width: 100%;
  height: auto;
  display: block; /* removes inline gap under images */
  vertical-align: top; /* ensures top alignment baseline */
  margin: 0; /* reset any spacing */
  padding: 0;
}

.home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  width: 100%;
  margin: 0 auto;
}

.home-cat {
  flex: 1 1 calc(50% - 16px); /* 2 per row, accounting for gap */
  background: grey;
  border-radius: 8px;
  padding: 20px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}
.hcb {
  background-color: #00000091;
  padding: 8px;
}
/* Optional color accents */
.home-cat:nth-child(1) {
  background-image: url(https://golfgripsdirect.co.uk/wp-content/uploads/2025/12/gripsets.webp);
  background-repeat: no-repeat;
  background-size: cover;
}
.home-cat:nth-child(2) {
  background-image: url(https://golfgripsdirect.co.uk/wp-content/uploads/2025/10/puttergrips.webp);
  background-repeat: no-repeat;
  background-size: cover;
}
.home-cat:nth-child(3) {
  background-image: url(https://golfgripsdirect.co.uk/wp-content/uploads/2025/10/bestsellers.webp);
  background-repeat: no-repeat;
  background-size: cover;
}
.home-cat:nth-child(4) {
  background-image: url(https://golfgripsdirect.co.uk/wp-content/uploads/2025/12/training.webp);
  background-repeat: no-repeat;
  background-size: cover;
}

/* Stack on mobile */
@media (max-width: 768px) {
  .home-hero {
    flex-direction: column;
  }
  .home-cat {
    flex: 0 0 100%;
  }
  .alert-bar {
    font-size: 14px;
    padding: 4px 0 4px 0;
  }
  .home-hero .box-red,
  .home-hero .box-blue {
    width: 100%;
  }
}
.box-red {
  min-height: 0px !important;
}
.page-id-95 .content-wrapper {
  margin-top: 0 !important;
  margin-bottom: 60px !important;
}
.botiga-dropdown-li {
  margin-right: 4px;
  margin-left: 0px;
}
#primary-menu a {
  padding: 10px 10px;
  color: #000 !important;
}
#primary-menu a:hover {
  background-color: #f0f0f0;
}

/* Category link container */
.wc-category-links {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  font-size: 14px;
  gap: 10px;
  padding: 10px 0;
  scrollbar-width: none;
  scrollbar-color: #ccc transparent;
}

/* Hide scrollbar on WebKit (Safari, Chrome) */
.wc-category-links::-webkit-scrollbar {
  height: 6px;
}
.wc-category-links::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* Each link */
.wc-category-link {
  background-color: #f0f0f0;
  color: #555;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Hover effect */
.wc-category-link:hover {
  background-color: #e0e0e0;
  color: #222;
}
.padme {
  padding: 20px 0 20px 0;
  width: 100%;
}
/* Homepage buying guide posts */
.horizontal-posts-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.horizontal-posts-container {
  display: flex;
  gap: 1.6rem;
  width: max-content;
}

.horizontal-post {
  flex: 0 0 auto;
  position: relative;
  width: 280px; /* adjust width as needed */
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}

.horizontal-post img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}
/* --- Featured Products Slider --- */
.featured-products-slider {
  padding: 40px 0;
  position: relative;
}

.featured-products-slider .section-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

/* Make product cards fit nicely inside slides */
.featured-products-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: auto !important;
}

/* Product card container */
.featured-products-slider ul.products li.product,
.featured-products-slider .product {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);

  /* Equal height setup */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 380px; /* adjust to suit your design */
}

/* Product image */
.featured-products-slider img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

/* Product link area */
.featured-products-slider .woocommerce-LoopProduct-link {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Product title */
.featured-products-slider .woocommerce-loop-product__title {
  font-size: 1rem !important;
  line-height: 1.3;
  margin: 10px 0 5px;
  min-height: 2.6em; /* consistent title height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* truncate long titles */
  -webkit-box-orient: vertical;
}

/* Price text */
.featured-products-slider .price {
  font-size: 0.9rem !important;
  margin-bottom: 8px;
}

/* Add to cart button aligned at bottom */
.featured-products-slider .button {
  margin-top: auto;
}

/* Swiper buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #333;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .featured-products-slider .swiper {
    overflow: visible;
  }

  .featured-products-slider .product {
    max-width: 85%;
  }
}

.post-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: color(srgb 1 1 1 / 0.42);
  color: #fff;
  text-align: center;
  padding: 0.75rem;
}

.post-title-overlay h3 {
  font-size: 1rem;
  margin: 0;
  line-height: 1.3;
}

/* Make links slideable on mobile */
@media (max-width: 768px) {
  .wc-category-links {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    padding-left: 15px;
  }
}
@media (max-width: 768px) {
  .woocommerce-tabs ul.tabs {
    display: none;
  }

  .wc-tab {
    display: none;
    padding: 15px;
    border: 1px solid #eee;
    border-top: none;
  }

  .accordion-title {
    padding: 15px;
    color: #000 !important;
    background: #f7f7f7;
    cursor: pointer;
    border: 1px solid #eee;
    margin: 0;
    font-weight: bold;
  }
}
#primary-menu a {
  color: #fff;
}
.hmtext {
  margin-bottom: -10px;
  padding: 0 10px;
}
.hmtext h1 {
  font-size: 30px;
  text-align: center;
}
/* Woocommerce page styling */
.product-gallery-summary.gallery-single .woocommerce-product-gallery {
  border: 1px solid grey;
}
#wps-slider-section .wps-product-image {
  border: 1px solid grey;
}

.flex-right {
  background: #1d184e;
  padding: 15px 25px 15px 25px;
  color: #fff !important;
  align-items: stretch;
  text-align: center;
}
.flex-right p {
  margin-bottom: 24px;
}
.flex-left {
  padding: 0;
}
.flex-left img {
  display: block;
  margin: 0 auto;
}
.flex-right h3 {
  color: #fff !important;
  margin-top: 10px !important;
}
.flex-right a {
  background: #fff;
  border-radius: 4px;
  color: #000;
  margin-top: 8px;
  padding: 12px;
  text-align: center;
  margin: 0 auto;
  display: inline-block;
  border: 2px solid #fff;
}
.flex-right a:hover {
  background: transparent;
  color: #fff;
}
/* FOOTER AREA */
.footer {
  background: #1d184e;
  color: #fff;
  padding: 30px 20px;
}
.newsll {
  background: #65b24d;
  padding-top: 12px;
  color: #fff;
  text-align: center;
}
.newshold {
  display: block;
  margin-top: -20px;
}
.newsign {
  display: inline-flex;
}
.nw-sub input[type="submit"] {
  width: 100%;
}
.newsll h4 {
  color: #fff;
  margin-bottom: 10px;
}
.newsll .uacf7-col-3 {
  margin-left: -30px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
}

.footer-column {
  flex: 1 1 22%;
  min-width: 200px;
  margin-bottom: 10px;
}

.footer-title {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 14px;
  cursor: pointer;
}

.footer-links {
  list-style: none;
  color: #000 !important;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0px;
  margin-left: 6px;
  padding-bottom: 0px !important;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  text-decoration: underline;
}
.end {
  color: #fff !important;
  font-size: 14px;
}
.end img {
  width: 40%;
  display: block;
  padding-bottom: 20px;
}
.sma {
  font-size: 10px;
  display: block;
  margin-top: -20px;
  padding-bottom: 30px;
}
.chevron {
  transition: transform 0.3s ease;
  display: none;
}
.ftt {
  background-color: #1d184e;
}
.copy {
  color: #ccc;
  font-size: 14px;
  text-align: right;
  width: 100%;
  display: block;
}
/* Accordion behavior on mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
  .newsign {
    display: block;
  }
  .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
  }
  .end img {
    margin: 0 auto;
  }
  .footer-column.active .footer-links {
    max-height: 500px; /* adjust depending on your content */
    opacity: 1;
    margin-top: 10px;
  }

  .footer-column.active .chevron {
    transform: rotate(180deg);
  }
  .chevron {
    transition: transform 0.3s ease;
    display: inline;
  }
}
@media (min-width: 1024px) {

  /* Limit hover activation to menu row only */
  .main-navigation > ul > li {
    position: relative;
  }

  /* Kill hover activation below the menu */
  .main-navigation > ul > li > ul.sub-menu {
    margin-top: 0;
  }

  /* Prevent dropdown from triggering when hovering content below */
  header.site-header *:not(.main-navigation):hover
  ~ .main-navigation ul li.menu-item-has-children > ul.sub-menu {
    display: none !important;
  }
}
@media (min-width: 1024px) {

  .main-navigation {
    padding-bottom: 0;
  }

  .main-navigation > ul {
    pointer-events: auto;
  }

}

