/*
 * EEREE V11 – structural Skinners-inspired storefront pass
 * Uses EEREE content/branding, follows the reference site's layout rhythm:
 * compact header, campaign masonry, split product discovery, mobile snap rails.
 */

:root {
  --v11-ink: #0d0f12;
  --v11-blue: #1e509c;
  --v11-blue-dark: #153c77;
  --v11-bg: #ffffff;
  --v11-soft: #f4f4f1;
  --v11-line: #e5e5e2;
  --v11-radius: 18px;
  --v11-gap: 16px;
  --v11-container: 1400px;
}

html, body,
#header,
#index {
  font-family: "Albert Sans", "Inter", sans-serif !important;
}

/* ---------- HEADER: compact, one-line, utility icons ---------- */
@media (min-width: 992px) {
  #header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
  }

  #header .header-nav { display: none !important; }
  #header .header-top { padding: 0 !important; }
  #header .header-shell {
    width: calc(100% - 40px);
    max-width: var(--v11-container);
    margin: 0 auto;
    padding: 0 !important;
  }
  #header .header-top__desktop {
    min-height: 78px !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center !important;
    gap: 34px;
    transform: none !important;
  }
  #header #_desktop_logo,
  #header .header-top__menu,
  #header .header-top__actions {
    transform: none !important;
    margin: 0 !important;
  }
  #header #_desktop_logo { gap: 14px !important; }
  #header #_desktop_logo .logo {
    max-width: 164px !important;
    max-height: 50px !important;
  }
  #header .home-btn-link {
    padding: 9px 12px;
    border: 1px solid var(--v11-line);
    border-radius: 999px;
    color: #555b63;
    font-size: 10px;
    letter-spacing: .035em;
  }
  #header .header-top__menu {
    min-width: 0;
    display: flex;
    justify-content: center;
  }
  #header #top_menu_container {
    width: auto !important;
    border: 0 !important;
    margin: 0 !important;
  }
  #header .header-top .menu > ul#top-menu {
    min-height: 78px !important;
    gap: clamp(18px, 2vw, 32px) !important;
  }
  #header .header-top a[data-depth="0"] {
    min-height: 78px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }
  #header .header-top a[data-depth="0"]::after { display: none !important; }
  #header .header-top__actions { gap: 0 !important; }
  #header .eeree-search-toggle,
  #header .header-top__wishlist,
  #header .user-info > a,
  #header .blockcart > .header > a,
  #header .blockcart > .header > i {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--v11-ink) !important;
    box-shadow: none !important;
  }
  #header .eeree-search-toggle:hover,
  #header .header-top__wishlist:hover,
  #header .user-info > a:hover,
  #header .blockcart > .header > a:hover {
    background: var(--v11-soft) !important;
  }
  #header .eeree-search-panel {
    left: 50% !important;
    right: auto !important;
    width: min(760px, calc(100vw - 40px)) !important;
    transform: translate(-50%, -12px) !important;
    padding: 14px !important;
    border: 1px solid var(--v11-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 22px 60px rgba(17,19,24,.14) !important;
  }
  #header .eeree-search-panel.is-open {
    transform: translate(-50%, 0) !important;
  }
  #header .eeree-search-panel .input-search,
  #header .eeree-search-panel input[type="text"],
  #header .eeree-search-panel input[type="search"] {
    height: 52px !important;
    padding: 0 58px 0 18px !important;
    border: 1px solid var(--v11-line) !important;
    border-radius: 10px !important;
    background: #fff !important;
    font-size: 15px !important;
    box-shadow: none !important;
  }
}

/* ---------- HOMEPAGE PRIMARY: campaign masonry ---------- */
#index #slideshow { display: none !important; }
#index .displayWPBannerTop { display: none !important; }

