/*
Theme Name: Storefront Blank Child Theme
Theme URI: http://www.pootlepress.com/shop/free-blank-woothemes-storefront-child-theme/
Description: Pootlepress child theme for the Storefront theme.
Author: PootlePress
Author URI: http://www.pootlepress.com
Template: storefront
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storefront-child
*/
/* --------------------------------------------------
 * Global Defaults and Layout
 * -------------------------------------------------- */

body,
.home {
  max-width: 2000px;
  margin: 0 auto !important;
}

.page-template-template-homepage .entry-content,
.page-template-template-homepage .entry-header {
  max-width: 100%;
}

a {
  text-decoration: none !important;
}

a:focus {
  outline-color: transparent !important;
}
/* Target ONLY pages using the Full Width Template and use negative margin to pull content up */

/* 1. Eliminate the remaining space ABOVE the page title/content area */
.page-template-template-fullwidth .site-main {
    /* Sets the top margin to a negative value to pull the content section up */
    margin-top: -30px; 
    /* Completely removes any default internal top padding */
    padding-top: 0px; 
}


/* --------------------------------------------------
 * Header and Logo
 * -------------------------------------------------- */
@media screen and (min-width: 768px) {
  .site-header .site-branding img, 
  .site-header .site-logo-anchor img, 
  .site-header .site-logo-link img {
    width: 240px !important;
    height: auto;
    max-width: 240px;
  }
}

@media (max-width: 1025px) {
  .secondary-navigation {
    display: none;
  }
}
/* reserve space for mobile menu to eliminate CLS */
@media (max-width: 1024px) {
  .mega-toggle-blocks-right {
    min-height: 48px;
    min-width: 48px;
    display: inline-block;
  }
}
/* CLS - fix  waiting to load menu until JS finished */
body:not(.js-ready) #mega-menu-primary {
  visibility: hidden;
  opacity: 0;
  transition: none !important;
}

body.js-ready #mega-menu-primary {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s ease-in;
}


/* reduce black space under header on mobile */
@media (max-width: 767px) {
  header.site-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* If using Storefront */
  .storefront-primary-navigation {
    margin-bottom: 0 !important;
  }

  /* Adjust spacing for delivery message */
  .site-header + .site-main .entry-header {
    margin-top: 1.5rem !important;
  }

  /* Specifically fix "Shop Now" header overlap */
  .entry-header h1, 
  .entry-header h2, 
  .entry-title {
    margin-top: 1.5rem !important;
    position: relative;
    z-index: 1;
  }
}


