/* ══════════════════════════════════════════════════════════════
   Dynamic Door Filter — Premium Swiss Editorial v9.0
   No !important. Clean specificity via #ddf-wrapper scoping.
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

/* ──────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ────────────────────────────────────────────────────────────── */
#ddf-wrapper {
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Surface palette */
  --surface-0: #ffffff;
  --surface-1: #f7f8fa;
  --surface-2: #eef0f4;
  --surface-3: #e2e5ec;

  /* Text */
  --ink-900: #0f1117;
  --ink-700: #3a3d47;
  --ink-400: #7c8090;
  --ink-200: #b8bcc8;

  /* Borders */
  --line-soft: #eaecf1;
  --line-mid: #d4d7e0;
  --line-hard: #bdc1cf;

  /* Brand */
  --brand: #0d2855;
  /* deep navy — primary */
  --brand-mid: #1e50a0;
  /* mid blue  */
  --brand-sat: #ce8d5e;
  /* vivid blue — accents */
  --brand-glow: rgba(37, 99, 235, 0.10);
  --brand-tint: #ce8d5e1a;

  /* Card image bg */
  --img-bg: #eceff5;

  /* Dimensions */
  --topbar-h: 58px;
  --sidebar-w: 310px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 120ms;
  --t-mid: 220ms;
  --t-slow: 360ms;
}

/* ──────────────────────────────────────────────────────────────
   RESET — scoped, no !important needed
   ────────────────────────────────────────────────────────────── */
#ddf-wrapper,
#ddf-wrapper * {
  box-sizing: border-box;
  font-family: var(--font-sans);
}

#ddf-wrapper ul,
#ddf-wrapper ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

#ddf-wrapper p,
#ddf-wrapper h1,
#ddf-wrapper h2,
#ddf-wrapper h3 {
  margin: 0;
  padding: 0;
}

#ddf-wrapper a {
  text-decoration: none;
  color: inherit;
}

#ddf-wrapper img {
  display: block;
  max-width: 100%;
}

#ddf-wrapper button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  outline: none;
}

#ddf-wrapper button:focus-visible {
  outline: 2px solid var(--brand-sat);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════════════════════════
   OUTER WRAPPER
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper {
  display: flex;
  flex-direction: column;
  background: transparent;
  min-height: 80vh;
  color: var(--ink-900);
}

/* ══════════════════════════════════════════════════════════════
   TOP BAR
   Sticky navigation: "Hide Filters" button + category tabs
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-topbar {
  display: flex;
  align-items: stretch;
  /* height: var(--topbar-h); */
  background: var(--surface-0);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  padding: 12px;
  top: 0;
  z-index: 200;
  flex-shrink: 0;
  gap: 10px;
  /* height: 66px; */
  height: 70px !important;
}

/* ── Hide / Show Filters button ── */
#ddf-wrapper #ddf-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  border-radius: 50px;
  padding: 0 24px;
  background: var(--brand);
  color: #222;
  font-size: 13.5px;
  background: #faebe1;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease);
}

#ddf-wrapper #ddf-filter-toggle:hover {
  background: #eaecf1;
}

#ddf-wrapper .ddf-cat-tab:hover {
  background: #eaecf1;
}

#ddf-wrapper #ddf-filter-toggle svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── Category tab nav ── */
#ddf-wrapper #ddf-cat-tabs {
  display: flex;
  align-items: stretch;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 4px;
  gap: 10px;
}

#ddf-wrapper #ddf-cat-tabs::-webkit-scrollbar {
  display: none;
}

#ddf-wrapper .ddf-cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 0px 18px;
  color: #222 !important;
  height: 100%;
  background: #faebe1 !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-400);
  /* text-align: center; */
  border-radius: 50px;
  white-space: nowrap;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

#ddf-wrapper .ddf-cat-tab:hover {
  color: var(--ink-700);
}

#ddf-wrapper .ddf-cat-tab.is-on {
  color: var(--ink-900);
  font-weight: 600;
  border-bottom-color: #7b7b7b66;
}

/* ── Mobile filter button ── */
#ddf-wrapper #ddf-mobile-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  margin: auto 12px auto auto;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background var(--t-fast);
}

