/**
 * M.O.B.S Shop Page Styles
 * Matches Shop.html Preview Exactly
 * Add this to your child theme style.css or enqueue separately
 */

/* =========================================================
   HIDE DEFAULT THEME ELEMENTS
   ========================================================= */

.woocommerce-shop .shop-page-title,
.woocommerce-shop .page-title,
.woocommerce-shop .category-page-title {
  display: none !important;
}

/* Force full-width layout for the outer wrapper only */
.woocommerce-shop #main,
.woocommerce-shop .page-wrapper,
.woocommerce-shop #mobs-shop-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.woocommerce-shop .container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* =========================================================
   M.O.B.S Shop Page Variables
   ========================================================= */

.mobs-shop-page {
  --bg0: #07070a;
  --bg1: #0b0b10;
  --bg2: #101018;

  --ink: #f2f2f2;
  --dim: rgba(242,242,242,.72);
  --mute: rgba(242,242,242,.55);

  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.06);

  --card: rgba(255,255,255,.04);
  --card2: rgba(255,255,255,.06);

  --gold: #d8a85f;
  --gold2: rgba(216,168,95,.20);

  --radius: 26px;
  --radiusSm: 18px;

  --shadow: 0 18px 60px rgba(0,0,0,.58);
  --shadowSoft: 0 10px 26px rgba(0,0,0,.38);

  --max: 1220px;
}

/* =========================================================
   Shop Page Wrapper — full bleed dark background
   ========================================================= */

#mobs-shop-wrapper {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 520px at 15% -12%, rgba(216,168,95,.10), transparent 60%),
    radial-gradient(900px 380px at 86% 8%, rgba(216,168,95,.06), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  min-height: 100vh;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

#mobs-shop-wrapper.mobs-shop-full-width {
  max-width: 100% !important;
  padding: 0 !important;
}

/* =========================================================
   Hide Default WooCommerce Elements
   ========================================================= */

.mobs-shop-page .woocommerce-breadcrumb,
.mobs-shop-page .woocommerce-result-count,
.mobs-shop-page .woocommerce-ordering,
.mobs-shop-page .term-description,
.mobs-shop-page .page-description,
.woocommerce-breadcrumb,
.woocommerce-result-count,
.shop-page-title,
.category-filtering,
.shop-container > .woocommerce-notices-wrapper,
body.woocommerce-shop .shop-page-title.dark,
body.woocommerce-shop nav.woocommerce-breadcrumb {
  display: none !important;
}

/* Override Flatsome Content Wrapper — all product archive page types */
body.mobs-shop-full-width-page .page-wrapper,
body.mobs-shop-full-width-page #main,
body.mobs-shop-full-width-page #content,
body.mobs-shop-full-width-page .shop-container,
body.mobs-shop-full-width-page .container,
body.woocommerce-shop .page-wrapper,
body.woocommerce-shop #main,
body.woocommerce-shop #content,
body.woocommerce-shop .shop-container,
body.tax-product_cat .page-wrapper,
body.tax-product_cat #main,
body.tax-product_cat #content,
body.tax-product_cat .shop-container,
body.tax-product_tag .page-wrapper,
body.tax-product_tag #main,
body.tax-product_tag #content,
body.tax-product_tag .shop-container {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

body.woocommerce-shop .large-columns-1,
body.woocommerce-shop .row,
body.tax-product_cat .large-columns-1,
body.tax-product_cat .row,
body.tax-product_tag .large-columns-1,
body.tax-product_tag .row {
  max-width: 100% !important;
  margin: 0 !important;
}

/* Theme Header */
body.woocommerce-shop .header,
body.woocommerce-shop .header-wrapper,
body.woocommerce-shop .header-main {
  background-color: var(--bg0) !important;
  border-bottom: 1px solid var(--line) !important;
}

/* FIX: Constrain the header nav inner content — stops it stretching edge to edge */
/* Applies to: main shop, product category pages, product tag pages           */
body.woocommerce-shop .header-wrapper .container,
body.woocommerce-shop .header-main .container,
body.woocommerce-shop .header .container,
body.tax-product_cat .header-wrapper .container,
body.tax-product_cat .header-main .container,
body.tax-product_cat .header .container,
body.tax-product_tag .header-wrapper .container,
body.tax-product_tag .header-main .container,
body.tax-product_tag .header .container,
body.mobs-shop-full-width-page .header-wrapper .container,
body.mobs-shop-full-width-page .header-main .container,
body.mobs-shop-full-width-page .header .container {
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.woocommerce-shop .header-nav a,
body.woocommerce-shop .nav > li > a,
body.tax-product_cat .header-nav a,
body.tax-product_cat .nav > li > a,
body.tax-product_tag .header-nav a,
body.tax-product_tag .nav > li > a {
  color: var(--ink) !important;
}

body.woocommerce-shop .header-nav a:hover,
body.woocommerce-shop .nav > li > a:hover,
body.tax-product_cat .header-nav a:hover,
body.tax-product_cat .nav > li > a:hover,
body.tax-product_tag .header-nav a:hover,
body.tax-product_tag .nav > li > a:hover {
  color: var(--gold) !important;
}

/* =========================================================
   Hero Section
   FIX: constrained width to match Hoodies view, not edge-to-edge
   ========================================================= */

.mobs-hero {
  margin-top: 0;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    radial-gradient(900px 340px at 10% 0%, rgba(216,168,95,.12), transparent 55%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Grit overlay */
.mobs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.35) 1px, transparent 1px);
  background-size: 22px 22px, 34px 34px;
  opacity: .28;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* FIX: heroInner is the actual constrained content box — this controls the width */
.mobs-heroInner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 3vw, 40px);
  padding-right: clamp(20px, 3vw, 40px);
  box-sizing: border-box;
}

