/*
 Theme Name:   Elmore Indian Art
 Theme URI:    http://localhost:8888/elmoreindianart
 Description:  Storefront child theme for Steve Elmore Indian Art
 Author:       Elmore Indian Art
 Template:     storefront
 Version:      1.0.0
 Text Domain:  elmore
*/

/* ==========================================================================
   Brand Variables
   ========================================================================== */
:root {
  --elmore-primary: #580707;
  --elmore-gold: #F3BF35;
  --elmore-text: #333333;
  --elmore-light-bg: #f7f3ef;
  --elmore-white: #ffffff;
  --elmore-black: #000000;
  --elmore-background: #ffffff;
  --elmore-max-width: 1440px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--elmore-text);
  background-color: var(--elmore-background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--elmore-primary);
}

a {
  color: var(--elmore-primary);
}

a:hover {
  color: var(--elmore-gold);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background-color: var(--elmore-white);
  border-bottom: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.site-header .col-full {
  overflow: visible;
}

/* Custom header layout */
.elmore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  margin: 0;
  padding: 0 2rem;
  min-height: 50px;
  overflow: visible;
  background-color: var(--elmore-primary);
}

/* Full screen width header override */
.elmore-full-header .site-header .col-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Left: Navigation */
.elmore-header__nav {
  flex: 1;
  overflow: visible;
}

.elmore-header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.elmore-header__menu > li {
  position: relative;
}

.elmore-header__menu li a {
  display: block;
  padding: 14px 16px;
  color: var(--elmore-white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.elmore-header__menu li a:hover,
.elmore-header__menu li.current-menu-item a {
  color: var(--elmore-gold);
}

/* Dropdowns — WordPress uses .sub-menu; some setups use .ub-menu instead */
.elmore-header__menu .sub-menu,
.elmore-header__menu .ub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 10001;
  min-width: 240px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--elmore-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  pointer-events: none;
}

.elmore-header__menu li:hover > .sub-menu,
.elmore-header__menu li:hover > .ub-menu,
.elmore-header__menu li:focus-within > .sub-menu,
.elmore-header__menu li:focus-within > .ub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Nested flyouts (third level+) open to the right */
.elmore-header__menu .sub-menu .sub-menu,
.elmore-header__menu .ub-menu .ub-menu,
.elmore-header__menu .sub-menu .ub-menu,
.elmore-header__menu .ub-menu .sub-menu {
  left: 100%;
  top: 0;
  margin-left: 2px;
}

.elmore-header__menu .sub-menu li,
.elmore-header__menu .ub-menu li {
  position: relative;
  margin: 0;
}

.elmore-header__menu .sub-menu a,
.elmore-header__menu .ub-menu a {
  padding: 10px 18px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.elmore-header__menu .sub-menu a:hover,
.elmore-header__menu .ub-menu a:hover {
  color: var(--elmore-gold);
}

/* Right: Actions (search + account + cart) */
.elmore-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Search form */
.elmore-header__search .woocommerce-product-search,
.elmore-header__search .search-form {
  display: flex;
  align-items: center;
  margin-bottom: 0px;
  position: relative;
}

.elmore-header__search input[type="search"] {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--elmore-white);
  padding: 6px 32px 6px 12px;
  font-size: 13px;
  border-radius: 2px;
  width: 180px;
  transition: background 0.2s, border-color 0.2s;
}

.elmore-header__search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.elmore-header__search input[type="search"]:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}

