/* ==========================================================================
   Dragon Leatherworks — Checkout System Design Tokens
   ==========================================================================
   Brand colors (oxblood, ink blue) are inherited directly from the live
   dlwtn.com site's leatherworks.css for continuity — not new choices.
   Saddle tan and brass are new additions, grounded in the actual material
   (this is a leather-and-hardware goods business; the existing palette
   had no warm leather tones at all).
   ========================================================================== */

:root {
  /* Brand — inherited exactly from dlwtn.com */
  --oxblood: #993E3D;
  --ink-blue: #1E4966;

  /* Brand — new, grounded in leather/hardware materiality */
  --saddle-tan: #9C6B30;
  --brass: #B08D57;

  /* Hero band background — switched from oxblood to near-black per
     direct feedback from a small test group: the oxblood+Rye
     combination read as "hobbyist" rather than "serious tactical
     maker." Kept separate from --oxblood itself (still used for
     buttons, price highlights, etc.) so this change stays scoped to
     the hero band only. */
  --forge-black: #141414;

  /* Neutrals */
  --parchment: #F6F1E7;
  --parchment-dim: #EDE6D6;
  --charcoal: #2A2420;
  --charcoal-soft: #5A5148;
  --line: #D9CFBC;

  /* Type */
  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  :root { --transition-speed: 0.15s; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --transition-speed: 0s; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--parchment);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.dl-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ==========================================================================
   Hero band — black band with a gold-gradient display headline.
   Swapped from the original oxblood+Rye combination based on direct
   feedback from a small test group: that pairing read as "hobbyist
   leathercraft" rather than "serious tactical maker." Every other
   use of oxblood (buttons, price highlights, etc.) is untouched —
   this change is scoped to the hero band specifically.
   ========================================================================== */

.dl-hero {
  background: var(--forge-black);
  color: var(--parchment);
  padding: 48px 20px 40px;
  text-align: center;
  margin-bottom: 8px;
}

.dl-hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

.dl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(180deg,
    #f6e7b4 0%,
    #d4af37 28%,
    #fdf3d0 46%,
    #9c7a1f 54%,
    #6b5312 78%,
    #b8923a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 3px rgba(0,0,0,0.5);
}

.dl-hero p {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1rem;
  color: var(--parchment-dim);
}

/* ==========================================================================
   Signature element: stitch-line divider.
   A dashed, slightly irregular rule evoking hand-saddle-stitching —
   used once per section break, never as decoration.
   ========================================================================== */

.dl-stitch {
  border: none;
  height: 2px;
  margin: 36px 0;
  background-image: repeating-linear-gradient(
    to right,
    var(--saddle-tan) 0,
    var(--saddle-tan) 6px,
    transparent 6px,
    transparent 13px
  );
  opacity: 0.55;
}

/* ==========================================================================
   Section headings
   ========================================================================== */

h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-blue);
  margin: 8px 0 18px;
}

/* ==========================================================================
   The build form
   ========================================================================== */

.dl-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px clamp(20px, 5vw, 40px) 36px;
}

.dl-field {
  margin-bottom: 22px;
}

.dl-field:last-of-type {
  margin-bottom: 0;
}

.dl-field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 7px;
}

.dl-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 40px 11px 14px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2420' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  text-overflow: ellipsis;
  transition: border-color var(--transition-speed, 0.15s) ease;
}

.dl-field select:hover {
  border-color: var(--saddle-tan);
}

.dl-field select:focus-visible {
  outline: 2px solid var(--ink-blue);
  outline-offset: 2px;
  border-color: var(--ink-blue);
}

.dl-field input[type="text"],
.dl-field input[type="email"],
.dl-field input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color var(--transition-speed, 0.15s) ease;
}

.dl-field input[type="text"]:hover,
.dl-field input[type="email"]:hover,
.dl-field input[type="tel"]:hover {
  border-color: var(--saddle-tan);
}

.dl-field input[type="text"]:focus-visible,
.dl-field input[type="email"]:focus-visible,
.dl-field input[type="tel"]:focus-visible {
  outline: 2px solid var(--ink-blue);
  outline-offset: 2px;
  border-color: var(--ink-blue);
}

/* Two fields side by side on wider screens (e.g. First Name / Last Name) */
.dl-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 560px) {
  .dl-field-row {
    grid-template-columns: 1fr 1fr;
  }
  .dl-field-row.dl-field-row--mi {
    grid-template-columns: 1fr 1fr 80px;
  }
}