#ddf-wrapper #ddf-mobile-btn:hover {
  background: var(--brand-mid);
}

#ddf-wrapper .ddf-mob-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

#ddf-wrapper .ddf-mob-count.is-vis {
  display: inline-flex;
}

/* ══════════════════════════════════════════════════════════════
   BODY — sidebar + main (side by side)
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-body {
  display: flex;
  align-items: flex-start;
  flex: 1;
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface-0);
  border-right: 1px solid var(--line-soft);
  position: sticky;
  top: var(--topbar-h);
  max-height: calc(100vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width var(--t-mid) var(--ease),
    opacity var(--t-fast) var(--ease);
}

#ddf-wrapper.ddf-sidebar-hidden #ddf-sidebar {
  width: 0;
  opacity: 0;
  border-right: none;
  pointer-events: none;
}

/* ── Sidebar header: result count + reset ── */
#ddf-wrapper .ddf-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  flex-shrink: 0;
}

#ddf-wrapper .ddf-result-count {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-700);
}

#ddf-wrapper .ddf-reset-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--surface-0);
  transition: all var(--t-fast);
}

#ddf-wrapper .ddf-reset-btn:hover {
  border-color: #f87171;
  color: #dc2626;
  background: #fef2f2;
}

/* ── Scroll area ── */
#ddf-wrapper .ddf-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-mid) transparent;
}

#ddf-wrapper .ddf-scroll::-webkit-scrollbar {
  width: 3px;
}

#ddf-wrapper .ddf-scroll::-webkit-scrollbar-thumb {
  background: var(--line-mid);
  border-radius: 4px;
}

/* ── Collapsible sections ── */
#ddf-wrapper .ddf-section {
  border-bottom: 1px solid var(--line-soft);
}

#ddf-wrapper .ddf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px 15px;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-fast);
}

#ddf-wrapper .ddf-section-head:hover {
  background: var(--surface-1);
}

#ddf-wrapper .ddf-section-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

#ddf-wrapper .ddf-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-400);
  flex-shrink: 0;
  transition: transform var(--t-mid) var(--ease);
}

#ddf-wrapper .ddf-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

#ddf-wrapper .ddf-section.is-closed .ddf-arrow {
  transform: rotate(180deg);
}

#ddf-wrapper .ddf-section-body {
  padding: 0 22px 18px;
  overflow: hidden;
  transition: max-height var(--t-mid) var(--ease),
    opacity var(--t-fast) var(--ease),
    padding var(--t-mid) var(--ease);
}

#ddf-wrapper .ddf-section.is-closed .ddf-section-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   ENCLOSURE SHAPE — Radio list
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-group-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

#ddf-wrapper .ddf-group-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--t-fast);
}

#ddf-wrapper .ddf-group-item:hover {
  background: var(--brand-tint);
}

/* Radio circle */
#ddf-wrapper .ddf-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-hard);
  flex-shrink: 0;
  background: var(--surface-0);
  position: relative;
  transition: border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

#ddf-wrapper .ddf-radio::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-sat);
  transform: scale(0);
  transition: transform var(--t-mid) var(--spring);
}

#ddf-wrapper .ddf-group-item.is-on .ddf-radio {
  border-color: var(--brand-sat);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

#ddf-wrapper .ddf-group-item.is-on .ddf-radio::after {
  transform: scale(1);
}

#ddf-wrapper .ddf-group-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-700);
  line-height: 1.35;
  transition: color var(--t-fast), font-weight var(--t-fast);
}

#ddf-wrapper .ddf-group-item.is-on .ddf-group-label {
  color: var(--ink-900);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   DOOR TYPE — 4-col icon grid
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper .ddf-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

#ddf-wrapper .ddf-type-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-0);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    transform 160ms var(--spring);
}

#ddf-wrapper .ddf-type-cell:hover {
  border-color: #faebe1;
  background: var(--brand-tint);
  /*   box-shadow: 0 0 0 3px var(--brand-glow); */
  transform: translateY(-2px) scale(1.04);
}

#ddf-wrapper .ddf-type-cell.is-on {
  border-color: #ce8d5e3d;
  background:#ce8d5e1a;
/*   box-shadow: 0 0 0 3px var(--brand-glow); */
}