.elmore-header__search button[type="submit"] {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.elmore-header__search button[type="submit"]:hover {
  color: var(--elmore-white);
  background: none;
}

/* Hide default button text, show magnifying glass icon */
.elmore-header__search button[type="submit"] {
  font-size: 0;
  line-height: 0;
}

.elmore-header__search button[type="submit"]::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.elmore-header__search button[type="submit"]:hover::before {
  opacity: 1;
}

/* Icon links (account, cart) */
.elmore-header__icon {
  color: var(--elmore-white);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.elmore-header__icon:hover {
  color: var(--elmore-gold);
}

.elmore-header__cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--elmore-primary);
  color: var(--elmore-white);
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger — hidden on desktop */
.elmore-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  background: transparent;
  color: var(--elmore-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}

.elmore-header__menu-toggle:hover {
  color: var(--elmore-gold);
  border-color: var(--elmore-gold);
}

.elmore-header__menu-toggle:focus {
  outline: 2px solid var(--elmore-gold);
  outline-offset: 2px;
}

.elmore-header__menu-toggle-box {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}

.elmore-header__menu-toggle-inner,
.elmore-header__menu-toggle-inner::before,
.elmore-header__menu-toggle-inner::after {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  position: absolute;
  left: 0;
}

.elmore-header__menu-toggle-inner {
  top: 6px;
}

.elmore-header__menu-toggle-inner::before {
  content: '';
  top: -6px;
}

.elmore-header__menu-toggle-inner::after {
  content: '';
  bottom: -6px;
}

/* Responsive */
@media (max-width: 768px) {
  .elmore-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.75rem 1rem;
    padding: 10px 15px;
  }

  .elmore-header__menu-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .elmore-header__actions {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
  }

  .elmore-header__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex: none;
    width: 100%;
    margin: 0;
  }

  /* Closed by default; toggled via .elmore-header__nav--open */
  .elmore-header__nav:not(.elmore-header__nav--open) .elmore-header__menu {
    display: none;
  }

  .elmore-header__menu {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .elmore-header__menu > li {
    width: 100%;
  }

  .elmore-header__menu li a {
    padding: 10px 4px;
    font-size: 12px;
  }

  /* Submenus stack under parents on small screens */
  .elmore-header__menu .sub-menu,
  .elmore-header__menu .ub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0 0 0 0.75rem;
    min-width: 0;
  }

  .elmore-header__menu .sub-menu .sub-menu,
  .elmore-header__menu .ub-menu .ub-menu {
    left: auto;
    margin-left: 0;
  }

  .elmore-header__menu .sub-menu a,
  .elmore-header__menu .ub-menu a {
    white-space: normal;
  }

  /* Full-width search row; account + cart wrap to the next row inside actions cell */
  .elmore-header__search {
    flex: 1 1 100%;
    min-width: 0;
  }

  .elmore-header__search input[type="search"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--elmore-primary);
  color: var(--elmore-white);
  border: none;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--elmore-gold);
  color: var(--elmore-black);
}

/* ==========================================================================
   WooCommerce Products
   ========================================================================== */
.woocommerce ul.products li.product .price {
  color: var(--elmore-primary);
  font-weight: 600;
}

.woocommerce ul.products li.product h2 {
  font-size: 0.95em;
}

.woocommerce ul.products li.product a img {
  border: 1px solid #eee;
  transition: border-color 0.2s ease;
}

