/* =====================================================================
   digiCircle storefront theme  (css/dc_theme.css)
   Loaded by header_sm.php for customer pages only (not admin pages).
   Colors: teal = brand, blue = buy/links, green = sell/success,
           orange = deals and alerts.
   ===================================================================== */
:root {
  --dc-teal: #0F766E;
  --dc-teal-dark: #0B3B3A;
  --dc-teal-soft: #E6F4F2;
  --dc-blue: #1D4ED8;
  --dc-blue-soft: #E8EEFC;
  --dc-green: #15803D;
  --dc-green-soft: #E7F6EC;
  --dc-orange: #EA580C;
  --dc-orange-soft: #FFF1E7;
  --dc-ink: #0F172A;
  --dc-text: #334155;
  --dc-muted: #64748B;
  --dc-line: #E2E8F0;
  --dc-bg: #FFFFFF;   /* page background: plain white */
  --dc-card: #FFFFFF;
  --dc-radius: 12px;
  --dc-topbar: #1F6FD1;   /* digiCircle blue (top bar) */
}

/* ---------- Base ---------- */
body {
  background: var(--dc-bg);
  color: var(--dc-ink);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  margin: 0;
}
/* The pages use <font face="Arial">; let them use the site font instead.
   Colors set on <font> are left alone (they carry meaning: SOLD, prices, warnings). */
font { font-family: inherit; }
font[size="6"] { font-size: 26px; }
font[size="5"] { font-size: 21px; }
font[size="4"] { font-size: 17px; }
td, th, input, select, textarea, button { font-family: inherit; }
a { color: var(--dc-blue); text-decoration: none; }
a:hover { color: var(--dc-teal); text-decoration: underline; }
img { border: 0; }

/* ---------- Form controls ---------- */
select, input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="email"], textarea {
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 5px 8px;
  background: #FFFFFF;
  color: var(--dc-ink);
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--dc-teal); outline-offset: 1px; }
input[type="submit"], input[type="button"], button {
  border-radius: 8px !important;
  cursor: pointer;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--dc-teal); }

/* Main action buttons on the buy page and cart */
/* One look for Add to Cart / Watch on every page (buy page, BUY inventory page, cart).
   Store-standard style: solid blue "primary" button for Add to Cart,
   white outlined "secondary" button for Watch. */
.add_cart_btn, .multiple_add_cart_btn, .dc-atc-btn {
  background: var(--dc-topbar) !important;      /* digiCircle blue, same as the top bar */
  border: 1px solid var(--dc-topbar) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .15);
  transition: background .15s, box-shadow .15s;
}
.add_cart_btn:hover, .multiple_add_cart_btn:hover, .dc-atc-btn:hover {
  background: #1859B0 !important; border-color: #1859B0 !important;
  box-shadow: 0 2px 6px rgba(31, 111, 209, .35);
}
.add_to_watch, .dc-watch-off {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
  transition: background .15s, border-color .15s;
}
.add_to_watch:hover { background: #F1F5F9 !important; border-color: #94A3B8 !important; }
.add_cart_btn, .add_to_watch, .dc-atc-btn, .dc-watch-off {
  font-size: 13px !important;
  height: 32px !important;
  width: auto !important;
  min-width: 104px;
  padding: 0 14px !important;
  border-radius: 8px !important;
  vertical-align: middle;
  letter-spacing: .1px;
}

/* ---------- Header container ----------
   main_front_end.css makes #heder_continer a sticky box 86px tall and only as wide as
   its content (made for the old header). Undo that for the new header:
   the top bar scrolls away and the logo/search/menu row stays pinned at the top. */
#heder_continer {
  position: sticky;
  position: -webkit-sticky;
  top: -38px;               /* = top bar height, so only the top bar scrolls off */
  height: auto !important;
  width: auto !important;
  padding: 0 !important;
  background: var(--dc-card) !important;
  z-index: 50;
  margin-bottom: 12px;
}
#heder_continer td { padding: 0 !important; }

