:root {
  --dm-cream: #f6f1e8;
  --dm-cream-deep: #ebe3d4;
  --dm-paper: #fffdf9;
  --dm-ink: #1c1917;
  --dm-ink-soft: #57534e;
  --dm-line: #e4d9c8;
  --dm-forest: #2c4a3e;
  --dm-forest-hover: #1f382e;
  --dm-gold: #b8956a;
  --dm-gold-soft: #d4b896;
  --dm-whatsapp: #25d366;
  --dm-radius: 18px;
  --dm-shadow: 0 10px 30px rgba(44, 74, 62, 0.08);
  --dm-shadow-hover: 0 16px 40px rgba(44, 74, 62, 0.14);
  --dm-font: "Source Sans 3", "Segoe UI", sans-serif;
  --dm-serif: "Cormorant Garamond", Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body.dm-body {
  font-family: var(--dm-font);
  color: var(--dm-ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(184, 149, 106, 0.18), transparent 55%),
    radial-gradient(900px 380px at 100% 0%, rgba(44, 74, 62, 0.08), transparent 50%),
    var(--dm-cream);
  min-height: 100vh;
}

h1, h2, h3, h4,
.dm-serif {
  font-family: var(--dm-serif);
  color: var(--dm-ink);
  letter-spacing: 0.01em;
}

a {
  color: var(--dm-forest);
}

a:hover {
  color: var(--dm-gold);
  text-decoration: none;
}

/* Header */

.dm-header {
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--dm-line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1040;
  --dm-control-h: 48px;
}

.dm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  min-height: 88px;
}

.site-logo {
  width: 148px;
  height: auto;
  display: block;
}

.dm-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dm-nav-link {
  color: var(--dm-forest);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  height: var(--dm-control-h);
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
}

.dm-nav-link:hover,
.dm-nav-link.is-active {
  color: var(--dm-forest);
  background: var(--dm-cream);
  border-color: var(--dm-line);
}

.dm-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.dm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 600;
  border: 0;
  min-height: 48px;
  padding: 12px 20px;
  transition: 0.18s ease;
  line-height: 1.2;
}

.dm-phone-btn.btn {
  height: var(--dm-control-h);
  padding: 0 18px;
  border-radius: 14px;
  line-height: 1;
  font-size: 0.95rem;
  box-shadow: none;
}

.dm-phone-btn i {
  font-size: 1.15rem;
}

.dm-btn-forest {
  background: var(--dm-forest);
  color: #fff;
}

.dm-btn-forest:hover {
  background: var(--dm-forest-hover);
  color: #fff;
}

.dm-btn-gold {
  background: var(--dm-gold);
  color: #fff;
}

.dm-btn-gold:hover {
  background: #a07f56;
  color: #fff;
}

.dm-btn-whatsapp {
  background: var(--dm-whatsapp);
  color: #fff;
}

.dm-btn-whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
}

.dm-btn-outline {
  background: transparent;
  color: var(--dm-forest);
  border: 1px solid var(--dm-line);
}

.dm-btn-outline:hover {
  border-color: var(--dm-gold);
  color: var(--dm-forest);
  background: #fff;
}

.dm-social-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-social-desktop .dm-social {
  width: var(--dm-control-h);
  height: var(--dm-control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dm-line);
  border-radius: 14px;
  background: #fff;
}

.dm-social-desktop .dm-social img {
  width: 26px;
  height: 26px;
  display: block;
}

.dm-social img {
  width: 28px;
  height: 28px;
  display: block;
}

.dm-social {
  display: inline-flex;
  align-items: center;
}

.dm-menu-toggle {
  display: none;
  width: var(--dm-control-h);
  height: var(--dm-control-h);
  padding: 0;
  border: 1px solid var(--dm-line);
  border-radius: 14px;
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Hero */

.home-slider-wrap {
  margin-bottom: 24px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--dm-shadow);
  background: #fff;
}

.home-slider .slick-list,
.home-slider .slick-track,
.home-slider .slick-slide > div {
  height: 100%;
}

.home-slide {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--dm-cream-deep);
  color: inherit;
}

.home-slide:hover {
  color: inherit;
}

.home-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-slide.is-link {
  cursor: pointer;
}

.home-slider .slick-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  padding: 0;
  transform: translateY(-50%);
  box-shadow: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.home-slider .slick-arrow:hover,
