/* ============================================
   TEESKULL premium catalog
   ============================================ */

body.teeskull-theme.woocommerce-shop #woocommerce-wrapper,
body.teeskull-theme.tax-product_cat #woocommerce-wrapper,
body.teeskull-theme.tax-product_tag #woocommerce-wrapper {
  padding: 0 0 84px;
}

.teeskull-shop-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 58px 0 30px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(24, 169, 216, .3), transparent 34%),
    radial-gradient(circle at 86% 80%, rgba(238, 105, 35, .18), transparent 32%),
    linear-gradient(125deg, #111 0%, #171d23 58%, #111 100%);
}

.teeskull-shop-hero__glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.teeskull-shop-hero__glow--one { width: 340px; height: 340px; left: -180px; bottom: -220px; background: rgba(24, 169, 216, .26); }
.teeskull-shop-hero__glow--two { width: 260px; height: 260px; right: -100px; top: -130px; background: rgba(255, 255, 255, .08); }

.teeskull-shop-hero__content { position: relative; }
.teeskull-shop-breadcrumb { display: flex; gap: 8px; margin-bottom: 22px; font-size: .8rem; color: rgba(255,255,255,.55); }
.teeskull-shop-breadcrumb a { color: #8be0fb; font-weight: 700; }
.teeskull-shop-hero__copy { max-width: 700px; }
.teeskull-shop-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #8be0fb; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.teeskull-shop-hero h1 { max-width: 740px; margin: 0; color: #fff; font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 900; letter-spacing: -.055em; line-height: 1.02; }
.teeskull-shop-hero p { max-width: 560px; margin: 16px 0 22px; color: rgba(255,255,255,.68); font-size: 1rem; line-height: 1.7; }
.teeskull-shop-hero__cta { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px; border-radius: 999px; color: #111; background: #fff; font-size: .88rem; font-weight: 800; transition: transform .25s ease, box-shadow .25s ease; }
.teeskull-shop-hero__cta:hover { color: #111; transform: translateY(-2px); box-shadow: 0 9px 28px rgba(0,0,0,.28); }

.teeskull-category-pills { display: flex; gap: 9px; overflow-x: auto; margin-top: 34px; padding: 2px 0 3px; scrollbar-width: none; }
.teeskull-category-pills::-webkit-scrollbar { display: none; }
.teeskull-category-pill { flex: 0 0 auto; padding: 9px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.04); font-size: .8rem; font-weight: 700; transition: all .22s ease; }
.teeskull-category-pill:hover, .teeskull-category-pill.is-active { border-color: #18a9d8; color: #fff; background: #18a9d8; }

.teeskull-shop-catalog { padding: 32px 0 0; background: var(--bg); }
.teeskull-shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 62px; margin-bottom: 22px; padding: 10px 12px 10px 16px; border: 1px solid var(--border-light); border-radius: 16px; background: var(--card-bg); box-shadow: var(--shadow-sm); }
.teeskull-shop-toolbar__left, .teeskull-shop-toolbar__right { display: flex; align-items: center; gap: 12px; }
.teeskull-shop-count .woocommerce-result-count { float: none; margin: 0; color: var(--text-secondary); font-size: .84rem; }
.teeskull-filter-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border: 0; border-radius: 10px; color: var(--text); background: var(--gray-lighter); font-size: .82rem; font-weight: 800; }
.teeskull-filter-toggle i { color: var(--blue); }
.teeskull-shop-search { display: flex; align-items: center; gap: 8px; min-width: 180px; padding: 0 11px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--card-bg); }
.teeskull-shop-search i { color: var(--text-muted); font-size: .8rem; }
.teeskull-shop-search input { width: 100%; padding: 10px 0; border: 0; color: var(--text); background: transparent; font-size: .82rem; }
.teeskull-shop-ordering .woocommerce-ordering { float: none; margin: 0; }
.teeskull-shop-ordering select { min-width: 142px; padding: 9px 30px 9px 10px; border: 1px solid var(--border-light); border-radius: 10px; color: var(--text); background-color: var(--card-bg); font-size: .8rem; font-weight: 700; }

.teeskull-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 20px; color: var(--text-muted); font-size: .78rem; }
.teeskull-active-filters > a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; color: var(--blue); background: var(--blue-light); font-weight: 700; }
.teeskull-active-filters .teeskull-active-filters__clear { color: var(--danger); background: transparent; }

