/* =============================================
   BESTCRAFT MC SKIN — mc-skin.css
   ============================================= */

/* ── Base ──────────────────────────────────── */
body {
  background: #131313 !important;
  color: #f0f0f0 !important;
  font-family: 'VT323', monospace !important;
  font-size: 20px !important;
}
::selection { background: #3fb32f55; }
::-webkit-scrollbar { width: 10px; background: #1e1e1e; }
::-webkit-scrollbar-thumb { background: #373737; border: 2px solid #141414; }

/* ── Nuclear dark override — kill every white box from deli ─── */
#page, .site, .site-content, #content, .content-area,
main, main#main, .hentry, article,
.storefront-full-width-content .entry-content,
.woocommerce-page .entry-content, .entry-content, .entry-summary,
.type-page, .type-product,
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content,
#primary, .col-full,
div[class*="deli-"], div[class*="storefront-product"] {
  background: #131313 !important;
  color: #f0f0f0 !important;
}
.widget-area, .secondary, aside { background: #1a1a1a !important; }

/* ── Admin bar + header offset ──────────────── */
.admin-bar #mcsk-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #mcsk-header { top: 46px; } }
#page, .site { padding-top: 62px !important; }
.admin-bar #page, .admin-bar .site { padding-top: 94px !important; }
@media screen and (max-width: 782px) {
  .admin-bar #page, .admin-bar .site { padding-top: 108px !important; }
}
/* ── Collapse top nav at ≤560px (handheld footer bar takes over) ── */
@media screen and (max-width: 560px) {
  #mcsk-nav, #mcsk-cart-btn, #mcsk-search { display: none !important; }
  /* Header shrinks without nav — reduce page offset */
  #page, .site { padding-top: 52px !important; }
  .admin-bar #page, .admin-bar .site { padding-top: 84px !important; }
}

/* ── Hide deli/storefront header + blank-space navs ── */
.site-header, .storefront-primary-navigation,
#site-navigation, .site-branding, .deli-header,
.storefront-mobile-cart-link,
/* deli shop top nav that renders invisibly but eats space */
.primary-navigation,
.deli-primary-navigation {
  display: none !important;
}

/* Sidebar - dark */
#secondary, #secondary.widget-area {
  background: #1a1a1a !important;
  border: 2px solid #141414 !important;
  padding: 16px !important;
}

/* ── MC FIXED HEADER ───────────────────────── */
#mcsk-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  background: #1e1e1e;
  border-bottom: 4px solid #000;
}
#mcsk-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
#mcsk-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  text-decoration: none !important;
  text-shadow: 3px 3px 0 #000;
  white-space: nowrap;
}
.mcsk-logo-gold  { color: #f5d949 !important; }
.mcsk-logo-green { color: #3fb32f !important; }

#mcsk-nav .mcsk-nav-list, #mcsk-nav ul {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important; padding: 0 !important;
  gap: 6px; background: transparent !important;
}
#mcsk-nav li { background: transparent !important; }
a.mcsk-nav-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: #f0f0f0 !important;
  text-decoration: none !important;
  padding: 8px 12px;
  background: #373737 !important;
  box-shadow: inset -2px -2px 0 #000, inset 2px 2px 0 #ffffff33;
  display: inline-block;
}
a.mcsk-nav-link:hover, a.mcsk-nav-link.mcsk-nav-active {
  background: #4a4a4a !important; color: #3fb32f !important;
}
#mcsk-cart-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  background: #3fb32f !important;
  color: #000 !important;
  text-decoration: none !important;
  padding: 8px 14px;
  box-shadow: inset -3px -3px 0 #0006, inset 3px 3px 0 #59d64455;
  position: relative;
  display: inline-block;
}
#mcsk-cart-btn:hover { background: #59d645 !important; color: #000 !important; }
#mcsk-cart-count {
  position: absolute; top: -8px; right: -8px;
  background: #f5d949 !important; color: #000 !important;
  font-size: 6px; font-family: 'Press Start 2P', monospace;
  padding: 2px 5px; box-shadow: 2px 2px 0 #000; line-height: 1;
}