.home-slider .slick-arrow:focus {
  color: #fff;
  background: transparent;
  outline: 0;
}

.home-slider .slick-prev {
  left: 12px;
}

.home-slider .slick-next {
  right: 12px;
}

.home-slider .slick-prev:before,
.home-slider .slick-next:before {
  display: none;
}

.home-slider .slick-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
}

.home-slider .slick-dots li.slick-active button {
  background-color: var(--dm-forest);
}

.admin-slide-card {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 16px;
  overflow: hidden;
}

.admin-slide-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.dm-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.dm-chip-light {
  background: var(--dm-cream);
  border-color: var(--dm-line);
  color: var(--dm-forest);
}

/* Layout */

.dm-catalog {
  padding: 28px 0 12px;
}

.dm-catalog-main {
  background: var(--dm-paper);
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  padding: 20px 18px 8px;
  box-shadow: var(--dm-shadow);
}

.dm-page {
  padding: 36px 0 20px;
}

.dm-prose {
  background: var(--dm-paper);
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--dm-shadow);
  color: var(--dm-ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.dm-prose h1 {
  margin-bottom: 16px;
}

.dm-empty {
  text-align: center;
  color: var(--dm-ink-soft);
  padding: 48px 12px;
}

.dm-empty h5 {
  color: var(--dm-ink);
}

/* Sidebar / filters */

.dm-sidebar {
  background: var(--dm-paper);
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  padding: 20px 16px;
  box-shadow: var(--dm-shadow);
}

.dm-sidebar h4 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--dm-forest);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.dm-sidebar .list-group-item {
  border: 0;
  background: transparent;
  padding: 8px 4px;
}

.dm-sidebar .custom-control-label {
  color: var(--dm-ink);
  font-weight: 500;
}

.dm-sub-list {
  display: none;
  list-style: none;
  margin: 8px 0 4px 12px;
  padding: 8px 10px 4px 14px;
  border-left: 2px solid var(--dm-line);
}

.dm-sub-list.is-open {
  display: block;
}

.dm-sub-list li {
  margin-bottom: 6px;
}

.dm-sub-list .custom-control-label {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--dm-ink-soft);
}

.dm-modal-filters .modal-content {
  background: var(--dm-cream);
  border: 0;
  border-radius: 20px;
}

.dm-filter-close {
  position: absolute;
  right: 12px;
  top: 8px;
  z-index: 2;
  opacity: 1;
}

.dm-filter-close i {
  color: var(--dm-forest);
}

.dm-search .form-control {
  border: 1px solid var(--dm-line);
  border-radius: 999px 0 0 999px;
  height: 48px;
  background: #fff;
  box-shadow: none;
}

.dm-search .btn {
  border-radius: 0 999px 999px 0;
  height: 48px;
  min-width: 56px;
  background: var(--dm-forest);
  border-color: var(--dm-forest);
  color: #fff;
}

.dm-search .btn:hover {
  background: var(--dm-forest-hover);
  border-color: var(--dm-forest-hover);
  color: #fff;
}

.dm-filter-btn {
  height: 48px;
  border-radius: 14px;
  background: var(--dm-forest);
  border: 0;
  color: #fff;
}

.dm-filter-btn:hover {
  color: #fff;
  background: var(--dm-forest-hover);
}

.dm-chip-row .btn {
  border-radius: 999px;
  background: var(--dm-cream);
  border: 1px solid var(--dm-line);
  color: var(--dm-ink);
}

.dm-chip-row .btn:hover {
  background: #fff;
  color: var(--dm-forest);
}

/* Product cards */

.product-card {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: var(--dm-radius);
  overflow: hidden;
  box-shadow: var(--dm-shadow);
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dm-shadow-hover);
}

.product-card__media {
  position: relative;
  background: #fff;
}

.product-card__media img,
.product-slide img {
  width: 100%;
  display: block;
  border-radius: 0;
}

.product-slide {
  position: relative;
  background: #fff;
}

.product-slide.is-soldout img {
  opacity: 0.5;
}

.product-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
}

.product-badge-soldout {
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: #fff;
  color: #9b2c2c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-badge-size {
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  background: var(--dm-cream);
  color: var(--dm-forest);
  border: 1px solid var(--dm-line);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.02em;
}