/* Accent bottom bar — Ronal signature */
#ddf-wrapper .ddf-type-cell.is-on::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--brand-sat);
  border-radius: 0 0 6px 6px;
}

/* Cell enter animation */
@keyframes ddf-cellIn {
  from {
    opacity: 0;
    transform: scale(.8) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#ddf-wrapper .ddf-type-cell {
  animation: ddf-cellIn 200ms var(--ease) both;
}

#ddf-wrapper .ddf-type-cell:nth-child(1) {
  animation-delay: 0ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(2) {
  animation-delay: 18ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(3) {
  animation-delay: 36ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(4) {
  animation-delay: 54ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(5) {
  animation-delay: 72ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(6) {
  animation-delay: 90ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(7) {
  animation-delay: 108ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(8) {
  animation-delay: 126ms;
}

#ddf-wrapper .ddf-type-cell:nth-child(n+9) {
  animation-delay: 144ms;
}

#ddf-wrapper .ddf-type-img-a,
#ddf-wrapper .ddf-type-img-b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  pointer-events: none;
  transition: opacity 150ms var(--ease);
}

#ddf-wrapper .ddf-type-img-a {
  opacity: 1;
  z-index: 1;
}

#ddf-wrapper .ddf-type-img-b {
  opacity: 0;
  z-index: 2;
  padding: 5px;
}

#ddf-wrapper .ddf-type-cell:hover .ddf-type-img-a,
#ddf-wrapper .ddf-type-cell.is-on .ddf-type-img-a {
  opacity: 0;
}

#ddf-wrapper .ddf-type-cell:hover .ddf-type-img-b,
#ddf-wrapper .ddf-type-cell.is-on .ddf-type-img-b {
  opacity: 1;
}

#ddf-wrapper .ddf-type-svg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  z-index: 1;
  pointer-events: none;
}

#ddf-wrapper .ddf-type-svg svg {
  width: 100%;
  height: 100%;
  stroke: var(--brand-sat);
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--t-fast);
}

#ddf-wrapper .ddf-type-cell:hover .ddf-type-svg svg,
#ddf-wrapper .ddf-type-cell.is-on .ddf-type-svg svg {
  stroke: var(--brand);
}

#ddf-wrapper .ddf-no-types {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--ink-400);
  font-style: italic;
  padding: 6px 0;
}

/* Skeleton shimmer */
@keyframes ddf-shimmer {
  from {
    background-position: -600px 0;
  }

  to {
    background-position: 600px 0;
  }
}

#ddf-wrapper .ddf-type-cell.is-skel {
  background: linear-gradient(90deg, #eaecf0 25%, #f4f5f7 50%, #eaecf0 75%);
  background-size: 600px 100%;
  animation: ddf-shimmer 1.4s linear infinite;
  border-color: transparent;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT GRID — flush 3-col with hairline separators
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper .ddf-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: transparent;
  flex: 1;
}

#ddf-wrapper.ddf-sidebar-hidden .ddf-product-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT CARD
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper .ddf-card {
  background: var(--surface-0);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-mid) var(--ease);
}

#ddf-wrapper .ddf-card:hover {
  z-index: 2;
  box-shadow: 0 6px 32px rgba(13, 40, 85, .10);
}

#ddf-wrapper .ddf-card-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

/* Image area */
#ddf-wrapper .ddf-card-photo {
  position: relative;
  background: var(--img-bg);
  aspect-ratio: 4 / 4;
  overflow: hidden;
  flex-shrink: 0;
}

/* Brand badge — top left */
#ddf-wrapper .ddf-card-badge {
  display: none !important;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 5px 8px 5px 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  pointer-events: none;
}

#ddf-wrapper .ddf-badge-icon {
  display: flex;
  align-items: center;
}

#ddf-wrapper .ddf-badge-text {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: #111;
  line-height: 1;
  font-family: var(--font-mono);
}

/* Category tag — top right */
#ddf-wrapper .ddf-card-cat-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: #faebe1 !important;
  border-radius: var(--radius-sm);
  font-size: 9.5px;
  font-weight: 700;
  color: #0f1117;
  letter-spacing: .05em;
  pointer-events: none;
}

/* Product image */
#ddf-wrapper .ddf-img-a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 26px;
  z-index: 1;
  transition: opacity var(--t-mid) var(--ease),
    transform var(--t-slow) var(--ease);
}

