/*
Theme Name: Western Dust
Theme URI: https://westerndust.com/
Author: ChatGPT
Description: Dark western WooCommerce theme for Western Dust.
Version: 1.0.7
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: westerndust
*/

:root {
  --wd-black: #12100d;
  --wd-ink: #1b1712;
  --wd-brown: #332318;
  --wd-tobacco: #8f6a4a;
  --wd-gold: #b79567;
  --wd-cream: #f3efe7;
  --wd-paper: #fbf8f1;
  --wd-line: #ddd1bf;
  --wd-muted: #77695b;
  --wd-white: #ffffff;
  --wd-serif: "Cormorant Garamond", Georgia, serif;
  --wd-sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--wd-paper);
  color: var(--wd-ink);
  display: flex;
  flex-direction: column;
  font-family: var(--wd-sans);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

.wd-page {
  flex: 1 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.wd-header {
  background: rgba(18, 16, 13, 0.96);
  color: var(--wd-cream);
  position: sticky;
  top: 0;
  z-index: 30;
}

.wd-header__inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: 230px 1fr auto;
  margin: 0 auto;
  max-width: 1480px;
  min-height: 78px;
  padding: 0 46px;
}

.wd-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
  text-align: center;
  width: fit-content;
}

.wd-logo__word {
  color: #e9ddc8;
  font-family: var(--wd-serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 9px;
  text-transform: uppercase;
}

.wd-logo__star {
  color: var(--wd-gold);
  font-size: 21px;
  line-height: 1;
}

.wd-nav {
  align-items: center;
  display: flex;
  justify-content: center;
}

.wd-nav__menu {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-nav a {
  color: var(--wd-cream);
  font-size: 13px;
  opacity: 0.9;
  transition: color 160ms ease, opacity 160ms ease;
}

.wd-nav a:hover,
.wd-nav a:focus {
  color: var(--wd-gold);
  opacity: 1;
}

.wd-header__actions {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.wd-icon-link,
.wd-menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--wd-cream);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 34px;
}

.wd-icon-link svg,
.wd-menu-toggle svg {
  height: 22px;
  stroke-width: 1.7;
  width: 22px;
}

.wd-cart-count {
  align-items: center;
  background: var(--wd-gold);
  border-radius: 999px;
  color: var(--wd-black);
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  height: 17px;
  justify-content: center;
  min-width: 17px;
  padding: 0 4px;
  position: absolute;
  right: -1px;
  top: 2px;
}

.wd-currency {
  border: 1px solid rgba(243, 239, 231, 0.38);
  color: var(--wd-cream);
  font-size: 12px;
  padding: 11px 18px;
}

.wd-menu-toggle {
  display: none;
}

.wd-page {
  background: var(--wd-paper);
  min-height: 60vh;
}

.wd-container {
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 54px;
}

.wd-hero {
  background-color: var(--wd-black);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.66) 33%, rgba(0, 0, 0, 0.12) 72%), var(--wd-hero-image);
  background-position: center;
  background-size: cover;
  color: var(--wd-white);
  min-height: 470px;
  position: relative;
}

.wd-hero__inner {
  align-items: center;
  display: flex;
  min-height: 470px;
  padding: 64px 0;
}

.wd-hero__content {
  max-width: 520px;
}

.wd-ornament {
  align-items: center;
  color: var(--wd-gold);
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  width: 82px;
}

.wd-ornament::before,
.wd-ornament::after {
  background: currentColor;
  content: "";
  flex: 1;
  height: 1px;
}

.wd-ornament span {
  font-size: 16px;
}

.wd-hero h1,
.wd-section-title,
.wd-journal__side h2,
.wd-build__side h2,
.wd-page-title {
  font-family: var(--wd-serif);
  font-weight: 500;
  line-height: 0.98;
}

.wd-hero h1 {
  font-size: 64px;
  margin: 0 0 22px;
}

.wd-hero p {
  color: #f4eee4;
  font-size: 15px;
  margin: 0 0 30px;
  max-width: 390px;
}

.wd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.wd-button,
.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  align-items: center;
  background: var(--wd-gold);
  border: 1px solid var(--wd-gold);
  border-radius: 0;
  color: var(--wd-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 1.7px;
  line-height: 1;
  min-height: 43px;
  padding: 15px 24px;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.wd-button:hover,
.wd-button:focus,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: #9e7a51;
  border-color: #9e7a51;
  color: var(--wd-white);
}

.wd-button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.wd-button--ghost:hover,
.wd-button--ghost:focus {
  background: var(--wd-cream);
  border-color: var(--wd-cream);
  color: var(--wd-black);
}

.wd-button--outline {
  background: transparent;
  border-color: var(--wd-tobacco);
  color: var(--wd-ink);
}

.wd-section {
  border-top: 1px solid var(--wd-line);
  padding: 28px 0;
}

.wd-section-title {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 28px;
  gap: 7px;
  letter-spacing: 8px;
  margin: 0 0 23px;
  text-align: center;
  text-transform: uppercase;
}

.wd-section-title::after {
  background: var(--wd-gold);
  content: "";
  height: 1px;
  width: 74px;
}