#index .eeree-campaigns {
  padding: 18px 20px 64px;
  background: var(--v11-bg);
}
#index .eeree-campaigns__inner {
  width: 100%;
  max-width: var(--v11-container);
  height: clamp(520px, 46vw, 680px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--v11-gap);
}
#index .eeree-campaign {
  min-width: 0;
  min-height: 0;
}
#index .eeree-campaign--1 { grid-column: 1; grid-row: 1 / span 2; }
#index .eeree-campaign--2 { grid-column: 2; grid-row: 1; }
#index .eeree-campaign--3 { grid-column: 2; grid-row: 2; }
#index .eeree-campaign__link,
#index .eeree-campaign__media {
  width: 100%;
  height: 100%;
  display: block;
}
#index .eeree-campaign__media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--v11-radius);
  background: #ddd;
}
#index .eeree-campaign__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
#index .eeree-campaign__shade {
  position: absolute;
  inset: 32% 0 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.08) 22%, rgba(0,0,0,.72) 100%);
  pointer-events: none;
}
#index .eeree-campaign__content {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 2.4vw, 40px);
  right: clamp(24px, 2.4vw, 40px);
  bottom: clamp(24px, 2.4vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
#index .eeree-campaign__headline {
  max-width: 92%;
  margin: 0;
  color: #fff;
  font-family: "Albert Sans", sans-serif !important;
  font-size: clamp(34px, 3.25vw, 54px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 1px 14px rgba(0,0,0,.12);
}
#index .eeree-campaign--2 .eeree-campaign__headline,
#index .eeree-campaign--3 .eeree-campaign__headline {
  max-width: 80%;
  font-size: clamp(27px, 2.4vw, 39px);
}
#index .eeree-campaign__button {
  min-width: 164px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#index .eeree-campaign__link:hover .eeree-campaign__image { transform: scale(1.025); }
#index .eeree-campaign__link:hover .eeree-campaign__button {
  border-color: #fff;
  background: #fff;
  color: var(--v11-ink);
}

/* ---------- PRODUCT DISCOVERY: intro left, clean 2x2 products right ---------- */
#index .eeree-featured-v11 {
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 88px 20px 96px;
  background: var(--v11-soft);
}
#index .eeree-featured-v11__inner {
  width: 100%;
  max-width: var(--v11-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.65fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}
#index .eeree-featured-v11__intro {
  position: sticky;
  top: 116px;
  padding-top: 8px;
}
#index .eeree-featured-v11__eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #646a70;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#index .eeree-featured-v11 .products-section-title {
  margin: 0;
  color: var(--v11-ink);
  font-family: "Albert Sans", sans-serif !important;
  font-size: clamp(40px, 4vw, 64px) !important;
  font-weight: 700 !important;
  line-height: .98 !important;
  letter-spacing: -.055em !important;
  text-align: left !important;
  text-transform: none !important;
}
#index .eeree-featured-v11__text {
  max-width: 360px;
  margin: 24px 0 28px;
  color: #555b62;
  font-size: 16px;
  line-height: 1.55;
}
#index .eeree-featured-v11__button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1.5px solid var(--v11-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--v11-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
#index .eeree-featured-v11__button:hover {
  background: var(--v11-ink);
  color: #fff;
}
#index .eeree-featured-v11__products {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 44px 18px;
}
#index .eeree-featured-v11__products .product-miniature {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
#index .eeree-product-card-v11 .thumbnail-container {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#index .eeree-product-card-v11 .left-block,
#index .eeree-product-card-v11 .product-thumbnail {
  overflow: hidden;
  border-radius: 14px !important;
  background: #fff !important;
}
#index .eeree-product-card-v11 .product-thumbnail img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  display: block;
  object-fit: contain !important;
  transition: transform .35s ease;
}
#index .eeree-product-card-v11:hover .product-thumbnail img { transform: scale(1.018); }
#index .eeree-product-card-v11 .center-block {
  padding: 14px 0 0 !important;
}
#index .eeree-product-card-v11 .product-description {
  padding: 0 !important;
  background: transparent !important;
}
#index .eeree-product-card-v11 .product-title {
  margin: 0 0 5px !important;
  font-family: "Albert Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  text-transform: none !important;
}
#index .eeree-product-card-v11 .product-title a { color: var(--v11-ink) !important; }
#index .eeree-product-card-v11 .product-price-and-shipping {
  text-align: left !important;
}
#index .eeree-product-card-v11 .product-price-and-shipping .price {
  color: var(--v11-ink) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}
#index .eeree-product-card-v11 .right-block,
#index .eeree-product-card-v11 .product-actions,
#index .eeree-product-card-v11 .eeree-product-arrow {
  display: none !important;
}
#index .eeree-product-card-v11 .product-flags {
  top: 12px !important;
  left: 12px !important;
}
#index .eeree-product-card-v11 .product-flag {
  border-radius: 999px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* ---------- EDITORIAL CONTINUATION ---------- */
#index .displayHomeSection {
  padding: 96px 20px !important;
  background: #fff !important;
}
#index .displayHomeSection > .container {
  width: 100% !important;
  max-width: var(--v11-container) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
