/*
Theme Name: WoodMart Organized
Description: A clean, conversion-focused WoodMart child theme with an organized WooCommerce homepage and refined responsive styling.
Author: Custom build
Template: woodmart
Version: 1.0.4
Text Domain: woodmart-organized
Requires at least: 6.2
Requires PHP: 7.4
*/

:root {
  --wdo-primary: var(--wd-primary-color, #7b61ff);
  --wdo-secondary: var(--wd-alternative-color, #191919);
  --wdo-ink: #171717;
  --wdo-muted: #6f6f73;
  --wdo-surface: #ffffff;
  --wdo-soft: #f6f6f8;
  --wdo-border: rgba(23, 23, 23, .09);
  --wdo-radius-sm: 14px;
  --wdo-radius: 22px;
  --wdo-radius-lg: 32px;
  --wdo-shadow: 0 18px 55px rgba(25, 25, 25, .08);
  --wdo-shell: 1240px;
}

body.wdo-active {
  background: var(--wdo-surface);
  color: var(--wdo-ink);
  text-rendering: optimizeLegibility;
}

.wdo-shell {
  width: min(calc(100% - 40px), var(--wdo-shell));
  margin-inline: auto;
}

.wdo-section {
  padding-block: clamp(54px, 7vw, 92px);
}

.wdo-section--soft { background: var(--wdo-soft); }

.wdo-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 4vw, 42px);
}

.wdo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--wdo-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wdo-eyebrow::before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.wdo-title {
  max-width: 760px;
  margin: 0;
  color: var(--wdo-ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.wdo-title--sm { font-size: clamp(27px, 3vw, 40px); }

.wdo-copy {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--wdo-muted);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
}

.wdo-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--wdo-ink);
  font-weight: 800;
  text-decoration: none;
}

.wdo-link:hover { color: var(--wdo-primary); }

.wdo-link::after { content: "\2190"; transition: transform .2s ease; }
[dir="ltr"] .wdo-link::after { content: "\2192"; }
.wdo-link:hover::after { transform: translateX(-4px); }
[dir="ltr"] .wdo-link:hover::after { transform: translateX(4px); }

/* Hero */
.wdo-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(720px, calc(100svh - 110px));
  display: grid;
  place-items: center;
  background: #f6f6f8;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--wdo-primary) 20%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--wdo-primary) 10%, #fff), #fff 55%, var(--wdo-soft));
}

.wdo-hero::before,
.wdo-hero::after {
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--wdo-primary) 22%, transparent);
  border-radius: 50%;
  content: "";
}

.wdo-hero::before { width: 440px; height: 440px; inset: -220px auto auto -110px; }
.wdo-hero::after { width: 620px; height: 620px; inset: auto -340px -310px auto; }

.wdo-hero--image {
  color: #fff;
  background-position: center;
  background-size: cover;
}

.wdo-hero--image::before {
  z-index: -1;
  width: 100%;
  height: 100%;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.18));
}

.wdo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding-block: clamp(70px, 10vw, 126px);
}

.wdo-hero__content { max-width: 720px; }

.wdo-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--wdo-primary) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, #fff 78%, transparent);
  color: var(--wdo-ink);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.wdo-hero__badge::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wdo-primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--wdo-primary) 15%, transparent);
  content: "";
}

.wdo-hero h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: .99;
  letter-spacing: -.055em;
}

.wdo-hero__lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--wdo-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.wdo-hero--image .wdo-hero__lead { color: rgba(255,255,255,.82); }
.wdo-hero--image h1 { color: #fff; }

.wdo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.wdo-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.wdo-btn:hover { transform: translateY(-2px); }
.wdo-btn--primary { background: var(--wdo-primary); color: #fff; box-shadow: 0 12px 26px color-mix(in srgb, var(--wdo-primary) 28%, transparent); }
.wdo-btn--primary:hover { color: #fff; box-shadow: 0 16px 34px color-mix(in srgb, var(--wdo-primary) 36%, transparent); }
.wdo-btn--ghost { border-color: var(--wdo-border); background: rgba(255,255,255,.8); color: var(--wdo-ink); }
.wdo-hero--image .wdo-btn--ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(10px); }

.wdo-hero__panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: var(--wdo-radius-lg);
  background: rgba(255,255,255,.74);
  box-shadow: var(--wdo-shadow);
  backdrop-filter: blur(20px);
}

.wdo-hero--image .wdo-hero__panel { background: rgba(20,20,20,.48); border-color: rgba(255,255,255,.2); }
.wdo-hero__panel-label { color: var(--wdo-primary); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.wdo-hero__panel h2 { margin: 12px 0 8px; color: inherit; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; }
.wdo-hero__panel p { margin: 0; color: var(--wdo-muted); line-height: 1.75; }
.wdo-hero--image .wdo-hero__panel p { color: rgba(255,255,255,.72); }
.wdo-hero__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.wdo-metric { padding: 18px; border-radius: 16px; background: var(--wdo-soft); }
.wdo-hero--image .wdo-metric { background: rgba(255,255,255,.1); }
.wdo-metric strong { display: block; color: inherit; font-size: 22px; line-height: 1.1; }
.wdo-metric span { display: block; margin-top: 6px; color: var(--wdo-muted); font-size: 12px; }
.wdo-hero--image .wdo-metric span { color: rgba(255,255,255,.68); }

/* Benefits */
.wdo-benefits { position: relative; z-index: 2; margin-top: -34px; }
.wdo-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--wdo-border);
  border-radius: var(--wdo-radius);
  background: var(--wdo-surface);
  box-shadow: var(--wdo-shadow);
}
.wdo-benefit { display: flex; gap: 13px; padding: 24px; }
.wdo-benefit + .wdo-benefit { border-inline-start: 1px solid var(--wdo-border); }
.wdo-benefit__mark { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--wdo-primary) 12%, #fff); color: var(--wdo-primary); font-weight: 900; }
.wdo-benefit strong { display: block; margin-bottom: 4px; font-size: 14px; }
.wdo-benefit span { color: var(--wdo-muted); font-size: 12px; line-height: 1.6; }