.mobs-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216,168,95,.32);
  background: rgba(0,0,0,.22);
  color: rgba(216,168,95,.95);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}

.mobs-kicker .mobs-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(216,168,95,.55);
  box-shadow: 0 0 0 3px rgba(216,168,95,.12);
}

.mobs-hero h1 {
  margin: 14px 0 8px;
  font-size: 38px;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-transform: uppercase;
  font-weight: 900;
  color: var(--ink);
}

.mobs-sub {
  margin: 0 0 18px;
  color: var(--dim);
  max-width: 70ch;
  line-height: 1.55;
  font-size: 14px;
}

/* =========================================================
   Search & Filters Toolbar
   ========================================================= */

.mobs-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.mobs-search {
  flex: 1 1 280px;
  max-width: 400px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.25);
  box-sizing: border-box;
}

.mobs-search form {
  width: 100%;
  margin: 0;
  padding: 0;
}

.mobs-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.mobs-search input::placeholder {
  color: rgba(242,242,242,.50);
}

.mobs-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.mobs-pill {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.025);
  color: var(--dim);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  transition: .16s ease;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
}

.mobs-pill:hover {
  border-color: rgba(216,168,95,.40);
  color: var(--ink);
}

.mobs-pill.active {
  border-color: rgba(216,168,95,.55);
  background: rgba(216,168,95,.14);
  color: var(--ink);
}

.mobs-filters {
  margin-top: 14px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobs-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 1 auto;
}

.woocommerce-ordering {
  flex: 0 0 auto;
  width: 220px;
}

.mobs-filters select,
.woocommerce-ordering select {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  letter-spacing: .04em;
  width: 100%;
}

.mobs-btn.mobs-reset {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 20px;
}

.mobs-meta {
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .04em;
}

/* =========================================================
   Filter Title
   ========================================================= */

.mobs-filter-title {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 28px 20px 10px;
}

/* =========================================================
   Product Grid
   FIX: Remove the override that was fighting the 4-column grid.
        max-width on cards was causing WooCommerce to collapse to 1 row.
   ========================================================= */

.mobs-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  max-width: 1280px;
  margin: 0 auto 0 !important;
  padding: 18px 40px 60px !important;
  box-sizing: border-box;
  width: 100%;
}

/* FIX: Remove max-width:320px — it was capping card width and causing overflow */
.mobs-grid .mobs-card,
.mobs-grid .product {
  width: 100% !important;
  max-width: 100% !important;  /* was 320px — that's the culprit */
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

/* WooCommerce ul.products override */
.woocommerce ul.products.mobs-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

/* =========================================================
   Product Card
   ========================================================= */

.mobs-card {
  border: 1px solid var(--line);
  border-radius: var(--radiusSm);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadowSoft);
  overflow: visible;
  transition: .16s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Re-apply radius clipping to thumb and content individually */
.mobs-card > .mobs-thumb {
  border-radius: var(--radiusSm) var(--radiusSm) 0 0;
  overflow: hidden;
}

.mobs-card > .mobs-content {
  border-radius: 0 0 var(--radiusSm) var(--radiusSm);
  overflow: hidden;
}

.mobs-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216,168,95,.40);
}