#index .displayHomeSection .eeree-section-heading__eyebrow {
  color: #646a70 !important;
  font-size: 12px !important;
  letter-spacing: .08em !important;
}
#index .displayHomeSection__title {
  font-family: "Albert Sans", sans-serif !important;
  font-size: clamp(40px, 4vw, 60px) !important;
  font-weight: 700 !important;
  letter-spacing: -.05em !important;
}

/* ---------- TABLET ---------- */
@media (min-width: 768px) and (max-width: 1199px) {
  #index .eeree-campaigns__inner { height: clamp(480px, 58vw, 610px); }
  #index .eeree-featured-v11__inner {
    grid-template-columns: 1fr 2fr;
    gap: 36px;
  }
  #index .eeree-featured-v11__intro { position: static; }
}

/* ---------- MOBILE: horizontal campaign rail, product rail ---------- */
@media (max-width: 767px) {
  #header { position: sticky; top: 0; z-index: 1000; }
  #index .eeree-campaigns {
    padding: 12px 0 48px;
    overflow: hidden;
  }
  #index .eeree-campaigns__inner {
    width: 100%;
    height: auto;
    max-width: none;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 14px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  #index .eeree-campaigns__inner::-webkit-scrollbar { display: none; }
  #index .eeree-campaign {
    flex: 0 0 84vw;
    min-width: 84vw;
    height: auto;
    scroll-snap-align: center;
  }
  #index .eeree-campaign__media {
    aspect-ratio: .9 / 1;
    border-radius: 16px;
  }
  #index .eeree-campaign__content {
    left: 22px;
    right: 22px;
    bottom: 22px;
    gap: 14px;
  }
  #index .eeree-campaign__headline,
  #index .eeree-campaign--2 .eeree-campaign__headline,
  #index .eeree-campaign--3 .eeree-campaign__headline {
    max-width: 92%;
    font-size: clamp(30px, 9vw, 42px);
  }
  #index .eeree-campaign__button {
    min-width: 150px;
    min-height: 44px;
    padding: 0 20px;
    font-size: 13px;
  }

  #index .eeree-featured-v11 {
    padding: 64px 0 72px;
    overflow: hidden;
  }
  #index .eeree-featured-v11__inner {
    display: block;
  }
  #index .eeree-featured-v11__intro {
    position: static;
    padding: 0 18px;
  }
  #index .eeree-featured-v11 .products-section-title {
    font-size: 42px !important;
  }
  #index .eeree-featured-v11__text { margin: 18px 0 22px; }
  #index .eeree-featured-v11__products {
    margin-top: 34px !important;
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    padding: 0 18px 4px !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  #index .eeree-featured-v11__products::-webkit-scrollbar { display: none; }
  #index .eeree-featured-v11__products .product-miniature {
    flex: 0 0 72vw;
    min-width: 72vw !important;
    scroll-snap-align: start;
  }
  #index .displayHomeSection { padding: 72px 14px !important; }
}


/* V12 — keep the campaign hero/slider above the Skinners-style masonry */
#index #slideshow {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Give the editorial campaign grid a little breathing room after the hero. */
#index .eeree-campaigns {
  padding-top: 22px;
}

@media (max-width: 767px) {
  #index .eeree-campaigns {
    padding-top: 12px;
  }
}


/* V13: perfectly centered carousel arrows */
#index #carousel .carousel-control,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-prev,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-next {
  position: absolute !important;
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  color: #111 !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  overflow: hidden !important;
  opacity: 1 !important;
}

#index #carousel .carousel-control {
  top: 50% !important;
  bottom: auto !important;
  transform: translateY(-50%) !important;
}

#index #slideshow #wpimageslider-wrap .bx-controls .bx-prev,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-next {
  top: 50% !important;
  margin-top: 0 !important;
  transform: translateY(-50%) !important;
  text-indent: -9999px !important;
}

/* Remove legacy theme glyphs/sprites. */
#index #carousel .carousel-control .icon-prev,
#index #carousel .carousel-control .icon-next,
#index #carousel .carousel-control .material-icons {
  display: none !important;
}

#index #slideshow #wpimageslider-wrap .bx-controls .bx-prev::before,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-next::before {
  content: none !important;
  display: none !important;
}

/* Draw one consistent chevron dead-center in the circle. */
#index #carousel .carousel-control::after,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-prev::after,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-next::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 9px !important;
  height: 9px !important;
  margin: 0 !important;
  border: solid currentColor !important;
  border-width: 0 2px 2px 0 !important;
  background: transparent !important;
  transform-origin: 50% 50% !important;
  box-sizing: border-box !important;
}