.teeskull-shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.teeskull-filter-overlay { display: none; }
.teeskull-shop-filters { position: sticky; top: calc(var(--nav-height) + 16px); padding: 18px; border: 1px solid var(--border-light); border-radius: 16px; background: var(--card-bg); box-shadow: var(--shadow-sm); }
.teeskull-shop-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border-light); }
.teeskull-shop-filters__head h2 { margin: 0; font-size: 1rem; font-weight: 900; }
.teeskull-filter-close { display: none; border: 0; color: var(--text); background: transparent; }
.teeskull-filter-group { padding: 17px 0; border-bottom: 1px solid var(--border-light); }
.teeskull-filter-group h3 { margin: 0 0 12px; color: var(--text); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.teeskull-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.teeskull-price-fields label { color: var(--text-muted); font-size: .7rem; font-weight: 700; }
.teeskull-price-fields input { width: 100%; margin-top: 5px; padding: 8px; border: 1px solid var(--border-light); border-radius: 8px; color: var(--text); background: var(--card-bg); }
.teeskull-filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.teeskull-filter-options label, .teeskull-stock-check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: .8rem; cursor: pointer; }
.teeskull-filter-options input, .teeskull-stock-check input { accent-color: var(--blue); }
.teeskull-filter-submit { width: 100%; padding: 11px; border: 0; border-radius: 10px; color: #fff; background: var(--blue); font-size: .84rem; font-weight: 800; }
.teeskull-filter-reset { display: block; margin-top: 10px; color: var(--text-muted); font-size: .78rem; text-align: center; text-decoration: underline; }
.teeskull-shop-widget-filters { margin-top: 12px; }

.teeskull-shop-products ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.teeskull-shop-products ul.products::before, .teeskull-shop-products ul.products::after { display: none; }
.teeskull-shop-products ul.products > li.product { width: auto !important; min-width: 0; margin: 0 !important; float: none !important; clear: none !important; }
.teeskull-shop-products .product-card { display: flex; height: 100%; min-height: 100%; flex-direction: column; border-radius: 16px; background: var(--card-bg); }
.teeskull-shop-products .product-card .product-image { height: auto; aspect-ratio: .88; }
.teeskull-shop-products .product-card .product-image img { object-fit: cover; }
.teeskull-shop-products .product-card .product-info { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.teeskull-shop-products .product-card .product-name { min-height: 2.6em; font-size: .92rem; line-height: 1.35; }
.teeskull-shop-products .product-card .product-rating { margin: 4px 0 9px; }
.teeskull-shop-products .product-card .product-price { min-height: 28px; margin-top: auto; margin-bottom: 12px; }
.teeskull-shop-products .product-card .card-buttons { margin-top: auto; }
.teeskull-shop-products .product-card .card-btn { min-height: 40px; border-radius: 10px; font-size: .76rem; }
.teeskull-shop-products .product-badge.best-seller { color: #111; background: #f9af16; }
.teeskull-shop-products .product-badge.trending { color: #fff; background: #111; }
.teeskull-shop-products .product-badge.sale { color: #fff; background: var(--orange); }
.teeskull-shop-products .product-price del { color: var(--text-muted); font-size: .78rem; }
.teeskull-shop-products .product-price ins { color: var(--blue); font-size: 1rem; font-weight: 900; text-decoration: none; }
.teeskull-shop-products .product-actions { z-index: 5; }
.teeskull-shop-products .compare-btn.is-compared { color: #fff; background: var(--black); }
.teeskull-shop-products .product-actions .product-action-btn { width: 36px; height: 36px; }

.teeskull-shop-empty { padding: 80px 20px; border: 1px dashed var(--border); border-radius: 16px; color: var(--text-secondary); background: var(--card-bg); text-align: center; }
.teeskull-shop-empty i { margin-bottom: 12px; color: var(--blue); font-size: 2rem; }
.teeskull-shop-empty h2 { margin: 0 0 8px; color: var(--text); font-size: 1.3rem; font-weight: 900; }
.teeskull-shop-empty p { margin-bottom: 22px; }
.teeskull-shop-products .woocommerce-pagination { margin: 34px 0 0; text-align: center; }
.teeskull-shop-products .woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0; }
.teeskull-shop-products .woocommerce-pagination ul li { border: 0; }
.teeskull-shop-products .woocommerce-pagination ul li a, .teeskull-shop-products .woocommerce-pagination ul li span { min-width: 38px; border-radius: 9px; color: var(--text); background: var(--card-bg); }
.teeskull-shop-products .woocommerce-pagination ul li span.current { color: #fff; background: var(--blue); }

@media (max-width: 1199px) {
  .teeskull-shop-products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .teeskull-shop-hero { padding-top: 44px; }
  .teeskull-shop-layout { display: block; }
  .teeskull-shop-filters { position: fixed; z-index: 1060; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); overflow-y: auto; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .28s ease; }
  .teeskull-shop-filters.is-open { transform: translateX(0); }
  .teeskull-filter-close { display: block; }
  .teeskull-filter-overlay { display: block; position: fixed; z-index: 1050; inset: 0; visibility: hidden; opacity: 0; background: rgba(0,0,0,.48); transition: opacity .25s ease, visibility .25s ease; }
  .teeskull-filter-overlay.is-open { visibility: visible; opacity: 1; }
}

@media (max-width: 767px) {
  .teeskull-shop-hero { padding: 36px 0 22px; }
  .teeskull-shop-hero h1 { font-size: 2.2rem; }
  .teeskull-shop-toolbar { align-items: stretch; flex-direction: column; }
  .teeskull-shop-toolbar__left, .teeskull-shop-toolbar__right { width: 100%; justify-content: space-between; }
  .teeskull-shop-search { flex: 1; }
  .teeskull-shop-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .teeskull-shop-products .product-card .product-info { padding: 12px; }
  .teeskull-shop-products .product-card .product-image { aspect-ratio: .78; }
  .teeskull-shop-products .product-card .product-name { font-size: .84rem; }
  .teeskull-shop-products .product-actions { right: 8px; top: 8px; gap: 6px; transform: none; opacity: 1; }
  .teeskull-shop-products .product-actions .product-action-btn { width: 30px; height: 30px; font-size: .7rem; }
  .teeskull-shop-products .quick-actions { display: none; }
}

@media (max-width: 420px) {
  .teeskull-shop-toolbar__right { gap: 8px; }
  .teeskull-shop-search { min-width: 0; }
  .teeskull-shop-ordering select { min-width: 106px; max-width: 118px; }
}

[data-theme="dark"] .teeskull-shop-catalog { background: var(--bg); }
[data-theme="dark"] .teeskull-shop-toolbar,
[data-theme="dark"] .teeskull-shop-filters,
[data-theme="dark"] .teeskull-shop-empty { border-color: #2a2a2a; background: #1e1e1e; }
[data-theme="dark"] .teeskull-shop-search,
[data-theme="dark"] .teeskull-shop-ordering select,
[data-theme="dark"] .teeskull-price-fields input { border-color: #333; color: #e8e8e8; background: #242424; }