#ddf-wrapper .ddf-img-b {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  transition: opacity var(--t-mid) var(--ease);
}

#ddf-wrapper .ddf-card:hover .ddf-img-a {
  opacity: 0;
  transform: scale(1.04);
}

#ddf-wrapper .ddf-card:hover .ddf-img-b {
  opacity: 1;
}

/* Card text */
#ddf-wrapper .ddf-card-body {
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-0);
  flex: 1;
  transition: background var(--t-fast);
}

#ddf-wrapper .ddf-card:hover .ddf-card-body {
  background: var(--surface-1);
}

#ddf-wrapper .ddf-card-title {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-900);
}

#ddf-wrapper .ddf-card-title b {
  font-weight: 700;
}

#ddf-wrapper .ddf-card-series {
  font-weight: 400;
  color: var(--ink-400);
  margin-left: 5px;
  font-size: 12.5px;
}

#ddf-wrapper .ddf-show-more {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-400);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color var(--t-fast), gap var(--t-fast);
}

#ddf-wrapper .ddf-show-more::after {
  content: '→';
  transition: transform var(--t-fast) var(--ease);
}

#ddf-wrapper .ddf-card:hover .ddf-show-more {
  color: var(--brand-sat);
  gap: 7px;
}

#ddf-wrapper .ddf-card:hover .ddf-show-more::after {
  transform: translateX(2px);
}

/* ── Card enter animation ── */
@keyframes ddf-cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#ddf-wrapper .ddf-card:not(.is-skel) {
  animation: ddf-cardIn var(--t-mid) var(--ease) both;
}

#ddf-wrapper .ddf-card:nth-child(1) {
  animation-delay: 0ms;
}

#ddf-wrapper .ddf-card:nth-child(2) {
  animation-delay: 35ms;
}

#ddf-wrapper .ddf-card:nth-child(3) {
  animation-delay: 70ms;
}

#ddf-wrapper .ddf-card:nth-child(4) {
  animation-delay: 100ms;
}

#ddf-wrapper .ddf-card:nth-child(5) {
  animation-delay: 130ms;
}

#ddf-wrapper .ddf-card:nth-child(n+6) {
  animation-delay: 155ms;
}

/* ── Skeleton ── */
#ddf-wrapper .ddf-card.is-skel .ddf-card-photo {
  background: linear-gradient(90deg, #e4e8ee 25%, #f0f2f6 50%, #e4e8ee 75%);
  background-size: 600px 100%;
  animation: ddf-shimmer 1.4s linear infinite;
}

#ddf-wrapper .ddf-card.is-skel .ddf-card-badge,
#ddf-wrapper .ddf-card.is-skel .ddf-img-a {
  display: none;
}

#ddf-wrapper .ddf-card.is-skel .ddf-card-body {
  gap: 10px;
}

#ddf-wrapper .ddf-skel-line {
  border-radius: var(--radius-sm);
  height: 12px;
  background: linear-gradient(90deg, #e4e8ee 25%, #f0f2f6 50%, #e4e8ee 75%);
  background-size: 600px 100%;
  animation: ddf-shimmer 1.4s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper .ddf-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 24px;
  background: var(--surface-0);
  text-align: center;
}

#ddf-wrapper .ddf-empty svg {
  opacity: .15;
}

#ddf-wrapper .ddf-empty p {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
}

#ddf-wrapper .ddf-empty-reset {
  height: 38px;
  padding: 0 22px;
  background:#faebe1;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: #222;
  transition: background var(--t-fast);
}

#ddf-wrapper .ddf-empty-reset:hover {
  background: #c0c0c085;
}

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-pagination {
  background: var(--surface-0);
  border-top: 1px solid var(--line-soft);
  padding: 0;
}

#ddf-wrapper .ddf-pag-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

#ddf-wrapper .ddf-pg-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}

#ddf-wrapper .ddf-pg-btn:hover {
  border-color: var(--brand-sat);
  color: var(--brand-sat);
  background: var(--brand-tint);
}

#ddf-wrapper .ddf-pg-btn.is-cur {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}

