/* ==========================================================================
   Diamond Scene - shared responsive styles (black and gold)
   Linked from header.asp and from the <head> of every in-use page.
   Colours are scoped to the new components (.ds-*) on purpose: legacy pages
   still draw dark text on white tables and must keep doing so.
   ASCII only (pages are windows-1252).
   ========================================================================== */

:root {
  --ds-gold: #d6bf4f;
  --ds-gold-hi: #efe19a;
  --ds-gold-lo: #a89232;
  --ds-ink: #0a0a0a;
  --ds-panel: #141414;
  --ds-panel-2: #1c1c1c;
  --ds-line: #3b3516;
  --ds-text: #efe9d2;
  --ds-muted: #b3aa88;
  --ds-max: 1080px;
  --ds-radius: 12px;
  --ds-serif: Georgia, "Times New Roman", serif;
  --ds-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #000; }
/* Old pages use 1px spacer GIFs with explicit heights (height="1" width="144"); only images without
   a fixed height may scale automatically, otherwise those spacers become big blank squares. */
img { max-width: 100%; }
img:not([height]) { height: auto; }
/* Real pictures scale proportionally; only the 1-2px spacer GIFs keep their fixed height. */
img[height]:not([height="0"]):not([height="1"]):not([height="2"]) { height: auto; }

/* --------------------------------------------------------------------------
   1. Legacy shim: makes the old FrontPage table pages fit any screen.
   Every old page wraps itself in  <table id="AutoNumber2"><tr><td>&nbsp;</td>
   <td width="960"> ... </td><td>&nbsp;</td></tr></table>.  Turn that wrapper
   into a centred, fluid column instead of a fixed 960px table.
   -------------------------------------------------------------------------- */
#AutoNumber2,
#AutoNumber2 > tbody,
#AutoNumber2 > tbody > tr { display: block; width: 100%; }
#AutoNumber2 > tbody > tr > td:first-child:not(:only-child),
#AutoNumber2 > tbody > tr > td:last-child:not(:only-child) { display: none; }
#AutoNumber2 > tbody > tr > td:nth-child(2),
#AutoNumber2 > tbody > tr > td:only-child {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--ds-max);
  margin: 0 auto;
  padding: 0 12px;
}
#AutoNumber2 table { max-width: 100%; }
#AutoNumber3, #AutoNumber5, #AutoNumber6 { width: 100% !important; }

/* Small print in old pages is unreadable on phones. */
#AutoNumber4 font[size="1"] { font-size: 12px; }
#AutoNumber4 font[size="2"] { font-size: 14px; }

/* White content frame of the old pages. */
#AutoNumber4 { width: 100% !important; }

@media (max-width: 760px) {
  /* Old pages lay everything out in fixed-width tables. On a phone, stack the cells one under
     another so forms, the cart and info text fit the screen. The frame still scrolls sideways
     as a last resort rather than letting the whole page slide. */
  #AutoNumber2 > tbody > tr > td:nth-child(2),
  #AutoNumber2 > tbody > tr > td:only-child { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #AutoNumber2 > tbody > tr > td:nth-child(2) table,
  #AutoNumber2 > tbody > tr > td:nth-child(2) tbody,
  #AutoNumber2 > tbody > tr > td:nth-child(2) thead,
  #AutoNumber2 > tbody > tr > td:nth-child(2) tfoot,
  #AutoNumber2 > tbody > tr > td:nth-child(2) tr,
  #AutoNumber2 > tbody > tr > td:nth-child(2) td,
  #AutoNumber2 > tbody > tr > td:nth-child(2) th {
    display: block; width: 100% !important; max-width: 100%; height: auto !important; box-sizing: border-box; }
  #AutoNumber2 > tbody > tr > td:nth-child(2) td { padding-top: 3px; padding-bottom: 3px; }
  #AutoNumber2 input[type="text"],
  #AutoNumber2 input[type="password"],
  #AutoNumber2 input[type="email"],
  #AutoNumber2 input[type="tel"],
  #AutoNumber2 select,
  #AutoNumber2 textarea { font-size: 16px; max-width: 100%; }
  #AutoNumber2 > tbody > tr > td:nth-child(2),
  #AutoNumber2 > tbody > tr > td:only-child { padding: 0 8px; }
}