.product-gallery .product-badge-size,
.product-gallery .product-badge-sale {
  z-index: 3;
}

.product-card__body {
  padding: 12px 14px 16px;
}

.product-title {
  height: auto;
  max-height: 42px;
  overflow: hidden;
  color: var(--dm-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.product-price {
  color: var(--dm-gold);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.product-badge-sale {
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #c62828;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.product-badge-sale .fa-tag {
  font-size: 0.72rem;
}

.product-price.is-sale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.product-price__old {
  color: #9a8f82;
  text-decoration: line-through;
  font-size: 0.92rem;
  font-weight: 500;
}

.product-price.is-sale .product-price__new,
.product-info-price.is-sale .product-price__new {
  color: var(--dm-gold);
  font-weight: 700;
}

.product-info-price.is-sale {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.product-info-price.is-sale .product-price__old {
  font-size: 1.15rem;
}

.product-info-price.is-sale .product-price__new {
  font-size: 2rem;
}

.ajax-loader {
  border: 0;
  background: #f3eee6;
}

/* Product detail */

.product-page > .row > .col-lg-5,
.product-page > .row > .col-lg-7 {
  display: flex;
}

.product-gallery {
  position: relative;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--dm-shadow);
  width: 100%;
  min-height: 100%;
}

.product-info {
  color: var(--dm-ink);
  background: var(--dm-paper);
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  padding: 28px 26px 22px;
  box-shadow: var(--dm-shadow);
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-info-price {
  color: var(--dm-gold);
  font-weight: 700;
  text-align: left;
  font-size: 2rem;
  margin: 4px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dm-line);
}

.product-specs {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.product-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(228, 217, 200, 0.7);
  color: var(--dm-ink-soft);
  font-size: 0.95rem;
}

.product-specs li:last-child {
  border-bottom: 0;
}

.product-specs li span {
  flex-shrink: 0;
  min-width: 110px;
}

.product-specs li strong {
  text-align: right;
  font-weight: 600;
  color: var(--dm-ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.product-specs .fa-star {
  color: var(--dm-gold);
  font-size: 0.85rem;
}

.product-cat-link {
  display: inline-flex;
  align-items: center;
  background: var(--dm-cream);
  color: var(--dm-forest);
  border: 1px solid var(--dm-line);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 2px 4px 2px 0;
}

.product-actions {
  margin-top: auto;
}

.product-actions .btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 12px;
}

.product-actions .btn-buy {
  background: var(--dm-forest);
  border-color: var(--dm-forest);
  color: #fff;
}

.product-actions .btn-buy:hover {
  background: var(--dm-forest-hover);
  color: #fff;
}

.soldout-note {
  background: #fdecec;
  color: #7f1d1d;
  border-radius: 16px;
  padding: 14px 16px;
}

.product-description {
  color: var(--dm-ink-soft);
  background: var(--dm-paper);
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  padding: 24px;
  margin-top: 28px;
  box-shadow: var(--dm-shadow);
  overflow-wrap: break-word;
  word-break: break-word;
}

.product-description img,
.product-description video,
.product-description iframe,
.product-description table {
  max-width: 100% !important;
  height: auto !important;
}

.product-gallery {
  overflow: hidden;
}

.product-gallery .slick-list {
  overflow: hidden;
}

.section-title {
  font-size: 1.7rem;
  color: var(--dm-forest);
  margin: 36px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.slick-dots button {
  background-color: #cfc3b2;
}

.slick-dots li.slick-active button {
  background-color: var(--dm-forest);
}

.play-button {
  background: rgba(255, 255, 255, 0.92);
}

/* Contact */

.dm-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.dm-contact-card {
  background: var(--dm-paper);
  border: 1px solid var(--dm-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--dm-shadow);
}

.dm-contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

/* Footer */

.dm-footer {
  background: var(--dm-forest);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 48px;
  padding: 28px 12px;
  text-align: center;
}

.dm-footer strong {
  color: var(--dm-gold-soft);
}

/* Pagination */

.pagination .page-link {
  color: var(--dm-forest);
  border-color: var(--dm-line);
  background: #fff;
}

.pagination .page-item.active .page-link {
  background: var(--dm-forest);
  border-color: var(--dm-forest);
  color: #fff;
}

.page-item.disabled .page-link {
  background: var(--dm-cream);
}

/* Forms / admin light text */

.admin-panel h3,
.admin-panel .text-white,
.dm-text {
  color: var(--dm-ink) !important;
}

.admin-box {
  background: var(--dm-paper);
  border: 1px solid var(--dm-line) !important;
  border-radius: 20px;
  padding: 16px;
}

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-product-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 14px;
  padding: 10px 12px;
}

.admin-product-row__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.admin-product-row__top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.admin-product-row__text {
  min-width: 0;
}

.admin-product-row__text .product-title {
  height: auto;
  overflow: visible;
  white-space: normal;
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-product-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-product-row__media {
  position: relative;
  flex: 0 0 110px;
  width: 110px;
}

.admin-product-row__media img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.admin-product-check {
  flex-shrink: 0;
  margin: 2px 0 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-product-check input {
  margin: 0;
  cursor: pointer;
}

.admin-discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  background: var(--dm-gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.admin-discount-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--dm-cream);
  border: 1px solid var(--dm-line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.admin-price-old {
  display: inline-block;
  margin-right: 8px;
  color: #9a8f82;
  text-decoration: line-through;
  font-size: 0.95rem;
  font-weight: 500;
}

.admin-price-new {
  color: var(--dm-gold);
}

.admin-login {
  background: var(--dm-paper);
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--dm-shadow);
}

.stock-title {
  max-width: 180px;
}

.stock-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.stock-action i {
  font-size: 28px;
}

.order-hr {
  border-top: 1px solid var(--dm-line);
}

.dm-fin-lead,
.dm-fin-hint,
.dm-fin-range {
  color: var(--dm-ink-soft);
  font-size: 0.92rem;
}

.dm-fin-lead {
  margin-bottom: 14px;
}

.dm-fin-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dm-fin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--dm-line);
  border-radius: 999px;
  background: #fff;
  color: var(--dm-ink);
  font-weight: 600;
  font-size: 0.88rem;
}

.dm-fin-chip.is-active,
.dm-fin-chip:hover {
  background: var(--dm-forest);
  border-color: var(--dm-forest);
  color: #fff;
}

.dm-fin-custom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.dm-fin-custom label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--dm-ink-soft);
}

.dm-fin-custom input[type="date"] {
  min-height: 40px;
  border: 1px solid var(--dm-line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

.dm-fin-custom .btn {
  min-height: 40px;
}

.dm-fin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.dm-fin-stat {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 14px;
  padding: 12px;
}

.dm-fin-stat span {
  display: block;
  color: var(--dm-ink-soft);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.dm-fin-stat strong {
  font-size: 1.05rem;
  color: var(--dm-ink);
}

.dm-fin-stat.is-plus strong {
  color: var(--dm-forest);
}

.dm-fin-stat.is-minus strong {
  color: #a14a3a;
}

.dm-fin-split {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.dm-fin-split__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--dm-cream);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.dm-fin-split__item .is-plus {
  color: var(--dm-forest);
}

.dm-fin-split__item .is-minus {
  color: #a14a3a;
}

.dm-fin-tabs {
  margin: 8px 0 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.dm-fin-tabs .nav-link {
  min-height: 40px;
  white-space: nowrap;
  color: var(--dm-ink);
  border: 1px solid var(--dm-line);
  margin-right: 6px;
  border-radius: 999px;
  background: #fff;
}

.dm-fin-tabs .nav-link.active {
  background: var(--dm-forest);
  border-color: var(--dm-forest);
  color: #fff;
}

.dm-fin-forms {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-fin-acc {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 16px;
  overflow: hidden;
}

.dm-fin-acc__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: #fff;
  color: var(--dm-ink);
  font-weight: 700;
  text-align: left;
}

.dm-fin-acc__toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--dm-ink-soft);
  border-bottom: 2px solid var(--dm-ink-soft);
  transform: rotate(45deg);
  margin-left: 10px;
}

.dm-fin-acc.is-open .dm-fin-acc__toggle::after {
  transform: rotate(-135deg);
  margin-top: 6px;
}

.dm-fin-acc__body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid var(--dm-line);
}

.dm-fin-acc.is-open .dm-fin-acc__body {
  display: block;
  padding-top: 12px;
}

.dm-fin-acc__body .btn {
  min-height: 44px;
}

.dm-fin-picker {
  position: relative;
}

.dm-fin-suggest {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 8;
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
  max-height: 240px;
  overflow-y: auto;
}

.dm-fin-suggest__item,
.dm-fin-suggest__empty {
  padding: 10px 12px;
  font-size: 0.92rem;
}

.dm-fin-suggest__item {
  cursor: pointer;
}

.dm-fin-suggest__item:active,
.dm-fin-suggest__item:hover {
  background: var(--dm-cream);
}

.dm-fin-suggest__empty {
  color: var(--dm-ink-soft);
}

.dm-fin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dm-fin-remain {
  min-height: 40px;
  margin: 0;
  padding-top: 8px;
  font-weight: 700;
}

.dm-fin-waiting {
  margin-bottom: 16px;
}

.dm-fin-waiting h5 {
  margin-bottom: 6px;
}

.dm-fin-wait {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.dm-fin-wait.is-late {
  border-color: #d9b4ac;
}

.dm-fin-wait__money {
  margin-top: 6px;
  font-size: 0.92rem;
}

.dm-fin-wait__meta {
  margin-top: 4px;
  color: var(--dm-ink-soft);
  font-size: 0.82rem;
}

.dm-fin-wait__actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dm-fin-wait__complete {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
}

.dm-fin-wait__complete label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--dm-ink-soft);
}

.dm-fin-wait__complete input {
  min-height: 40px;
  border: 1px solid var(--dm-line);
  border-radius: 10px;
  padding: 0 10px;
  min-width: 110px;
}

.dm-fin-wait__complete .btn {
  min-height: 40px;
}

.dm-fin-journal,
.dm-fin-stock {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-fin-entry,
.dm-fin-stock-row {
  background: #fff;
  border: 1px solid var(--dm-line);
  border-radius: 14px;
  padding: 12px;
}

.dm-fin-entry.is-income {
  border-left: 3px solid var(--dm-forest);
}

.dm-fin-entry.is-expense {
  border-left: 3px solid var(--dm-gold);
}

.dm-fin-entry__top,
.dm-fin-entry__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dm-fin-kind {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--dm-ink-soft);
}

.dm-fin-entry__product {
  font-weight: 600;
  margin: 6px 0 2px;
}

.dm-fin-entry__note {
  color: var(--dm-ink-soft);
  font-size: 0.9rem;
}

.dm-fin-entry__meta {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--dm-ink-soft);
}

.dm-fin-stock-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 14px;
}