#ddf-wrapper .ddf-pag-dots {
  min-width: 24px;
  text-align: center;
  color: var(--ink-200);
  font-size: 14px;
  line-height: 38px;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERLAY
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 40, 85, .40);
  z-index: 490;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(3px);
  transition: opacity var(--t-mid) var(--ease);
}

#ddf-wrapper #ddf-overlay.is-vis {
  opacity: 1;
  pointer-events: all;
}

body.ddf-locked {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  #ddf-wrapper {
    --sidebar-w: 280px;
  }

  #ddf-wrapper .ddf-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #ddf-wrapper.ddf-sidebar-hidden .ddf-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #ddf-wrapper #ddf-mobile-btn {
    display: flex;
  }

  #ddf-wrapper #ddf-filter-toggle {
    display: none;
  }

  #ddf-wrapper #ddf-body {
    flex-direction: column;
  }

  #ddf-wrapper #ddf-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 90vw);
    max-height: 100%;
    overflow-y: auto;
    transform: translateX(-110%);
    z-index: 500;
    opacity: 1;
    transition: transform var(--t-mid) var(--ease);
  }

  #ddf-wrapper #ddf-sidebar.is-open {
    transform: translateX(0);
  }

  #ddf-wrapper #ddf-overlay {
    display: block;
  }

  #ddf-wrapper #ddf-main {
    width: 100%;
  }

  #ddf-wrapper .ddf-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #ddf-wrapper .ddf-cat-tab {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  #ddf-wrapper .ddf-product-grid {
    grid-template-columns: 1fr;
  }

  #ddf-wrapper .ddf-type-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #ddf-wrapper .ddf-cat-tab {
    padding: 0 9px;
    font-size: 12px;
  }
}
/* ══════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE — RONAL Style
   ══════════════════════════════════════════════════════════════ */

/* Outer split wrapper */
#ddf-detail-wrap {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: #0f1117;
  background: #fff;
}

/* ── LEFT: Slider ────────────────────────────────────────────── */
#ddf-detail-slider {
  position: sticky;
  top: 0;
  width: 50%;
  height: 100vh;
  flex-shrink: 0;
  background: #eceff5;
  overflow: hidden;
}

.ddf-slider-track {
  display: flex;
  height: 100%;
  transition: transform 480ms cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.ddf-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eceff5;
}

.ddf-slide img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
}

.ddf-slide-placeholder img {
  opacity: .35;
  filter: grayscale(1);
}

/* Slider nav buttons */
.ddf-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 160ms, transform 160ms;
}
.ddf-slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}
.ddf-slider-btn svg { width: 18px; height: 18px; color: #0f1117; }
.ddf-prev { left: 14px; }
.ddf-next { right: 14px; }

/* Dot indicators */
.ddf-slider-dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 10;
}
.ddf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15,17,23,.22);
  border: none;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
}
.ddf-dot.is-active {
  background: #0d2855;
  transform: scale(1.35);
}

/* ── RIGHT: Info Panel ───────────────────────────────────────── */
#ddf-detail-info {
  flex: 1;
  min-width: 0;
  padding: 52px 56px 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

/* Back link */
.ddf-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #7c8090;
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 150ms;
}
.ddf-back-link:hover { color: #0d2855; }
.ddf-back-link svg { width: 14px; height: 14px; }

/* Breadcrumb */
.ddf-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7c8090;
  margin-bottom: 14px;
}
.ddf-bc-sep { color: #c0c4ce; }

/* Brand logo */
.ddf-detail-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ddf-detail-brand span {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #0d2855;
}

/* Product title */
.ddf-detail-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  color: #0f1117;
  margin: 0 0 28px;
  letter-spacing: -.01em;
}

/* ── Finish Swatches ─────────────────────────────────────────── */
.ddf-detail-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.ddf-swatch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 0;
}
.ddf-swatch-circle {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 0 1.5px #d4d7e0;
  transition: box-shadow 150ms;
}
.ddf-swatch-item.is-active .ddf-swatch-circle,
.ddf-swatch-item:first-child .ddf-swatch-circle {
  box-shadow: 0 0 0 3px #0d2855;
}
.ddf-swatch-label {
  font-size: 13.5px;
  color: #3a3d47;
}