.woocommerce ul.products li.product a img:hover {
  border-color: var(--elmore-gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #222;
  color: #d8d8d8;
  padding: 28px 0 24px;
}

.site-footer a {
  color: #f3bf35;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--elmore-gold);
}

.site-footer .col-full {
  max-width: var(--elmore-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.site-footer .widget {
  margin: 0;
}

.elmore-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.elmore-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  font-size: 16px;
  line-height: 1.35;
}

.elmore-footer__menu li {
  margin: 0;
}

.site-footer .elmore-footer__menu a {
  color: #cfcfcf;
  text-decoration: none;
}

.site-footer .elmore-footer__menu a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Override Storefront: .site-footer a:not(.button):not(.components-button) { color: #333; } */
.site-footer .elmore-footer .elmore-footer__menu a:not(.button):not(.components-button),
.site-footer .elmore-footer .elmore-footer__contact a:not(.button):not(.components-button) {
  color: #cfcfcf !important;
}

.site-footer .elmore-footer .elmore-footer__menu a:not(.button):not(.components-button):hover,
.site-footer .elmore-footer .elmore-footer__contact a:not(.button):not(.components-button):hover {
  color: #fff !important;
}

.elmore-footer__contact {
  font-size: 12px;
  line-height: 1.55;
  color: #cfcfcf;
}

.elmore-footer__contact p {
  margin: 0;
}

.elmore-footer__sep {
  display: inline-block;
  margin-left: 16px;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 24px 0 20px;
  }

  .elmore-footer__menu {
    gap: 8px 14px;
    font-size: 14px;
  }

  .elmore-footer__contact {
    font-size: 11px;
  }

  .elmore-footer__sep {
    margin-left: 10px;
  }
}

/* ==========================================================================
   General Layout — Full-width overrides
   ========================================================================== */

.col-full {
  max-width: var(--elmore-max-width);
  padding-left: 2rem;
  padding-right: 2rem;
  box-sizing: border-box;
}

@media (max-width: 1440px) {
  .col-full {
    margin-left: 2rem;
    margin-right: 2rem;
    padding-left: 0;
    padding-right: 0;
  }
}

.site-content {
  padding-top: 0;
}

.page-template-page-home .site-header {
  margin-bottom: 0 !important;
}

.page-template-page-home .site-content {
  padding: 0;
  margin: 0;
}

.page-template-page-home .site-main {
  padding-top: 1.25rem;
  margin-top: 0;
}

.page-template-page-home .entry-header {
  display: none;
}

.page-template-page-home .hentry {
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   site main
   ========================================================================== */

/* ==========================================================================
   Homepage template (#elmore-home)
   Hero background image is set inline via --elmore-hero-bg-image (attachment ID in page-home.php).
   ========================================================================== */
#elmore-home .elmore-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  background: var(--elmore-hero-bg-image) center top / cover no-repeat;
  color: #fff;
}

#elmore-home .elmore-hero__content {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  max-width: 300px;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 clamp(12px, 3vw, 28px) 24px;
  box-sizing: border-box;
  /* Elmore red — content column only; hero photo is unobstructed elsewhere */
  background: rgba(88, 7, 7, 0.8);
}

#elmore-home .elmore-hero__inner {
  width: 100%;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

#elmore-home .elmore-hero__logo {
  width: 132px;
  max-width: 100%;
  height: auto;
  margin: 0 0 16px;
  display: block;
}

#elmore-home .elmore-hero__tagline {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 12px;
}

#elmore-home .elmore-hero__specialties {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  color: var(--elmore-gold, #F3BF35);
  font-size: 15px;
  line-height: 2;
}

#elmore-home .elmore-hero__specialty-link {
  color: inherit;
  text-decoration: none;
}

#elmore-home .elmore-hero__specialty-link:hover {
  text-decoration: underline;
}

#elmore-home .elmore-hero .elmore-btn {
  padding: 9px 24px;
  font-size: 10px;
}

#elmore-home .elmore-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}

#elmore-home .elmore-btn--gold {
  background: var(--elmore-gold, #F3BF35);
  color: #000;
}

#elmore-home .elmore-btn--gold:hover {
  background: #e0ab20;
  color: #000;
}

#elmore-home .elmore-btn--primary {
  background: var(--elmore-primary, #580707);
  color: #fff;
}

#elmore-home .elmore-btn--primary:hover {
  background: var(--elmore-gold, #F3BF35);
  color: #000;
}

/* ── New Arrivals product carousel (desktop: 3 per view; mobile: 1) ── */
#elmore-home .elmore-products-carousel {
  position: relative;
  max-width: var(--elmore-max-width);
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}

#elmore-home .elmore-products-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

#elmore-home .elmore-products-carousel .woocommerce {
  margin-bottom: 0;
}

#elmore-home .elmore-products-carousel ul.products {
  display: flex;
  flex-wrap: nowrap;
  margin: 0 !important;
  padding: 0;
  list-style: none;
  transition: transform 0.55s ease;
  will-change: transform;
}

#elmore-home .elmore-products-carousel ul.products::before,
#elmore-home .elmore-products-carousel ul.products::after {
  display: none;
}

#elmore-home .elmore-products-carousel ul.products li.product {
  float: none !important;
  margin: 0 !important;
  padding: 0 10px;
  box-sizing: border-box;
  clear: none !important;
}

#elmore-home .elmore-products-carousel__btn {
  position: absolute;
  top: 50%;
  margin-top: -22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #e5e0da;
  border-radius: 50%;
  background: #fff;
  color: var(--elmore-primary, #580707);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

#elmore-home .elmore-products-carousel__btn:hover {
  background: var(--elmore-primary, #580707);
  color: #fff;
  border-color: var(--elmore-primary, #580707);
}

#elmore-home .elmore-products-carousel__btn:focus {
  outline: 2px solid var(--elmore-gold, #f3bf35);
  outline-offset: 2px;
}

#elmore-home .elmore-products-carousel__btn--prev {
  left: 0;
}

#elmore-home .elmore-products-carousel__btn--next {
  right: 0;
}

