/* Custom overrides */
.mob-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:180; }
.woocommerce-result-count { color: var(--tx2) !important; }
.woocommerce-ordering select { background: var(--card) !important; color: var(--tx) !important; border: 1px solid var(--card-b) !important; border-radius: 8px; padding: 8px; }
.woocommerce-breadcrumb { color: var(--tx2) !important; font-size: 12px; margin-bottom: 16px !important; }
.woocommerce-breadcrumb a { color: var(--red) !important; text-decoration: none; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { background: var(--card) !important; color: var(--tx) !important; border-color: var(--card-b) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--red) !important; color: white !important; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  background: var(--card) !important; color: var(--tx) !important; border: 1px solid var(--card-b) !important; border-radius: 8px !important;
}
input:focus, textarea:focus, select:focus { border-color: var(--red) !important; outline: none; }

/* GLOBAL SEARCH */
.search-wrap{position:relative;display:flex;align-items:center;margin-left:auto;margin-right:8px;}
.header-search{display:flex;align-items:center;background:#1a0e0e;border:1.5px solid #2e1a1a;border-radius:8px;overflow:hidden;transition:all .3s;}
.header-search-input{background:transparent;border:none;color:#eee;font-family:'Manrope',sans-serif;font-size:12px;padding:7px 12px;width:200px;outline:none;}
.header-search-input::placeholder{color:#666;}
.header-search-input:focus{width:280px;}
.header-search-btn{background:var(--red);border:none;color:white;padding:7px 12px;cursor:pointer;font-size:13px;}
.header-search-btn:hover{background:#FF4B4B;}
.search-toggle{display:none;background:none;border:none;color:#888;font-size:18px;cursor:pointer;padding:6px;}
.live-results{position:absolute;top:100%;left:0;right:0;background:#160909;border:1px solid #2e1a1a;border-radius:0 0 10px 10px;max-height:400px;overflow-y:auto;display:none;z-index:100;box-shadow:0 8px 24px rgba(0,0,0,.5);}
.live-results.show{display:block;}
.lr-item{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer;transition:background .15s;text-decoration:none;color:#eee;border-bottom:1px solid #1a1414;}
.lr-item:hover{background:rgba(227,30,36,.08);}
.lr-img{width:40px;height:40px;border-radius:6px;background:#221010;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;overflow:hidden;}
.lr-img img{width:100%;height:100%;object-fit:contain;}
.lr-name{font-size:12px;font-weight:700;color:#eee;}
.lr-price{font-family:'Bebas Neue',sans-serif;font-size:14px;color:var(--red);}
.lr-cat{font-size:10px;color:#666;}
.lr-none{padding:20px;text-align:center;color:#666;font-size:13px;}

@media(max-width:900px){
  .search-wrap{display:none;position:absolute;top:56px;left:0;right:0;padding:8px 16px;background:rgba(13,13,13,.97);border-bottom:1px solid #2e1a1a;z-index:100;}
  .search-wrap.show{display:flex;}
  .header-search{width:100%;}
  .header-search-input{width:100%!important;flex:1;}
  .search-toggle{display:block!important;}
  .live-results{left:-16px;right:-16px;}
}

/* FORCE DARK THEME EVERYWHERE */
body, html {
  background: linear-gradient(160deg,#0d0d0d 0%,#1a0a0a 50%,#0d0d0d 100%) !important;
  background-attachment: fixed !important;
  color: #e8e8e8 !important;
}

/* WooCommerce pages */
.woocommerce, .woocommerce-page,
.woocommerce .content-area,
.woocommerce-checkout, .woocommerce-cart,
.woocommerce-account, .woocommerce-shop {
  background: transparent !important;
  color: #e8e8e8 !important;
}

/* All text */
h1, h2, h3, h4, h5, h6,
.page-title, .entry-title,
.woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  color: #f0f0f0 !important;
}
p, span, div, li, td, th, label, a {
  color: inherit;
}

/* Links */
a { color: #E31E24; }
a:hover { color: #FF4B4B; }
.product-title a, .woocommerce-loop-product__title a { color: #f0f0f0 !important; }
.product-title a:hover { color: #FF4B4B !important; }

/* WooCommerce product list */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: #1a0e0e !important;
  border: 1px solid #2e1a1a !important;
  border-top: 3px solid #E31E24 !important;
  border-radius: 12px !important;
  color: #e8e8e8 !important;
}
.woocommerce ul.products li.product a img {
  background: #221010 !important;
  border-radius: 8px 8px 0 0 !important;
}
.woocommerce ul.products li.product .price {
  color: #fff !important;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 20px !important;
}
.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
  color: #666 !important;
  font-size: 14px !important;
}
.woocommerce ul.products li.product .button {
  background: #E31E24 !important;
  color: white !important;
  border: none !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
}

/* Single product page */
.woocommerce div.product,
.woocommerce #content div.product {
  color: #e8e8e8 !important;
}
.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .description p {
  color: #999 !important;
}
.woocommerce .woocommerce-tabs .tabs li a { color: #888 !important; }
.woocommerce .woocommerce-tabs .tabs li.active a { color: #eee !important; border-bottom-color: #E31E24 !important; }
.woocommerce .woocommerce-tabs .panel { color: #ccc !important; background: transparent !important; }

/* Cart page */
.woocommerce table.shop_table {
  background: #1a0e0e !important;
  border: 1px solid #2e1a1a !important;
  border-radius: 12px !important;
  color: #e8e8e8 !important;
}
.woocommerce table.shop_table th {
  background: #221010 !important;
  color: #aaa !important;
  border-bottom: 1px solid #2e1a1a !important;
}
.woocommerce table.shop_table td {
  border-top: 1px solid #2e1a1a !important;
  color: #e8e8e8 !important;
}
.woocommerce .cart_totals table td,
.woocommerce .cart_totals table th {
  color: #e8e8e8 !important;
  border-color: #2e1a1a !important;
}

/* Checkout */
.woocommerce form .form-row label { color: #aaa !important; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection {
  background: #1a0e0e !important;
  color: #eee !important;
  border: 1px solid #2e1a1a !important;
  border-radius: 8px !important;
}
.select2-container .select2-dropdown {
  background: #1a0e0e !important;
  border-color: #2e1a1a !important;
}
.select2-results__option { color: #eee !important; }
.select2-results__option--highlighted { background: rgba(227,30,36,.15) !important; }

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  color: #666 !important;
}
.woocommerce .woocommerce-breadcrumb a {
  color: #E31E24 !important;
}

/* Notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: #1a0e0e !important;
  color: #e8e8e8 !important;
}
.woocommerce-message { border-top-color: #E31E24 !important; }
.woocommerce-info { border-top-color: #1A6FD4 !important; }
.woocommerce-error { border-top-color: #ff4444 !important; }

/* Pagination */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.page-numbers a, .page-numbers span {
  background: #1a0e0e !important;
  color: #e8e8e8 !important;
  border-color: #2e1a1a !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.page-numbers .current {
  background: #E31E24 !important;
  color: white !important;
}

/* Star rating */
.woocommerce .star-rating span::before { color: #F59E0B !important; }

/* Category/archive headers */
.woocommerce .woocommerce-products-header__title,
.woocommerce .term-description p {
  color: #e8e8e8 !important;
}

/* Sorting dropdown */
.woocommerce .woocommerce-ordering select {
  background: #1a0e0e !important;
  color: #e8e8e8 !important;
  border: 1px solid #2e1a1a !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
}

/* Result count */
.woocommerce .woocommerce-result-count {
  color: #666 !important;
}

/* No sidebar white areas */
.content-area, .site-content, .site-main, main, #content,
.widget, .widget-area, aside {
  background: transparent !important;
  color: #e8e8e8 !important;
}

/* Widget titles */
.widget-title, .widgettitle {
  color: #f0f0f0 !important;
}

/* Remove any white backgrounds */
.entry-content, .page-content, .post-content {
  background: transparent !important;
  color: #e8e8e8 !important;
}

/* WordPress admin bar fix */
#wpadminbar { z-index: 99999 !important; }

/* Quantity buttons */
.woocommerce .quantity .qty {
  background: #1a0e0e !important;
  color: #eee !important;
  border: 1px solid #2e1a1a !important;
}

/* Mobile-specific dark overrides */
@media (max-width: 900px) {
  body, .site-header, nav, .nav-inner,
  .woocommerce ul.products, .woocommerce-page,
  .section, .page-hero, main, #content {
    background-color: transparent !important;
    color: #e8e8e8 !important;
  }
  
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* SINGLE PRODUCT PAGE */
.woocommerce div.product {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px;
}

.woocommerce div.product div.images {
  width: 50% !important;
  float: left !important;
  background: #1a0e0e;
  border: 1px solid #2e1a1a;
  border-radius: 16px;
  padding: 16px;
  overflow: hidden;
}

.woocommerce div.product div.images img {
  border-radius: 12px !important;
  background: #221010 !important;
  max-height: 500px !important;
  width: 100% !important;
  object-fit: contain !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image {
  background: #1a0e0e !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Gallery thumbnails */
.woocommerce div.product div.images .flex-control-thumbs {
  display: flex !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce div.product div.images .flex-control-thumbs li {
  width: 70px !important;
  height: 70px !important;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #2e1a1a;
  cursor: pointer;
  transition: border-color .2s;
}

.woocommerce div.product div.images .flex-control-thumbs li:hover,
.woocommerce div.product div.images .flex-control-thumbs li .flex-active {
  border-color: var(--red) !important;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px;
}

/* Product summary (right side) */
.woocommerce div.product div.summary {
  width: 46% !important;
  float: right !important;
  padding-left: 32px;
}

.woocommerce div.product .product_title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 36px !important;
  color: #f0f0f0 !important;
  letter-spacing: 1px;
  margin-bottom: 12px !important;
}

.woocommerce div.product .price {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 32px !important;
  color: var(--red) !important;
  margin-bottom: 20px !important;
}

.woocommerce div.product .price .woocommerce-Price-currencySymbol {
  font-size: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  color: #aaa !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  margin-bottom: 20px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid #2e1a1a;
}

.woocommerce div.product form.cart {
  margin-bottom: 24px !important;
}

.woocommerce div.product form.cart .quantity .qty {
  background: #1a0e0e !important;
  color: #eee !important;
  border: 1px solid #2e1a1a !important;
  border-radius: 8px !important;
  width: 60px !important;
  height: 44px !important;
  text-align: center;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--red) !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  font-family: 'Manrope', sans-serif !important;
  height: 44px !important;
  transition: all .2s;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: #FF4B4B !important;
  transform: translateY(-2px);
}

/* Product meta (SKU, categories) */
.woocommerce div.product .product_meta {
  color: #666 !important;
  font-size: 12px !important;
  padding-top: 16px;
  border-top: 1px solid #2e1a1a;
}

.woocommerce div.product .product_meta a {
  color: var(--red) !important;
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs {
  clear: both !important;
  padding-top: 32px !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 4px !important;
  border-bottom: 1px solid #2e1a1a !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  list-style: none !important;
  background: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: #666 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 12px 20px !important;
  display: block;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #eee !important;
  border-bottom-color: var(--red) !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  color: #bbb !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

/* Related products */
.woocommerce div.product .related.products h2 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 28px !important;
  color: #f0f0f0 !important;
  margin-bottom: 16px !important;
}

/* Mobile product page */
@media (max-width: 768px) {
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary {
    width: 100% !important;
    float: none !important;
    padding-left: 0 !important;
  }
  
  .woocommerce div.product div.summary {
    margin-top: 24px;
  }
  
  .woocommerce div.product .product_title {
    font-size: 28px !important;
  }
  
  .woocommerce div.product div.images .flex-control-thumbs li {
    width: 56px !important;
    height: 56px !important;
  }
}

/* FIX: Product gallery - force horizontal thumbnails */
.woocommerce div.product div.images ol,
.woocommerce div.product div.images ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 0 !important;
}

.woocommerce div.product div.images ol li,
.woocommerce div.product div.images ul li {
  width: 70px !important;
  height: 70px !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 2px solid #2e1a1a !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce div.product div.images ol li::marker,
.woocommerce div.product div.images ul li::marker {
  display: none !important;
  content: '' !important;
  font-size: 0 !important;
}

.woocommerce div.product div.images ol li img,
.woocommerce div.product div.images ul li img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
}

.woocommerce div.product div.images ol li:hover,
.woocommerce div.product div.images ul li:hover {
  border-color: var(--red) !important;
}

/* Main product image */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  max-height: 500px !important;
  overflow: hidden;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img {
  max-height: 480px !important;
  width: 100% !important;
  object-fit: contain !important;
  background: #1a0e0e !important;
  border-radius: 12px !important;
}

/* Hide all gallery images except first in main view */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) {
  display: none !important;
}

/* FlexSlider overrides */
.woocommerce div.product div.images .flex-viewport {
  max-height: 500px !important;
  background: #1a0e0e !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.woocommerce div.product div.images .flex-viewport img {
  max-height: 480px !important;
  object-fit: contain !important;
}

/* Product page layout fix */
.woocommerce div.product div.images,
.woocommerce #content div.product div.images {
  width: 48% !important;
  float: left !important;
}

.woocommerce div.product div.summary,
.woocommerce #content div.product div.summary {
  width: 48% !important;
  float: right !important;
}

@media (max-width: 768px) {
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce #content div.product div.images,
  .woocommerce #content div.product div.summary {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce div.product div.images ol li,
  .woocommerce div.product div.images ul li {
    width: 56px !important;
    height: 56px !important;
  }
}

/* PAGINATION - styled */
.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
  text-align: center !important;
  margin: 32px 0 !important;
  padding: 24px 0 !important;
  border-top: 1px solid #2e1a1a !important;
}

.woocommerce nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul li {
  display: flex !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce nav.woocommerce-pagination ul li::marker {
  display: none !important;
  content: '' !important;
  font-size: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  background: #1a0e0e !important;
  border: 1.5px solid #2e1a1a !important;
  border-radius: 10px !important;
  color: #ccc !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all .2s !important;
  cursor: pointer;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: rgba(227,30,36,.15) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: white !important;
  font-weight: 800 !important;
}

/* Prev/Next arrows */
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
  font-size: 18px !important;
  padding: 0 12px !important;
}

/* Also style WordPress default pagination */
.nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin: 32px 0 !important;
}

.nav-links a, .nav-links span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  background: #1a0e0e !important;
  border: 1.5px solid #2e1a1a !important;
  border-radius: 10px !important;
  color: #ccc !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all .2s !important;
}

.nav-links a:hover {
  background: rgba(227,30,36,.15) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}

.nav-links span.current {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: white !important;
}