.dm-fin-stock-search .form-control,
.dm-fin-stock-search .custom-select {
  min-height: 44px;
}

.dm-fin-stock-search .form-control {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.dm-fin-stock-search .custom-select {
  flex: 0 1 170px;
  min-width: 0;
  width: auto;
  max-width: 34%;
}

.dm-fin-stock-empty {
  margin-top: 8px;
}

.dm-fin-stock-row {
  position: relative;
  padding-right: 88px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dm-fin-stock-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.dm-fin-stock-cats span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dm-ink-soft);
  background: #f4f1ea;
  border-radius: 8px;
  padding: 2px 8px;
}

.dm-fin-stock-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.dm-fin-stock-edit-btn,
.dm-fin-stock-plus-btn {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--dm-line);
  border-radius: 10px;
  background: #fff;
  color: var(--dm-forest);
  font-size: 0.82rem;
  font-weight: 700;
}

.dm-fin-stock-plus-btn {
  min-width: 44px;
}

.dm-fin-stock-row.is-editing .dm-fin-stock-edit-btn {
  background: var(--dm-forest);
  border-color: var(--dm-forest);
  color: #fff;
}

#stockEditModal .modal-content {
  border: 1px solid var(--dm-line);
  border-radius: 16px;
}

#stockEditModal .modal-header,
#stockEditModal .modal-footer {
  border-color: var(--dm-line);
}