/* ── Dimensions Table ────────────────────────────────────────── */
.ddf-detail-dims {
  margin-bottom: 32px;
}
.ddf-detail-dims table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ddf-detail-dims th {
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: #7c8090;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 0 0 8px;
  border-bottom: 1px solid #eaecf1;
}
.ddf-detail-dims td {
  padding: 10px 0;
  border-bottom: 1px solid #f0f2f6;
  color: #3a3d47;
  font-size: 13.5px;
  vertical-align: top;
}
.ddf-detail-dims td:first-child {
  font-weight: 500;
  color: #0f1117;
  min-width: 100px;
}

/* ── Accordion Sections ──────────────────────────────────────── */
.ddf-detail-accordions {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.ddf-acc-item {
  border-top: 1px solid #eaecf1;
}
.ddf-acc-item:last-child {
  border-bottom: 1px solid #eaecf1;
}
.ddf-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #0f1117;
  text-align: left;
  gap: 12px;
  transition: color 150ms;
}
.ddf-acc-head:hover { color: #0d2855; }
.ddf-acc-arrow {
  flex-shrink: 0;
  color: #7c8090;
  transition: transform 240ms cubic-bezier(.4,0,.2,1);
}
.ddf-acc-arrow svg { width: 14px; height: 14px; display: block; }
.ddf-acc-item.is-open .ddf-acc-arrow { transform: rotate(180deg); }

.ddf-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(.4,0,.2,1);
}
.ddf-acc-item.is-open .ddf-acc-body {
  max-height: 1200px;
}
.ddf-acc-content {
  padding: 4px 0 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #3a3d47;
}
.ddf-acc-content a { color: #0d2855; text-decoration: underline; }
.ddf-acc-content p { margin: 0 0 10px; }
.ddf-acc-content ul, .ddf-acc-content ol { margin: 0 0 10px; padding-left: 20px; }
.ddf-acc-content table { border-collapse: collapse; width: 100%; font-size: 13px; }
.ddf-acc-content table td, .ddf-acc-content table th { padding: 6px 10px; border: 1px solid #eaecf1; }
.ddf-acc-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  #ddf-detail-wrap { flex-direction: column; }
  #ddf-detail-slider {
    position: relative;
    width: 100%;
    height: 55vw;
    min-height: 260px;
    max-height: 480px;
  }
  #ddf-detail-info {
    padding: 32px 24px 60px;
  }
}
@media (max-width: 480px) {
  #ddf-detail-info { padding: 24px 16px 48px; }
  .ddf-detail-title { font-size: 22px; }
}



/* ================================================================
   DDF Detail Page — Gallery v19
   Thumbnails sit at the BOTTOM of the main image
   Font: Red Hat Display throughout
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;500;600;700&display=swap');

/* ── Full-width breakout ─────────────────────────────────── */
#ddf-detail-page {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow-x: hidden;
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    background: #f8f8f6;
}

/* ── Hero row ────────────────────────────────────────────── */
#ddf-hero {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 580px;
    max-height: 900px;
    overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   SLIDER PANEL (left 58%)
════════════════════════════════════════════════════════════ */
#ddf-hero-slider {
    position: relative;
    width: 58%;
    flex-shrink: 0;
    background: #ece9e3;
    overflow: hidden;
}

/* ── Main image wrap — fills entire slider ───────────────── */
#ddf-main-img-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

#ddf-main-img {
    flex: 1;
    width: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
    transition: opacity 0.38s cubic-bezier(.4,0,.2,1),
                transform 0.45s cubic-bezier(.4,0,.2,1);
    opacity: 1;
    transform: scale(1);
    will-change: opacity, transform;
}

#ddf-main-img.is-loading {
    opacity: 0;
    transform: scale(1.025);
}

/* Subtle bottom gradient so thumb strip reads cleanly */
#ddf-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(to top, rgba(15,12,8,0.55) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ════════════════════════════════════════════════════════════
   THUMBNAIL STRIP — absolute, pinned to bottom of image
════════════════════════════════════════════════════════════ */
#ddf-thumb-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 18px;
    /* Frosted glass feel over the gradient */
    background: transparent;
}