/* Brand marquee */
.wdo-brands {
  overflow: hidden;
  padding-block: clamp(42px, 5vw, 62px);
  border-bottom: 1px solid var(--wdo-border);
  background: var(--wdo-surface);
}

.wdo-brands__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.wdo-brands__head h2 {
  margin: 0;
  color: var(--wdo-ink);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -.02em;
}

.wdo-brands__head span {
  color: var(--wdo-muted);
  font-size: 13px;
}

.wdo-brands__viewport {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.wdo-brands__track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: wdo-brand-marquee 34s linear infinite;
  will-change: transform;
}

.wdo-brands__viewport:hover .wdo-brands__track,
.wdo-brands__viewport:focus-within .wdo-brands__track { animation-play-state: paused; }

.wdo-brands__group { display: flex; flex: 0 0 auto; gap: 18px; }

.wdo-brand {
  display: flex;
  width: clamp(170px, 16vw, 220px);
  height: 88px;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border: 1px solid var(--wdo-border);
  border-radius: 16px;
  background: #fff;
  color: var(--wdo-ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.wdo-brand:hover {
  border-color: color-mix(in srgb, var(--wdo-primary) 32%, transparent);
  color: var(--wdo-primary);
  box-shadow: 0 12px 30px rgba(25,25,25,.08);
  transform: translateY(-2px);
}

.wdo-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
  transition: filter .2s ease, opacity .2s ease;
}

.wdo-brand:hover img { filter: grayscale(0); opacity: 1; }

@keyframes wdo-brand-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}

