/*
 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;
  --emlore-background: #D8D8D8;
}

/* ==========================================================================
   Typography
   ========================================================================== */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--elmore-text);
  background-color: var(--emlore-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-primary);
  border-bottom: none;
  padding: 0;
}

/* Custom header layout */
.elmore-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 50px;
}

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

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

.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);
}

/* 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;
}

.elmore-header__search input[type="search"] {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 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: var(--elmore-gold);
  outline: none;
}

.elmore-header__search button[type="submit"] {
  display: none;
}

/* 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-gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .elmore-header {
    flex-wrap: wrap;
    padding: 10px 15px;
  }

  .elmore-header__menu {
    flex-wrap: wrap;
  }

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

  .elmore-header__search input[type="search"] {
    width: 120px;
  }
}

/* ==========================================================================
   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: 1064px;
  margin: 0 auto;
  padding: 0 20px;
  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
   ========================================================================== */
.site-content {
  padding-top: 0;
}

.page-template-page-home .site-content {
  padding: 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: 1200px;
  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 20px;
  max-width: 1200px;
  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-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%, 1064px);
  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 {
  min-height: 0;
  overflow: visible;
  font-size: 13px;
  line-height: 1.45;
  color: #555;
}

#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;
  }
}