/* Prev / Next arrows */
.ddf-thumb-nav {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s, opacity 0.2s;
}
.ddf-thumb-nav svg { width: 13px; height: 13px; color: #fff; }
.ddf-thumb-nav:hover { background: rgba(255,255,255,0.32); }

/* Scrollable row of thumbs */
#ddf-thumb-list {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow: hidden;
    transition: transform 0.32s cubic-bezier(.4,0,.2,1);
}

/* Individual thumb */
.ddf-thumb-btn {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: border-color 0.2s, transform 0.2s cubic-bezier(.34,1.2,.64,1), box-shadow 0.2s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.ddf-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ddf-thumb-btn:hover {
    transform: translateY(-3px) scale(1.06);
    border-color: rgba(255,255,255,0.75);
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.ddf-thumb-btn.is-active {
    border-color: #fff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.6), 0 8px 22px rgba(0,0,0,0.32);
}

/* ── RIGHT: Info panel ───────────────────────────────────── */
#ddf-info-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 52px 56px 60px;
    background: #f8f8f6;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
    position: relative;
}
#ddf-info-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, #dedad3 30%, #dedad3 70%, transparent);
}
#ddf-info-panel::-webkit-scrollbar { width: 3px; }
#ddf-info-panel::-webkit-scrollbar-thumb { background: #d4cfc7; border-radius: 2px; }

/* ── Site logo ───────────────────────────────────────────── */
.ddf-info-logo {
    margin-bottom: 20px;
}
.ddf-site-logo-img {
    max-height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}
.ddf-site-logo-text {
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1a1a1a;
}

/* Breadcrumb */
.ddf-info-breadcrumb {
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a09880;
    margin: 0 0 16px;
}

/* Title */
.ddf-info-title {
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 0 0 22px;
}

/* Divider */
.ddf-info-divider {
    width: 36px;
    height: 2px;
    background: linear-gradient(to right, #1a1a1a, transparent);
    margin-bottom: 26px;
    border-radius: 1px;
}

/* ── Swatches ────────────────────────────────────────────── */
.ddf-swatches-label {
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a09880;
    margin: 0 0 10px;
}
.ddf-info-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}
.ddf-sw-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1.5px solid #e4e0d8;
    border-radius: 999px;
    padding: 5px 16px 5px 5px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #3a3830;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.ddf-sw-btn:hover { border-color: #b8b4aa; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.ddf-sw-btn.is-active { border-color: #1a1a1a; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.ddf-sw-circle {
    width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1); flex-shrink: 0;
    display: block;
    transition: transform 0.22s cubic-bezier(.34,1.5,.64,1), box-shadow 0.2s;
}
.ddf-sw-btn.is-active .ddf-sw-circle {
    transform: scale(1.12);
    box-shadow: 0 0 0 2.5px #fff, 0 0 0 4px #1a1a1a;
}
.ddf-sw-btn:hover .ddf-sw-circle { transform: scale(1.08); }
.ddf-sw-label { font-size: 12px; font-weight: 400; letter-spacing: 0.02em; white-space: nowrap; }
.ddf-active-swatch-name {
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px; color: #a09880;
    letter-spacing: 0.06em; min-height: 16px; margin: 0 0 24px;
}