.wd-section-heading {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 23px;
}

.wd-section-heading .wd-section-title {
  grid-column: 2;
  margin: 0;
}

.wd-view-all {
  align-items: center;
  color: var(--wd-ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 12px;
  grid-column: 3;
  justify-self: end;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.wd-category-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.wd-category-card,
.wd-product-card {
  background: #fffdf8;
  border: 1px solid var(--wd-line);
}

.wd-category-card img {
  aspect-ratio: 1.95 / 1;
  object-fit: cover;
  width: 100%;
}

.wd-category-card span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.8px;
  padding: 12px 10px;
  text-align: center;
  text-transform: uppercase;
}

.wd-product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.wd-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.wd-product-card__image {
  aspect-ratio: 1.68 / 1;
  background: #1b1511;
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  overflow: hidden;
}

.wd-product-card__image img {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100%;
}

.wd-product-card:hover img {
  transform: scale(1.035);
}

.wd-heart {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--wd-white);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 10px;
  width: 36px;
  z-index: 2;
}

.wd-heart svg {
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.45));
  height: 24px;
  stroke-width: 1.6;
  width: 24px;
}

.wd-product-card__body {
  display: block;
  flex: 0 0 auto;
  min-height: 70px;
  padding: 14px 16px 15px;
}

.wd-product-card__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.wd-product-card__price,
.price {
  color: var(--wd-ink);
  font-size: 14px;
  font-weight: 700;
}

.wd-trust {
  background: #f5efe5;
  border-bottom: 1px solid var(--wd-line);
  border-top: 1px solid var(--wd-line);
}

.wd-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.wd-trust-item {
  align-items: center;
  display: grid;
  gap: 17px;
  grid-template-columns: 48px 1fr;
  min-height: 86px;
  padding: 18px 26px;
}

.wd-trust-item + .wd-trust-item {
  border-left: 1px solid #cdbfae;
}

.wd-trust-item svg {
  color: #6e5842;
  height: 40px;
  stroke-width: 1.2;
  width: 40px;
}

