/* ============================================================
   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-green: #006838;
  --dh-green-deep: #1a7279;
  --dh-red: #ff3b30;
  --dh-text-main: #233044;
  --dh-text-muted: #7f7f7f;
  --dh-ink: #333333;
  --dh-border: #dfe3e8;
  --dh-soft: #f9fafb;
  --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: #fff;
  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(0, 0, 0, 0.12);
}

.dh-header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.dh-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--dh-green);
}

.dh-logo img {
  width: 32px;
  height: 32px;
  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;
}

.dh-search-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(145, 158, 171, 0.32);
  background: var(--dh-soft);
  background-image: none;
  color: var(--dh-ink);
  font-family: var(--dh-font);
  font-size: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.dh-search-input::placeholder {
  color: rgba(0, 104, 56, 0.7);
  opacity: 0.8;
}

.dh-search-input:focus,
.dh-search-input.is-focused {
  border: 1px solid #1a7279;
  box-shadow: 0 0 0 3px rgba(26, 114, 121, 0.15);
  background: #fff;
}

.dh-search-icon {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dh-text-muted);
  pointer-events: none;
}

.dh-advanced-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  padding: 8px 10px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dh-green);
  font-family: var(--dh-font);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.2s;
}

.dh-advanced-search svg { width: 22px; height: 22px; }

.dh-advanced-search span { font-size: 11px; line-height: 1; }

.dh-advanced-search:hover {
  background: rgba(0, 104, 56, 0.06);
}

.dh-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dh-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--dh-green);
  cursor: pointer;
  transition: background 0.2s;
}

.dh-icon-btn:hover {
  background: rgba(0, 104, 56, 0.08);
}

.dh-icon-btn .dh-badge-outline {
  top: 0;
  inset-inline-end: 0;
  width: 16px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  padding: 0;
  font-size: 10px;
  background: var(--dh-green-deep);
}

.dh-avatar-btn {
  width: 44px;
  height: 44px;
}

.dh-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dh-green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.dh-avatar-dot {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.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-outline {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  background: var(--dh-green-deep);
  border: 1.5px solid #fff;
}

.dh-badge-green {
  background: var(--dh-green);
}

.dh-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: none;
  background: var(--dh-green);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--dh-font);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.dh-cart-btn:hover {
  background: var(--dh-green-deep);
}

.dh-cart-btn svg {
  width: 22px;
  height: 22px;
}

.dh-cart-btn .dh-badge-green {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  background: #22c55e;
  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(145, 158, 171, 0.14);
}

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

.dh-pre-link:hover {
  color: var(--dh-green);
}

.dh-pre-lang {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--dh-text-muted);
  font-family: var(--dh-font);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.dh-pre-lang svg {
  color: var(--dh-green);
}

.dh-pre-lang:hover {
  color: var(--dh-green);
}

/* ---------------- Category chips ---------------- */

.dh-cats {
  background: rgb(249, 250, 251);
  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;
}

.dh-cat-chip:hover {
  background: rgba(0, 104, 56, 0.06);
}

.dh-cat-chip.is-active {
  background: var(--dh-green);
  color: #fff;
  box-shadow: none;
}

.dh-cat-more {
  color: var(--dh-green);
  background: #fff;
}

/* ---------------- 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: #f3fbf6;
  border: 1px solid rgba(0, 104, 56, 0.18);
  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: #e6f4ea;
  color: var(--dh-green);
}

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

/* ---------------- Hero banner ---------------- */

.dh-banner {
  padding-top: 24px;
}

.dh-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px;
  box-sizing: border-box;
  border-radius: 8px;
  background: linear-gradient(115deg, #0b5d31 0%, #1a7279 55%, #2f9a8c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.dh-banner-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 8% 105%, rgba(255, 255, 255, 0.10), transparent 30%);
  pointer-events: none;
}

.dh-banner-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.dh-banner-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.dh-banner-copy h2 {
  margin: 0 0 6px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

.dh-banner-copy p {
  margin: 0 0 20px;
  font-size: 16px;
  opacity: 0.92;
  line-height: 1.7;
}

.dh-banner-cta {
  display: inline-block;
  background: #fff;
  color: #0b5d31;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.dh-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.dh-banner-art {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: block;
}

@media (max-width: 768px) {
  .dh-banner-inner { padding: 28px 20px; min-height: auto; }
  .dh-banner-copy h2 { font-size: 28px; }
  .dh-banner-art { display: none; }
  .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: #fff;
  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: rgb(35, 48, 68);
  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);
}

.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-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: #233044;
  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-green);
  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-red);
  flex-shrink: 0;
}

.dh-tax-note {
  background: rgb(187, 255, 213);
  color: rgba(33, 43, 54, 0.8);
  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: 4px 0 0;
  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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 10px 8px;
}

.dh-my-shop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--dh-green);
  cursor: pointer;
  font-family: var(--dh-font);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.dh-my-shop:hover {
  background: rgba(0, 104, 56, 0.08);
}

.dh-qty {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dh-qty-minus,
.dh-qty-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(145, 158, 171, 0.08);
  color: #233044;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s;
}