/* WooCommerce grids */
.wdo-catalog .products { margin-bottom: 0 !important; }
.wdo-catalog .product-grid-item {
  overflow: hidden;
  border: 1px solid var(--wdo-border);
  border-radius: var(--wdo-radius-sm);
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.wdo-catalog .product-grid-item:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--wdo-primary) 28%, transparent); box-shadow: var(--wdo-shadow); }
.wdo-catalog .product-grid-item .product-element-top { overflow: hidden; border-radius: 13px 13px 0 0; }
.wdo-catalog .product-grid-item .product-image-link img { transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.wdo-catalog .product-grid-item:hover .product-image-link img { transform: scale(1.045); }
.wdo-catalog .product-grid-item .product-element-bottom { padding: 17px 18px 20px; }
.wdo-catalog .product-grid-item .wd-entities-title { font-size: 16px; line-height: 1.55; }
.wdo-catalog .product-grid-item .price { color: var(--wdo-primary); font-size: 16px; font-weight: 900; }
.wdo-catalog .product-grid-item .wd-add-btn a { border-radius: 10px; }
.wdo-categories .product-category { overflow: hidden; border-radius: var(--wdo-radius); }
.wdo-categories .category-image { border-radius: var(--wdo-radius); background: var(--wdo-soft); }
.wdo-categories .category-image img { transition: transform .5s ease; }
.wdo-categories .product-category:hover .category-image img { transform: scale(1.04); }

/* Promo */
.wdo-promo { padding-block: clamp(34px, 6vw, 66px); }
.wdo-promo__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(34px, 6vw, 72px);
  border-radius: var(--wdo-radius-lg);
  background: var(--wdo-secondary);
  color: #fff;
}
.wdo-promo__card::after { position: absolute; z-index: -1; width: 420px; height: 420px; inset: -210px -80px auto auto; border-radius: 50%; background: var(--wdo-primary); opacity: .3; content: ""; filter: blur(1px); }
.wdo-promo__card h2 { max-width: 680px; margin: 0; color: #fff; font-size: clamp(30px, 4.5vw, 56px); line-height: 1.12; letter-spacing: -.04em; }
.wdo-promo__card p { max-width: 600px; margin: 15px 0 0; color: rgba(255,255,255,.72); font-size: 17px; }
.wdo-promo__card .wdo-btn { background: #fff; color: var(--wdo-ink); }

/* Reasons and FAQ */
.wdo-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wdo-reason { padding: clamp(24px, 3vw, 34px); border: 1px solid var(--wdo-border); border-radius: var(--wdo-radius); background: #fff; }
.wdo-reason__number { display: block; margin-bottom: 26px; color: var(--wdo-primary); font-size: 13px; font-weight: 900; }
.wdo-reason h3 { margin: 0 0 9px; color: var(--wdo-ink); font-size: 20px; }
.wdo-reason p { margin: 0; color: var(--wdo-muted); line-height: 1.75; }

.wdo-faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(30px, 7vw, 90px); align-items: start; }
.wdo-faq__items { display: grid; gap: 12px; }
.wdo-faq details { border: 1px solid var(--wdo-border); border-radius: 16px; background: #fff; }
.wdo-faq summary { position: relative; padding: 20px 54px 20px 22px; color: var(--wdo-ink); font-weight: 800; cursor: pointer; list-style: none; }
[dir="rtl"] .wdo-faq summary { padding: 20px 22px 20px 54px; }
.wdo-faq summary::-webkit-details-marker { display: none; }
.wdo-faq summary::after { position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); color: var(--wdo-primary); font-size: 24px; content: "+"; }
.wdo-faq details[open] summary::after { content: "\2212"; }
.wdo-faq details p { margin: 0; padding: 0 22px 22px; color: var(--wdo-muted); line-height: 1.8; }

/* Global refinements */
.wdo-active .wd-header-nav .menu > li > a { font-weight: 700; }
.wdo-active .wd-header-search-form input[type="text"] { border-radius: 12px; }
.wdo-active .woocommerce-breadcrumb { color: var(--wdo-muted); font-size: 13px; }
.wdo-active .single-product .summary-inner { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--wdo-border); border-radius: var(--wdo-radius); background: #fff; }
.wdo-active .single-product .product_title { letter-spacing: -.025em; }
.wdo-active .single-product .cart .button,
.wdo-active .checkout-button,
.wdo-active #place_order { min-height: 50px; border-radius: 12px; }
.wdo-active .woocommerce-message,
.wdo-active .woocommerce-info,
.wdo-active .woocommerce-error { border-radius: 12px; }
.wdo-active input[type="text"],
.wdo-active input[type="email"],
.wdo-active input[type="tel"],
.wdo-active input[type="password"],
.wdo-active textarea,
.wdo-active select { border-radius: 10px; }

.wdo-mobile-nav { display: none; }

@media (max-width: 1024px) {
  .wdo-hero__grid { grid-template-columns: 1fr; }
  .wdo-hero__panel { max-width: 620px; }
  .wdo-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .wdo-benefit:nth-child(3) { border-inline-start: 0; border-top: 1px solid var(--wdo-border); }
  .wdo-benefit:nth-child(4) { border-top: 1px solid var(--wdo-border); }
}

@media (max-width: 767px) {
  .wdo-shell { width: min(calc(100% - 28px), var(--wdo-shell)); }
  .wdo-section { padding-block: 50px; }
  .wdo-section-head { align-items: start; flex-direction: column; gap: 14px; }
  .wdo-hero { min-height: auto; }
  .wdo-hero__grid { gap: 34px; padding-block: 64px 76px; }
  .wdo-hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .wdo-hero__panel { padding: 24px; border-radius: 22px; }
  .wdo-benefits { margin-top: -25px; }
  .wdo-benefits__grid { grid-template-columns: 1fr; }
  .wdo-benefit + .wdo-benefit { border-inline-start: 0; border-top: 1px solid var(--wdo-border); }
  .wdo-brands__head { align-items: start; flex-direction: column; gap: 5px; }
  .wdo-brands__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .wdo-brand { width: 150px; height: 76px; padding: 14px 18px; font-size: 13px; }
  .wdo-promo__card { grid-template-columns: 1fr; border-radius: 22px; }
  .wdo-promo__card .wdo-btn { width: 100%; }
  .wdo-reasons { grid-template-columns: 1fr; }
  .wdo-faq { grid-template-columns: 1fr; }
  .wdo-mobile-nav {
    position: fixed;
    z-index: 999;
    inset: auto 10px 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 18px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 12px 38px rgba(0,0,0,.16);
    backdrop-filter: blur(16px);
  }
  .wdo-mobile-nav a { display: flex; min-height: 46px; align-items: center; justify-content: center; color: var(--wdo-ink); font-size: 12px; font-weight: 800; text-decoration: none; }
  .wdo-mobile-nav a + a { border-inline-start: 1px solid var(--wdo-border); }
  body.wdo-active { padding-bottom: 78px; }
  .wdo-active #ht-ctc-chat { bottom: 88px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wdo-active *, .wdo-active *::before, .wdo-active *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .wdo-brands__track { animation: none; }
}