/* Checkbox rows (Is Gift, consent) */
.dl-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

.dl-checkbox-row input[type="checkbox"] {
  margin-top: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--oxblood);
  flex-shrink: 0;
}

/* ==========================================================================
   Submit button
   ========================================================================== */

.dl-submit-row {
  text-align: center;
  margin-top: 34px;
}

.dl-button {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--oxblood);
  border: none;
  border-radius: var(--radius);
  padding: 15px 42px;
  cursor: pointer;
  transition: background var(--transition-speed, 0.15s) ease;
}

.dl-button:hover {
  background: #7f3231;
}

.dl-button:focus-visible {
  outline: 2px solid var(--ink-blue);
  outline-offset: 3px;
}

/* Secondary/lower-emphasis action (e.g. "Remove") — should never
   visually compete with the primary oxblood call-to-action. */
.dl-button--ghost {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color var(--transition-speed, 0.15s) ease, color var(--transition-speed, 0.15s) ease;
}

.dl-button--ghost:hover {
  border-color: var(--oxblood);
  color: var(--oxblood);
}

.dl-button--ghost:focus-visible {
  outline: 2px solid var(--ink-blue);
  outline-offset: 2px;
}

/* ==========================================================================
   Price figures — the one place monospace earns its keep
   ========================================================================== */

.dl-price {
  font-family: var(--font-mono);
}

/* Standalone inline photos (e.g. parts diagrams) — always constrained
   to their container, regardless of native image dimensions. */
.dl-inline-photo {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 24px;
  border-radius: var(--radius);
}

/* ==========================================================================
   Cart page components
   ========================================================================== */

.dl-cart-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.dl-cart-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.dl-cart-item__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--ink-blue);
}

.dl-cart-item__shipdate {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
}

.dl-cart-item__options {
  list-style: none;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin-bottom: 14px;
}

.dl-cart-item__options li {
  padding: 3px 0;
  border-bottom: 1px dashed var(--parchment-dim);
}

.dl-cart-item__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dl-cart-item__total {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--charcoal);
}

.dl-cart-totals {
  background: var(--parchment-dim);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}

.dl-cart-totals__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--charcoal-soft);
}

.dl-cart-totals__row--grand {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 1.2rem;
  color: var(--charcoal);
  font-family: var(--font-mono);
}

.dl-cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.dl-cart-empty p {
  color: var(--charcoal-soft);
  margin-bottom: 24px;
}

.dl-cart-shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   Checkout page components
   ========================================================================== */

.dl-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.dl-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dl-field-row--mi {
  grid-template-columns: 1fr 1fr 70px;
}

@media (max-width: 560px) {
  .dl-field-row, .dl-field-row--mi {
    grid-template-columns: 1fr;
  }
}

.dl-field input[type="text"],
.dl-field input[type="email"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color var(--transition-speed, 0.15s) ease;
}

.dl-field input[type="text"]:hover,
.dl-field input[type="email"]:hover {
  border-color: var(--saddle-tan);
}

.dl-field input[type="text"]:focus-visible,
.dl-field input[type="email"]:focus-visible {
  outline: 2px solid var(--ink-blue);
  outline-offset: 2px;
  border-color: var(--ink-blue);
}

.dl-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dl-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--oxblood);
  flex-shrink: 0;
}

.dl-checkbox-row label {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  line-height: 1.5;
}

.dl-conditional-box {
  background: var(--parchment-dim);
  border-left: 3px solid var(--saddle-tan);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 4px 0 22px;
}

.dl-trust-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.dl-trust-box p {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin-bottom: 12px;
  line-height: 1.6;
}

.dl-trust-box p:last-of-type {
  margin-bottom: 0;
}

/* Square's hosted card input iframe needs a defined container look
   consistent with our other form fields. */
#card-container {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--parchment);
  margin-bottom: 8px;
}

#status-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  text-align: center;
}

/* ==========================================================================
   Order confirmation page
   ========================================================================== */

.dl-order-ref {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin: 28px 0;
}

.dl-order-ref__label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  margin-bottom: 8px;
}

.dl-order-ref__number {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--oxblood);
  word-break: break-all;
}

