/*
Theme Name: Sultry Siren Child
Theme URI: https://sultry-siren.com
Description: Child theme for custom WooCommerce layouts
Author: Corsair
Author URI: https://sultry-siren.com
Template: storefront
Version: 1.21
Text Domain: sultry-siren-child
*/

/* Make the size-chart image fill the content area */
.product-size-chart img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;  /* a bit of breathing room */
}

/* Optional: cap how wide it ever gets */
.product-size-chart {
  max-width: 700px;     /* tweak to taste */
  margin-left: auto;
  margin-right: auto;
}

/* Footer Menu styling */
.footer-menu {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5em;
}

.footer-menu-items {
  list-style: none;
  display: flex;
  gap: 1.5em;
  padding: 0;
  margin: 0;
}

.footer-menu-items li a {
  color: #777;
  text-decoration: none;
  font-size: 0.9em;
}

.footer-menu-items li a:hover,
.footer-menu-items li a:focus {
  color: #000;
}

/* Stop the header from tiling on extra-wide (UHD) displays */
header#masthead.site-header,
.custom-header-media .wp-custom-header {
  background-repeat:   no-repeat   !important;
  background-size:     cover        !important;
  /* anchor the crop at the top, so the bottom of the image is always visible */
  background-position: top center  !important;
  /* give yourself more vertical “canvas” so less is cropped off */
  min-height:          350px        !important; 
  /* or use “vh” units if you prefer it scale to the viewport: */
  /* min-height:         30vh         !important; */
}


/* ======================== */
/* GLOBAL HDR ENFORCEMENT */
/* ======================== */
img, video {
    color-profile: rec2020;
    image-rendering: crisp-edges;
}

/* ======================== */
/* HEADER Z-INDEX FIX */
/* ======================== */
#masthead.site-header {
    position: relative;
    z-index: 1000;
}

/* targets only your wishlist page’s plugin header */
body.page-id-4613 .tinv-header,
body.page-slug-wishlist .tinv-header {
  display: none !important;
}

/* ─── HEADER: preserve full aspect‐ratio & show the bottom of the image ─── */
/* Assuming your original header image is 1950 × 500px, that’s a 500/1950 ≃ 25.64% height-to-width ratio. */

header#masthead.site-header,
.custom-header-media .wp-custom-header {
  /* 1) Make the header height scale to 25.64% of the viewport width */
  min-height: 25.64vw !important;

  /* 2) Cover the container but align to the bottom of the image */
  background-size: cover        !important;
  background-position: bottom center !important;
}

/* ─── RESET ANY LEFTOVER ABSOLUTE POSITIONING ─────────────────────────── */
header#masthead .site-branding,
header#masthead .main-navigation,
header#masthead .header-toggles {
  position: static !important;
  top:      auto    !important;
  bottom:   auto    !important;
  left:     auto    !important;
  right:    auto    !important;
  transform:none    !important;
  margin:   0       !important;
  z-index:  auto    !important;
}

/* ─── MAKE HEADER A FLEX CONTAINER ────────────────────────────────────── */
header#masthead .col-full {
  display:        flex    !important;
  justify-content: space-between !important;
  align-items:     center  !important;
  max-width:       none    !important;
  width:           100%    !important;
  padding:         0 1rem  !important; /* 1rem side-gutters */
}

/* ─── LOGO: LEFT SIDE ───────────────────────────────────────────────────── */
header#masthead .site-branding {
  margin:   1rem 0 !important;  /* vertical breathing room */
  flex:     0 0 auto; 
}

/* ─── NAV: CENTER (or left-align as you prefer) ─────────────────────────── */
header#masthead .main-navigation {
  margin:   0 2rem !important;  /* space around menu */
  flex:     1 1 auto;           /* grow to fill center */
}

/* ensure each link is fully clickable */
header#masthead .main-navigation .menu > li > a {
  display:    inline-block !important;
  padding:    0.5rem 1rem  !important;
  z-index:    10           !important; 
}

/* ─── SEARCH & CART: RIGHT SIDE ─────────────────────────────────────────── */
header#masthead .header-toggles {
  display:      flex    !important;
  align-items:  center  !important;
  margin:       1rem 0 !important;
  flex:         0 0 auto;
}

/* if your cart lives in .site-header-cart instead, target that */
header#masthead .site-header-cart {
  margin-left: 1rem !important;
}

/* make sure the icons are on top and clickable */
header#masthead .header-toggles *,
header#masthead .site-header-cart * {
  z-index: 10 !important;
  position: relative !important;
}

/* ─── 1) Reset any “display:none” or static pos on header toggles ───────── */
header#masthead .header-toggles {
  position: static    !important;
  display:  flex      !important;  /* ensure the wrapper shows & is flex */
  align-items: center !important;
  order: 3            !important;  /* logo=1, menu=2, toggles=3 */
  margin: 0 1rem      !important;  /* side-gutters */
  visibility: visible !important;
  opacity: 1          !important;
}

/* ─── 2) Make sure the cart icon itself shows ───────────────────────────── */
header#masthead .site-header-cart {
  display:   flex     !important;  
  margin:    0        !important;
  order:     4        !important;  /* after search (in the same toggles wrapper) */
  visibility: visible !important;
  opacity:    1       !important;
}

/* ─── 3) Force the two icons inside to sit in a row with spacing ───────── */
header#masthead .header-toggles > * {
  flex:         0 0 auto !important;
  margin-left:  0.75rem !important; /* space between search & cart */
  z-index:      20       !important; /* above header image */
  position:     relative !important;
}

/* Force the cart link to be flex so icon + count can get a gap */
header#masthead .site-header-cart a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 20px !important;    /* 20px between the icon and the number */
}
/*  Nudge the basket count up to line up with the icon */
header#masthead .site-header-cart a .count {
  position: relative !important;
  top:      5px       !important;  /* tweak 2px / 4px if needed */
}

header#masthead .main-navigation a:focus,
header#masthead .site-search a:focus,
header#masthead .site-header-cart a:focus,
header#masthead .main-navigation a:active,
header#masthead .site-search a:active,
header#masthead .site-header-cart a:active {
  outline: none !important;
  box-shadow: none !important;
}

/* 1. Remove the default focus outline everywhere */
:focus {
  outline: none !important;
}

/* 2. Specifically kill Firefox’s inner focus ring on buttons/inputs */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* 3. And remove Firefox’s outer focus ring too */
:-moz-focusring {
  outline: none;
}

