/* ============================================================
   Dar Home — custom styles (al-rassi design replica)
   Layer on top of WoodMart. Scope: front page (dh-front).
   ============================================================ */

:root {
  --dh-font: 'Baloo Bhaijaan 2', 'Kufam', Helvetica, Arial, sans-serif;
  --dh-charcoal: #2C3539;
  --dh-olive: #808069;
  --dh-olive-deep: #6b6b55;
  --dh-taupe: #D1C7B7;
  --dh-cream: #FBF8F3;
  --dh-green: #808069;
  --dh-green-deep: #6b6b55;
  --dh-red: #ff3b30;
  --dh-text-main: #2C3539;
  --dh-text-muted: #7f7f7f;
  --dh-ink: #2C3539;
  --dh-border: #D1C7B7;
  --dh-soft: #FBF8F3;
  --dh-price-pill: rgba(255, 255, 255, 0.85);
  --dh-shadow-card: 0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
  scroll-behavior: smooth;
}

body.admin-bar,
body.dh-front {
  font-family: var(--dh-font);
  background: var(--dh-cream);
  color: var(--dh-text-main);
}

body.dh-front {
  margin: 0;
  min-height: 100%;
}

.dh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ---------------- Header ---------------- */

.dh-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
  border-bottom: 1px solid rgba(209, 199, 183, 0.5);
}

.dh-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-top: 6px;
  padding-bottom: 6px;
}

body.admin-bar .dh-header {
  top: 32px;
}

.dh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--dh-charcoal);
}

.dh-logo img {
  width: auto;
  height: 56px;
  display: block;
  object-fit: contain;
}

.dh-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.dh-search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid rgba(145, 158, 171, 0.45);
  border-radius: 999px;
  background: #fff;
}

.dh-search-input {
  width: 100%;
  min-height: 40px;
  padding: 4px 0;
  border-radius: 0;
  border: none;
  background: transparent;
  background-image: none;
  color: var(--dh-charcoal);
  font-family: var(--dh-font);
  font-size: 16px;
  outline: none;
  box-sizing: border-box;
}

.dh-search-input::placeholder {
  color: var(--dh-olive);
  opacity: 1;
}

.dh-search-input:focus,
.dh-search-input.is-focused {
  border: none;
  box-shadow: none;
  background: transparent;
}

.dh-search-icon {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dh-charcoal);
  pointer-events: none;
}

.dh-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dh-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.dh-badge-green {
  background: var(--dh-olive);
}

.dh-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: none;
  background: rgba(128, 128, 105, 0.08);
  color: var(--dh-olive);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--dh-font);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}

.dh-cart-btn:hover {
  background: rgba(128, 128, 105, 0.16);
}

.dh-cart-btn svg {
  width: 22px;
  height: 22px;
}

.dh-cart-btn .dh-badge-green {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: var(--dh-olive);
  color: #fff;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  border: 2px solid #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ---------------- Pre-header account strip ---------------- */

.dh-pre {
  background: #fff;
  border-bottom: 1px solid rgba(209, 199, 183, 0.5);
}

.dh-pre-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.dh-pre-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dh-text-main);
  text-decoration: none;
  font-family: var(--dh-font);
}

.dh-pre-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dh-green);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.dh-pre-name {
  font-size: 14px;
  font-weight: 600;
}

.dh-pre-account svg {
  color: var(--dh-text-muted);
}

.dh-pre-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dh-pre-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dh-text-muted);
  text-decoration: none;
  font-family: var(--dh-font);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.dh-pre-link svg {
  color: var(--dh-olive);
}

.dh-pre-link:hover {
  color: var(--dh-olive);
}

/* ---------------- Category chips ---------------- */

.dh-cats {
  background: var(--dh-cream);
  border-bottom: 1px solid var(--dh-border);
}

.dh-cats-scroll {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.dh-cats-scroll::-webkit-scrollbar {
  display: none;
}

.dh-cats-scroll.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.dh-cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px 18px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: #fff;
  color: var(--dh-ink);
  font-family: var(--dh-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(145, 158, 171, 0.2);
  transition: background 0.2s, color 0.2s, border 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.dh-cat-chip:hover {
  background: rgba(128, 128, 105, 0.06);
}

.dh-cat-chip.is-active {
  background: var(--dh-green);
  color: #fff;
  box-shadow: none;
}

.dh-cat-all {
  color: var(--dh-olive);
  background: #fff;
}

/* Mega menu: عرض الكل trigger + category panel */
.dh-cat-mega {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.dh-mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline-end: 14px;
}

.dh-mega-trigger svg {
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.2s;
}

.dh-cat-mega.is-open .dh-mega-trigger svg {
  transform: rotate(180deg);
}

.dh-mega-panel {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  margin-top: 8px;
  width: 300px;
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: 16px;
  box-shadow: var(--dh-shadow-card);
  padding: 14px;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.dh-cat-mega.is-open .dh-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dh-mega-head {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dh-text-muted);
}

.dh-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dh-mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(128, 128, 105, 0.06);
  color: var(--dh-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.dh-mega-item:hover {
  background: var(--dh-green);
  color: #fff;
  text-decoration: none;
}

.dh-mega-item small {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.6;
}

.dh-mega-item:hover small {
  color: #fff;
}

.dh-mega-foot {
  display: block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--dh-border);
  color: var(--dh-olive-deep);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.dh-mega-foot:hover {
  background: rgba(128, 128, 105, 0.08);
  text-decoration: none;
  color: var(--dh-olive-deep);
}

/* ---------------- Announcement notice ---------------- */

.dh-notice {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 16px;
}

.dh-notice-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(128, 128, 105, 0.08);
  border: 1px solid rgba(128, 128, 105, 0.22);
  border-radius: 14px;
  padding: 12px 18px;
}

.dh-notice-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(128, 128, 105, 0.16);
  color: var(--dh-olive);
}

.dh-notice-box p {
  margin: 0;
  font-family: var(--dh-font);
  font-size: 14px;
  color: var(--dh-text-main);
  line-height: 1.7;
}

.dh-notice-box strong {
  color: var(--dh-olive);
}

/* ---------------- Hero banner ---------------- */

/* Override WoodMart button/input defaults so Dar Home header styles win
   regardless of parent-theme cascade order. */
.dh-cart-btn {
  background: rgba(128, 128, 105, 0.08) !important;
  color: var(--dh-olive) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 16px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.dh-cart-label {
  color: var(--dh-olive) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.dh-search-input {
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 14px 4px 34px !important;
  background: transparent !important;
  background-image: none !important;
}

.dh-search-input:focus,
.dh-search-input.is-focused {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Card action controls — beat WoodMart global button resets. */
.dh-my-shop {
  background: none !important;
  border: none !important;
  border-radius: 8px !important;
  color: var(--dh-charcoal) !important;
  padding: 4px 6px !important;
  font-family: var(--dh-font) !important;
}

.dh-my-shop span {
  color: var(--dh-charcoal) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}

.dh-qty-minus,
.dh-qty-plus {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border: 1px solid rgba(145, 158, 171, 0.2) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  color: var(--dh-olive) !important;
  font-size: 18px !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.dh-qty-minus:disabled {
  color: #7f7f7f !important;
  cursor: default !important;
}

.dh-nav-prev,
.dh-nav-next {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border: none !important;
  border-radius: 50% !important;
  background: rgba(145, 158, 171, 0.08) !important;
  color: var(--dh-olive) !important;
  padding: 0 !important;
}

.dh-banner {
  display: block;
  padding-top: 24px;
}

.dh-banner-img {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(28, 32, 30, 0.18);
}

@media (max-width: 768px) {
  .dh-banner { padding-top: 16px; }
  .dh-banner-img { border-radius: 6px; box-shadow: 0 10px 24px rgba(28, 32, 30, 0.15); }
  .dh-pre-links { display: none; }
  .dh-notice-box { padding: 10px 14px; }
  .dh-notice-icon { width: 32px; height: 32px; }
  .dh-notice-box p { font-size: 13px; }
}

/* ---------------- Product grid ---------------- */

.dh-main {
  background: var(--dh-cream);
  padding: 24px 0 48px;
}

.dh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.dh-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--dh-text-muted);
  padding: 60px 0;
}

/* ---------------- Product card ---------------- */

.dh-card {
  position: relative;
  isolation: isolate;
  background: #fff;
  color: var(--dh-charcoal);
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 16px;
  box-shadow: var(--dh-shadow-card);
  overflow: visible;
  padding: 0;
  width: 100%;
  max-width: 500px;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--dh-font);
  cursor: pointer;
}

.dh-card:hover {
  box-shadow: 0 0 4px 0 rgba(145, 158, 171, 0.28), 0 16px 32px -6px rgba(145, 158, 171, 0.28);
}

.dh-card .dh-my-shop,
.dh-card .dh-qty button,
.dh-card .dh-nav-prev,
.dh-card .dh-nav-next,
.dh-card .dh-dot,
.dh-card .dh-zoom-btn {
  cursor: pointer;
}

.dh-card-media {
  position: relative;
  border-radius: 16px 16px 0 0;
}

/* image slider (swiper-like) */
.dh-carousel {
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.dh-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.dh-carousel-slide {
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.dh-img-wrap {
  position: relative;
  padding-top: calc(450 / 450 * 100%);
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.dh-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  z-index: 1;
}

.dh-zoom-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dh-charcoal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.dh-card:hover .dh-zoom-btn {
  opacity: 1;
  transform: scale(1);
}

.dh-zoom-btn:hover {
  background: var(--dh-olive);
  color: #fff;
}

.dh-sold-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

/* price pills over image */
.dh-price-stack {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 8px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}

.dh-price-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--dh-price-pill);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 4px 10px;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.dh-price-amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--dh-text-main);
}

.dh-price-old {
  font-size: 12px;
  font-weight: 500;
  color: var(--dh-text-muted);
  text-decoration: line-through 1px;
}

.dh-price-tag {
  color: var(--dh-olive);
  flex-shrink: 0;
}

.dh-tax-note {
  background: rgba(128, 128, 105, 0.16);
  color: rgba(44, 53, 57, 0.85);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  max-width: 100%;
  white-space: nowrap;
}

/* dots indicator */
.dh-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
}