/* ==========================================================================
   Site navigation — shared across every content page via site-nav.php.
   Two-tier structure, same logic as the original site: a small utility
   row (Home/About/Contact/Warranty/Ordering), and a primary row for
   the actual product lineup (Holsters dropdown, Gun Belt, Custom Shop).
   ========================================================================== */

.dl-site-header {
  background: var(--forge-black);
}

.dl-nav-utility {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dl-nav-utility a {
  color: #b7b0a4;
  text-decoration: none;
}

.dl-nav-utility a:hover {
  color: var(--brass);
}

.dl-nav-primary {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dl-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.dl-nav-links > li {
  position: relative;
}

.dl-nav-links > li > a {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parchment);
  text-decoration: none;
  padding: 6px 0;
}

.dl-nav-links > li > a:hover {
  color: var(--brass);
}

/* Dropdown: hover-activated on desktop */
.dl-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 180px;
  list-style: none;
  z-index: 20;
}

.dl-nav-dropdown-group:hover .dl-nav-dropdown {
  display: block;
}

.dl-nav-dropdown li a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--parchment-dim);
  text-decoration: none;
  white-space: nowrap;
}

.dl-nav-dropdown li a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--brass);
}

.dl-nav-caret {
  font-size: 0.6rem;
  margin-left: 3px;
  opacity: 0.7;
}

/* Mobile hamburger toggle */
.dl-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 860px) {
  .dl-nav-utility {
    display: none; /* utility links fold into the mobile menu instead */
  }

  .dl-nav-toggle {
    display: block;
  }

  .dl-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--forge-black);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px 20px;
  }

  .dl-nav-links.dl-nav-open {
    display: flex;
  }

  .dl-nav-links > li > a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .dl-nav-dropdown {
    display: none;
    position: static;
    border: none;
    background: rgba(255,255,255,0.03);
    padding: 0;
    margin-bottom: 8px;
  }

  .dl-nav-dropdown-group.dl-nav-open .dl-nav-dropdown {
    display: block;
  }

  .dl-nav-dropdown-group:hover .dl-nav-dropdown {
    display: none; /* disable hover behavior on mobile, tap-only */
  }

  .dl-nav-dropdown-group.dl-nav-open .dl-nav-dropdown {
    display: block;
  }

  .dl-nav-dropdown li a {
    padding: 10px 16px;
  }

  .dl-nav-primary {
    padding: 12px 20px;
    position: relative;
  }

  .dl-nav-utility-mobile {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
    padding-top: 10px;
  }

  .dl-nav-utility-mobile a {
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b7b0a4;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

@media (min-width: 861px) {
  .dl-nav-utility-mobile { display: none; }
}

/* ==========================================================================
   Site footer — shared across every content page via site-footer.php.
   ========================================================================== */

.dl-site-footer {
  background: var(--forge-black);
  color: #a89f8f;
  margin-top: 60px;
  padding: 40px 20px 30px;
}

.dl-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 700px) {
  .dl-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
}

.dl-footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg,
    #f6e7b4 0%, #d4af37 28%, #fdf3d0 46%,
    #9c7a1f 54%, #6b5312 78%, #b8923a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  display: inline-block;
}

.dl-footer-inner p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.dl-footer-inner a {
  color: #a89f8f;
  text-decoration: none;
}

.dl-footer-inner a:hover {
  color: var(--brass);
}

.dl-footer-heading {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}

.dl-footer-links {
  list-style: none;
}

.dl-footer-links li {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.dl-footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  text-align: center;
  color: #7a7266;
}

/* ==========================================================================
   Landing page product grid
   ========================================================================== */

.dl-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px auto;
  max-width: 1100px;
  padding: 0 20px;
}

.dl-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform var(--transition-speed, 0.15s) ease, box-shadow var(--transition-speed, 0.15s) ease;
}

.dl-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.dl-product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.dl-product-card__body {
  padding: 16px 18px;
}

.dl-product-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink-blue);
  margin-bottom: 4px;
}

.dl-product-card__desc {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
}

.dl-landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 10px;
}

.dl-landing-section h2 {
  text-align: center;
}

/* ==========================================================================
   Informational page components (about, ordering, warranty, etc.)
   ========================================================================== */

.dl-quote {
  background: var(--parchment-dim);
  border-left: 3px solid var(--saddle-tan);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--charcoal-soft);
}