.wd-trust-item strong {
  display: block;
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.wd-trust-item span {
  color: #4f463e;
  display: block;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 3px;
}

.wd-journal,
.wd-build {
  border-top: 1px solid var(--wd-line);
  display: grid;
  gap: 20px;
  grid-template-columns: 210px 1fr;
  padding: 24px 0;
}

.wd-journal__side,
.wd-build__side {
  padding-top: 15px;
}

.wd-journal__side h2,
.wd-build__side h2 {
  font-size: 22px;
  letter-spacing: 3px;
  margin: 0 0 19px;
  text-transform: uppercase;
}

.wd-journal__side p,
.wd-build__side p {
  color: #4e453c;
  font-size: 13px;
  margin: 0 0 19px;
}

.wd-journal__cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.wd-story-card {
  color: var(--wd-white);
  min-height: 166px;
  overflow: hidden;
  position: relative;
}

.wd-story-card img {
  height: 100%;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.wd-story-card::after {
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
  content: "";
  inset: 0;
  position: absolute;
}

.wd-story-card__copy {
  bottom: 16px;
  left: 18px;
  position: absolute;
  right: 18px;
  z-index: 1;
}

.wd-story-card h3 {
  font-family: var(--wd-serif);
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  margin: 0 0 4px;
}

.wd-story-card p {
  font-size: 12px;
  margin: 0 0 6px;
}

.wd-story-card span {
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wd-build__bundle {
  align-items: stretch;
  background: #fbf8f1;
  border: 1px solid var(--wd-line);
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1.2fr;
  min-height: 142px;
}

.wd-bundle-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.wd-bundle-item img {
  height: 82px;
  margin-bottom: 7px;
  object-fit: cover;
  width: 120px;
}

.wd-bundle-item strong {
  display: block;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.wd-bundle-item span {
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.wd-bundle-symbol {
  align-items: center;
  color: var(--wd-ink);
  display: flex;
  font-family: var(--wd-serif);
  font-size: 34px;
  justify-content: center;
}

.wd-bundle-result img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.wd-social-row {
  border-top: 1px solid var(--wd-line);
  display: grid;
  gap: 20px;
  grid-template-columns: 210px 1fr;
  padding: 24px 0 10px;
}

.wd-social-copy {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 42px 1fr;
}

.wd-social-copy svg {
  height: 28px;
  width: 28px;
}

.wd-social-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}

.wd-social-copy span {
  color: #4f463e;
  display: block;
  font-size: 12px;
}

.wd-social-images {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.wd-social-images img {
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  width: 100%;
}

.wd-footer {
  background: #11100e;
  color: #d8cab6;
  flex-shrink: 0;
  padding: 36px 0 24px;
}

.wd-footer__grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1.7fr;
}

.wd-footer .wd-logo {
  align-items: center;
  margin-bottom: 17px;
  text-align: center;
}

.wd-footer .wd-logo__word {
  font-size: 24px;
  letter-spacing: 8px;
}

.wd-footer .wd-logo__star {
  align-self: center;
  display: block;
  text-align: center;
  width: 100%;
}

.wd-footer p,
.wd-footer li,
.wd-footer a {
  color: #d8cab6;
  font-size: 12px;
}

.wd-footer h2,
.wd-footer h3 {
  color: #dfd3c1;
  font-size: 12px;
  letter-spacing: 1.8px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.wd-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wd-footer li + li {
  margin-top: 4px;
}

.wd-newsletter {
  align-items: stretch;
  border: 1px solid #6d5a45;
  display: grid;
  grid-template-columns: 1fr 48px;
  margin: 17px 0;
}

.wd-newsletter input {
  background: transparent;
  border: 0;
  color: var(--wd-cream);
  min-width: 0;
  padding: 13px 15px;
}

.wd-newsletter button {
  background: var(--wd-gold);
  border: 0;
  color: var(--wd-white);
  cursor: pointer;
  font-size: 22px;
}

.wd-footer__social {
  display: flex;
  gap: 21px;
}

.wd-footer__bottom {
  color: #9c8f7e;
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 26px;
  text-align: center;
}

.wd-content {
  padding: 54px 0;
}

.wd-page-title,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
  font-size: 48px;
  margin: 0 0 28px;
}

.wd-content-body {
  background: #fffdf8;
  border: 1px solid var(--wd-line);
  padding: 32px;
}

.woocommerce .woocommerce-breadcrumb {
  color: var(--wd-muted);
  font-size: 12px;
  margin: 0 0 20px;
}

.woocommerce ul.products {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #fffdf8;
  border: 1px solid var(--wd-line);
  display: block;
  float: none;
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0 0 16px;
  width: auto;
}

.woocommerce ul.products li.product::marker,
.woocommerce-page ul.products li.product::marker {
  content: "";
  display: none;
}

.woocommerce ul.products li.product::before,
.woocommerce-page ul.products li.product::before {
  content: none;
  display: none;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1.3 / 1;
  margin: 0 0 14px;
  object-fit: cover;
  width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 15px;
  margin-right: 15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--wd-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}

.woocommerce div.product {
  background: #fffdf8;
  border: 1px solid var(--wd-line);
  padding: 24px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  background: var(--wd-black);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--wd-ink);
  font-size: 22px;
}

.woocommerce .quantity .qty {
  border: 1px solid var(--wd-line);
  min-height: 43px;
  padding: 8px;
}

.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce input.input-text {
  background: var(--wd-white);
  border: 1px solid var(--wd-line);
  border-radius: 0;
  min-height: 43px;
  padding: 10px 12px;
}

.woocommerce table.shop_table,
.woocommerce-checkout-review-order,
.cart_totals,
.woocommerce-order,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
  background: #fffdf8;
  border: 1px solid var(--wd-line);
  border-radius: 0;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  border-color: var(--wd-line);
}

@media (max-width: 1180px) {
  .wd-header__inner {
    grid-template-columns: 1fr auto auto;
    padding: 0 26px;
  }

  .wd-menu-toggle {
    display: inline-flex;
  }

  .wd-nav {
    background: rgba(18, 16, 13, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    display: none;
    flex-direction: column;
    gap: 0;
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin: 0 -26px;
    order: 5;
    padding: 10px 26px 26px;
  }

  .wd-nav__menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  body.menu-open .wd-nav {
    display: flex;
  }

  .wd-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    padding: 14px 0;
    width: 100%;
  }

  .wd-currency {
    display: none;
  }

  .wd-hero h1 {
    font-size: 54px;
  }

  .wd-category-grid,
  .wd-product-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .wd-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wd-trust-item:nth-child(3) {
    border-left: 0;
  }

  .wd-journal,
  .wd-build,
  .wd-social-row {
    grid-template-columns: 1fr;
  }

  .wd-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .wd-header__inner,
  .wd-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .wd-logo__word {
    font-size: 18px;
    letter-spacing: 5px;
  }

  .wd-header__actions {
    gap: 7px;
  }

  .wd-header__actions .wd-icon-link:nth-child(2),
  .wd-header__actions .wd-icon-link:nth-child(3) {
    display: none;
  }

  .wd-hero {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.5)), var(--wd-hero-image);
    min-height: 520px;
  }

  .wd-hero__inner {
    align-items: flex-end;
    min-height: 520px;
  }

  .wd-hero h1 {
    font-size: 46px;
  }

  .wd-section-heading {
    display: block;
  }

  .wd-view-all {
    justify-content: center;
    margin-top: 14px;
    width: 100%;
  }

  .wd-category-grid,
  .wd-product-grid,
  .wd-journal__cards,
  .wd-social-images,
  .woocommerce ul.products,
  .wd-footer__grid {
    grid-template-columns: 1fr;
  }

  .wd-trust__grid {
    grid-template-columns: 1fr;
  }

  .wd-trust-item + .wd-trust-item,
  .wd-trust-item:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #cdbfae;
  }

  .wd-build__bundle {
    grid-template-columns: 1fr;
  }

  .wd-bundle-symbol {
    min-height: 28px;
  }

  .wd-bundle-result {
    min-height: 180px;
  }
}
