/*
Theme Name: ADK Craft Market
Theme URI: https://example.com/
Author: OpenAI
Description: Custom rustic Adirondack WooCommerce theme starter for ADK Craft Market.
Version: 1.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: adk-craft-market
*/

:root {
  --adk-brown-1: #2a170f;
  --adk-brown-2: #4b2c1c;
  --adk-brown-3: #6b4328;
  --adk-gold: #d4a06a;
  --adk-cream: #f3ece1;
  --adk-cream-2: #f7f1e8;
  --adk-text: #241912;
  --adk-text-soft: #5a4839;
  --adk-white: #ffffff;
  --adk-max: 1280px;
  --adk-shadow: 0 12px 30px rgba(0,0,0,.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--adk-text);
  background: var(--adk-cream);
  line-height: 1.6;
}

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

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

.adk-container {
  width: min(var(--adk-max), calc(100% - 32px));
  margin: 0 auto;
}

.adk-section {
  padding: 76px 0;
}

.adk-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--adk-gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 800;
}

.adk-section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.02;
  font-weight: 900;
  text-transform: uppercase;
}

.adk-muted {
  color: var(--adk-text-soft);
}

.adk-btn,
.button,
.single_add_to_cart_button,
.wp-block-button__link,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: linear-gradient(180deg, #d9a56a 0%, #bf8449 100%);
  color: #22150d !important;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  cursor: pointer;
}

.adk-btn:hover,
.button:hover,
.single_add_to_cart_button:hover,
.wp-block-button__link:hover,
.checkout-button:hover {
  filter: brightness(1.03);
}

.adk-btn--secondary {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: none;
}

.adk-btn--secondary:hover {
  background: rgba(255,255,255,.08);
}

.adk-btn--light {
  background: transparent;
  color: var(--adk-text) !important;
  border: 1px solid #bba58d;
  box-shadow: none;
}

.topbar {
  background: #141414;
  color: #e8d4b5;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.topbar__inner {
  width: min(var(--adk-max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.site-header {
  position: relative;
  z-index: 10;
  background:
    linear-gradient(rgba(29,16,10,.2), rgba(29,16,10,.2)),
    url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-header__inner {
  width: min(var(--adk-max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 14px 0 10px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
}

.header-right {
  justify-content: flex-end;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-navigation a,
.adk-header-link,
.adk-cart-link {
  color: #f8e8d0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .95rem;
}

.site-branding {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-branding__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(18px);
}

.site-branding__mark {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background:
    linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)),
    url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1200&q=80');
  background-size: cover;
  background-position: center;
  border: 4px solid #b98248;
  color: #f3dfbf;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}

.site-branding__mark span {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.site-branding__mark small {
  margin-top: 4px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 800;
}

.custom-logo {
  max-height: 140px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.adk-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.adk-cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--adk-gold);
  color: #24170f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
  padding: 0 6px;
}

.hero {
  position: relative;
  min-height: 760px;
  background:
    linear-gradient(rgba(10,10,10,.18), rgba(10,10,10,.45)),
    url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background:
    linear-gradient(to top, rgba(46,25,15,.98), rgba(46,25,15,0));
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(var(--adk-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 90px 0 130px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 40px;
}

.hero-copy-wrap {
  display: flex;
  align-items: center;
  min-height: 460px;
}

.hero-copy {
  max-width: 720px;
}

.hero-eyebrow {
  color: #f0c389;
}

.hero__headline {
  margin: 0 0 12px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: .92;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 6px 20px rgba(0,0,0,.5);
}

.hero__headline span {
  display: block;
  color: var(--adk-gold);
}

.hero-subline {
  margin: 18px 0 14px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f7e8d2;
}

.hero__copy {
  max-width: 650px;
  color: #f5ead9;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-props {
  min-height: 460px;
  position: relative;
}

.hero-props__board {
  position: absolute;
  right: 0;
  bottom: -30px;
  width: 100%;
  height: 260px;
  background:
    linear-gradient(rgba(44,22,12,.14), rgba(44,22,12,.14)),
    url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}

.hero-features {
  position: relative;
  z-index: 3;
  margin-top: -26px;
}

.hero-features__bar {
  width: min(var(--adk-max), calc(100% - 32px));
  margin: 0 auto;
  background:
    linear-gradient(rgba(40,20,10,.18), rgba(40,20,10,.18)),
    url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #f7ebd8;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.hero-feature {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.hero-feature:last-child {
  border-right: none;
}

.hero-feature h3 {
  margin: 0 0 6px;
  color: var(--adk-gold);
  text-transform: uppercase;
  font-size: 1rem;
}

.hero-feature p {
  margin: 0;
  color: #f0e3cf;
  font-size: .95rem;
}

.products-section {
  position: relative;
  background: var(--adk-cream);
  padding-top: 90px;
  overflow: hidden;
}

.products-section::before,
.products-section::after {
  content: "";
  position: absolute;
  top: 100px;
  bottom: 100px;
  width: 130px;
  opacity: .08;
  background:
    linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.05)),
    url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=900&q=80');
  background-size: cover;
  background-position: center;
}

.products-section::before {
  left: 0;
}

.products-section::after {
  right: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.section-head--center {
  align-items: center;
}

.products-eyebrow {
  color: #9d6a36;
}

.featured-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: #f2e8d9;
  border: 1px solid #d3b895;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

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

.product-card__content {
  padding: 14px 16px 18px;
}

.product-card__title {
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 6px;
  color: #21150d;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 900;
  color: #21150d;
  margin-bottom: 4px;
}

.product-card__text {
  color: #5f4b3a;
  font-size: .95rem;
}

.story-section {
  background: linear-gradient(180deg, #f4ede3 0%, #efe5d7 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.story-image {
  min-height: 430px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
}

.story-card {
  border-radius: 16px;
  background:
    linear-gradient(rgba(37,20,10,.08), rgba(37,20,10,.08)),
    url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  padding: 36px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.review-card {
  background: #f8f2e8;
  border: 1px solid #dccab3;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.waitlist-band {
  background:
    linear-gradient(rgba(37,20,10,.18), rgba(37,20,10,.18)),
    url('https://images.unsplash.com/photo-1519710164239-da123dc03ef4?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #f6ebd7;
}

.waitlist-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.waitlist-form input {
  min-width: 280px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  padding: 0 16px;
  font-size: 1rem;
}

.site-footer {
  background: #17130f;
  color: #deceb8;
  padding: 56px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}

.footer-title,
.footer-heading {
  color: #fff2dd;
  font-weight: 900;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 18px;
  overflow: hidden;
  border-radius: 14px;
  background: #f8f2e8;
  border: 1px solid #d7c4aa;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .featured-products,
  .story-grid,
  .review-grid,
  .footer-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout,
  .waitlist-grid {
    grid-template-columns: 1fr;
  }

  .hero-props {
    min-height: 220px;
  }

  .hero-features__bar {
    grid-template-columns: 1fr;
  }

  .hero-feature {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .hero-feature:last-child {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .site-header__inner,
  .featured-products,
  .story-grid,
  .review-grid,
  .footer-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .site-header__inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .main-navigation ul,
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .site-branding__logo-link {
    transform: none;
  }

  .site-branding__mark,
  .custom-logo {
    width: auto;
    max-height: 100px;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 70px 0 120px;
  }

  .hero__headline {
    font-size: 3rem;
  }

  .adk-section {
    padding: 56px 0;
  }

  .products-section::before,
  .products-section::after {
    display: none;
  }
}