/* stop CLS by reserving space for woocommerce category banners */
.wbm_banner_image.banner {
  aspect-ratio: 1200 / 280;
  width: 100%;
  height: auto;
  display: block;
}
.wbm_banner_image.banner img {
  width: 100%;
  height: auto;
  display: block;
}
/* ✅ Prevent banner space on pages like checkout, cart, and search results */
body.woocommerce-checkout .wbm_banner_image.banner,
body.woocommerce-cart .wbm_banner_image.banner,
body.search .wbm_banner_image.banner {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --------------------------------------------------
 * Typography and Headings
 * -------------------------------------------------- */

h1 {
  text-align: center;
  font-weight: bold;
}

h4 {
  font-size: 22px;
}

/* --------------------------------------------------
 * Home Page Fixes
 * -------------------------------------------------- */

.home div.content-area {
  margin-top: -105px !important;
}
/* Hide final gift card image on homepage for mobile so 8 options vs 9 */
@media screen and (max-width: 767px) {
 body.home .my-homepage-navigation li.kadence-blocks-gallery-item:nth-last-child(2) {
    display: none;
  }
}
/* Hide Shop by Brand section on the homepage */
.home .storefront-woocommerce-brands { display: none; }


/* --------------------------------------------------
 * Fix Layout Issues on various resolutions (mainly iPads in portrait mode)
 * -------------------------------------------------- */
/* ===== For MOBILE devices (wpf-is-mobile) bigger or equal to 768px Stack content ===== */
@media (min-width: 768px)  {
  body.wpf-is-mobile.archive.tax-product_cat .content-area,
  body.wpf-is-mobile.archive.tax-pwb-brand .content-area,
  body.wpf-is-mobile.archive.tax-product_cat .widget-area,
  body.wpf-is-mobile.archive.tax-pwb-brand .widget-area {
    width: 100%;
    float: none;
    clear: both;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body.wpf-is-mobile.archive.tax-product_cat .widget-area,
  body.wpf-is-mobile.archive.tax-pwb-brand .widget-area {
    margin-top: 40px;
  }

  body.wpf-is-mobile .storefront-sticky-add-to-cart {
    max-width: 100%;
  }
}
/* ===== For Desktop devices (wpf-non-mobile) between 768px and 1280px: Make Product Grid 3 across, and
 *  NB: This goes with an Fix to woo Product filter plugin
 * Edit wp-content/plugins/woo-product-filter/modules/woofilters/css/move.sidebar.css Go to line 1. make max-width = 767px 
 * check this file does not exist in our child theme
 * "fit" the sidebar and content area nicely together ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Sidebar on the left */
  body.wpf-non-mobile.archive.tax-product_cat .widget-area,
  body.wpf-non-mobile.archive.tax-pwb-brand .widget-area {
    width: 28%;
    float: left;
    box-sizing: border-box;
  }
  /* Content on the right */
  body.wpf-non-mobile.archive.tax-product_cat .content-area,
  body.wpf-non-mobile.archive.tax-pwb-brand .content-area {
    width: 67%;
    float: right;
    box-sizing: border-box;
  }
  /* Make product grid 3 columns instead of 4 */
  body.wpf-non-mobile ul.products.columns-4 {
    display: flex;
    flex-wrap: wrap;
    gap: 2%; /* Adjust as needed for spacing */
  }
  body.wpf-non-mobile ul.products.columns-4 li.product {
    width: 31.33% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
}

/* --------------------------------------------------
 * WooCommerce : Stars, Tabs, Prices, Messages
 * -------------------------------------------------- */

.star-rating span:before,
.star-rating::before,
p.stars a,
p.stars a:hover:before,
p.stars a:before {
  color: #ffbf00 !important;
  font-weight: 900 !important;
}

.single-product .woocommerce-Price-amount {
  font-size: 20px;
}

.custom-message-instock {
  font-weight: bold;
  color: #006400;
}

.below-header {
  text-align: center;
  font-size: 17px;
  margin-top: -10px;
  margin-bottom: -10px;
}

/* remove default product sorting */
form.woocommerce-ordering {
    display: none !important;
}

/* --------------------------------------------------
 * WooCommerce: Mobile Fixes and Layout
 * Includes 2 column product display on mobile
 * -------------------------------------------------- */

@media (max-width: 767px) {
  .single-product div.product {
    overflow: visible;
  }

  ul.products li.product {
    width: 48%;
    float: left;
    clear: both;
  }

  ul.products li.product:nth-child(2n) {
    clear: none;
    float: right;
  }
}

//* --------------------------------------------------
 * WooCommerce: Horizontal Tabs Styling
 * -------------------------------------------------- */

/* === Product Tabs === */
.product .woocommerce-tabs ul.tabs {
    width: 100%;
    float: none;
    margin: 0 0 1.618em;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.618em;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow: visible;
    position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    position: absolute;
    content: '';
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 1px solid #d3ced2;
    border-radius: 4px 4px 0 0;
    display: block;
    flex: 0 0 auto;
    position: relative;
    z-index: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    z-index: 2;
    border-bottom-color: #777;
    background-color: #ebe9eb;
    border: 1px solid #555;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: .5em 1em;
    color: #515151;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: inherit;
    text-shadow: inherit;
    font-weight: bold;
}

.woocommerce .wc-tabs li a:focus,
.ui-state-focus:focus {
    outline: none !important;
}

.ui-tabs-anchor:active,
.ui-tabs-anchor:focus {
    outline: none !important;
}

/* now make full width */
.product .woocommerce-tabs .panel {
    width: 100%;
}

/* 1. Hide all panels by default using a "weaker" selector than the active one */
.woocommerce div.product .woocommerce-tabs .panel {
    display: none;
}

/* 2. Show the first panel on load (prevents the blank space) */
.woocommerce div.product .woocommerce-tabs .panel:first-of-type {
    display: block;
}

/* 3. Allow the JS to show the panel you click on */
/* We use !important here specifically to beat the "hide" rule above */
.woocommerce div.product .woocommerce-tabs .panel[style*="display: block"],
.woocommerce div.product .woocommerce-tabs .panel.active {
    display: block !important;
}
/* Remove Storefront arrow on active tab */
.woocommerce-tabs ul.tabs li.active::after {
    content: none !important;
}
@media (max-width: 767px) {
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
        gap: 6px;
        overflow: visible;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        white-space: nowrap;
        padding: 0.5em 0.9em;
        font-size: 16px;
        line-height: 1.2;
    }
}
/* ==========================================
   Stable WooCommerce product gallery
   - no slider
   - first image = main image
   - remaining images = thumbnails
   ========================================== */

/* Keep Woo gallery visible and stop fade/transition side effects */
.single-product div.product .woocommerce-product-gallery {
  opacity: 1 !important;
  transition: none !important;
}

/* Lay out the wrapper as:
   row 1 = full width main image
   row 2+ = thumbnails */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: flex-start !important;
}