#stockEditModal .btn {
  min-height: 44px;
}

.dm-fin-stock-row img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.dm-fin-stock-row.is-empty {
  border-color: #d9b4ac;
}

.dm-fin-stock-row.is-low {
  border-color: var(--dm-gold);
}

.dm-fin-stock-row__body a {
  font-weight: 600;
  color: var(--dm-ink);
}

.dm-fin-stock-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--dm-ink-soft);
}

.dm-fin-stock-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--dm-forest);
}

@media (min-width: 768px) {
  .dm-fin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 404 */

.dm-404 {
  text-align: center;
  padding: 72px 16px;
}

.dm-404 h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.dm-menu-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dm-forest);
  border-radius: 2px;
  transition: 0.2s ease;
}

.dm-header.is-menu-open .dm-menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dm-header.is-menu-open .dm-menu-bar:nth-child(2) {
  opacity: 0;
}

.dm-header.is-menu-open .dm-menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dm-mobile-menu {
  display: none;
}

@media (max-width: 991.98px) {
  .dm-header {
    --dm-control-h: 48px;
  }

  .dm-header-inner {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px 0;
    min-height: 76px;
  }

  .dm-nav-desktop,
  .dm-social-desktop {
    display: none;
  }

  .dm-menu-toggle {
    display: inline-flex;
    width: var(--dm-control-h);
    height: var(--dm-control-h);
  }

  .site-logo {
    width: 118px;
  }

  .dm-header-actions {
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
  }

  .dm-phone-btn.btn {
    height: var(--dm-control-h);
    padding: 0 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .dm-phone-text {
    letter-spacing: -0.01em;
  }

  .dm-mobile-menu {
    display: none;
    border-top: 1px solid var(--dm-line);
    background: var(--dm-paper);
    padding: 8px 16px 20px;
  }

  .dm-header.is-menu-open .dm-mobile-menu {
    display: block;
  }

  .dm-mobile-nav {
    display: flex;
    flex-direction: column;
  }

  .dm-mobile-link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--dm-line);
    color: var(--dm-ink);
    font-weight: 600;
    font-size: 1.05rem;
  }

  .dm-mobile-link.is-active,
  .dm-mobile-link:hover {
    color: var(--dm-forest);
  }

  .dm-mobile-social {
    display: flex;
    gap: 16px;
    padding-top: 16px;
  }

  .dm-mobile-social .dm-social {
    gap: 8px;
    color: var(--dm-ink);
    font-weight: 600;
  }

  body.dm-menu-locked {
    overflow: hidden;
  }

  .home-slider-wrap {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-bottom: 16px;
  }

  .home-slider .slick-list,
  .home-slider .slick-track,
  .home-slider .slick-slide > div {
    height: auto;
  }

  .home-slide {
    aspect-ratio: auto;
    height: auto;
  }

  .home-slide img {
    width: 100%;
    height: auto;
    object-fit: unset;
  }

  .home-slider .slick-arrow {
    width: 34px;
    height: 34px;
  }

  .dm-catalog-main,
  .dm-prose,
  .dm-sidebar {
    border-radius: 18px;
  }

  .product-price {
    font-size: 1.05rem;
  }

  html,
  body.dm-body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .product-page {
    padding-left: 18px;
    padding-right: 18px;
    overflow-x: hidden;
  }

  .popular-page {
    padding-left: 22px;
    padding-right: 22px;
    overflow-x: hidden;
  }

  .popular-page > .row {
    margin-left: 0;
    margin-right: 0;
  }

  .popular-page > .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .popular-page .section-title {
    margin-bottom: 8px;
  }

  .popular-page .product-card {
    overflow: hidden;
  }

  .product-gallery {
    border-radius: 16px;
    padding: 6px;
  }

  .product-info {
    padding: 18px 16px 16px;
    margin-top: 14px;
    border-radius: 16px;
    height: auto;
    min-height: 0;
  }

  .product-info h1 {
    font-size: 1.28rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .product-info-price {
    font-size: 1.5rem;
    margin: 6px 0 14px;
    padding-bottom: 12px;
  }

  .product-specs li span {
    min-width: 0;
    flex-shrink: 1;
  }

  .product-description {
    padding: 16px;
    margin-top: 20px;
    border-radius: 16px;
  }

  .product-actions {
    margin-left: 0;
    margin-right: 0;
  }

  .product-actions .btn {
    white-space: normal;
    min-height: 46px;
  }

  .section-title {
    font-size: 1.25rem;
    margin: 24px 0 12px;
  }
}

@media (min-width: 992px) {
  .product-page > .row {
    align-items: stretch;
  }
}

@media (max-width: 419.98px) {
  .site-logo {
    width: 102px;
  }

  .dm-phone-btn.btn {
    font-size: 0.75rem;
    padding: 0 10px;
  }
}