/* ── Header search (desktop) ────────────────── */
#mcsk-search {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  max-width: 320px;
  background: #1a1a1a;
  border: 2px solid #141414;
  box-shadow: inset -2px -2px 0 #0006, inset 2px 2px 0 #ffffff18;
}
#mcsk-search-input {
  flex: 1 1 auto;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #f0f0f0 !important;
  font-family: 'VT323', monospace !important;
  font-size: 18px !important;
  padding: 6px 10px !important;
  box-shadow: none !important;
  min-width: 0;
}
#mcsk-search-input::placeholder { color: #777 !important; }
/* hide browser clear (x) button on search inputs */
#mcsk-search-input::-webkit-search-cancel-button { display: none; }
#mcsk-search button {
  background: #373737 !important;
  border: none !important;
  border-left: 2px solid #141414 !important;
  color: #f0f0f0 !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
#mcsk-search button:hover { background: #4a4a4a !important; }

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.woocommerce-loop-product__title, .entry-title {
  font-family: 'Press Start 2P', monospace !important;
  color: #f0f0f0 !important;
  text-shadow: 2px 2px 0 #000 !important;
  line-height: 1.7 !important;
}
/* Page / post titles — clamp so they never blow up on mobile */
h1.entry-title,
h1.page-title,
.woocommerce-products-header h1.page-title {
  font-size: clamp(10px, 3vw, 20px) !important;
  line-height: 1.6 !important;
  word-break: break-word !important;
}
@media screen and (max-width: 600px) {
  h1.entry-title,
  h1.page-title,
  .woocommerce-products-header h1.page-title {
    font-size: clamp(10px, 4vw, 16px) !important;
  }
}
a { color: #3fb32f !important; text-decoration: none !important; }
a:hover { color: #59d645 !important; }

/* ── FOOTER ─────────────────────────────────── */
.site-footer {
  background: #1a1a1a !important;
  border-top: 4px solid #3fb32f !important;
  color: #aaaaaa !important;
  padding: 0 !important;
}
.site-footer .col-full {
  padding: 0 !important;
}
/* Site-info bar */
.site-info {
  font-family: 'VT323', monospace !important;
  font-size: 18px !important;
  color: #666 !important;
  text-align: center !important;
  padding: 20px 24px 16px !important;
  border-bottom: 2px solid #141414 !important;
  line-height: 1.8 !important;
}
.site-info a {
  color: #3fb32f !important;
  text-decoration: none !important;
}
.site-info a:hover { color: #59d645 !important; }
.site-footer h1,.site-footer h2,.site-footer h3 { font-size: 8px !important; }
.site-footer .widget { background: transparent !important; }

/* Handheld footer bar — full redesign */
.storefront-handheld-footer-bar {
  background: #1e1e1e !important;
  border-top: 3px solid #141414 !important;
  padding: 0 !important;
}
.storefront-handheld-footer-bar ul {
  display: flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: stretch !important;
}
.storefront-handheld-footer-bar ul li {
  flex: 1 !important;
  border-right: 2px solid #141414 !important;
}
.storefront-handheld-footer-bar ul li:last-child {
  border-right: none !important;
}
.storefront-handheld-footer-bar ul li a,
.storefront-handheld-footer-bar ul li > a {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 6px !important;
  color: #aaaaaa !important;
  text-decoration: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 8px !important;
  gap: 6px !important;
  text-align: center !important;
  line-height: 1.6 !important;
  transition: background .1s !important;
}
.storefront-handheld-footer-bar ul li a:hover {
  background: #2a2a2a !important;
  color: #f0f0f0 !important;
}
/* Cart count badge */
.storefront-handheld-footer-bar .cart .count {
  background: #3fb32f !important;
  color: #000 !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 5px !important;
  padding: 2px 5px !important;
  box-shadow: 2px 2px 0 #000 !important;
  border-radius: 0 !important;
  line-height: 1 !important;
}
/* Search popup */
.storefront-handheld-footer-bar .site-search {
  background: #2a2a2a !important;
  border-top: 2px solid #3fb32f !important;
  padding: 12px !important;
}
.storefront-handheld-footer-bar .site-search input[type=search] {
  background: #1e1e1e !important;
  border: 2px solid #141414 !important;
  color: #f0f0f0 !important;
  font-family: 'VT323', monospace !important;
  font-size: 18px !important;
  border-radius: 0 !important;
  padding: 6px 10px !important;
  width: calc(100% - 70px) !important;
  box-sizing: border-box !important;
}
.storefront-handheld-footer-bar .site-search button {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 6px !important;
  background: #3fb32f !important;
  color: #000 !important;
  border: none !important;
  padding: 8px 10px !important;
  box-shadow: inset -2px -2px 0 #0006 !important;
  cursor: pointer !important;
}

/* ── PRODUCT GRID ────────────────────────────── */
ul.products li.product, .wc-block-grid__product {
  background: #2a2a2a !important;
  border: 2px solid #141414 !important;
  box-shadow: inset -3px -5px 0 #0009, inset 3px 3px 0 #ffffff18 !important;
  transition: transform .1s !important;
  border-radius: 0 !important;
  /* Flex column so button always anchors to the bottom */
  display: flex !important;
  flex-direction: column !important;
}
/* Block grid product link: flex column so image wrapper + title stack vertically */
.wc-block-grid__product-link {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  text-decoration: none !important;
}
/* Classic WC link: block so img/title/price flow in normal document order */
ul.products li.product a.woocommerce-loop-product__link {
  display: block !important;
  flex: 1 1 auto !important;
  text-decoration: none !important;
}
/* Price sits right below title, no gap */
.wc-block-grid__product-price {
  padding: 0 10px 4px !important;
}
/* Add-to-cart wrapper anchors to bottom */
.wc-block-grid__product-add-to-cart {
  margin-top: auto !important;
  padding: 0 10px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.wc-block-grid__product-add-to-cart a {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
ul.products li.product:hover, .wc-block-grid__product:hover {
  transform: translateY(-3px) !important;
}
/* Block grid: fixed-height image wrapper div (homepage) */
.wc-block-grid__product-image {
  display: block !important;
  width: 100% !important;
  height: 160px !important;
  overflow: hidden !important;
  background: #373737 !important;
  border-bottom: 2px solid #141414 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
/* Block grid: image fills the wrapper div */
.wc-block-grid__product-image img:not(.emoji) {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #373737 !important;
  border-bottom: none !important;
  image-rendering: pixelated !important;
  display: block !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}
/* Classic WC: img is a direct child of the link — apply size + fit directly */
ul.products li.product a.woocommerce-loop-product__link > img:not(.emoji),
ul.products li.product a.woocommerce-loop-product__link .wp-post-image:not(.emoji) {
  display: block !important;
  width: 100% !important;
  height: 160px !important;
  max-height: 160px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #373737 !important;
  border-bottom: 2px solid #141414 !important;
  image-rendering: pixelated !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}
@media screen and (max-width: 600px) {
  .wc-block-grid__product-image {
    height: 120px !important;
  }
  ul.products li.product a.woocommerce-loop-product__link > img:not(.emoji),
  ul.products li.product a.woocommerce-loop-product__link .wp-post-image:not(.emoji) {
    height: 120px !important;
    max-height: 120px !important;
  }
}
@media screen and (max-width: 400px) {
  .wc-block-grid__product-image {
    height: 90px !important;
  }
  ul.products li.product a.woocommerce-loop-product__link > img:not(.emoji),
  ul.products li.product a.woocommerce-loop-product__link .wp-post-image:not(.emoji) {
    height: 90px !important;
    max-height: 90px !important;
  }
}
/* WordPress emoji images — inline, readable size regardless of parent font */
img.emoji {
  width: 16px !important;
  height: 16px !important;
  max-height: 16px !important;
  min-height: unset !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 0 3px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  image-rendering: auto !important;
  filter: drop-shadow(1px 1px 0 #000) !important;
}
/* Related / upsells: uniform height handled below */
ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 7px !important;
  line-height: 1.9 !important;
  color: #f0f0f0 !important;
  text-shadow: 2px 2px 0 #000 !important;
  padding: 6px 10px 4px !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  overflow: hidden !important;
}
/* Storefront homepage widget sections have narrower cards —
   Press Start 2P obliterates them; use compact VT323 instead */
.storefront-product-section ul.products li.product .woocommerce-loop-product__title,
.related.products li.product .woocommerce-loop-product__title,
.up-sells li.product .woocommerce-loop-product__title {
  font-family: 'VT323', monospace !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
  padding: 8px 8px 2px !important;
  text-shadow: 1px 1px 0 #000 !important;
}
/* Same for prices in narrow slider contexts */
.storefront-product-section ul.products li.product .price,
.storefront-product-section ul.products li.product .price *,
.related.products li.product .price,
.related.products li.product .price *,
.up-sells li.product .price,
.up-sells li.product .price * {
  font-family: 'VT323', monospace !important;
  font-size: 20px !important;
}

/* ── PRICE — classic + block classes ─────────── */
ul.products li.product .price,
ul.products li.product .price *,
ul.products li.product .price ins,
ul.products li.product .price ins .woocommerce-Price-amount,
ul.products li.product .price .woocommerce-Price-amount,
.wc-block-grid__product-price,
.wc-block-grid__product-price *,
.wc-block-grid__product-price .price,
.wc-block-grid__product-price .woocommerce-Price-amount,
.woocommerce div.product p.price,
.woocommerce div.product p.price *,
.woocommerce div.product span.price,
.woocommerce div.product span.price *,
.woocommerce div.product .woocommerce-Price-amount,
.entry-summary .price, .entry-summary .price * {
  font-family: 'Press Start 2P', monospace !important;
  color: #f5d949 !important;
  text-shadow: 1px 1px 0 #000 !important;
  background: transparent !important;
  font-size: 9px !important;
}
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi,
.woocommerce-Price-currencySymbol { color: #f5d949 !important; }
ul.products li.product .price del,
.wc-block-grid__product-price del,
.woocommerce div.product p.price del { color: #888 !important; text-shadow: none !important; }

/* ── BUTTONS ─────────────────────────────────── */
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .wc-block-grid__product-add-to-cart a,
.button, button, input[type=submit] {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 8px !important;
  background: #878787 !important;
  color: #f0f0f0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: inset -3px -3px 0 #0006, inset 3px 3px 0 #ffffff44 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 10px 16px !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #9a9a9a !important; color: #f0f0f0 !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce #respond input#submit, .woocommerce #payment #place_order,
.wc-block-grid__product-add-to-cart a {
  background: #3fb32f !important; color: #000 !important;
  box-shadow: inset -3px -3px 0 #0006, inset 3px 3px 0 #59d64455 !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-grid__product-add-to-cart a:hover {
  background: #59d645 !important; color: #000 !important;
}

/* ── Sale badge ──────────────────────────────── */
.woocommerce span.onsale {
  background: #ff5555 !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 6px !important; border-radius: 0 !important;
  box-shadow: 2px 2px 0 #000 !important;
  min-height: unset !important; min-width: unset !important;
  padding: 4px 6px !important; line-height: 1 !important;
}

/* ── SINGLE PRODUCT ──────────────────────────── */
.woocommerce div.product { background: transparent !important; }
.woocommerce div.product div.images {
  background: #2a2a2a !important;
  border: 2px solid #141414 !important;
  padding: 16px !important;
  max-width: 400px !important;
  box-sizing: border-box !important;
}
.woocommerce div.product div.images img {
  image-rendering: pixelated !important;
  max-height: 280px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}
/* Gallery wrapper — prevent oversized images */
.woocommerce-product-gallery {
  max-width: 400px !important;
}
.woocommerce-product-gallery__wrapper {
  overflow: hidden !important;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image {
  max-height: 280px !important;
  background: #373737 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.woocommerce div.product .product_title { font-size: 11px !important; }
.woocommerce div.product .woocommerce-product-details__short-description {
  background: #2a2a2a; border: 2px solid #141414;
  padding: 14px; font-size: 20px; color: #cccccc !important;
}
.woocommerce div.product .quantity input {
  background: #2a2a2a !important; border: 2px solid #141414 !important;
  color: #f5d949 !important; font-family: 'Press Start 2P', monospace !important;
  border-radius: 0 !important; text-align: center !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border-bottom: 4px solid #141414 !important; padding: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #2a2a2a !important; border-color: #141414 !important;
  border-radius: 0 !important; margin: 0 2px 0 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 7px !important; color: #aaaaaa !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: #373737 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #f0f0f0 !important; }
.woocommerce div.product .woocommerce-tabs .panel {
  background: #373737 !important; border: 2px solid #141414 !important;
  border-top: none !important; padding: 24px !important; margin: 0 !important;
}

/* ── CART ────────────────────────────────────── */
.woocommerce table.cart th {
  font-family: 'Press Start 2P', monospace !important; font-size: 7px !important;
  background: #1e1e1e !important; color: #aaaaaa !important;
  border: none !important; border-bottom: 2px solid #141414 !important; padding: 12px !important;
}
.woocommerce table.cart td {
  background: #2a2a2a !important; border: none !important;
  border-bottom: 2px solid #141414 !important; color: #f0f0f0 !important;
  padding: 14px !important; vertical-align: middle !important;
}
.woocommerce table.cart .product-name a {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 7px !important; color: #f0f0f0 !important;
}
.woocommerce table.cart .product-name a:hover { color: #3fb32f !important; }
.woocommerce table.cart .product-thumbnail img {
  background: #373737 !important; border: 2px solid #141414 !important;
  image-rendering: pixelated !important;
  width: 60px !important; height: 60px !important;
  object-fit: contain !important; padding: 4px !important;
}
.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
  font-family: 'Press Start 2P', monospace !important;
  color: #f5d949 !important; font-size: 9px !important;
}
.woocommerce .cart_totals {
  background: #2a2a2a !important; border: 2px solid #141414 !important; padding: 20px !important;
}
.woocommerce .cart_totals h2 { color: #3fb32f !important; font-size: 10px !important; }
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  border-bottom: 2px solid #141414 !important;
  background: transparent !important; color: #f0f0f0 !important;
}
.woocommerce .cart_totals table .order-total td {
  font-family: 'Press Start 2P', monospace !important;
  color: #f5d949 !important; font-size: 10px !important;
}

/* ── CHECKOUT ─────────────────────────────────── */
.woocommerce form .form-row label {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 7px !important; color: #aaaaaa !important;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  background: #1e1e1e !important; border: 2px solid #141414 !important;
  box-shadow: inset 3px 3px 0 #0009 !important; color: #f0f0f0 !important;
  font-family: 'VT323', monospace !important; font-size: 20px !important;
  border-radius: 0 !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus { border-color: #3fb32f !important; }
#order_review {
  background: #2a2a2a !important; border: 2px solid #141414 !important; padding: 20px !important;
}
.woocommerce-checkout #payment {
  background: #1e1e1e !important; border-radius: 0 !important; border: 2px solid #141414 !important;
}
.woocommerce-checkout #payment ul.payment_methods li label {
  font-family: 'VT323', monospace !important; font-size: 20px !important; color: #f0f0f0 !important;
}
.woocommerce-checkout #payment div.payment_box {
  background: #2a2a2a !important; color: #aaaaaa !important; border-radius: 0 !important;
}
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #2a2a2a !important; }

/* ── Notices ──────────────────────────────────── */
.woocommerce-message, .woocommerce-info {
  background: #373737 !important; border-top: 4px solid #3fb32f !important;
  color: #f0f0f0 !important; border-radius: 0 !important;
}
.woocommerce-error {
  background: #3d1a1a !important; border-top: 4px solid #ff5555 !important;
  color: #ff9999 !important; border-radius: 0 !important;
}

/* ── Breadcrumb / Widgets ────────────────────── */
.woocommerce-breadcrumb { color: #aaaaaa !important; font-size: 18px !important; }
.woocommerce-breadcrumb a { color: #3fb32f !important; }
.widget-area, .widget { background: transparent !important; }
.widget-title { font-size: 8px !important; color: #3fb32f !important; }
.widget ul li a { color: #f0f0f0 !important; }
.widget ul li a:hover { color: #3fb32f !important; }

/* ── Related / upsell sections ─────────────── */
.related h2, .up-sells h2 {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 10px !important;
  color: #3fb32f !important;
  text-shadow: 2px 2px 0 #000 !important;
  margin-bottom: 16px !important;
}
.related.products, .up-sells {
  background: transparent !important;
  padding: 24px 0 !important;
  border-top: 4px solid #141414;
}
/* Related product cards — skin only, let deli handle layout */
.deli-product-slider .product,
.related.products li.product,
.up-sells li.product {
  background: #2a2a2a !important;
  border: 2px solid #141414 !important;
  overflow: visible !important;
}
.related.products li.product a img:not(.emoji),
.up-sells li.product a img:not(.emoji) {
  width: 100% !important;
  height: 120px !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #373737 !important;
  padding: 6px !important;
  box-sizing: border-box !important;
  image-rendering: pixelated !important;
  display: block !important;
  border-bottom: 2px solid #141414 !important;
  flex-shrink: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   SHOP PAGE — blank-gap fix + CSS Grid product layout
   ══════════════════════════════════════════════════════════ */

/* Zero out top spacing on all containers between breadcrumb &
   h1 "Obchod" title. In Storefront the order is:
   breadcrumb → #content → .col-full → #primary → main
   → woocommerce-products-header → h1.page-title
   Any can add top margin/padding that creates the blank gap. */
#content.site-content,
#content.site-content .col-full,
#primary.content-area,
#main.site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
/* Kill deli's decorative zigzag line + bottom gap above footer */
.content-area .site-main::before,
.content-area .site-main:before {
  display: none !important;
  content: none !important;
}
.content-area,
.deli-content-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* Kill deli's corner triangle (white triangle top-right of content area) */
.content-area::before, .content-area:before,
.content-area::after, .content-area:after,
#primary.content-area::before, #primary.content-area:before,
#primary.content-area::after, #primary.content-area:after {
  display: none !important;
  content: none !important;
  border: none !important;
}
.woocommerce-products-header {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}
.woocommerce-products-header .page-title {
  margin: 0 !important;
  padding: 0 0 8px 0 !important;
}
/* Breadcrumb bottom margin */
nav.woocommerce-breadcrumb {
  margin-bottom: 4px !important;
  padding: 8px 0 !important;
}

/* ── CSS Grid for product list — overrides WC float layout ── */
/* Default WC: float:left, width:22.05% (4-col).
   With sidebar the container shrinks → cards collapse. */
/* Kill the clearfix pseudo-elements — in CSS Grid they become grid items
   and eat the first column cell */
.woocommerce ul.products::before,
.woocommerce-page ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::after {
  display: none !important;
  content: none !important;
}
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 16px !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 24px 0 !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
/* Images fill card width in the grid */
/* Add-to-cart button anchored at card bottom */
.woocommerce ul.products li.product a.button,
.woocommerce-page ul.products li.product a.button {
  margin-top: auto !important;
  width: calc(100% - 20px) !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
  margin-bottom: 10px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
/* Homepage / related: smaller min-width per card */
.storefront-product-section ul.products,
.related.products ul.products,
.up-sells ul.products {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}
/* Storefront homepage widget product images — same uniform height */
.storefront-product-section ul.products li.product a img:not(.emoji) {
  width: 100% !important;
  height: 120px !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #373737 !important;
  padding: 6px !important;
  box-sizing: border-box !important;
  image-rendering: pixelated !important;
  display: block !important;
  border-bottom: 2px solid #141414 !important;
  flex-shrink: 0 !important;
}

/* ── SHOP sorting bar ─────────────────────────── */
.storefront-sorting {
  background: #1e1e1e !important;
  border-color: #141414 !important;
  padding: 10px 0 !important;
  margin-bottom: 16px !important;
}
.woocommerce-result-count {
  font-family: 'VT323', monospace !important;
  font-size: 18px !important;
  color: #aaaaaa !important;
  margin: 0 !important;
}
.woocommerce-ordering select {
  background: #2a2a2a !important;
  border: 2px solid #141414 !important;
  color: #f0f0f0 !important;
  font-family: 'VT323', monospace !important;
  font-size: 18px !important;
  border-radius: 0 !important;
  padding: 4px 8px !important;
}