.dh-qty-minus:disabled {
  opacity: 0.45;
  cursor: default;
}

.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: 16px;
  font-weight: 700;
  color: #233044;
}

.dh-send-btn,
.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: none;
  color: var(--dh-green);
  cursor: pointer;
  transition: background 0.2s;
}

.dh-send-btn:hover,
.dh-nav-prev:hover,
.dh-nav-next:hover {
  background: rgba(0, 104, 56, 0.08);
}

.dh-card-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------------- Auth page (login / register) ---------------- */

.dh-auth {
  background: rgb(249, 250, 251);
  font-family: var(--dh-font);
  color: var(--dh-text-main);
}

.dh-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  box-sizing: border-box;
}

.dh-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--dh-shadow-card);
  padding: 32px 32px 24px;
  box-sizing: border-box;
}

.dh-auth-card .dh-logo {
  justify-content: center;
  margin-bottom: 20px;
}

.dh-auth-card .dh-logo img {
  width: 44px;
  height: 44px;
}

.dh-auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgb(249, 250, 251);
  border-radius: 12px;
  margin-bottom: 24px;
}

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

.dh-auth-panel h1 {
  margin: 0 0 4px;
  font-size: 24px;
  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.6;
}

.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: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(145, 158, 171, 0.32);
  background: #fff;
  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 #1a7279;
  box-shadow: 0 0 0 3px rgba(26, 114, 121, 0.15);
}

.dh-input-wrap {
  position: relative;
}

.dh-input-wrap .dh-input {
  padding-inline-end: 42px;
}

.dh-pw-toggle {
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--dh-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.dh-pw-toggle:hover {
  color: var(--dh-green);
}

.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;
  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-auth-note,
.dh-auth-policy {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--dh-text-muted);
  text-align: center;
  line-height: 1.7;
}

.dh-auth-notices {
  margin-bottom: 14px;
}

.dh-auth .woocommerce-error,
.dh-auth .woocommerce-message,
.dh-auth .woocommerce-info,
.dh-auth .woocommerce-notices-wrapper ul {
  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: #e6f4ea;
  color: var(--dh-green);
  border: 1px solid #b9e3c6;
}

.dh-auth .woocommerce-info {
  background: #eef2ff;
  color: #1a72b9;
  border: 1px solid #c8daff;
}

.dh-auth-store-link {
  margin: 18px 0 0;
  text-align: center;
}

.dh-auth-store-link a {
  color: var(--dh-green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dh-auth-store-link a:hover {
  text-decoration: underline;
}

.dh-auth-footer {
  margin-top: 28px;
  padding: 0;
  border: 0;
  font-size: 12px;
}

@media (max-width: 480px) {
  .dh-auth-card { padding: 24px 20px 20px; }
}

/* ---------------- Footer ---------------- */

.dh-footer {
  background: #fff;
  border-top: 1px solid rgba(145, 158, 171, 0.2);
  padding-top: 48px;
  padding-bottom: 48px;
  margin-top: 32px;
  font-family: var(--dh-font);
}

.dh-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.dh-footer-col h6 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--dh-text-main);
}

.dh-footer-addr {
  margin: 0;
  color: var(--dh-text-muted);
  font-size: 14px;
}

.dh-footer-col .footer-link {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  display: block;
  line-height: 2;
  transition: color 0.2s;
}

.dh-footer-col .footer-link:hover {
  color: var(--dh-green);
}

.dh-social {
  display: flex;
  flex-direction: row;
  gap: 8px;
  margin-top: 16px;
}

.dh-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: #1877f2;
  transition: color 0.3s, background 0.3s;
  text-decoration: none;
}

.dh-social-link:nth-child(2) { color: #e4405f; }
.dh-social-link:nth-child(3) { color: #1da1f2; }
.dh-social-link:nth-child(4) { color: #000; }
.dh-social-link:nth-child(5) { color: #fffc00; }

.dh-social-link:hover {
  color: #fff;
}

.dh-social-link:nth-child(1):hover { background: #0d65d9; }
.dh-social-link:nth-child(2):hover { background: #d61d3f; }
.dh-social-link:nth-child(3):hover { background: #0d8bd9; }
.dh-social-link:nth-child(4):hover { background: #333; }
.dh-social-link:nth-child(5):hover { background: #e6e300; color: #000; }

.dh-footer-copy {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(145, 158, 171, 0.2);
  text-align: center;
  color: var(--dh-text-muted);
  font-size: 14px;
}

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

/* ---------------- Responsive ---------------- */

@media (max-width: 1199px) {
  .dh-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
  .dh-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 12px; }
  .dh-advanced-search span { display: none; }
  .dh-advanced-search { padding: 8px; }
  .dh-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .dh-card-name { font-size: 12px; }
  .dh-qty-value { width: 40px; }
}

@media (max-width: 480px) {
  .dh-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dh-container { padding: 0 10px; }
  .dh-grid { padding: 0 10px; }
  .dh-cart-label { display: none; }
  .dh-cart-btn { padding: 8px; }
  .dh-pre-lang { display: none; }
}