.dh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgb(196, 205, 199);
  transition: background-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.dh-dot.is-active {
  background: var(--dh-green);
  transform: scale(1.25);
}

/* name */
.dh-card-name {
  margin: 0 0 4px;
  padding: 0 10px;
  font-family: var(--dh-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--dh-text-main);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* actions row */
.dh-card-actions {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 10px 8px;
}

.dh-my-shop {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  color: var(--dh-charcoal);
  cursor: pointer;
  font-family: var(--dh-font);
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.dh-my-shop svg {
  width: 1.7em;
  height: 1.7em;
}

.dh-my-shop span {
  font-size: 10px;
  font-weight: 600;
  color: var(--dh-charcoal);
  white-space: nowrap;
}

.dh-my-shop:hover {
  background: rgba(128, 128, 105, 0.08);
}

.dh-my-shop:hover span {
  color: var(--dh-olive);
}

.dh-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dh-qty-minus,
.dh-qty-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(145, 158, 171, 0.2);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  color: var(--dh-olive);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background-color 0.15s, color 0.15s;
}

.dh-qty-minus:disabled {
  color: #7f7f7f;
  border-color: rgba(145, 158, 171, 0.2);
  background: #fff;
  cursor: default;
}

.dh-qty-minus:hover:not(:disabled),
.dh-qty-plus:hover {
  background: rgba(99, 115, 129, 0.08);
}

.dh-qty-value {
  width: 48px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(145, 158, 171, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #7f7f7f;
}

.dh-nav-prev,
.dh-nav-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(145, 158, 171, 0.08);
  color: var(--dh-olive);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.dh-nav-prev:hover,
.dh-nav-next:hover {
  background: var(--dh-olive-deep);
  color: #fff;
}

.dh-card-nav {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- Auth page (v8.4.0 al-rassi split login) ---------------- */

/* Full-screen auth: hide the store chrome while keeping wp_head/wp_footer intact. */
body.dh-auth .dh-pre,
body.dh-auth .dh-header,
body.dh-auth .dh-cats,
body.dh-auth .dh-footer,
body.dh-auth > header,
body.dh-auth .site-header,
body.dh-auth .wd-page-wrapper > header,
body.dh-auth .wd-page-header {
  display: none !important;
}

.dh-auth {
  --dh-auth-soft: rgba(128, 128, 105, 0.14);
  min-height: 100vh;
  background: var(--dh-cream);
  font-family: var(--dh-font);
  color: var(--dh-text-main);
}

.dh-auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: 100vh;
}

/* Form column — first child = inline-start = RIGHT in RTL. */
.dh-auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 44px);
  box-sizing: border-box;
  position: relative;
}

.dh-auth-form-inner {
  width: 100%;
  max-width: 430px;
}

.dh-auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.80);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: var(--dh-shadow-card), 0 22px 60px rgba(44, 53, 57, 0.12);
  padding: clamp(24px, 4vw, 38px);
  box-sizing: border-box;
}

.dh-auth-card .dh-logo {
  justify-content: center;
  margin-bottom: 18px;
}

.dh-auth-card .dh-logo img {
  width: 56px;
  height: 56px;
}

.dh-auth-title {
  margin: 0 0 4px;
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 800;
  text-align: center;
}

.dh-auth-subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--dh-text-muted);
  text-align: center;
  line-height: 1.7;
}

.dh-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--dh-auth-soft);
  border-radius: 12px;
  margin-bottom: 20px;
}

.dh-auth-tab {
  flex: 1 1 0;
  border: none;
  background: none;
  border-radius: 8px;
  padding: 10px;
  font-family: var(--dh-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--dh-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.dh-auth-tab.is-active {
  background: #fff;
  color: var(--dh-green);
  box-shadow: 0 1px 3px rgba(145, 158, 171, 0.22);
}

/* Method switch: email/password vs phone+OTP. */
.dh-method-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--dh-auth-soft);
  border: 1px solid rgba(128, 128, 105, 0.22);
  border-radius: 14px;
  margin-bottom: 22px;
}

.dh-method-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none !important;
  background: transparent !important;
  border-radius: 10px !important;
  padding: 11px 8px !important;
  min-height: 0 !important;
  font-family: var(--dh-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--dh-text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.dh-method-pill.is-active {
  background: #fff !important;
  color: var(--dh-green);
  box-shadow: 0 3px 10px rgba(44, 53, 57, 0.10) !important;
}

.dh-field {
  margin: 0 0 14px;
  text-align: right;
}

.dh-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dh-text-muted);
}

.dh-field label .required {
  color: var(--dh-red);
}