#index #carousel .carousel-control.left::after,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-prev::after {
  transform: translate(-50%, -50%) rotate(135deg) !important;
}

#index #carousel .carousel-control.right::after,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-next::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

#index #carousel .carousel-control:hover,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-prev:hover,
#index #slideshow #wpimageslider-wrap .bx-controls .bx-next:hover {
  background: #111 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  #index #carousel .carousel-control,
  #index #slideshow #wpimageslider-wrap .bx-controls .bx-prev,
  #index #slideshow #wpimageslider-wrap .bx-controls .bx-next {
    width: 40px !important;
    height: 40px !important;
  }

  #index #slideshow #wpimageslider-wrap .bx-controls .bx-prev { left: 12px !important; }
  #index #slideshow #wpimageslider-wrap .bx-controls .bx-next { right: 12px !important; }
}


/* V15: fix horizontal overflow + refine featured products layout */
html, body, #wrapper, #content-wrapper {
  max-width: 100%;
  overflow-x: hidden;
}

#index .eeree-campaigns,
#index .eeree-featured-v11,
#index .displayHomeSection {
  overflow-x: clip;
}

#index .eeree-campaigns__inner,
#index .eeree-featured-v11__inner,
#index .eeree-featured-v11__products {
  min-width: 0;
}

#index .eeree-featured-v11 {
  padding: 96px 20px 108px;
  background: #fff;
}
#index .eeree-featured-v11__inner {
  max-width: 1400px;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.55fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
}
#index .eeree-featured-v11__intro {
  position: sticky;
  top: 110px;
  min-width: 0;
}
#index .eeree-featured-v11__eyebrow {
  margin-bottom: 14px;
  color: #7b8188;
}
#index .eeree-featured-v11 .products-section-title {
  font-size: clamp(44px, 4.4vw, 72px) !important;
  line-height: .95 !important;
  max-width: 6ch;
}
#index .eeree-featured-v11__text {
  max-width: 340px;
  margin: 22px 0 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #5f6670;
}
#index .eeree-featured-v11__button {
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid #111318;
  font-size: 14px;
  font-weight: 600;
}

#index .eeree-featured-v11__products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 22px;
}
#index .eeree-product-card-v11 {
  min-width: 0;
}
#index .eeree-product-card-v11 .thumbnail-container {
  display: block !important;
}
#index .eeree-product-card-v11 .left-block,
#index .eeree-product-card-v11 .product-thumbnail {
  border-radius: 18px !important;
  background: #f6f7f8 !important;
}
#index .eeree-product-card-v11 .product-thumbnail {
  aspect-ratio: 1 / 1;
}
#index .eeree-product-card-v11 .product-thumbnail img {
  padding: 16px;
  object-fit: contain !important;
}
#index .eeree-product-card-v11 .center-block {
  padding: 14px 2px 0 !important;
}
#index .eeree-product-card-v11 .product-title {
  margin: 0 0 7px !important;
  font-size: 17px !important;
  line-height: 1.28 !important;
}
#index .eeree-product-card-v11 .product-title a {
  display: inline-block;
  text-decoration: none !important;
}
#index .eeree-product-card-v11 .product-price-and-shipping .price {
  font-size: 16px !important;
  font-weight: 600 !important;
}
#index .eeree-product-card-v11 .product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  #index .eeree-featured-v11 {
    padding: 82px 20px 92px;
  }
  #index .eeree-featured-v11__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  #index .eeree-featured-v11__intro {
    position: static;
    max-width: 700px;
  }
  #index .eeree-featured-v11 .products-section-title {
    max-width: none;
  }
}

@media (max-width: 767px) {
  #index .eeree-featured-v11 {
    padding: 64px 0 72px;
  }
  #index .eeree-featured-v11__inner {
    display: block;
    max-width: none;
  }
  #index .eeree-featured-v11__intro {
    position: static;
    padding: 0 18px;
    margin-bottom: 28px;
  }
  #index .eeree-featured-v11 .products-section-title {
    max-width: none;
    font-size: 42px !important;
  }
  #index .eeree-featured-v11__text {
    max-width: none;
  }
  #index .eeree-featured-v11__products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    padding: 0 18px !important;
  }
  #index .eeree-product-card-v11 .product-thumbnail img {
    padding: 10px;
  }
  #index .eeree-product-card-v11 .product-title {
    font-size: 14px !important;
  }
  #index .eeree-product-card-v11 .product-price-and-shipping .price {
    font-size: 14px !important;
  }
}