/* Default every gallery item to thumbnail-sized */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
  width: calc(20% - 8px) !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* First gallery item becomes the main image */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
  width: 100% !important;
}

/* Make links and images behave like normal blocks */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Thumbnail styling */
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) img {
  border: 1px solid #ddd !important;
  cursor: pointer !important;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) img:hover {
  border-color: #666 !important;
}

/* Hide Woo zoom overlay image because zoom is disabled */
.single-product div.product .woocommerce-product-gallery .zoomImg {
  display: none !important;
}

/* Mobile: keep same thumbnail grid unless you want 3-across instead */
@media (max-width: 767px) {
  .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
    width: calc(20% - 8px) !important;
  }

  .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child {
    width: 100% !important;
  }
}
/* --------------------------------------------------
 * Kadence Gallery Hover Zoom
 * -------------------------------------------------- */

.kb-gallery-ul .kadence-blocks-gallery-item,
.kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner {
  overflow: visible;
}

.kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner img {
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .kb-gallery-ul .kadence-blocks-gallery-item .kadence-blocks-gallery-item-inner img:hover {
    transform: none;
  }
}


/* --------------------------------------------------
 * New Badge Styling
 * -------------------------------------------------- */

.woocommerce ul.products li.product .new-badge.onsale {
  background: #d1010e;
  color: #fff !important;
  font-weight: 600;
  text-transform: capitalize;
  font-size: 1.5em;
  border-radius: 10px;
  min-width: 4.5em;
  min-height: 1.8em;
  line-height: 1.8em;
  padding: 0.3em 0.5em;
  position: absolute;
  text-align: center;
  top: 0.5em;
  left: 0.5em;
}

@media (max-width: 1400px) and (min-width: 601px) {
  .woocommerce ul.products li.product .new-badge.onsale {
    font-size: 1.25em;
    min-width: 4em;
    padding: 0 0.4em;
  }
}

@media (max-width: 600px) {
  .woocommerce ul.products li.product .new-badge.onsale {
    font-size: 1em;
    min-width: 3em;
    padding: 0 0.3em;
  }
}

/* --------------------------------------------------
 * Breadcrumb Styling (Rankmath fix)
 * -------------------------------------------------- */

.storefront-breadcrumbs {
  width: 100%;
  max-width: var(--storefront-content-width, 2200px);
  margin: 0 auto;
  padding: 5px 20px;
}


@media (max-width: 767px) {
  .storefront-breadcrumbs {
    padding: 5px 15px !important; /* Optional: add horizontal spacing */
  }
}
	