.dh-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(145, 158, 171, 0.34);
  background: rgba(255, 255, 255, 0.92);
  color: var(--dh-ink);
  font-family: var(--dh-font);
  font-size: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.dh-input:focus {
  border: 1px solid var(--dh-olive);
  box-shadow: 0 0 0 3px rgba(128, 128, 105, 0.16);
}

.dh-input-wrap {
  position: relative;
  display: block;
  line-height: 0;
}

.dh-input-wrap .dh-input.dh-input--icon,
.dh-input-wrap .dh-input {
  padding-inline-end: 42px;
}

.dh-field-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dh-text-muted);
  pointer-events: none;
}

.dh-input--icon {
  padding-inline-start: 38px !important;
}

.dh-pw-toggle {
  position: absolute !important;
  inset-inline-end: 5px !important;
  top: 5px !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: rgba(128, 128, 105, 0.07) !important;
  color: var(--dh-text-muted);
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.dh-pw-toggle:hover {
  background: var(--dh-auth-soft) !important;
  color: var(--dh-green);
}

.dh-pw-toggle:active {
  transform: scale(0.94);
}

.dh-auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 0;
  font-size: 13px;
}

.dh-remember {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dh-text-muted);
  cursor: pointer;
}

.dh-remember input {
  accent-color: var(--dh-green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.dh-forgot {
  color: var(--dh-green);
  text-decoration: none;
  font-weight: 600;
}

.dh-forgot:hover {
  text-decoration: underline;
}

.dh-submit-row {
  margin: 20px 0 0;
}

.dh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--dh-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.dh-btn-green {
  background: var(--dh-green);
  color: #fff;
}

.dh-btn-green:hover {
  background: var(--dh-green-deep);
}

.dh-btn-green:active {
  transform: scale(0.99);
}

.dh-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.dh-auth .woocommerce-error,
.dh-auth .woocommerce-message,
.dh-auth .woocommerce-info {
  list-style: none;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  text-align: right;
  line-height: 1.7;
}

.dh-auth .woocommerce-error {
  background: #fdecea;
  color: #a12312;
  border: 1px solid #f5c6c2;
}

.dh-auth .woocommerce-message {
  background: rgba(128, 128, 105, 0.10);
  color: var(--dh-olive);
  border: 1px solid rgba(128, 128, 105, 0.35);
}

.dh-auth .woocommerce-info {
  background: #eef2ff;
  color: #1a72b9;
  border: 1px solid #c8daff;
}

.dh-auth-foot {
  margin: 18px 0 0;
  text-align: center;
}

.dh-auth-foot a {
  color: var(--dh-green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dh-auth-foot a:hover {
  text-decoration: underline;
}

/* Phone + OTP panel. */
.dh-otp-hint {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--dh-text-muted);
  text-align: center;
  line-height: 1.7;
}

.dh-phone-row {
  position: relative;
}

.dh-phone-wrap {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid rgba(145, 158, 171, 0.34);
  border-radius: 12px;
  background: var(--dh-card-bg);
}

.dh-phone-code {
  grid-column: 1;
  width: 100%;
  height: 100%;
  min-height: 46px;
  padding-inline: 10px 26px !important;
  border: none !important;
  border-inline-end: 1px solid rgba(145, 158, 171, 0.30) !important;
  background: rgba(128, 128, 105, 0.07) !important;
  color: var(--dh-olive);
  font-family: var(--dh-font);
  font-size: 13px;
  font-weight: 700;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.dh-phone-code:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(128, 128, 105, 0.35);
}

.dh-phone-caret {
  position: absolute;
  inset-inline-start: 88px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dh-olive);
  pointer-events: none;
}

.dh-phone-wrap .dh-input {
  grid-column: 2;
  border: none;
  border-radius: 0;
  border-start-end-radius: 11px;
  border-end-end-radius: 11px;
  padding-inline: 12px 40px !important;
  text-align: left;
}

.dh-phone-row .dh-field-icon {
  inset-inline-start: auto;
  inset-inline-end: 12px;
}

.dh-otp-label {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--dh-text-main);
  text-align: center;
  line-height: 1.7;
}

.dh-otp-label strong {
  color: var(--dh-green);
  font-weight: 700;
}

.dh-otp {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.dh-otp input {
  width: 46px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--dh-ink);
  font-family: var(--dh-font);
  border: 1px solid rgba(145, 158, 171, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.dh-otp input:focus {
  border: 1px solid var(--dh-olive);
  box-shadow: 0 0 0 3px rgba(128, 128, 105, 0.16);
}

.dh-otp-timer {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--dh-text-muted);
  text-align: center;
}

.dh-otp-timer button {
  border: none;
  background: none;
  color: var(--dh-green);
  font-family: var(--dh-font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.dh-otp-timer button:disabled {
  color: var(--dh-text-muted);
  cursor: default;
  text-decoration: none;
}

.dh-otp-note {
  min-height: 18px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--dh-green);
  text-align: center;
}

.dh-otp-note.is-error {
  color: var(--dh-red);
}

/* Brand panel — inline-start = LEFT in RTL. */
.dh-auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px clamp(28px, 5vw, 72px);
  color: #fff;
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(209, 199, 183, 0.18) 0%, transparent 55%),
    linear-gradient(150deg, #3a4447 0%, var(--dh-charcoal) 52%, #565a45 100%);
  box-sizing: border-box;
}

.dh-brand-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.dh-brand-top img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.dh-brand-top strong {
  font-size: 22px;
  font-weight: 800;
}

.dh-brand-head {
  margin: 0 0 14px;
  font-size: clamp(23px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1.35;
}

.dh-brand-text {
  margin: 0 0 30px;
  max-width: 440px;
  font-size: 14.5px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
}

.dh-brand-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dh-brand-li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.dh-brand-ico {
  flex: 0 0 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(209, 199, 183, 0.14);
  color: #e8e2d2;
  border: 1px solid rgba(209, 199, 183, 0.26);
}

.dh-brand-mark {
  position: absolute;
  bottom: -46px;
  inset-inline-start: -18px;
  font-size: 240px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1000px) {
  .dh-auth-stage {
    grid-template-columns: 1fr;
  }
  .dh-auth-brand {
    display: none;
  }
}

@media (max-width: 480px) {
  .dh-auth-card {
    padding: 24px 20px 20px;
  }
  .dh-method-switch {
    grid-template-columns: 1fr;
  }
  .dh-otp {
    gap: 6px;
  }
  .dh-otp input {
    width: 42px;
    height: 50px;
  }
}

/* ---------------- Footer (global) ---------------- */

.dh-footer {
  background: #fff;
  border-top: 1px solid rgba(145, 158, 171, 0.2);
  margin-top: 48px;
  font-family: var(--dh-font);
}

.dh-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 24px;
}

.dh-footer-logo img {
  width: auto;
  height: 44px;
}

.dh-footer-desc {
  margin: 10px 0 0;
  color: var(--dh-text-muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.dh-footer-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dh-text-main);
}

.dh-footer-contact p {
  margin: 0 0 6px;
  color: var(--dh-text-muted);
  font-size: 14px;
  line-height: 1.7;
  direction: ltr;
  text-align: right;
}

.dh-footer-links a {
  display: block;
  color: var(--dh-text-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 2.1;
  transition: color 0.2s;
}

.dh-footer-links a:hover {
  color: var(--dh-green);
}

.dh-footer-copy {
  border-top: 1px solid rgba(145, 158, 171, 0.2);
  padding-top: 14px;
  padding-bottom: 14px;
  text-align: center;
  color: var(--dh-text-muted);
  font-size: 13px;
}

.dh-footer-copy p {
  margin: 0;
}

/* ---------------- Global product cards (shop/category/search) ---------------- */

ul.products li.product,
.wd-grid-products li.product,
.wd-products li.product,
.woodmart-products li.product {
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

ul.products li.product .dh-card {
  margin: 0 auto;
  max-width: 500px;
}

ul.products li.product > a,
ul.products li.product .dh-card a {
  text-decoration: none;
}

ul.products li.product img,
ul.products li.product .wp-post-image,
ul.products li.product .product-element-top,
ul.products li.product .product-information,
ul.products li.product .product-wrapper {
  margin: 0;
  width: auto;
}

ul.products li.product .dh-img-wrap img { width: 100%; }

.wd-products-with-bg ul.products li.product,
.woodmart-products ul.products li.product,
.woodmart-products li.product {
  background: transparent;
}

body.woocommerce ul.products,
body.woocommerce-page ul.products,
.wd-grid-products {
  --wd-column-gap: 24px;
  --wd-row-gap: 24px;
}

/* ---------------- Catalog page (جميع المنتجات) ---------------- */

.dh-catalog-head {
  padding-top: 22px;
  padding-bottom: 6px;
}

.dh-catalog-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--dh-ink);
}

.dh-pagination {
  padding-top: 8px;
  padding-bottom: 40px;
}

.dh-pagination .page-numbers,
.dh-pagination ul.page-numbers {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.dh-pagination .page-numbers a,
.dh-pagination .page-numbers > span:not(.dots) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--dh-border);
  color: var(--dh-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.dh-pagination .page-numbers a:hover {
  background: rgba(128, 128, 105, 0.08);
  border-color: var(--dh-olive);
  color: var(--dh-olive);
}

.dh-pagination .page-numbers .page-numbers.current {
  background: var(--dh-green);
  border-color: var(--dh-green);
  color: #fff;
}

.dh-pagination .page-numbers .dots {
  border: none;
  background: none;
  box-shadow: none;
}

.dh-empty {
  text-align: center;
  color: var(--dh-text-muted);
  font-size: 15px;
  padding: 32px 0 48px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1199px) {
  .dh-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .dh-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc(100% - 24px);
    gap: 12px;
    padding: 0 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
.dh-grid::-webkit-scrollbar { display: none; }
  .dh-grid .dh-card { scroll-snap-align: start; scroll-snap-stop: always; }
  .dh-footer-top { grid-template-columns: 1fr; gap: 24px; }
  .dh-card-name { font-size: 12px; }
  .dh-qty-value { width: 40px; }
}

@media (max-width: 480px) {
  .dh-grid { grid-auto-columns: calc(100% - 20px); gap: 10px; padding: 0 10px; }
  .dh-container { padding: 0 10px; }
  .dh-cart-label { display: none; }
  .dh-cart-btn { padding: 8px; }
  .dh-cart-btn svg { width: 20px; height: 20px; }
  .dh-mega-panel { width: 260px; }
  .dh-card-actions { flex-wrap: wrap; gap: 8px; }
  .dh-my-shop { flex: 1 1 100%; min-height: 44px; }
  .dh-qty-value { min-width: 40px; height: 44px; }
  .dh-qty-minus,
  .dh-qty-plus,
  .dh-nav-prev,
  .dh-nav-next { width: 44px !important; height: 44px !important; min-height: 44px !important; max-height: 44px !important; }
  .dh-card-nav { gap: 8px; }
  .dh-dot { width: 9px; height: 9px; }
  .dh-dots { gap: 8px; padding-top: 10px; }
  .dh-my-shop span { font-size: 11px; }
}

/* Touch devices: keep zoom button visible and ≥44px (no hover on touch) */
@media (hover: none) and (pointer: coarse) {
  .dh-zoom-btn {
    opacity: 1 !important;
    transform: none !important;
    width: 44px !important;
    height: 44px !important;
  }
  .dh-qty-minus,
  .dh-qty-plus,
  .dh-nav-prev,
  .dh-nav-next {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .dh-dot {
    width: 10px;
    height: 10px;
  }
}
/* === Static pages (privacy/shipping/returns/terms/about/contact) === */
.dh-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 64px;
  color: #3a3f42;
  line-height: 1.95;
  font-size: 15.5px;
}
.dh-page h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 36px 0 12px;
  color: #202426;
}
.dh-page h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: #2f3538;
}
.dh-page p { margin: 0 0 14px; }
.dh-page ul, .dh-page ol { margin: 0 0 18px; padding-right: 22px; }
.dh-page li { margin-bottom: 7px; }
.dh-page a { color: #5a7a4b; font-weight: 600; text-decoration: underline; }
.dh-page table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.dh-page td, .dh-page th { border: 1px solid #e3e7e8; padding: 10px 12px; text-align: right; }
.dh-page th { background: #f4f6f4; font-weight: 700; }
.dh-page .dh-note { background: #f7f9f5; border-right: 4px solid #5a7a4b; padding: 14px 16px; border-radius: 6px; margin: 20px 0; }
.dh-page .dh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.dh-page .dh-card { background: #f7f9f5; border: 1px solid #e6ebe4; border-radius: 10px; padding: 18px; }
.dh-page .dh-card strong { display: block; margin-bottom: 6px; color: #202426; }
.dh-page .dh-cta { display: inline-block; background: #2c3539; color: #fff; padding: 11px 26px; border-radius: 999px; text-decoration: none; font-weight: 700; margin: 6px 0; }
.dh-page .dh-cta:hover { background: #5a7a4b; color: #fff; }
@media (max-width: 768px) {
  .dh-page { padding: 24px 16px 48px; font-size: 15px; }
  .dh-page h2 { font-size: 19px; }
  .dh-page .dh-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Store-wide brand identity (v8.2.0)
   Replace the default WoodMart/WooCommerce GREEN (#83b735) with
   the Dar Home olive/beige identity + professional polish for
   my-account, product single, cart, checkout, notices, forms.
   ============================================================ */

:root {
  /* Kill the default green — re-theme everything driven by WoodMart primary. */
  --wd-primary-color: var(--dh-olive);
  --wd-primary-color-rgb: 128, 128, 105;
  /* WooCommerce Blocks (cart/checkout blocks) accent. */
  --wc-block-accent-color: var(--dh-olive);
  --wc-block-accent-color-foreground: #fff;
}

/* ---- Links ---- */
.woocommerce a,
.woocommerce-page a,
.wd-page a {
  color: var(--dh-olive);
  text-decoration: none;
}
.woocommerce a:hover,
.woocommerce-page a:hover {
  color: var(--dh-olive-deep);
}

/* ---- Primary buttons (classic WooCommerce + WoodMart) ---- */
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit,
.woocommerce .wc-forward,
.woocommerce .wc-backward,
.woocommerce-Button,
.woocommerce .woocommerce-Button.button {
  background: var(--dh-olive) !important;
  color: #fff !important;
  border-radius: 10px !important;
  border: none !important;
  font-family: var(--dh-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  min-height: 44px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .wc-forward:hover,
.woocommerce .wc-backward:hover,
.woocommerce-Button:hover,
.woocommerce .woocommerce-Button.button:hover {
  background: var(--dh-olive-deep) !important;
  color: #fff !important;
}

/* ---- Notices (info/message/error) ---- */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error {
  border-radius: 10px;
  border: 1px solid;
  padding: 14px 46px 14px 16px;
  line-height: 1.7;
  font-family: var(--dh-font);
  color: var(--dh-charcoal);
}
.woocommerce .woocommerce-message {
  background: rgba(128, 128, 105, 0.10);
  border-color: var(--dh-olive);
}
.woocommerce .woocommerce-message::before { color: var(--dh-olive); }
.woocommerce .woocommerce-info {
  background: rgba(128, 128, 105, 0.06);
  border-color: var(--dh-taupe);
}
.woocommerce .woocommerce-info::before { color: var(--dh-olive); }
.woocommerce .woocommerce-error {
  background: #fbf1ef;
  border-color: #eec9c2;
  color: #7a1f15;
}
.woocommerce .woocommerce-error::before { color: #c0392b; }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-info .button,
.wc-block-components-notice-banner .wc-block-components-button {
  background: var(--dh-olive) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

/* Block notices */
.wc-block-components-notice-banner {
  border-radius: 10px;
}
.wc-block-components-notice-banner.is-info {
  background: rgba(128, 128, 105, 0.06) !important;
  border-color: var(--dh-taupe) !important;
}
.wc-block-components-notice-banner.is-success {
  background: rgba(128, 128, 105, 0.10) !important;
  border-color: var(--dh-olive) !important;
}
.wc-block-components-notice-banner.is-error {
  background: #fbf1ef !important;
  border-color: #eec9c2 !important;
}

/* ---- Form fields (classic) ---- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea.input-text,
.woocommerce form .form-row select,
.woocommerce input.input-text,
.woocommerce textarea.input-text,
.woocommerce select,
.woocommerce .woocommerce-EditAccountForm input,
.woocommerce .woocommerce-EditAccountForm textarea,
.woocommerce form.login input[type="text"],
.woocommerce form.login input[type="password"],
.woocommerce form.register input[type="email"] {
  border: 1px solid var(--dh-border) !important;
  border-radius: 10px !important;
  background: #fff;
  color: var(--dh-charcoal);
  min-height: 44px;
  padding: 8px 14px;
  box-shadow: none;
  font-family: var(--dh-font);
  font-size: 14px;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce input.input-text:focus,
.woocommerce textarea.input-text:focus,
.woocommerce select:focus,
.woocommerce form.login input:focus {
  border-color: var(--dh-olive) !important;
  box-shadow: 0 0 0 3px rgba(128, 128, 105, 0.18);
  outline: none;
}
.woocommerce form .form-row label {
  font-weight: 600;
  color: var(--dh-charcoal);
  margin-bottom: 6px;
  display: block;
}
.woocommerce form .form-row {
  margin-bottom: 16px;
}

/* ============================================================
   My Account (logged-in) redesign
   ============================================================ */

.woocommerce-MyAccount-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
  color: var(--dh-charcoal);
  font-family: var(--dh-font);
  grid-column: 1 / -1;
}

.wd-my-account-wrapper {
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .wd-my-account-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .wd-my-account-wrapper > * { min-width: 0; }
  .woocommerce-MyAccount-navigation { grid-column: 1 !important; }
  .woocommerce-MyAccount-content { grid-column: 2 !important; }
}
@media (max-width: 1024px) {
  .wd-my-account-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .wd-my-account-wrapper > * { grid-column: auto !important; }
}

/* Sidebar navigation card */
.woocommerce-MyAccount-navigation {
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 0 2px 0 rgba(145, 158, 171, 0.16), 0 12px 24px -4px rgba(145, 158, 171, 0.10);
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.woocommerce-MyAccount-navigation ul li { margin: 0; }
.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--dh-charcoal);
  font-family: var(--dh-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(128, 128, 105, 0.08);
  color: var(--dh-olive-deep);
}
.woocommerce-MyAccount-navigation ul li.is-active > a {
  background: var(--dh-olive);
  color: #fff;
}
.woocommerce-MyAccount-navigation ul li a svg {
  width: 18px;
  height: 18px;
  flex: none;
}
@media (max-width: 1024px) {
  .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
  .woocommerce-MyAccount-navigation ul li a { white-space: nowrap; }
}

/* Content card */
.woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 16px;
  padding: 28px;
  box-sizing: border-box;
  color: var(--dh-text-main);
  font-family: var(--dh-font);
}
@media (max-width: 480px) {
  .woocommerce-MyAccount-content { padding: 20px 16px; }
}
.woocommerce-MyAccount-content p {
  line-height: 1.8;
  margin: 0 0 14px;
}
.woocommerce-MyAccount-content a {
  color: var(--dh-olive);
  font-weight: 600;
}
.woocommerce-MyAccount-content a:hover { color: var(--dh-olive-deep); }
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  font-family: var(--dh-font);
  color: var(--dh-charcoal);
  font-weight: 800;
}

/* Hide the duplicated WoodMart account-nav widget inside content */
.woocommerce-MyAccount-content .wd-my-account-links { display: none; }

/* Orders table */
.woocommerce .woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
}
.woocommerce .woocommerce-orders-table thead th {
  background: var(--dh-cream);
  color: var(--dh-charcoal);
  font-weight: 700;
  padding: 12px 14px;
}
.woocommerce .woocommerce-orders-table tbody td {
  padding: 14px;
  border-top: 1px solid rgba(209, 199, 183, 0.4);
}
.woocommerce .woocommerce-orders-table tbody tr:hover {
  background: rgba(128, 128, 105, 0.04);
}

/* Address section */
.woocommerce-Addresses .col-1.address,
.woocommerce-Addresses .col-2.address {
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 14px;
  padding: 20px;
}

/* Edit-account / lost-password forms */
.woocommerce form.edit-account,
.woocommerce form.lost_reset_password,
.woocommerce form.woocommerce-EditAccountForm {
  max-width: 560px;
}

/* ============================================================
   Product single page polish
   ============================================================ */

.woocommerce div.product .product_title,
.product_title.wd-entities-title {
  font-family: var(--dh-font);
  font-weight: 800 !important;
  color: var(--dh-charcoal);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--dh-olive-deep) !important;
  font-weight: 800;
  font-size: 22px;
  font-family: var(--dh-font);
}
.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
  color: var(--dh-text-muted);
  font-weight: 500;
}

.single_add_to_cart_button,
.woocommerce div.product form.cart .button {
  background: var(--dh-olive) !important;
  color: #fff !important;
  border-radius: 10px !important;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--dh-font);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button:hover {
  background: var(--dh-olive-deep) !important;
  color: #fff !important;
}

.woocommerce .quantity .qty,
.woocommerce div.product form.cart .quantity input {
  border: 1px solid var(--dh-border);
  border-radius: 10px;
  min-height: 46px;
  font-family: var(--dh-font);
  font-size: 15px;
}

.woocommerce-product-gallery {
  border-radius: 16px;
  overflow: hidden;
}

.woocommerce-tabs .tabs li a {
  font-family: var(--dh-font);
  font-weight: 700;
  color: var(--dh-text-muted);
}
.woocommerce-tabs .tabs li.active a { color: var(--dh-olive); }
.woocommerce-tabs .entry-content,
.woocommerce-tabs .woocommerce-Tabs-panel { padding-top: 20px; }

.wd-breadcrumbs a { color: var(--dh-text-muted); }
.wd-breadcrumbs a:hover { color: var(--dh-olive); }
.wd-breadcrumbs span { color: var(--dh-olive); font-weight: 600; }

.star-rating span::before,
.star-rating::before { color: var(--dh-olive); }

.product_meta {
  font-family: var(--dh-font);
  font-size: 13px;
  color: var(--dh-text-muted);
}
.product_meta a { color: var(--dh-charcoal); font-weight: 600; }
.product_meta a:hover { color: var(--dh-olive); }

/* ============================================================
   Cart + Checkout blocks (Gutenberg) brand polish
   ============================================================ */

.wc-block-components-button:not(.is-link) {
  background: var(--dh-olive) !important;
  border-color: var(--dh-olive) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: var(--dh-font);
  font-weight: 700;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus {
  background: var(--dh-olive-deep) !important;
  border-color: var(--dh-olive-deep) !important;
  color: #fff !important;
}

.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox input,
.wc-block-components-form input,
.wc-block-components-select select,
.wc-block-components-quantity-selector,
.wc-block-components-quantity-selector__input,
.wc-block-components-totals-coupon__form input {
  border: 1px solid var(--dh-border) !important;
  border-radius: 10px !important;
  font-family: var(--dh-font) !important;
  color: var(--dh-charcoal) !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-form input:focus,
.wc-block-components-totals-coupon__form input:focus {
  border-color: var(--dh-olive) !important;
  box-shadow: 0 0 0 3px rgba(128, 128, 105, 0.18) !important;
}

.wc-block-cart-item__prices .price,
.wc-block-cart-item__total .price {
  color: var(--dh-olive-deep);
  font-weight: 700;
}

.wc-block-cart__sidebar > div,
.wc-block-checkout__sidebar > div {
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.wc-block-components-totals-item__label,
.wc-block-components-totals-item__value {
  color: var(--dh-charcoal);
  font-family: var(--dh-font);
}
.wc-block-components-title,
.wc-block-components-checkout-step__title,
.wc-checkout-block-heading {
  color: var(--dh-charcoal) !important;
  font-family: var(--dh-font);
  font-weight: 800;
}

.wc-block-cart-items {
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 14px;
  overflow: hidden;
}
.wc-block-cart-items thead th,
.wc-block-cart-items .wp-block-woocommerce-cart-line-items-block th {
  background: var(--dh-cream);
  color: var(--dh-charcoal);
  font-size: 13px;
}

.wc-block-cart-empty,
.wc-block-checkout__main > *:first-child {
  border-radius: 14px;
}

/* ============================================================
   Static pages (dh-page) — olive instead of green accents
   ============================================================ */

.dh-page a { color: var(--dh-olive); }
.dh-page .dh-note {
  background: rgba(128, 128, 105, 0.08);
  border-right-color: var(--dh-olive);
}
.dh-page .dh-card {
  background: #fff;
  border-color: rgba(209, 199, 183, 0.55);
}
.dh-page .dh-cta:hover { background: var(--dh-olive-deep); }

/* ============================================================
   Accessibility + polish
   ============================================================ */

::selection {
  background: rgba(128, 128, 105, 0.25);
  color: var(--dh-charcoal);
}

:focus-visible {
  outline: 3px solid var(--dh-olive);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   v8.2.1 — remaining green offenders (container-scoped vars,
   block money amounts, search widget button) + force-hide the
   duplicated WoodMart account-nav widget.
   ============================================================ */

.woocommerce-MyAccount-content .wd-my-account-links { display: none !important; }

.product-labels .onsale,
.woocommerce div.product .onsale,
.wd-ribbon.onsale {
  background-color: var(--dh-olive) !important;
  border-color: var(--dh-olive) !important;
  color: #fff !important;
}

.wd-check-icon,
.woocommerce div.product .wd-check-icon {
  background-color: var(--dh-olive) !important;
  border-color: var(--dh-olive) !important;
}

.wd-accordion-title-text,
.woocommerce div.product .wd-accordion-title-text {
  color: var(--dh-olive);
  border-bottom-color: var(--dh-olive);
}

.wc-block-formatted-money-amount,
.wc-block-components-totals-item__value {
  color: var(--dh-olive-deep) !important;
}

.wp-block-search__button,
.wp-block-search__button.wp-element-button {
  background: var(--dh-olive) !important;
  border-color: var(--dh-olive) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
.wp-block-search__button:hover {
  background: var(--dh-olive-deep) !important;
  border-color: var(--dh-olive-deep) !important;
}
/* v8.2.2 — WooCommerce "site visibility" admin banner: brand it (dark
   charcoal) instead of default green. Admin-only element. */
#coming-soon-footer-banner {
  background: var(--dh-charcoal) !important;
  color: #fff !important;
  border-top-color: rgba(209, 199, 183, 0.35) !important;
}
#coming-soon-footer-banner a {
  color: #fff !important;
  text-decoration: underline;
  font-weight: 600;
}/* ============================================================
   v8.3.0 — MY ACCOUNT MASTER REDESIGN (all tabs, professional)
   ============================================================ */

/* ---- Account page title ---- */
.woocommerce-MyAccount-title.entry-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--dh-charcoal) !important;
  margin: 0 0 6px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.woocommerce-MyAccount-title.entry-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--dh-olive);
  flex: 0 0 auto;
}

/* ================= ACCOUNT NAVIGATION ================= */
.woocommerce-MyAccount-navigation {
  background: #fff !important;
  border: 1px solid rgba(209, 199, 183, 0.55) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  box-shadow: 0 8px 22px rgba(44, 53, 57, 0.06) !important;
}
.woocommerce-MyAccount-navigation > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-MyAccount-navigation ul li {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}
.woocommerce-MyAccount-navigation ul li a {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px !important;
  border-radius: 11px;
  color: #45444a !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  line-height: 1.3;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  min-height: 46px;
}
/* Nav icons (mask-based, brand-colored) */
.woocommerce-MyAccount-navigation ul li a::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-color: var(--dh-olive);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.woocommerce-MyAccount-navigation-link--dashboard a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--orders a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--downloads a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--edit-address a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--edit-account a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E");
}
/* Chevron at the end */
.woocommerce-MyAccount-navigation ul li a::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-inline-start: auto;
  background-color: #b8b3a6;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E");
}
.woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(128, 128, 105, 0.09) !important;
  color: var(--dh-charcoal) !important;
}
.woocommerce-MyAccount-navigation ul li a:hover::before {
  background-color: var(--dh-olive-deep);
}
.woocommerce-MyAccount-navigation ul li.is-active a {
  background: var(--dh-olive) !important;
  color: #fff !important;
  box-shadow: 0 7px 16px rgba(128, 128, 105, 0.25) !important;
}
.woocommerce-MyAccount-navigation ul li.is-active a::before {
  background-color: #fff;
}
.woocommerce-MyAccount-navigation ul li.is-active a::after {
  background-color: rgba(255, 255, 255, 0.85);
}
/* Logout item accent */
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px !important;
  padding-top: 8px !important;
  border-top: 1px dashed rgba(209, 199, 183, 0.7);
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #a8594a !important;
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  background-color: #a8594a;
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: rgba(168, 89, 74, 0.08) !important;
}

/* ================= DASHBOARD (hero / stats / actions) ================= */
.dh-acc {
  display: flex;
  flex-direction: column;
}
.dh-acc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 26px 26px 24px;
  color: #fff;
  background: linear-gradient(120deg, #2c3539 0%, #4a5148 48%, #808069 100%);
  box-shadow: 0 12px 26px rgba(44, 53, 57, 0.18);
}
.dh-acc-hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -60px;
  top: -70px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.dh-acc-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dh-acc-hello {
  margin: 0 !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.4;
}
.dh-acc-hello span {
  color: #f3ecd9;
}
.dh-acc-sub {
  margin: 6px 0 0 !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 14.5px !important;
}
.dh-acc-logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.dh-acc-logout:hover {
  background: #fff;
  color: #2c3539 !important;
}
.dh-acc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.dh-acc-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 16px rgba(44, 53, 57, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dh-acc-stat:hover {
  transform: translateY(-2px);
  border-color: var(--dh-olive);
  box-shadow: 0 12px 24px rgba(128, 128, 105, 0.16);
}
.dh-acc-stat-num {
  font-size: 30px;
  font-weight: 800;
  color: var(--dh-olive-deep);
  line-height: 1;
}
.dh-acc-stat-num--sm {
  font-size: 19px;
  padding-top: 7px;
  color: var(--dh-olive);
}
.dh-acc-stat--warn .dh-acc-stat-num {
  color: #b8592f;
}
.dh-acc-stat-lab {
  font-size: 13.5px;
  font-weight: 600;
  color: #7a7870;
}
.dh-acc-sec {
  margin: 26px 0 14px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--dh-charcoal) !important;
}
.dh-acc-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.dh-acc-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(44, 53, 57, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.dh-acc-tile:hover {
  transform: translateY(-2px);
  border-color: var(--dh-olive);
  box-shadow: 0 12px 24px rgba(128, 128, 105, 0.16);
}
.dh-acc-tile-ic {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(128, 128, 105, 0.12);
  color: var(--dh-olive-deep);
}
.dh-acc-tile-ic--shop {
  background: rgba(44, 53, 57, 0.08);
  color: var(--dh-charcoal);
}
.dh-acc-tile-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.dh-acc-tile-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dh-charcoal);
}
.dh-acc-tile-desc {
  font-size: 12.5px;
  color: #8a867c;
  line-height: 1.5;
}
.dh-acc-tile-go {
  margin-inline-start: auto;
  font-size: 20px;
  color: #c3bda9;
  font-weight: 700;
}

/* ================= ACCOUNT NOTICES (replaces default blue boxes) ================= */
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-error {
  position: relative;
  background: #f4f1e8 !important;
  border: 1px solid rgba(209, 199, 183, 0.7) !important;
  border-radius: 12px !important;
  padding: 16px 20px 16px 44px !important;
  color: #4d4b43 !important;
  font-size: 14.5px !important;
  line-height: 1.7;
  box-shadow: 0 3px 10px rgba(44, 53, 57, 0.04) !important;
}
.woocommerce-MyAccount-content .woocommerce-info::before,
.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-error::before {
  color: var(--dh-olive-deep) !important;
  background: #fff;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 24px;
}
.woocommerce-MyAccount-content .woocommerce-info a.button,
.woocommerce-MyAccount-content .woocommerce-message a.button,
.woocommerce-MyAccount-content .woocommerce-error a.button {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  background: var(--dh-olive) !important;
  color: #fff !important;
  border-radius: 999px !important;
  min-height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  box-shadow: 0 5px 12px rgba(128, 128, 105, 0.2);
}
.woocommerce-MyAccount-content .woocommerce-info a.button:hover,
.woocommerce-MyAccount-content .woocommerce-message a.button:hover {
  background: var(--dh-olive-deep) !important;
}

/* ================= ORDERS ================= */
.woocommerce-MyAccount-content .woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(209, 199, 183, 0.55);
  box-shadow: 0 6px 18px rgba(44, 53, 57, 0.06);
  margin-top: 6px;
}
.woocommerce-MyAccount-content .woocommerce-orders-table thead th {
  background: var(--dh-charcoal);
  color: #fff;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: start;
  white-space: nowrap;
}
.woocommerce-MyAccount-content .woocommerce-orders-table tbody td {
  padding: 15px 16px;
  border-top: 1px solid rgba(209, 199, 183, 0.45);
  color: #45444a;
  font-size: 14px;
}
.woocommerce-MyAccount-content .woocommerce-orders-table tbody tr:hover {
  background: #fbf9f3;
}
.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-orders-table__row:last-child td {
  border-bottom: none;
}
.woocommerce-MyAccount-content .woocommerce-orders-table a.woocommerce-button {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(128, 128, 105, 0.1);
  color: var(--dh-olive-deep) !important;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.18s ease, color 0.18s ease;
}
.woocommerce-MyAccount-content .woocommerce-orders-table a.woocommerce-button:hover {
  background: var(--dh-olive);
  color: #fff !important;
}
.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button--next,
.woocommerce-MyAccount-content .woocommerce-orders-table .woocommerce-button--previous {
  min-width: 0;
}
/* View order status text */
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-status {
  color: var(--dh-olive-deep);
  font-weight: 700;
}
/* Orders pagination */
.woocommerce-MyAccount-content .woocommerce-pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}
.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers {
  padding: 8px 14px;
  margin: 0 3px;
  border-radius: 8px;
  border: 1px solid rgba(209, 199, 183, 0.7);
  color: var(--dh-charcoal);
  font-weight: 700;
  background: #fff;
}
.woocommerce-MyAccount-content .woocommerce-pagination .page-numbers.current {
  background: var(--dh-olive);
  border-color: var(--dh-olive);
  color: #fff;
}

/* ================= VIEW ORDER ================= */
.woocommerce-MyAccount-content .woocommerce-order-details,
.woocommerce-MyAccount-content .woocommerce-customer-details {
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 6px 18px rgba(44, 53, 57, 0.06);
  margin: 14px 0 !important;
}
.woocommerce-MyAccount-content .woocommerce-order-details h2,
.woocommerce-MyAccount-content .woocommerce-customer-details h2 {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: var(--dh-charcoal) !important;
  margin: 0 0 12px !important;
}
.woocommerce-MyAccount-content .woocommerce-order-details .woocommerce-table--order-details {
  border-collapse: collapse;
  width: 100%;
}
.woocommerce-MyAccount-content .woocommerce-order-details th,
.woocommerce-MyAccount-content .woocommerce-order-details td {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(209, 199, 183, 0.45);
  text-align: start;
}
.woocommerce-MyAccount-content .woocommerce-order-details .order-total td {
  border-bottom: none;
  font-weight: 800;
  color: var(--dh-olive-deep);
}

/* ================= DOWNLOADS ================= */
.woocommerce-MyAccount-content .woocommerce-MyAccount-downloads {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-MyAccount-content .woocommerce-MyAccount-downloads li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.woocommerce-MyAccount-content .woocommerce-MyAccount-downloads a.button {
  background: var(--dh-olive);
  color: #fff;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-weight: 700;
  font-size: 13px;
}

/* ================= ADDRESSES (my-address) ================= */
.woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.woocommerce-MyAccount-content .woocommerce-Address {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 6px 16px rgba(44, 53, 57, 0.05);
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed rgba(209, 199, 183, 0.65);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: var(--dh-charcoal) !important;
  margin: 0 !important;
}
.woocommerce-MyAccount-content .woocommerce-Address-title a.edit {
  color: var(--dh-olive-deep) !important;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.woocommerce-MyAccount-content .woocommerce-Address address {
  font-style: normal;
  color: #5d5b53;
  line-height: 2;
  font-size: 14px;
}

/* ================= ADDRESS FORM ================= */
.woocommerce-MyAccount-content .woocommerce-EditAddressForm,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: 0 6px 18px rgba(44, 53, 57, 0.06);
}
.woocommerce-MyAccount-content .woocommerce-EditAddressForm .form-row,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row {
  margin: 0 0 14px;
}
.woocommerce-MyAccount-content .woocommerce-EditAddressForm label,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13.5px;
  color: #4d4b43;
}
.woocommerce-MyAccount-content .woocommerce-EditAddressForm .required {
  color: #b8592f !important;
}
.woocommerce-MyAccount-content .woocommerce-EditAddressForm input[type="text"],
.woocommerce-MyAccount-content .woocommerce-EditAddressForm input[type="email"],
.woocommerce-MyAccount-content .woocommerce-EditAddressForm input[type="tel"],
.woocommerce-MyAccount-content .woocommerce-EditAddressForm input[type="password"],
.woocommerce-MyAccount-content .woocommerce-EditAddressForm select,
.woocommerce-MyAccount-content .woocommerce-EditAddressForm textarea,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="text"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="email"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="password"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(145, 158, 171, 0.42) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--dh-charcoal);
  font-size: 14.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.woocommerce-MyAccount-content .woocommerce-EditAddressForm input:focus,
.woocommerce-MyAccount-content .woocommerce-EditAddressForm select:focus,
.woocommerce-MyAccount-content .woocommerce-EditAddressForm textarea:focus,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input:focus {
  border-color: var(--dh-olive) !important;
  box-shadow: 0 0 0 3px rgba(128, 128, 105, 0.15) !important;
  outline: none;
}
/* Submit buttons */
.woocommerce-MyAccount-content .woocommerce-EditAddressForm button[type="submit"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm button[type="submit"] {
  min-height: 48px;
  padding: 0 34px;
  margin-top: 8px;
  background: var(--dh-olive) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(128, 128, 105, 0.24);
  transition: background 0.18s ease, transform 0.18s ease;
}
.woocommerce-MyAccount-content .woocommerce-EditAddressForm button[type="submit"]:hover,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm button[type="submit"]:hover {
  background: var(--dh-olive-deep) !important;
  transform: translateY(-1px);
}

/* ================= EDIT ACCOUNT (two-col layout) ================= */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 22px;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .clear {
  grid-column: 1 / -1;
  height: 0;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-wide,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:last-child {
  grid-column: 1 / -1;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-first,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-last {
  margin-bottom: 16px;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset {
  margin: 10px 0 4px;
  border: 1px dashed rgba(209, 199, 183, 0.8);
  border-radius: 14px;
  padding: 16px 18px 18px;
  background: #faf7f0;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset legend {
  font-size: 14px;
  font-weight: 800;
  color: var(--dh-charcoal);
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.8);
  border-radius: 999px;
  padding: 4px 14px;
}
.woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:last-child {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

/* ================= LOST PASSWORD / RESET ================= */
.lost_reset_password {
  background: #fff;
  border: 1px solid rgba(209, 199, 183, 0.55);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: 0 6px 18px rgba(44, 53, 57, 0.06);
  max-width: 500px;
  margin: 24px auto;
}
.dh-auth .lost_reset_password {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.lost_reset_password .form-row {
  margin-bottom: 14px;
}
.lost_reset_password label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13.5px;
  color: #4d4b43;
}
.lost_reset_password input[type="text"],
.lost_reset_password input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(145, 158, 171, 0.42) !important;
  border-radius: 10px !important;
  background: #fff !important;
  font-size: 14.5px;
  color: var(--dh-charcoal);
}
.lost_reset_password input:focus {
  border-color: var(--dh-olive) !important;
  box-shadow: 0 0 0 3px rgba(128, 128, 105, 0.15) !important;
  outline: none;
}
.lost_reset_password button[type="submit"] {
  min-height: 48px;
  padding: 0 34px;
  margin-top: 6px;
  background: var(--dh-olive) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(128, 128, 105, 0.24);
}
.lost_reset_password button[type="submit"]:hover {
  background: var(--dh-olive-deep) !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 767px) {
  .woocommerce-MyAccount-navigation {
    padding: 8px !important;
  }
  .woocommerce-MyAccount-navigation > ul {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 8px;
  }
  .woocommerce-MyAccount-navigation > ul::-webkit-scrollbar {
    display: none;
  }
  .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto;
  }
  .woocommerce-MyAccount-navigation ul li a {
    min-height: 44px;
    padding: 10px 14px !important;
    white-space: nowrap;
    font-size: 13.5px !important;
  }
  .woocommerce-MyAccount-navigation ul li a::after {
    display: none;
  }
  .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }
  .dh-acc-hero {
    padding: 22px 20px;
  }
  .dh-acc-hello {
    font-size: 19px !important;
  }
  .dh-acc-logout {
    font-size: 12px;
    padding: 8px 13px;
  }
  .dh-acc-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .dh-acc-stat {
    padding: 14px 12px;
  }
  .dh-acc-stat-num {
    font-size: 24px;
  }
  .dh-acc-stat-lab {
    font-size: 12px;
  }
  .dh-acc-actions {
    grid-template-columns: 1fr;
  }
  .woocommerce-MyAccount-content .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    grid-template-columns: 1fr;
  }
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row-wide,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm fieldset,
  .woocommerce-MyAccount-content .woocommerce-EditAccountForm > p:last-child {
    grid-column: auto;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table thead {
    display: none;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table,
  .woocommerce-MyAccount-content .woocommerce-orders-table tbody,
  .woocommerce-MyAccount-content .woocommerce-orders-table tr,
  .woocommerce-MyAccount-content .woocommerce-orders-table td {
    display: block;
    width: 100%;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr {
    border: 1px solid rgba(209, 199, 183, 0.55);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table tbody td {
    border-top: none;
    border-bottom: 1px solid rgba(209, 199, 183, 0.4);
    padding: 11px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table tbody td::before {
    content: attr(data-title);
    font-weight: 700;
    color: #8a867c;
    font-size: 12.5px;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table tbody td:last-child {
    border-bottom: none;
  }
  .woocommerce-MyAccount-content .woocommerce-orders-table tbody tr td[data-title=""]::before {
    display: none;
  }
}
/*
 * ============================================================
 * v8.3.1 — Account layout fix
 * WoodMart's wd-grid-col span utilities are not applied inside
 * the my-account grid, collapsing nav+content to a 1-track sliver
 * (RTL). Force the intended spans to match the inline --wd-col vars.
 * ============================================================
 */
.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-navigation,
.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-content {
	grid-column-start: auto !important;
	grid-column-end: auto !important;
	min-width: 0;
}

.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-content {
	grid-column: span 9 !important;
}

.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-navigation {
	grid-column: span 3 !important;
}

@media (max-width: 1199.98px) {
	.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-content {
		grid-column: span 8 !important;
	}
	.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-navigation {
		grid-column: span 4 !important;
	}
}

@media (max-width: 767.98px) {
	.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-navigation,
	.wd-my-account-wrapper.wd-grid-g > .woocommerce-MyAccount-content {
		grid-column: span 12 !important;
	}
}