.mobs-thumb {
  height: 200px;
  background-color: rgba(255,255,255,.03);
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-bottom: 1px solid var(--line2);
  position: relative;
  display: block;
  flex-shrink: 0;
}

.mobs-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.35) 1px, transparent 1px);
  background-size: 18px 18px, 28px 28px;
  opacity: .22;
  pointer-events: none;
}

.mobs-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.mobs-tag {
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.22);
  color: var(--dim);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 900;
}

.mobs-tag.mobs-gold {
  border-color: rgba(216,168,95,.45);
  color: rgba(216,168,95,.95);
}

.mobs-tag.mobs-drop {
  border-color: rgba(255,255,255,.12);
  color: rgba(242,242,242,.92);
}

.mobs-tag.mobs-hot {
  border-color: rgba(216,168,95,.45);
  box-shadow: 0 0 0 3px rgba(216,168,95,.10) inset;
  color: rgba(242,242,242,.95);
}

.mobs-quick {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: rgba(0,0,0,.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: .16s ease;
}

.mobs-quick:hover {
  border-color: rgba(216,168,95,.55);
  transform: translateY(-1px);
}

.mobs-quick svg {
  opacity: 1;
  stroke: var(--ink);
  color: var(--ink);
  fill: none;
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* =========================================================
   Wishlist anchor — plain SVG heart, no YITH shortcode markup
   ========================================================= */

a.mobs-quick {
  text-decoration: none !important;
  color: #f2f2f2 !important;
}

a.mobs-quick:hover {
  color: var(--gold) !important;
  border-color: rgba(216,168,95,.55) !important;
}

a.mobs-quick svg {
  stroke: #f2f2f2 !important;
  transition: stroke .16s ease, fill .16s ease;
}

a.mobs-quick:hover svg {
  stroke: var(--gold) !important;
  fill: rgba(216,168,95,.25) !important;
}

.mobs-content {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mobs-title {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.15;
  font-size: 13px;
}

.mobs-title a {
  color: var(--ink);
  text-decoration: none;
}

.mobs-title a:hover {
  color: var(--gold);
}

.mobs-desc {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
  min-height: 34px;
}

.mobs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.mobs-price {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 15px;
}

.mobs-price .amount {
  color: var(--gold);
}

.mobs-mini {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--dim);
  font-size: 11px;
  white-space: nowrap;
}

.mobs-mini .mobs-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(216,168,95,.40);
  border: 1px solid rgba(216,168,95,.45);
  flex-shrink: 0;
}

.mobs-add {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px 12px;
  border-radius: 999px;
  border: 1px solid rgba(216,168,95,.55);
  background: linear-gradient(135deg, rgba(216,168,95,.22), rgba(216,168,95,.08));
  color: var(--ink) !important;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  text-decoration: none !important;
  transition: .16s ease;
  box-sizing: border-box;
}

.mobs-add:hover {
  background: linear-gradient(135deg, rgba(216,168,95,.38), rgba(216,168,95,.18));
  border-color: rgba(216,168,95,.80);
  color: var(--ink) !important;
  transform: translateY(-1px);
}

.mobs-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* No Products Message */
.mobs-no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.mobs-no-products h2 {
  color: var(--ink);
  font-size: 24px;
  margin-bottom: 12px;
}

.mobs-no-products p {
  color: var(--dim);
  font-size: 14px;
}

/* =========================================================
   Footer
   ========================================================= */

.mobs-home-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 20px;
}

.mobs-home-footer .footer-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-sizing: border-box;
}

.foot-brand {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 4px;
}

.foot-copy {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.5;
  margin: 0;
}

.foot-links {
  display: flex;
  gap: 24px;
}

.foot-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
  transition: color .16s ease;
}

.foot-links a:hover {
  color: var(--gold);
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1100px) {
  .mobs-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 18px 24px 40px !important;
  }
}

@media (max-width: 820px) {
  .mobs-hero h1 {
    font-size: 30px;
  }

  .mobs-hero {
    padding: 24px 0;
  }

  .mobs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 18px 16px 32px !important;
    gap: 16px !important;
  }
}

@media (max-width: 520px) {
  #mobs-shop-wrapper {
    --radius: 22px;
    --radiusSm: 16px;
  }

  .mobs-grid {
    grid-template-columns: 1fr !important;
    padding: 16px 12px 24px !important;
  }

  .mobs-hero h1 {
    font-size: 26px;
  }

  .mobs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mobs-search {
    max-width: 100%;
  }
}