/* --------------------------------------------------------------------------
   2. Header / navigation
   -------------------------------------------------------------------------- */
.ds-skip { position: absolute; left: -999px; top: 0; background: var(--ds-gold); color: #111;
  padding: 10px 14px; z-index: 1000; font: 700 14px var(--ds-sans); }
.ds-skip:focus { left: 8px; top: 8px; }

.ds-wrap { max-width: var(--ds-max); margin: 0 auto; }

.ds-header { background: linear-gradient(#000, #0d0d0d); border-bottom: 1px solid var(--ds-line);
  position: relative; z-index: 50; box-sizing: border-box; }
.ds-header *, .ds-footer *, .ds-home * { box-sizing: border-box; }

.ds-top { background: #000; border-bottom: 1px solid #1b1b1b; color: var(--ds-muted); font: 13px/1.4 var(--ds-sans); }
.ds-top .ds-wrap { display: flex; justify-content: space-between; align-items: center; gap: 6px 16px;
  flex-wrap: wrap; padding: 7px 14px; }
.ds-top a { color: var(--ds-gold); text-decoration: none; }
.ds-top a:hover, .ds-top a:focus { color: #fff; text-decoration: underline; }
.ds-top .ds-user a { margin-left: 4px; }

.ds-bar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; }
.ds-logo { display: block; flex: 0 1 auto; line-height: 0; }
.ds-logo img { display: block; max-height: 52px; width: auto; max-width: 100%; }

.ds-search { margin-left: auto; display: flex; align-items: stretch; gap: 6px; }
.ds-search input { width: 220px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--ds-gold-lo);
  border-radius: 8px; background: #fff; color: #111; font: 16px var(--ds-sans); }
.ds-search input:focus { outline: 2px solid var(--ds-gold); outline-offset: 1px; }
.ds-search input { -webkit-appearance: none; appearance: none; }
.ds-search input::placeholder { color: #777; }
.ds-search button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: linear-gradient(#e6d36a, #c2a937); color: #111; font: 700 14px var(--ds-sans); letter-spacing: .04em; }
.ds-search button:hover, .ds-search button:focus { background: linear-gradient(#f3e486, #d6bf4f); }

.ds-burger { display: none; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 14px;
  background: transparent; color: var(--ds-gold); border: 1px solid var(--ds-gold-lo); border-radius: 8px;
  font: 700 13px var(--ds-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ds-burger:focus { outline: 2px solid var(--ds-gold); outline-offset: 2px; }
.ds-burger-icon, .ds-burger-icon::before, .ds-burger-icon::after { display: block; width: 18px; height: 2px;
  background: var(--ds-gold); content: ""; position: relative; }
.ds-burger-icon::before { position: absolute; top: -6px; }
.ds-burger-icon::after { position: absolute; top: 6px; }

.ds-nav { border-top: 1px solid #1b1b1b; background: #050505; }
.ds-nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--ds-max); display: flex;
  flex-wrap: wrap; justify-content: center; }
.ds-nav a { display: block; padding: 14px 11px 12px; color: var(--ds-gold); text-decoration: none;
  font: 700 12px/1.2 var(--ds-sans); letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 2px solid transparent; }
.ds-nav a:hover, .ds-nav a:focus, .ds-nav a.on { color: #fff; border-bottom-color: var(--ds-gold); }
.ds-nav a:focus { outline: 2px solid var(--ds-gold); outline-offset: -2px; }

@media (max-width: 860px) {
  .ds-burger { display: inline-flex; }
  .ds-search { order: 3; width: 100%; margin-left: 0; }
  .ds-search input { flex: 1; width: auto; min-width: 0; }
  .ds-nav { display: none; }
  .ds-nav.open { display: block; }
  .ds-nav ul { flex-direction: column; padding: 0; }
  .ds-nav a { padding: 15px 18px; font-size: 14px; border-bottom: 1px solid #1d1d1d; }
  .ds-nav a:hover, .ds-nav a:focus, .ds-nav a.on { border-bottom-color: #1d1d1d; background: #141108; }
}

/* --------------------------------------------------------------------------
   3. Footer
   -------------------------------------------------------------------------- */
.ds-footer { margin-top: 24px; border-top: 1px solid var(--ds-line); background: #050505;
  color: var(--ds-muted); font: 14px/1.5 var(--ds-sans); }
.ds-footer .ds-wrap { padding: 20px 14px 26px; }
.ds-foot-grid { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.ds-foot-phone { color: var(--ds-gold-hi); font: 700 18px var(--ds-serif); text-decoration: none; }
.ds-foot-phone:hover, .ds-foot-phone:focus { color: #fff; }
.ds-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ds-footer ul a { display: inline-block; padding: 8px 0; color: var(--ds-gold); text-decoration: none;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }
.ds-footer ul a:hover, .ds-footer ul a:focus { color: #fff; text-decoration: underline; }
.ds-foot-base { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid #1b1b1b; font-size: 12px; }
.ds-footer a.ds-plain { color: var(--ds-muted); text-decoration: none; }
.ds-footer a.ds-plain:hover { color: var(--ds-gold); }
.ds-footer img { max-height: 36px; width: auto; vertical-align: middle; }

/* --------------------------------------------------------------------------
   4. Home page
   -------------------------------------------------------------------------- */
.ds-home { max-width: var(--ds-max); margin: 0 auto; padding: 18px 14px 0; color: var(--ds-text);
  font: 16px/1.6 var(--ds-sans); }
.ds-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border: 1px solid var(--ds-gold-lo);
  border-radius: var(--ds-radius); overflow: hidden; background: var(--ds-panel); }
.ds-hero-media { position: relative; min-height: 380px; background: #000; }
.ds-hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ds-notice { position: relative; margin: 28px; padding: 22px 24px; background: rgba(0,0,0,.78);
  border: 1px solid var(--ds-gold-lo); border-radius: 10px; }
.ds-notice h2 { margin: 0 0 10px; font: 700 13px var(--ds-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ds-gold); }
.ds-notice p { margin: 0 0 8px; font: 18px/1.5 var(--ds-serif); color: var(--ds-text); }
.ds-notice p.ds-big { font-size: 24px; color: #fff; }
.ds-notice a { color: var(--ds-gold-hi); }
.ds-welcome { background: var(--ds-gold); color: #111; padding: 34px 26px; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ds-welcome .ds-eyebrow { font: 20px var(--ds-serif); margin: 0; }
.ds-welcome h1 { margin: 0 0 6px; font: 400 clamp(36px, 6vw, 56px)/1.05 var(--ds-serif); color: #000; }
.ds-welcome p { margin: 8px 0 0; font: 17px/1.5 var(--ds-serif); }
.ds-welcome a { color: #0a2a8a; font-weight: 700; }
.ds-welcome a.ds-phone { display: inline-block; margin-top: 2px; color: #000; text-decoration: none;
  font: 700 clamp(26px, 5vw, 32px) var(--ds-serif); letter-spacing: .02em; }
.ds-welcome a.ds-phone:hover, .ds-welcome a.ds-phone:focus { text-decoration: underline; }
.ds-welcome hr { border: 0; border-top: 1px solid rgba(0,0,0,.25); width: 60%; margin: 14px auto 6px; }

.ds-shop { margin: 26px 0 8px; }
.ds-shop h2 { margin: 0 0 12px; font: 400 26px var(--ds-serif); color: var(--ds-gold-hi); text-align: center; }
.ds-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ds-tiles a { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 12px 10px;
  text-align: center; text-decoration: none; color: var(--ds-gold); background: var(--ds-panel);
  border: 1px solid var(--ds-line); border-radius: 10px; font: 700 13px/1.3 var(--ds-sans);
  letter-spacing: .1em; text-transform: uppercase; transition: border-color .15s, background .15s, color .15s; }
.ds-tiles a:hover, .ds-tiles a:focus { color: #000; background: var(--ds-gold); border-color: var(--ds-gold); }

@media (max-width: 860px) {
  .ds-hero { grid-template-columns: 1fr; }
  .ds-hero-media { min-height: 0; }
  .ds-hero-media > img { position: static; height: 190px; width: 100%; display: block; }
  .ds-notice { margin: -64px 14px 14px; padding: 18px; }
  .ds-notice p { font-size: 17px; }
  .ds-notice p.ds-big { font-size: 21px; }
  .ds-welcome { padding: 28px 18px; }
  .ds-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 380px) {
  .ds-tiles { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   5. Product pages: iframes are auto-sized by script; keep them fluid.
   -------------------------------------------------------------------------- */
iframe.ds-autoframe { display: block; width: 100%; border: 0; overflow: hidden; }

/* Pages shown inside those iframes (itemlist.asp = product grid, itemdet.asp = product detail). */
body.ds-embed { background: #fff; margin: 0; padding: 8px 6px; }
body.ds-embed table { max-width: 100%; }
body.ds-embed td[width="48"] { display: none; }
body.ds-embed td[width="864"] { width: 100% !important; }
body.ds-embed select { font-size: 14px !important; }
body.ds-embed font[size="1"] { font-size: 12px; }
body.ds-embed font[size="2"] { font-size: 14px; }

/* Product grid: the old page printed 6 fixed cells per table row. Let the browser fit as
   many 150px+ columns as the width allows (2 on a phone, 6 on a desktop). */
body.ds-embed table[width="864"] { display: block; width: 100% !important; }
body.ds-embed table[width="864"] > tbody { display: grid; gap: 18px 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
body.ds-embed table[width="864"] > tbody > tr { display: contents; }
body.ds-embed table[width="864"] > tbody > tr > td { display: block; width: auto !important; }
body.ds-embed table[width="864"] > tbody > tr > td:has(img[src*="nopic.gif"]) { display: none; }
body.ds-embed table[width="864"] td { height: auto; }
body.ds-embed a.borderit img { width: 100% !important; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
/* The product photo in the detail panel was a fixed 250px high thumbnail. */
body.ds-embed img[height="250"] { height: auto; max-height: 250px; width: auto; }
body.ds-embed img[height="290"] { height: auto; max-height: 290px; width: auto; }

/* Rarely-seen fixed-width pages (image pop-ups, PayPal error page): never wider than the screen. */
@media (max-width: 760px) {
  body > table, body > center > table { max-width: 100%; }
}

/* Jewelry-search page: a hidden Word-export text box (495px wide, absolutely positioned at left:396px)
   widened the whole page on phones. Its hover trigger is commented out in newsearch.asp, so it never shows. */
#ccout { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   6. Shop pages (proddet.asp, search.asp, srchrslt.asp, searchit.asp)
   Built on .ds-page; nothing here touches the legacy table pages.
   ========================================================================== */
.ds-page { max-width: var(--ds-max); margin: 0 auto; padding: 18px 14px 8px; color: var(--ds-text);
  font: 16px/1.55 var(--ds-sans); box-sizing: border-box; }
.ds-page *, .ds-page *::before, .ds-page *::after { box-sizing: border-box; }
.ds-page a { color: var(--ds-gold); }
.ds-page a:hover, .ds-page a:focus { color: #fff; }
.ds-page :focus-visible { outline: 2px solid var(--ds-gold); outline-offset: 2px; }
.ds-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ds-crumbs { margin: 0 0 14px; font-size: 13px; color: var(--ds-muted); }
.ds-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.ds-crumbs li + li::before { content: "/"; margin-right: 4px; color: #555; }
.ds-crumbs a { text-decoration: none; }

.ds-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px;
  margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--ds-line); }
.ds-eyebrow { margin: 0 0 4px; color: var(--ds-gold); font: 700 12px var(--ds-sans); letter-spacing: .16em; text-transform: uppercase; }
.ds-page h1 { margin: 0; font: 400 clamp(28px, 4.4vw, 42px)/1.1 var(--ds-serif); color: #fff; }
.ds-page h2 { margin: 0 0 12px; font: 400 24px/1.2 var(--ds-serif); color: var(--ds-gold-hi); }
.ds-lead { margin: 6px 0 0; color: var(--ds-muted); }
.ds-count { margin: 0; color: var(--ds-muted); font-size: 14px; }

/* Buttons and form controls */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: linear-gradient(#ead774, #c4aa38); color: #111 !important; font: 700 15px var(--ds-sans); letter-spacing: .04em; }
.ds-btn:hover, .ds-btn:focus { background: linear-gradient(#f6e98f, #d8c04f); }
.ds-btn-ghost { background: transparent; color: var(--ds-gold) !important; border-color: var(--ds-gold-lo); }
.ds-btn-ghost:hover, .ds-btn-ghost:focus { background: #1a1608; color: #fff !important; }
.ds-btn-block { width: 100%; }
.ds-input, .ds-select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #3a3a3a; border-radius: 10px;
  background: #0d0d0d; color: #fff; font: 16px var(--ds-sans); }
.ds-input::placeholder { color: #8b8573; }
.ds-input:focus, .ds-select:focus { outline: 2px solid var(--ds-gold); outline-offset: 0; border-color: var(--ds-gold-lo); }
.ds-select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ds-gold) 50%), linear-gradient(135deg, var(--ds-gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.ds-select option { background: #111; color: #fff; }

/* Toolbar above a product grid */
.ds-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; }
.ds-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ds-muted); }
.ds-sort .ds-select { width: auto; min-width: 190px; min-height: 42px; }

/* Product grid */
.ds-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ds-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ds-text);
  background: var(--ds-panel); border: 1px solid #262212; border-radius: var(--ds-radius); overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.ds-card a:hover, .ds-card a:focus { border-color: var(--ds-gold); transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,.6), 0 0 0 1px rgba(214,191,79,.25); color: var(--ds-text); }
.ds-card-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; padding: 10px; }
.ds-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.ds-card a:hover .ds-card-img img { transform: scale(1.04); }
.ds-noimg { color: #8a8a8a; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.ds-card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
.ds-card-style { color: var(--ds-gold); font: 700 12px var(--ds-sans); letter-spacing: .12em; text-transform: uppercase; }
.ds-card-desc { font: 15px/1.4 var(--ds-serif); color: #f3eedc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-card-meta { font-size: 13px; color: var(--ds-muted); }
.ds-card-price { margin-top: auto; padding-top: 8px; font: 700 18px var(--ds-sans); color: #fff; }
.ds-card-price.ds-call { font-size: 14px; color: var(--ds-gold-hi); }

/* Pager */
.ds-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 6px; }
.ds-pager a, .ds-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0 12px; border-radius: 10px; border: 1px solid #2c2814; text-decoration: none; font-weight: 700; font-size: 15px; }
.ds-pager a { color: var(--ds-gold); background: var(--ds-panel); }
.ds-pager a:hover, .ds-pager a:focus { border-color: var(--ds-gold); color: #fff; }
.ds-pager span.on { background: var(--ds-gold); border-color: var(--ds-gold); color: #111; }
.ds-pager span.ds-gap { border: 0; min-width: 20px; color: var(--ds-muted); }

/* Empty / message panels */
.ds-empty { text-align: center; padding: 40px 20px; background: var(--ds-panel); border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius); }
.ds-empty p { margin: 0 auto 14px; max-width: 560px; color: var(--ds-muted); }
.ds-empty .ds-actions { justify-content: center; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Product detail */
.ds-product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ds-product-media { position: sticky; top: 12px; }
.ds-zoom { display: block; width: 100%; padding: 18px; border: 1px solid #262212; border-radius: var(--ds-radius);
  background: #fff; cursor: zoom-in; position: relative; }
.ds-zoom img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.ds-zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(0,0,0,.72); color: #fff; font: 700 12px var(--ds-sans); letter-spacing: .06em; }
.ds-product-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: var(--ds-radius);
  background: var(--ds-panel); border: 1px solid var(--ds-line); color: var(--ds-muted); }
.ds-product-info h1 { font-size: clamp(26px, 3.6vw, 36px); }
.ds-style-no { margin: 8px 0 0; color: var(--ds-muted); font-size: 14px; letter-spacing: .06em; }
.ds-style-no strong { color: var(--ds-gold); }
.ds-price-box { margin: 18px 0; padding: 16px 18px; border-radius: var(--ds-radius); background: var(--ds-panel);
  border: 1px solid var(--ds-line); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.ds-price { font: 700 30px var(--ds-sans); color: #fff; }
.ds-price.ds-call { font-size: 20px; color: var(--ds-gold-hi); }
.ds-price-note { color: var(--ds-muted); font-size: 13px; }
.ds-stock { display: inline-flex; align-items: center; gap: 6px; color: #8fdc9a; font-weight: 700; font-size: 14px; }
.ds-stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4cc463; }
.ds-specs { margin: 0 0 18px; display: grid; grid-template-columns: max-content 1fr; gap: 0; border-top: 1px solid #222; }
.ds-specs dt, .ds-specs dd { margin: 0; padding: 10px 0; border-bottom: 1px solid #222; }
.ds-specs dt { padding-right: 18px; color: var(--ds-muted); font-size: 14px; }
.ds-specs dd { color: #fff; }
.ds-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.ds-buy label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--ds-muted);
  letter-spacing: .06em; text-transform: uppercase; }
.ds-buy .ds-btn { grid-column: 1 / -1; min-height: 54px; font-size: 16px; }
.ds-buy .ds-only { grid-column: 1 / -1; }
.ds-callbox { margin: 0 0 14px; padding: 16px 18px; border-radius: var(--ds-radius); border: 1px solid var(--ds-gold-lo); background: #120f05; }
.ds-callbox p { margin: 0 0 10px; }
.ds-detail-extra { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ds-muted); font-size: 14px; }
.ds-detail-extra li::before { content: "\2713"; color: var(--ds-gold); margin-right: 8px; }
.ds-related { margin-top: 40px; }
.ds-related-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }

/* Zoom overlay */
.ds-lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,.92); }
.ds-lightbox.open { display: flex; }
.ds-lightbox img { max-width: min(92vw, 900px); max-height: 86vh; width: auto; height: auto; background: #fff; border-radius: 10px; padding: 12px; }
.ds-lightbox button { position: absolute; top: 14px; right: 14px; min-width: 48px; min-height: 48px; border-radius: 50%;
  border: 1px solid var(--ds-gold-lo); background: #111; color: var(--ds-gold); font: 700 24px/1 var(--ds-sans); cursor: pointer; }

/* Search pages */
.ds-searchbar { display: flex; gap: 8px; margin: 0; }
.ds-searchbar .ds-input { flex: 1; min-height: 54px; font-size: 18px; padding: 12px 16px; background: #fff; color: #111; border-color: var(--ds-gold-lo); }
.ds-searchbar .ds-input::placeholder { color: #777; }
.ds-searchbar .ds-btn { min-height: 54px; padding: 0 26px; }
.ds-search-hero { margin: 0 0 22px; padding: 26px; border-radius: var(--ds-radius); border: 1px solid var(--ds-line);
  background: radial-gradient(120% 140% at 0% 0%, #2a230b 0%, #121212 55%, #0b0b0b 100%); }
.ds-search-hero h1 { margin-bottom: 6px; }
.ds-search-hero .ds-lead { margin: 0 0 16px; }
.ds-search-hero .ds-tabs { margin: 14px 0 0; font-size: 14px; color: var(--ds-muted); }
.ds-search-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ds-results-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.ds-panel { padding: 22px; border-radius: var(--ds-radius); background: var(--ds-panel); border: 1px solid var(--ds-line); }
.ds-panel + .ds-panel { margin-top: 16px; }
.ds-filter { display: grid; gap: 18px; }
.ds-filter fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ds-filter legend, .ds-filter .ds-label { display: block; margin: 0 0 8px; padding: 0; font: 700 13px var(--ds-sans);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ds-gold); }
.ds-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chip { position: relative; }
.ds-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid #3a3a3a; background: #0d0d0d; color: var(--ds-text); font-size: 14px; user-select: none; }
.ds-chip input:checked + span { background: var(--ds-gold); border-color: var(--ds-gold); color: #111; font-weight: 700; }
.ds-chip input:focus-visible + span { outline: 2px solid var(--ds-gold); outline-offset: 2px; }
.ds-chip span:hover { border-color: var(--ds-gold-lo); }
.ds-range-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: var(--ds-muted); font-size: 14px; }
.ds-filter-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-filter-actions .ds-btn { flex: 1 1 160px; }
.ds-filter-box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; font: 700 14px var(--ds-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-gold); }
.ds-filter-box > summary::-webkit-details-marker { display: none; }
.ds-filter-box > summary::after { content: "+"; font-size: 22px; }
.ds-filter-box[open] > summary::after { content: "\2212"; }
.ds-filter-box[open] > summary { margin-bottom: 12px; }
.ds-catlinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ds-catlinks a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  background: #0d0d0d; border: 1px solid #2a2612; font-size: 14px; }
.ds-catlinks a:hover, .ds-catlinks a:focus { border-color: var(--ds-gold); }
.ds-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ds-tags li { padding: 4px 10px; border-radius: 999px; background: #1d1a0c; border: 1px solid #3b3516; color: var(--ds-gold-hi); font-size: 13px; }

@media (max-width: 860px) {
  .ds-product { grid-template-columns: 1fr; gap: 18px; }
  .ds-product-media { position: static; }
  .ds-search-layout, .ds-results-layout { grid-template-columns: 1fr; }
  .ds-search-hero { padding: 18px; }
  .ds-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ds-card-body { padding: 10px 10px 12px; }
  .ds-card-desc { font-size: 14px; }
  .ds-card-price { font-size: 16px; }
  .ds-page-head { align-items: flex-start; }
}
@media (max-width: 480px) {
  .ds-searchbar { flex-direction: column; }
  .ds-searchbar .ds-btn { width: 100%; }
  .ds-buy { grid-template-columns: 1fr; }
  .ds-sort { width: 100%; }
  .ds-sort .ds-select { flex: 1; min-width: 0; }
  .ds-catlinks { grid-template-columns: 1fr; }
  .ds-panel { padding: 16px; }
}
@media print {
  .ds-header, .ds-footer, .ds-related, .ds-buy, .ds-actions, .ds-toolbar, .ds-pager { display: none !important; }
  .ds-page, .ds-page h1, .ds-specs dd, .ds-price { color: #000 !important; }
}

/* ==========================================================================
   7. Legacy account / checkout / e-mail pages: text instead of text-images,
      modern buttons and form fields. The page logic and table layout stay;
      :where() keeps these rules weak so the new .ds-* components always win.
   ========================================================================== */
/* The content of every old page is a table placed between header and footer: give it a white card
   (Sign In and a few others had no background of their own and showed dark text on black). */
#AutoNumber2 > tbody > tr > td:nth-child(2) > table,
#AutoNumber4 { background: #fff; border: 1px solid #2c2814 !important; border-radius: var(--ds-radius); overflow: hidden;
  font-family: var(--ds-sans); color: #222; margin-top: 16px; }
#AutoNumber2 > tbody > tr > td:nth-child(2) > table a:not(:has(> .ds-lbtn)),
#AutoNumber4 a:not(:has(> .ds-lbtn)) { color: #7a6312; }
#AutoNumber2 > tbody > tr > td:nth-child(2) > table a:not(:has(> .ds-lbtn)):hover,
#AutoNumber4 a:not(:has(> .ds-lbtn)):hover { color: #000; }
#AutoNumber4 > tbody > tr > td { padding: 18px 20px; }
:where(#AutoNumber4, body:not(:has(.ds-page))) font[face] { font-family: var(--ds-sans); }

/* Headings that used to be handwriting images (Sign In, Shopping Basket ...) */
.ds-lh { display: block; margin: 6px 0 14px; font: 400 clamp(26px, 4vw, 34px)/1.15 var(--ds-serif); color: #111;
  letter-spacing: .01em; text-align: left; }
.ds-lh::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ds-gold), var(--ds-gold-lo)); }

/* Field labels that used to be images (First Name, City ...) */
.ds-lbl { display: inline-block; padding: 2px 0; font: 600 13px/1.3 var(--ds-sans); color: #333; letter-spacing: .02em; white-space: normal; }

/* Buttons that used to be images (Proceed to checkout, Sign in, Send ...) */
.ds-lbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
  margin: 4px 4px 4px 0; border: 1px solid #111; border-radius: 10px; background: #111; color: var(--ds-gold-hi) !important;
  font: 700 13px/1 var(--ds-sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer; vertical-align: middle; transition: background .15s, color .15s, border-color .15s; }
a:hover > .ds-lbtn, a:focus > .ds-lbtn, button.ds-lbtn:hover, button.ds-lbtn:focus { background: var(--ds-gold); border-color: var(--ds-gold); color: #111 !important; }
button.ds-lbtn:focus-visible, a:focus-visible > .ds-lbtn { outline: 2px solid var(--ds-gold); outline-offset: 2px; }
/* Main actions get the gold look */
button.ds-lbtn[type="submit"] { background: linear-gradient(#ead774, #c4aa38); border-color: #b39b33; color: #111 !important; }
button.ds-lbtn[type="submit"]:hover, button.ds-lbtn[type="submit"]:focus { background: linear-gradient(#f6e98f, #d8c04f); }
/* Current checkout step / current tab */
.ds-lbtn.ds-on { background: var(--ds-gold); border-color: var(--ds-gold); color: #111 !important; }
a { -webkit-tap-highlight-color: rgba(214,191,79,.25); }
a:has(> .ds-lbtn) { text-decoration: none; }

/* Form fields on the old pages */
:where(input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]), select, textarea) {
  box-sizing: border-box; min-height: 40px; padding: 8px 10px; border: 1px solid #c9c2a6; border-radius: 8px; background: #fff;
  color: #111; font: 15px/1.3 var(--ds-sans) !important; max-width: 100%; }
:where(textarea) { min-height: 90px; }
:where(input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]), select, textarea):focus {
  outline: 2px solid var(--ds-gold); outline-offset: 0; border-color: var(--ds-gold-lo); }
:where(input[type="submit"], input[type="button"], input[type="reset"]) { min-height: 42px; padding: 0 18px; border: 1px solid #b39b33; border-radius: 10px;
  background: linear-gradient(#ead774, #c4aa38); color: #111; font: 700 13px var(--ds-sans); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
:where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; accent-color: #b39b33; vertical-align: middle; }

/* Old fixed-size pop-up windows (e-mail a friend, image pop-ups) */
body:not(:has(.ds-header)) { background: #fff; font-family: var(--ds-sans); }

@media (max-width: 760px) {
  #AutoNumber4 > tbody > tr > td { padding: 12px; }
  .ds-lbtn { min-height: 46px; white-space: normal; text-align: center; }
  :where(input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]), select, textarea) { font-size: 16px !important; width: 100%; }
}