/* ---------- Top bar ---------- */
.dc-topbar { background: var(--dc-topbar); color: #EAF2FF; font-size: 13px; }
.dc-topbar a { color: #FFFFFF; }
.dc-wrap { max-width: 1480px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.dc-topbar .dc-wrap { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 6px 24px; height: 38px; box-sizing: border-box; overflow: hidden; white-space: nowrap; }
.dc-topbar .dc-perks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.dc-topbar .dc-perks span::before { content: "\2713\00a0"; color: #B9F3C9; font-weight: 700; }
.dc-topbar .dc-contact { display: flex; gap: 16px; align-items: center; }

/* ---------- Header ---------- */
.dc-header { background: var(--dc-card); text-align: left; }
.dc-header .dc-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; padding-top: 12px; padding-bottom: 12px; }
.dc-logo { display: flex; flex-direction: column; align-items: flex-start; }
.dc-logo img { height: 45px; width: auto; display: block; }
.dc-hello { font-size: 13px; color: var(--dc-muted); margin-top: 2px; }
.dc-search { flex: 1 1 340px; display: flex; min-width: 0; margin: 0; }
.dc-search input[type="search"] { flex: 1; min-width: 0; height: 44px; box-sizing: border-box; border-radius: 8px 0 0 8px; border-right: 0; font-size: 15px; padding: 0 14px; }
.dc-search button { width: 52px; height: 44px; border: 0; border-radius: 0 8px 8px 0 !important; background: var(--dc-teal); color: #FFFFFF; }
.dc-search button:hover { background: #115E59; }
.dc-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 15px; font-weight: 500; }
.dc-nav a { color: var(--dc-ink); }
.dc-nav a.dc-buy { color: var(--dc-blue); font-weight: 700; font-size: 26px; line-height: 1; }
.dc-nav a.dc-sell { color: var(--dc-green); font-weight: 700; font-size: 26px; line-height: 1; }
.dc-nav a.dc-shop img { height: 36px; display: block; }
.dc-nav .dc-cart { position: relative; display: flex; align-items: center; gap: 6px; }
.dc-nav .dc-count { position: static !important; background: var(--dc-orange); color: #FFFFFF; font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }
.dc-nav .dc-count:empty { display: none; }
.dc-btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none !important; }
.dc-btn-teal { background: var(--dc-teal); color: #FFFFFF !important; }
.dc-btn-teal:hover { background: #115E59; }
.dc-btn-line { border: 1px solid #CBD5E1; color: var(--dc-ink) !important; background: #FFFFFF; }
.dc-promo-line { width: 100%; font-size: 14px; color: var(--dc-text); margin-top: -4px; }
.dc-promo-line b { color: var(--dc-orange); }

/* ---------- Side panels (left: category_lib, right: panel_lib) ---------- */
table.panel_box, table.panel {
  background: var(--dc-card) !important;
  border: 1px solid var(--dc-line) !important;
  border-radius: var(--dc-radius);
  border-collapse: separate !important;
  overflow: hidden;
  margin-bottom: 14px;
}
table.panel_box td, table.panel td { font-size: 14px; color: var(--dc-text); padding-top: 2px; padding-bottom: 2px; }
td.promo { background: var(--dc-card) !important; border-bottom: 1px solid var(--dc-line); padding: 10px 12px !important; font-weight: 600; }
table.panel_box td[bgcolor="#02CCCC"], table.panel_box td[bgcolor="green"] { background: var(--dc-teal) !important; }
/* panel headings that used solid background colors */
td[bgcolor="#81BAB6"], td[bgcolor="#6F9627"], td.promo[bgcolor="grey"] {
  background: var(--dc-teal) !important;
  color: #FFFFFF;
  padding: 10px 12px !important;
  font-weight: 600;
}
td[bgcolor="#6F9627"] { background: var(--dc-green) !important; }
td[bgcolor="#81BAB6"] font, td[bgcolor="#6F9627"] font, td.promo[bgcolor="grey"] font { color: #FFFFFF; }
#shoping_cart_info { background: var(--dc-green-soft) !important; }
.sizedmenu { min-width: 150px; max-width: 150px; }

/* ---------- Buy listing and product tables ---------- */
table.ols_buy_box, table.product_list, table.car_table {
  background: var(--dc-card) !important;
  border: 1px solid var(--dc-line) !important;
  border-radius: var(--dc-radius);
  border-collapse: separate !important;
}
table.product_list td, table.ols_buy_box td { padding: 6px 8px; }

/* ---------- Footer ---------- */
.dc-footer { background: var(--dc-card); border-top: 1px solid var(--dc-line); margin-top: 24px; font-size: 14px; color: var(--dc-muted); text-align: left; }
.dc-footer .dc-wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
.dc-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.dc-footer nav a { color: var(--dc-text); }
.dc-footer .dc-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dc-footer .dc-badges img { height: 28px; width: auto; }
.dc-footer .dc-copy { width: 100%; font-size: 12px; }

/* ---------- Page width: center the page under the header ---------- */
body > table { margin-left: auto !important; margin-right: auto !important; }

/* ---------- Home page product cards (promotion_lib.php) ---------- */
#display_container_promote { text-align: left; }
.dc-grid {
  width: 960px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 4px auto 14px;
}
.dc-card {
  background: var(--dc-card);
  border: 1px solid var(--dc-line);
  border-radius: var(--dc-radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--dc-ink) !important;
  text-decoration: none !important;
  transition: box-shadow .15s, border-color .15s;
}
.dc-card:hover { border-color: #B6C2D1; box-shadow: 0 4px 14px rgba(15, 23, 42, .08); }
.dc-card-img { height: 140px; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border-radius: 8px; }
.dc-card-img img { max-height: 128px; max-width: 100%; object-fit: contain; }
.dc-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; min-height: 39px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dc-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-badge { background: var(--dc-teal-soft); color: var(--dc-teal); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.dc-chip { background: var(--dc-blue-soft); color: var(--dc-blue); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 10px; }
.dc-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.dc-price { font-size: 21px; font-weight: 700; color: var(--dc-teal); }
.dc-list { font-size: 13px; color: var(--dc-muted); }
.dc-card-note { font-size: 12px; color: var(--dc-muted); margin-top: -4px; }

/* ---------- Daily Jackpot box (banner_lib.php) ---------- */
table.banner:has(.dc-jp-head) {
  width: 100% !important;   /* as wide as the listing below it (home page and BUY page) */
  background: var(--dc-card) !important;
  border: 1px solid var(--dc-line) !important;
  border-radius: var(--dc-radius);
  margin: 0 0 6px;
  box-sizing: border-box;
}
td.dc-jp-head { padding: 14px 12px 4px !important; }
.dc-jp-title { font-size: 22px; font-weight: 700; color: var(--dc-orange); }
.dc-jp-help { font-size: 13px; margin-left: 8px; }
td.dc-jp-item { padding: 8px 12px 14px !important; text-align: center; }
td.dc-jp-item img { width: auto !important; max-height: 110px; }
.dc-jp-name { font-size: 16px; font-weight: 600; color: var(--dc-ink); margin-top: 6px; }
.dc-jp-grade { margin: 6px 0; }
.dc-jp-prices { display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.dc-jp-price { font-size: 26px; font-weight: 700; color: var(--dc-teal); }
.dc-jp-when { font-size: 13px; color: var(--dc-text); margin-top: 6px; line-height: 1.5; }

/* ---------- Member Reviews: smaller, darker text so the panel is shorter ---------- */
table.panel font[size="3"][color="grey"] { font-size: 14px; color: var(--dc-text); line-height: 1.45; }

/* ---------- BUY page inventory list (promotion_lib.php, list_inventory) ---------- */
td.dc-inv-line { white-space: normal !important; line-height: 1.45; padding: 6px 8px !important; }
.dc-atc-btn { margin: 0 6px 0 4px; }
.dc-in-cart { color: var(--dc-green) !important; font-weight: 600; font-size: 13px; margin: 0 6px 0 4px; }
.dc-pending { color: var(--dc-orange); font-weight: 600; font-size: 13px; margin: 0 6px 0 4px; }
.dc-watch-off { background: #F8FAFC !important; color: #A0AEC0 !important; border-color: #E2E8F0 !important; cursor: help !important; box-shadow: none; }

/* Multi Add-to-Cart / Multi Watch-Item at the top of the buy list:
   the old fixed 120px width cut the text off */
.multiple_add_cart_btn, input[name="multiple_watch"] {
  width: auto !important;
  min-width: 150px;
  height: 32px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  white-space: nowrap;
  margin: 3px 0;
}
input[name="multiple_watch"] {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
  font-weight: 600 !important;
}
input[name="multiple_watch"]:hover { background: #F1F5F9 !important; border-color: #94A3B8 !important; }