/* ── Dims table ──────────────────────────────────────────── */
.ddf-info-dims { margin-bottom: 20px; overflow-x: auto; }
.ddf-info-dims table { width: 100%; border-collapse: collapse; }
.ddf-info-dims thead tr { border-bottom: 1px solid #e8e4dc; }
.ddf-info-dims th {
    text-align: left; padding: 5px 10px 8px;
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 9.5px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em; color: #a09880;
}
.ddf-info-dims td {
    padding: 9px 10px; border-bottom: 1px solid #f0ece5;
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12.5px; color: #3a3830;
}
.ddf-info-dims tr td:first-child { font-weight: 600; color: #1a1a1a; }

/* ── Custom table ────────────────────────────────────────── */
.ddf-info-custom-table { margin-bottom: 20px; overflow-x: auto; }
.ddf-info-custom-table table { width: 100%; border-collapse: collapse; }
.ddf-info-custom-table th, .ddf-info-custom-table td {
    padding: 8px 10px; border: 1px solid #ebe7e0;
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px;
}
.ddf-info-custom-table th {
    background: #f4f1ec; font-weight: 600; font-size: 9.5px;
    text-transform: uppercase; letter-spacing: 0.1em; color: #a09880;
}

/* ── Section nav ─────────────────────────────────────────── */
.ddf-info-secnav { border-top: 1px solid #e8e4dc; margin-bottom: 20px; }
.ddf-secnav-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 0; border-bottom: 1px solid #e8e4dc;
    text-decoration: none; color: #3a3830;
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12.5px; font-weight: 400; letter-spacing: 0.03em;
    cursor: pointer; transition: color 0.16s, padding-left 0.2s;
}
.ddf-secnav-item:hover { color: #1a1a1a; padding-left: 5px; }
.ddf-secnav-item svg { width: 14px; height: 14px; color: #c0bcb4; flex-shrink: 0; }

/* ── Back link ───────────────────────────────────────────── */
.ddf-info-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: "Red Hat Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a09880; text-decoration: none; margin-top: 6px;
    transition: color 0.18s, gap 0.2s;
}
.ddf-info-back:hover { color: #1a1a1a; gap: 10px; }
.ddf-info-back svg { width: 13px; height: 13px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    #ddf-info-panel { padding: 44px 36px 44px 44px; }
    .ddf-info-title { font-size: 28px; }
}
@media (max-width: 820px) {
    #ddf-hero { flex-direction: column; height: auto; max-height: none; }
    #ddf-hero-slider { width: 100%; height: 75vw; min-height: 300px; max-height: 520px; }
    #ddf-info-panel { padding: 36px 28px 48px; }
    #ddf-info-panel::before { display: none; }
    .ddf-info-title { font-size: 26px; }
    .ddf-thumb-btn { width: 56px; height: 56px; }
}
@media (max-width: 480px) {
    #ddf-info-panel { padding: 28px 18px 40px; }
    .ddf-info-title { font-size: 22px; }
    .ddf-thumb-btn { width: 48px; height: 48px; border-radius: 7px; }
    #ddf-thumb-strip { padding: 12px 14px 14px; gap: 8px; }
}

/* ── Sections below hero ─────────────────────────────────── */
#ddf-sections {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 100px;
}
@media (max-width: 640px) { #ddf-sections { padding: 0 20px 64px; } }

.ddf-section-block {
    padding: 48px 0;
    border-bottom: 1px solid #f0ede8;
    scroll-margin-top: 100px;
    transition: background 0.3s, padding 0.3s;
}
.ddf-section-block-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f1117;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f0ede8;
}
.ddf-section-block-body {}

.ddf-sec-highlight {
    background: #f5f8ff !important;
    border-radius: 8px;
    padding: 32px !important;
}

/* ══════════════════════════════════════════════════════════════
   SORT BUTTON — added v19
   ══════════════════════════════════════════════════════════════ */
#ddf-wrapper #ddf-sort-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
}

#ddf-wrapper #ddf-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  background: #faebe1;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--t-fast) var(--ease);
}

#ddf-wrapper #ddf-sort-btn:hover {
  background: #eaecf1;
}

#ddf-wrapper #ddf-sort-btn svg {
  flex-shrink: 0;
  opacity: 0.75;
}

#ddf-wrapper .ddf-sort-caret {
  transition: transform var(--t-fast) var(--ease);
}

#ddf-wrapper #ddf-sort-btn[aria-expanded="true"] .ddf-sort-caret {
  transform: rotate(180deg);
}

#ddf-wrapper #ddf-sort-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 175px;
  background: var(--surface-0);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 6px;
  z-index: 300;
  list-style: none;
}

#ddf-wrapper #ddf-sort-dropdown.is-open {
  display: block;
}

#ddf-wrapper .ddf-sort-opt {
  display: block;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  font-family: var(--font-sans);
}

#ddf-wrapper .ddf-sort-opt:hover {
  background: var(--surface-1);
  color: var(--ink-900);
}

#ddf-wrapper .ddf-sort-opt.is-active {
  font-weight: 700;
  color: var(--ink-900);
  background: #faebe1;
}

@media (max-width: 768px) {
  #ddf-wrapper .ddf-sort-label {
    display: none;
  }
  #ddf-wrapper #ddf-sort-btn {
    padding: 0 13px;
    height: 34px;
  }
}