/* --------------------------------------------------
 * Lazy Load Enhancements
 * -------------------------------------------------- */

img[data-lazyloaded] {
  opacity: 0;
}

img.litespeed-loaded {
  -webkit-transition: opacity 0.5s linear 0.2s;
  -moz-transition: opacity 0.5s linear 0.2s;
  transition: opacity 0.5s linear 0.2s;
  opacity: 1;
}

/* --------------------------------------------------
 * Gift Card and My Account Styling
 * -------------------------------------------------- */

body.woocommerce-account ul li.woocommerce-MyAccount-navigation-link--pw-gift-card-balance a:before {
  content: "\f06b";
}

@media (min-width: 768px) {
  .page-template-template-fullwidth-php .woocommerce-MyAccount-navigation {
    float: left;
    margin-right: 4.347826087%;
  }

  .page-template-template-fullwidth-php .woocommerce-MyAccount-content {
    float: right;
    margin-right: 0;
  }
}
/* --------------------------------------------------
 * Basket and Checkout Enhacements
 * -------------------------------------------------- */

/* Reduce the width of the checkout and Basket pages on very wide screens */

body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .site,
body.woocommerce-checkout .wc-block-checkout {
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}


@media (max-width: 767px) {

  /* Add side padding to Cart block summary/toggle rows */
  .wc-block-cart .wc-block-components-totals-coupon,
  .wc-block-cart .wc-block-components-totals-item,
  .wc-block-cart .wc-block-components-panel__button {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

}

/* Block checkout: keep visible */
.wp-block-woocommerce-checkout {
    opacity: 1;
    transition: none;
}
/* =========================================
   WooCommerce Checkout Block
   ========================================= */

/* Return to Basket link */
.wc-block-components-checkout-return-to-cart-button {
    font-size: 20px;
    font-weight: 600;
    color: rgb(1, 19, 140) !important;
}

.wc-block-components-checkout-return-to-cart-button svg {
    fill: rgb(1, 19, 140);
}

.wc-block-components-checkout-return-to-cart-button:hover {
    color: rgb(1, 19, 140) !important;
    text-decoration: underline;
}

.wc-block-components-checkout-return-to-cart-button:hover svg {
    fill: rgb(1, 19, 140);
}

/* Section headings */
.wc-block-components-title {
    font-size: 22px;
    font-weight: 600;
}

/* Order summary / sidebar */
.wc-block-components-order-summary {
    padding: 20px;
}

.wc-block-components-sidebar {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 6px;
}

/* Buttons */
.wc-block-components-button,
.wc-block-checkout__login-prompt {
    display: inline-block;
    min-width: 220px;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    background-color: #333333;
    color: #ffffff !important;
    font-size: 16px;
    line-height: 25.888px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.wc-block-components-button:hover,
.wc-block-checkout__login-prompt:hover {
    background-color: #444444;
    color: #ffffff !important;
}

/* Place Order button full width */
.wc-block-components-checkout-place-order-button {
    width: 100%;
}
/* Fix payment error notice width on wide screens */
@media (min-width: 768px) {

  body.woocommerce-checkout .wc-block-components-notices {
      width: 100% !important;
      max-width: 1600px !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding-left: 20px !important;
      padding-right: 20px !important;
      box-sizing: border-box !important;
  }

  body.woocommerce-checkout .wc-block-store-notice.wc-block-components-notice-banner {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
  }

  body.woocommerce-checkout .wc-block-components-notice-banner__content {
      min-width: 0 !important;
      white-space: normal !important;
      overflow-wrap: anywhere !important;
      word-break: break-word !important;
  }

}
/* =========================================
   Mobile
   ========================================= */
@media (max-width: 767px) {

    /* Hide mobile order summary heading/toggle */
    .wc-block-components-order-summary__button,
    .wc-block-components-checkout-order-summary__title,
    .wc-block-components-checkout-order-summary__title-text {
        display: none !important;
    }

    /* Stack contact heading and login area */
    .wc-block-checkout__contact-fields {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .wc-block-checkout__contact-fields .wc-block-components-title,
    .wc-block-checkout__login-message {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        clear: both !important;
    }

    .wc-block-checkout__contact-fields .wc-block-components-title {
        margin: 0 0 12px 0 !important;
    }

    .wc-block-checkout__login-message {
        margin: 0 0 16px 0 !important;
    }

    .wc-block-checkout__login-prompt {
        display: block !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* Remove side padding on mobile checkout layout */
    body.woocommerce-checkout .site,
    .wc-block-components-sidebar-layout {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .wc-block-components-sidebar {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Forminator form colours */
.forminator-ui .forminator-error-message {
  background: transparent !important;
  color: #d1010e !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Keep the intl-tel-input dropdown the same width as the field */
/* Forminator telephone # rule */
.iti { position: relative; width: 100%; }
.iti .iti__country-list {
  width: auto !important;        /* ignore any global ul width */
  min-width: 100% !important;    /* at least input width */
  max-width: 100% !important;    /* no wider than input */
  box-sizing: border-box;
  max-height: 260px;             /* tidy scroll if long */
  overflow-y: auto;
  z-index: 999999;               /* stay above headers/modals */
}
/* If a parent wrapper is clipping the dropdown */
.forminator-field, .forminator-row { overflow: visible !important; }


.tp-scroll > table td,
.tp-scroll > table th {
  white-space: nowrap;
  /* optional: add a bit of padding so it looks nicer while scrolling */
  padding: .5rem .75rem;
}

/* Ensure parent containers don't clip scroll bars */
.entry-content { overflow: visible !important; }

/* Rentals page – prevent CLS from late-loading Forminator form */
.rentals-form-shell {
  min-height: 580px;      /* good for phone-sized viewports */
  display: block;
}

@media (min-width: 768px) {
  .rentals-form-shell {
    min-height: 720px;
    max-width: 800px;
    margin: 0 auto;
  }
}


/* Makes TablePress tables responsive */
/* Combined with code snippet in footer */

/* Scrollable wrapper */
.tp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  display: block;
}

/* Let the table be wider than the viewport if it needs to */
.tp-scroll > table {
  width: max-content;       /* expands to its intrinsic width */
  min-width: 100%;          /* but never smaller than the screen */
  border-collapse: collapse;
}

/* Keep cells on one line so columns don't squash */
.tp-scroll > table td,
.tp-scroll > table th {
  white-space: nowrap;
  /* optional: add a bit of padding so it looks nicer while scrolling */
  padding: .5rem .75rem;
}

/* Ensure parent containers don't clip scroll bars */
.entry-content { overflow: visible !important; }


/* ========== formats Social and email buttons on Footer ========== */
/* Layout */
.wsw-footer-social {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-start !important; /* force left alignment in widget areas */
  flex-wrap: wrap;
  margin: .75rem 0;
}

/* Icon chip (circle hit area) */
.wsw-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;                 /* chip size; adjust if you like */
  height: 36px;
  border-radius: 9999px;       /* circle */
  background: transparent;     /* black footer shows through */
  color: #fff;                 /* icons render white via currentColor */
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, opacity .15s ease;
}

/* Icon-only (even if labels="yes" sneaks in) */
.wsw-social-link span { display: none !important; }

/* Make SVGs inherit link color (white by default) */
.wsw-footer-social svg { display: block; }
.wsw-footer-social svg path,
.wsw-footer-social svg * { fill: currentColor; }

/* Hover/focus: darker grey chip, keep icon white for contrast */
.wsw-social-link:hover,
.wsw-social-link:focus {
  background: #444;  /* darker grey */
  color: #fff;       /* keep icon white */
  transform: translateY(-1px);
}

/* Keyboard focus visibility */
.wsw-social-link:focus-visible {
  outline: 2px solid #888;
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .wsw-social-link { transition: none; }
}
.wsw-footer-social { gap: 1.2rem; }

/* fixes funny slider on bottom of wp-reviews plugin */
.rpi { overflow-x: hidden; }