@media (max-width: 768px) {
  #elmore-home .elmore-products-carousel {
    padding: 0 40px;
  }

  #elmore-home .elmore-products-carousel__btn {
    width: 38px;
    height: 38px;
    margin-top: -19px;
  }
}

#elmore-home .elmore-section {
  padding: 60px 2rem;
  max-width: var(--elmore-max-width);
  margin: 0 auto;
}

#elmore-home .elmore-section__title {
  text-align: center;
  color: var(--elmore-primary, #580707);
  font-size: 28px;
  margin-bottom: 12px;
}

#elmore-home .elmore-section__subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

#elmore-home .elmore-section__cta {
  text-align: center;
  margin-top: 30px;
}

#elmore-home .elmore-collection {
  background: var(--elmore-light-bg, #f7f3ef);
  max-width: 100%;
}

#elmore-home .elmore-featured {
    max-width: 100%;
    padding-top: 20px;
    padding-left: 0;
    padding-right: 0;
}

#elmore-home .elmore-collection__text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
  font-size: 16px;
}

/* Featured: responsive 2x2 layout with equal card slots and stable mobile stacking */
#elmore-home .elmore-featured__square {
  --featured-card-min-height: 300px;
  width: min(100%, var(--elmore-max-width));
  margin: 30px auto 0;
  border: none;
  background: transparent;
  overflow: visible;
}

#elmore-home .elmore-featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  align-items: stretch;
}

#elmore-home .elmore-featured__col {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}

/* Columns touch; no gutter between left/right groups */
#elmore-home .elmore-featured__col--left {
  background: #fff;
  padding: 14px 0 14px 16px;
  border-radius: 4px 0 0 4px;
}

#elmore-home .elmore-featured__col--right {
  background: var(--elmore-light-bg, #f7f3ef);
  padding: 14px 16px 14px 0;
  border-radius: 0 4px 4px 0;
}

/* Equal-height cards per column. Heights step up on narrower screens. */
#elmore-home .elmore-featured__card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  margin: 0;
  padding: 0 12px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  min-height: var(--featured-card-min-height);
  overflow: hidden;
}

#elmore-home .elmore-featured__col--right .elmore-featured__card {
  padding-right: 0;
  padding-left: 12px;
}

#elmore-home .elmore-featured__thumb {
  width: 160px;
  height: 160px;
  max-width: 160px;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

#elmore-home .elmore-featured__thumb--empty {
  width: 160px;
  height: 160px;
  max-width: 160px;
}

#elmore-home .elmore-featured__thumb-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

#elmore-home .elmore-featured__text {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#elmore-home .elmore-featured__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

#elmore-home .elmore-featured__title a {
  color: var(--elmore-primary, #580707);
  text-decoration: none;
}

#elmore-home .elmore-featured__title a:hover {
  color: var(--elmore-gold, #f3bf35);
}

#elmore-home .elmore-featured__content {
  position: relative;
  height: 200px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
  margin-bottom: 8px;
}

#elmore-home .elmore-featured__content-inner {
  height: 100%;
}

#elmore-home .elmore-featured__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
  display: none;
}

#elmore-home .elmore-featured__col--right .elmore-featured__fade {
  background: linear-gradient(to bottom, rgba(247,243,239,0) 0%, rgba(247,243,239,1) 100%);
}

#elmore-home .elmore-featured__card.has-overflow .elmore-featured__fade {
  display: block;
}

#elmore-home .elmore-featured__read-more {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--elmore-primary, #580707);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s;
}

#elmore-home .elmore-featured__read-more:hover {
  color: var(--elmore-gold, #f3bf35);
  text-decoration: underline;
}

#elmore-home .elmore-featured__content p {
  margin: 0 0 0.5em;
}

#elmore-home .elmore-featured__content p:last-child {
  margin-bottom: 0;
}

#elmore-home .elmore-featured__content img {
  max-width: 100%;
  height: auto;
}