.dl-quote p {
  margin-bottom: 10px;
}

.dl-quote p:last-child {
  margin-bottom: 0;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--saddle-tan);
}

.dl-two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 20px 0;
}

@media (max-width: 560px) {
  .dl-two-col-list {
    grid-template-columns: 1fr;
  }
}

.dl-two-col-list h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saddle-tan);
  margin-bottom: 10px;
}

.dl-two-col-list ul {
  list-style: none;
  color: var(--charcoal-soft);
  font-size: 0.92rem;
}

.dl-two-col-list li {
  padding: 4px 0;
  border-bottom: 1px dashed var(--parchment-dim);
}

.dl-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition-speed, 0.15s) ease;
}

.dl-field textarea:hover {
  border-color: var(--saddle-tan);
}

.dl-field textarea:focus-visible {
  outline: 2px solid var(--ink-blue);
  outline-offset: 2px;
  border-color: var(--ink-blue);
}

/* ==========================================================================
   Checkout page components
   ========================================================================== */

.dl-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  border-bottom: 1px dashed var(--parchment-dim);
}

.dl-trust-box {
  background: #fff;
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.dl-trust-box p {
  color: var(--charcoal-soft);
  font-size: 0.92rem;
  margin-bottom: 12px;
  line-height: 1.6;
}

.dl-trust-box p:last-of-type {
  margin-bottom: 0;
}

.dl-trust-box strong {
  color: var(--charcoal);
}

.dl-conditional-box {
  border-left: 3px solid var(--saddle-tan);
  padding: 4px 4px 4px 16px;
  margin: 16px 0;
  background: var(--parchment-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}

#card-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

#status-container {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  white-space: pre-wrap;
  margin-top: 18px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
  .dl-hero { padding: 36px 16px 30px; }
  .dl-form { padding: 24px 18px 28px; }
}

/* ==========================================================================
   Two-column layout: story/gallery + sidebar. Stacks on mobile.
   ========================================================================== */

.dl-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: 40px;
  min-width: 0;
}

.dl-main, .dl-sidebar { min-width: 0; }

@media (min-width: 860px) {
  .dl-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .dl-sidebar {
    position: sticky;
    top: 24px;
  }
}

.dl-main > * + * { margin-top: 32px; }
.dl-sidebar > * + * { margin-top: 40px; }

.dl-main p {
  margin-bottom: 14px;
  color: var(--charcoal-soft);
}

.dl-main h2 {
  margin-top: 0;
}

h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--saddle-tan);
  margin: 4px 0 12px;
}

h4 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 24px 0 10px;
}

/* ==========================================================================
   Lead / hero photo
   ========================================================================== */

.dl-lead-photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 28px;
}

/* ==========================================================================
   Photo galleries — feature shots and custom-build samples
   ========================================================================== */

.dl-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin: 18px 0 8px;
  min-width: 0;
}

.dl-gallery figure {
  margin: 0;
  min-width: 0;
}

.dl-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

.dl-gallery figcaption {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin-top: 6px;
  line-height: 1.4;
}

.dl-gallery figcaption a {
  color: var(--ink-blue);
}

/* A wider gallery item for two side-by-side feature photos */
.dl-gallery--wide img {
  aspect-ratio: 16 / 9;
}

/* ==========================================================================
   Sidebar blocks
   ========================================================================== */

.dl-sidebar h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-blue);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dl-review {
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--brass);
}

.dl-review:last-child { margin-bottom: 0; }

.dl-review cite {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--saddle-tan);
}

.dl-review cite a { color: inherit; }

.dl-firearm-list {
  columns: 2;
  column-gap: 20px;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  list-style: none;
}

.dl-firearm-list li {
  break-inside: avoid;
  padding: 3px 0;
}

.dl-note {
  font-size: 0.82rem;
  color: var(--charcoal-soft);
  font-style: italic;
  margin-top: 14px;
}

.dl-skins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 12px;
}

.dl-skins figure { margin: 0; text-align: center; }

.dl-skins img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: block;
}

.dl-skins figcaption {
  font-size: 0.7rem;
  color: var(--charcoal-soft);
  margin-top: 5px;
}

/* ==========================================================================
   Ordering info block
   ========================================================================== */

.dl-order-info {
  background: var(--parchment-dim);
  border-left: 3px solid var(--brass);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin-bottom: 8px;
}
