/*
Theme Name: Webify Depot
Theme URI: https://webifymyshop.com
Author: WebifyMyShop
Author URI: https://webifymyshop.com
Description: Dense, sale-forward marketplace layout for larger catalogs and faster scanning.
Version: 1.0.0
Text Domain: webify-depot
*/

:root {
  --bg: #09141c;
  --bg-soft: #0d1c27;
  --panel: #132634;
  --panel-2: #0f202d;
  --ink: #edf6ff;
  --muted: #94b0c9;
  --line: rgba(188, 215, 238, .14);
  --accent: #f7b733;
  --accent-2: #39d0ff;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Archivo", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(57, 208, 255, .08), transparent 20%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: "Archivo", sans-serif; letter-spacing: -.04em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-header,
.site-main,
.site-footer {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.site-header {
  margin-top: 16px;
  background: rgba(15, 32, 45, .92);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.branding {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
}

.branding-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), #ff7a18);
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.depot-topbar {
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr);
  align-items: start;
}

.depot-topbar > div,
.depot-panel,
.page-content,
.content-card {
  background: linear-gradient(180deg, rgba(19, 38, 52, .98), rgba(12, 24, 34, .98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.kicker {
  display: inline-flex;
  border: 1px solid rgba(247, 183, 51, .34);
  border-radius: 8px;
  color: var(--accent);
  padding: 0.25rem 0.55rem;
  font-size: 0.83rem;
  margin-bottom: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.primary-btn {
  display: inline-block;
  background: linear-gradient(140deg, var(--accent), #ff7a18);
  color: #111723;
  font-weight: 800;
  padding: 0.7rem 1rem;
  border-radius: 12px;
}

.depot-topbar h1 { margin: .35rem 0 .55rem; font-size: clamp(2rem, 4vw, 3.8rem); line-height: .92; }
.depot-topbar p { margin: 0; color: var(--muted); max-width: 40rem; }
.depot-topbar__actions { display: grid; gap: .8rem; }
.depot-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
.depot-search input {
  min-width: 0;
  border: 1px solid var(--line);
  background: #0f202d;
  color: var(--ink);
  border-radius: 12px;
  padding: .8rem .9rem;
  font: inherit;
}
.depot-search button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce ul.products li.product .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), #ff7a18);
  color: #111723;
  font-weight: 800;
}

.depot-categories {
  margin-top: 1rem;
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.depot-chip {
  border: 1px solid rgba(57, 208, 255, .25);
  padding: .55rem .8rem;
  border-radius: 10px;
  color: #bceeff;
  background: rgba(57, 208, 255, .06);
  font-weight: 700;
}

.depot-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 1rem;
}

.depot-panel { margin-top: 1rem; }
.depot-panel--deal { border-color: rgba(247, 183, 51, .35); }
.depot-panel--catalog { margin-top: 1rem; }
.section-heading { margin-bottom: .9rem; }
.section-eyebrow {
  display: inline-flex;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
}
.section-heading h2 { margin: .35rem 0; font-size: clamp(1.35rem, 2vw, 2rem); }
.section-heading p { margin: 0; color: var(--muted); }
.depot-empty { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--muted); }

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  gap: 16px;
  align-items: stretch;
  justify-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.depot-panel .woocommerce ul.products,
.depot-panel .woocommerce-page ul.products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
}

.depot-panel--catalog .woocommerce ul.products,
.depot-panel--catalog .woocommerce-page ul.products {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  justify-content: stretch !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce[class*="columns-"] ul.products li.product,
.woocommerce-page[class*="columns-"] ul.products li.product {
  float: none !important;
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  clear: none !important;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .75rem;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button {
  margin-top: auto;
  width: 100%;
}

.woocommerce ul.products li.product .price { color: #ffd277; font-weight: 800; }
.woocommerce ul.products li.product .onsale {
  background: rgba(247, 183, 51, .12);
  color: #ffd277;
  border-radius: 8px;
}
.page-content,
.content-card { margin-top: 1.4rem; }
.site-footer {
  margin: 2rem auto;
  color: var(--muted);
  padding: 1rem 0 2rem;
  text-align: center;
}
.footnote { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 920px) {
  .depot-topbar,
  .depot-grid { grid-template-columns: 1fr; }
}
  top: 14px;
  right: 14px;
  left: auto;
  margin: 0;
  min-width: 0;
  min-height: auto;
  max-width: calc(100% - 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  z-index: 4;
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.woocommerce div.product form.cart div.quantity {
  margin: 0;
  float: none;
}

.woocommerce div.product form.cart .quantity {
  display: inline-flex;
  align-items: stretch;
}

.woocommerce div.product form.cart .quantity .qty {
  width: 92px;
  min-width: 92px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-soft, var(--bg));
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-sizing: border-box;
  appearance: textfield;
}

.woocommerce div.product form.cart .quantity .qty:focus {
  outline: none;
  border-color: var(--line);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  min-height: 52px;
  align-self: stretch;
}