/* As width shrinks and wrapping increases, make card slots taller. */
@media (max-width: 1200px) {
  #elmore-home .elmore-featured__square {
    --featured-card-min-height: 350px;
  }
}

@media (min-width: 1001px) {
  #elmore-home .elmore-featured__title {
    font-size: 18px;
  }

  #elmore-home .elmore-featured__content {
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 1000px) {
  #elmore-home .elmore-featured__square {
    --featured-card-min-height: 420px;
  }

  /* Image above text per card from 1000px down */
  #elmore-home .elmore-featured__card {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 0;
  }

  #elmore-home .elmore-featured__col--right .elmore-featured__card {
    padding-left: 0;
  }

  #elmore-home .elmore-featured__thumb {
    width: 100%;
    max-width: 280px;
    height: 200px;
    justify-self: center;
    align-self: start;
  }

  #elmore-home .elmore-featured__thumb--empty {
    width: 100%;
    max-width: 200px;
    height: 120px;
    justify-self: center;
  }

  #elmore-home .elmore-featured__text {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 768px) {
  #elmore-home .elmore-hero {
    min-height: 500px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  #elmore-home .elmore-hero__content {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
    min-height: min(70vh, 560px);
    padding: 20px 20px 32px;
  }

  #elmore-home .elmore-hero__inner {
    max-width: 480px;
  }

  #elmore-home .elmore-hero__tagline {
    font-size: 14px;
  }

  #elmore-home .elmore-hero__specialties {
    font-size: 13px;
  }

  #elmore-home .elmore-hero .elmore-btn {
    font-size: 12px;
    padding: 12px 28px;
  }

  #elmore-home .elmore-featured__square {
    --featured-card-min-height: 460px;
    max-width: 100%;
  }

  #elmore-home .elmore-featured__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
  }

  #elmore-home .elmore-featured__col--left,
  #elmore-home .elmore-featured__col--right {
    padding: 16px 14px;
    border-radius: 4px;
  }

  #elmore-home .elmore-featured__col + .elmore-featured__col {
    margin-top: 0;
  }

  #elmore-home .elmore-featured__content {
    overflow-y: visible;
  }
}

/* ==========================================================================
   Book Reviews Page
   ========================================================================== */
.elmore-reviews-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.elmore-reviews-page__intro {
  text-align: center;
  margin-bottom: 40px;
}

.elmore-reviews-page__intro h1 {
  color: var(--elmore-primary);
  font-size: 32px;
  margin-bottom: 8px;
}

.elmore-reviews-page__intro p {
  color: #666;
  font-size: 16px;
}

.elmore-review {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #e5e0da;
}

.elmore-review:last-child {
  border-bottom: none;
}

.elmore-review__media {
  flex: 0 0 160px;
}

.elmore-review__image {
  width: 160px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.elmore-review__body h3 {
  color: var(--elmore-primary);
  font-size: 20px;
  margin: 0 0 6px;
}

.elmore-review__author {
  font-style: italic;
  color: #888;
  font-size: 14px;
  margin-bottom: 10px;
}

.elmore-review__body p {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.elmore-review__readmore {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--elmore-primary);
  text-decoration: none;
}

.elmore-review__readmore:hover {
  color: var(--elmore-gold);
}

@media (max-width: 600px) {
  .elmore-review {
    flex-direction: column;
    gap: 12px;
  }

  .elmore-review__media {
    flex: none;
  }

  .elmore-review__image {
    width: 120px;
  }
}

/* ==========================================================================
   Category Banner (full-width, between header & breadcrumbs)
   ========================================================================== */
.elmore-category-banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elmore-category-banner--has-image {
  height: 320px;
}

.elmore-category-banner--no-image {
  background-color: #fff;
  padding: 2.5rem 1.5rem;
}

.elmore-category-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(88, 7, 7, 0.15) 0%,
    rgba(88, 7, 7, 0.55) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.elmore-category-banner--no-image .elmore-category-banner__overlay {
  position: static;
  inset: auto;
  background: none;
}

.elmore-category-banner__title {
  color: #fff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  margin: 0;
  padding: 0 1.5rem;
  text-align: center;
}

.elmore-category-banner--no-image .elmore-category-banner__title {
  color: var(--elmore-primary);
  text-shadow: none;
}

@media (max-width: 768px) {
  .elmore-category-banner--has-image {
    height: 220px;
  }

  .elmore-category-banner__title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .elmore-category-banner--has-image {
    height: 180px;
  }

  .elmore-category-banner__title {
    font-size: 22px;
  }

  .elmore-category-banner--no-image {
    padding: 1.75rem 1rem;
  }
}

/* ==========================================================================
   Subcategory Grid (category archive pages)
   ========================================================================== */
.elmore-subcats {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e0da;
}

.elmore-subcats__grid {
  --elmore-subcats-gap: 20px;
  --elmore-subcats-cols: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--elmore-subcats-gap);
}

.elmore-subcats__card {
  flex: 1 1 180px;
  max-width: calc(
    (100% - (var(--elmore-subcats-cols) - 1) * var(--elmore-subcats-gap)) /
      var(--elmore-subcats-cols)
  );
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--elmore-text);
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  background: var(--elmore-white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.elmore-subcats__card:hover {
  border-color: var(--elmore-gold);
  box-shadow: 0 4px 16px rgba(88, 7, 7, 0.08);
  transform: translateY(-2px);
}

.elmore-subcats__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--elmore-light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.elmore-subcats__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.elmore-subcats__card:hover .elmore-subcats__img {
  transform: scale(1.05);
}

.elmore-subcats__info {
  padding: 12px 14px;
  text-align: center;
}

.elmore-subcats__name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--elmore-primary);
  transition: color 0.2s;
}

.elmore-subcats__card:hover .elmore-subcats__name {
  color: var(--elmore-gold);
}

.elmore-subcats__count {
  font-size: 12px;
  color: #999;
}

@media (max-width: 900px) {
  .elmore-subcats__grid {
    --elmore-subcats-cols: 4;
  }
}

@media (max-width: 700px) {
  .elmore-subcats__grid {
    --elmore-subcats-cols: 3;
  }
}

@media (max-width: 600px) {
  .elmore-subcats__grid {
    --elmore-subcats-gap: 12px;
    --elmore-subcats-cols: 2;
  }

  .elmore-subcats__card {
    flex: 1 1 calc(50% - var(--elmore-subcats-gap) / 2);
    max-width: calc(50% - var(--elmore-subcats-gap) / 2);
  }

  .elmore-subcats__info {
    padding: 8px 10px;
  }

  .elmore-subcats__name {
    font-size: 13px;
  }
}

.single-product div.product form.cart .quantity:has(input.qty[type="hidden"]) {
  display: none !important;
}

/* ==========================================================================
   Price on Request (POR) label
   ========================================================================== */
.elmore-por-label {
  display: inline-block;
  font-style: italic;
  font-weight: 600;
  color: var(--elmore-primary);
  font-size: inherit;
  letter-spacing: 0.02em;
}

/* Single product page — give the POR label a bit more presence */
.single-product div.product p.price .elmore-por-label {
  font-size: 1.2em;
}

/* ==========================================================================
   Add to Cart Success Notice
   ========================================================================== */
.woocommerce-message,
.wc-block-components-notice-banner.is-success {
  background-color: var(--elmore-white);
  border: 1px solid var(--elmore-gold);
  border-top-color: var(--elmore-gold);
  color: var(--elmore-text);
}

.woocommerce-message::before {
  color: var(--elmore-gold);
}

.wc-block-components-notice-banner.is-success svg {
  fill: var(--elmore-gold);
}

.woocommerce-message .button.wc-forward,
.woocommerce-message a.button,
.wc-block-components-notice-banner.is-success .button.wc-forward,
.wc-block-components-notice-banner.is-success a.button {
  background-color: var(--elmore-white) !important;
  border: 1px solid var(--elmore-gold) !important;
  color: var(--elmore-primary) !important;
}

.woocommerce-message .button.wc-forward:hover,
.woocommerce-message a.button:hover,
.wc-block-components-notice-banner.is-success .button.wc-forward:hover,
.wc-block-components-notice-banner.is-success a.button:hover {
  background-color: var(--elmore-gold) !important;
  border-color: var(--elmore-gold) !important;
  color: var(--elmore-black) !important;
}