/**
 * Poptides — Shop Page Styles
 * Overrides Fitrush's default WooCommerce shop layout
 */

/* ── VARIABLES ──────────────────────────────────────────── */
.poptides-shop-page {
  --coral:      #e8714a;
  --coral-pale: #fdf0eb;
  --navy-deep:  #0d1117;
  --navy-dark:  #161b27;
  --text-dark:  #1a1a2e;
  --text-muted: #5a6080;
  --bg-off:     #faf9f7;
  --radius:     20px;
  --radius-sm:  12px;
  font-family: 'Inter', sans-serif;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.ph-navbar {
  position: fixed !important;
  top: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 48px !important;
  height: 68px !important;
  background: rgba(13,17,23,0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.admin-bar .ph-navbar { top: 32px !important; }
body.admin-bar .ph-mobile-nav { top: 100px !important; }
@media screen and (max-width: 782px) {
  body.admin-bar .ph-navbar { top: 46px !important; }
  body.admin-bar .ph-mobile-nav { top: 114px !important; }
}
.ph-logo {
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  color: #fff !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1 !important;
}
.ph-logo span { color: #e8714a !important; }
.ph-nav-menu {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ph-nav-menu li {
  display: inline-block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.ph-nav-menu li a {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.75) !important;
  padding: 6px 14px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
  background: transparent !important;
  border: none !important;
}
.ph-nav-menu li a:hover,
.ph-nav-menu li a.current {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
.ph-nav-cta {
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #fff !important;
  background: #e8714a !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap !important;
  border: none !important;
}
.ph-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); color: #fff !important; }
.ph-hamburger {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.ph-hamburger span {
  display: block !important;
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
}
.ph-mobile-nav {
  display: none !important;
  position: fixed !important;
  top: 68px !important; left: 0 !important; right: 0 !important;
  background: rgba(13,17,23,0.98) !important;
  backdrop-filter: blur(12px);
  z-index: 9998 !important;
  padding: 24px 32px 32px !important;
  flex-direction: column !important;
  gap: 4px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.ph-mobile-nav.open { display: flex !important; }
.ph-mobile-nav a {
  display: block !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  border-left: none !important; border-right: none !important; border-top: none !important;
  text-decoration: none !important;
  background: transparent !important;
}
.ph-mobile-nav a:last-child { border-bottom: none !important; }

/* Push page content below fixed navbar */
body.poptides-shop-page { padding-top: 68px !important; overflow-x: hidden; }
@media screen and (max-width: 782px) {
  body.admin-bar.poptides-shop-page { padding-top: 114px !important; }
  .ph-navbar { padding: 0 20px !important; }
  .ph-nav-menu { display: none !important; }
  .ph-hamburger { display: flex !important; }
}

/* ── HIDE FITRUSH BREADCRUMB / ENTRY-TITLE BANNER ───────── */
/* Covers shop, category, AND single product pages */
body.poptides-shop-page .wrap-bread-crumb,
body.poptides-shop-page .bread-crumb-page-builder,
body.poptides-shop-page .woo-breadcrumb,
body.poptides-shop-page .woocommerce-breadcrumb,
body.poptides-shop-page h1.entry-title,
body.poptides-shop-page .woocommerce-products-header { display: none !important; }

/* ── SINGLE PRODUCT PAGE ────────────────────────────────── */
/* Only minimal overrides — let Fitrush handle the 2-col layout naturally */
body.poptides-shop-page.single-product .product_title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  color: #1a1a2e !important;
}
body.poptides-shop-page.single-product .price,
body.poptides-shop-page.single-product .product-price {
  font-family: 'Inter', sans-serif !important;
  font-weight: 800 !important;
  color: #e8714a !important;
}
body.poptides-shop-page.single-product .single_add_to_cart_button,
body.poptides-shop-page.single-product button[name="add-to-cart"] {
  background: #0d1117 !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  border: none !important;
  transition: background 0.18s !important;
}
body.poptides-shop-page.single-product .single_add_to_cart_button:hover,
body.poptides-shop-page.single-product button[name="add-to-cart"]:hover {
  background: #e8714a !important;
}

/* ── COLLAPSE FITRUSH WRAPPER SPACING (shop/category only) ─ */
body.poptides-shop-page:not(.single-product) #main-content.content-page {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Hide Fitrush's top filter bar — we use custom filter pills */
body.poptides-shop-page:not(.single-product) .top_filter-shop { display: none !important; }

/* ── PRODUCT GRID (Fitrush uses .products.bzotech-row, not ul.products) ─ */
body.poptides-shop-page:not(.single-product) .products.bzotech-row.list-product-wrap {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  padding: 40px 24px 80px !important;
  max-width: 1240px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
}
@media (max-width: 1100px) {
  body.poptides-shop-page:not(.single-product) .products.bzotech-row.list-product-wrap {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 768px) {
  body.poptides-shop-page:not(.single-product) .products.bzotech-row.list-product-wrap {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 24px 16px 60px !important;
  }
}
@media (max-width: 480px) {
  body.poptides-shop-page:not(.single-product) .products.bzotech-row.list-product-wrap {
    grid-template-columns: 1fr !important;
  }
}
/* Each product card cell */
body.poptides-shop-page:not(.single-product) .list-col-item {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Card wrapper */
body.poptides-shop-page:not(.single-product) .list-col-item .item-product {
  background: #fff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
body.poptides-shop-page:not(.single-product) .list-col-item .item-product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 36px rgba(0,0,0,0.12) !important;
}
/* Product image */
body.poptides-shop-page:not(.single-product) .list-col-item .product-thumb img,
body.poptides-shop-page:not(.single-product) .list-col-item .item-product img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}
/* Product info text area */
body.poptides-shop-page:not(.single-product) .list-col-item.item-product .item-product-info,
body.poptides-shop-page:not(.single-product) .list-col-item.item-product .item-bottom {
  padding: 14px 16px !important;
  font-family: 'Inter', sans-serif !important;
}
/* Product title */
body.poptides-shop-page:not(.single-product) .list-col-item.product-title,
body.poptides-shop-page:not(.single-product) .list-col-item.woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  line-height: 1.3 !important;
  margin-bottom: 6px !important;
  font-family: 'Inter', sans-serif !important;
}
/* Price */
body.poptides-shop-page:not(.single-product) .list-col-item.product-price,
body.poptides-shop-page:not(.single-product) .list-col-item.price {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #e8714a !important;
  font-family: 'Inter', sans-serif !important;
}
/* Category label */
body.poptides-shop-page:not(.single-product) .list-col-item.product-cats,
body.poptides-shop-page:not(.single-product) .list-col-item.posted_in {
  font-size: 10px !important;
  color: #5a6080 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  font-family: 'Inter', sans-serif !important;
}
/* Add to cart button */
body.poptides-shop-page:not(.single-product) .list-col-item.button,
body.poptides-shop-page:not(.single-product) .list-col-item.add_to_cart_button,
body.poptides-shop-page:not(.single-product) .list-col-item.item-button a {
  display: block !important;
  width: 100% !important;
  background: #0d1117 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  border: none !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.18s !important;
  font-family: 'Inter', sans-serif !important;
  margin: 8px 16px 16px !important;
  width: calc(100% - 32px) !important;
  cursor: pointer !important;
}
body.poptides-shop-page:not(.single-product) .list-col-item.button:hover,
body.poptides-shop-page:not(.single-product) .list-col-item.add_to_cart_button:hover,
body.poptides-shop-page:not(.single-product) .list-col-item.item-button a:hover {
  background: #e8714a !important;
  color: #fff !important;
}
/* Also handle the outer products-wrap container */
body.poptides-shop-page:not(.single-product) .products-wrap.js-content-wrap {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.ph-footer {
  background: #0a0d14;
  color: rgba(255,255,255,0.5);
  padding: 60px 24px 40px;
  font-family: 'Inter', sans-serif;
}
.ph-footer-inner { max-width: 1100px; margin: 0 auto; }
.ph-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ph-footer-brand .ph-logo {
  font-size: 20px;
  margin-bottom: 16px;
  display: block;
}
.ph-footer-brand p {
  font-size: 13px;
  line-height: 1.65;
  max-width: 280px;
}
.ph-footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}
.ph-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0; padding: 0;
}
.ph-footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.ph-footer-col ul a:hover { color: rgba(255,255,255,0.8) !important; }
.ph-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.ph-footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
  max-width: 700px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .ph-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ph-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .ph-footer-top { grid-template-columns: 1fr; }
}

/* ── SHOP HERO BANNER ───────────────────────────────────── */
.ps-shop-header {
  background: linear-gradient(135deg, #0d1117 0%, #1e2640 100%);
  padding: 72px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ps-shop-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23e8714a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.ps-shop-header::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(232,113,74,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ps-shop-header-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}
.ps-shop-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #e8714a;
  margin-bottom: 14px;
}
.ps-shop-header h1 {
  font-size: clamp(32px, 5vw, 52px) !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -1.5px !important;
  line-height: 1.08 !important;
  margin-bottom: 14px !important;
}
.ps-shop-header h1 span { color: #e8714a; }
.ps-shop-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── TRUST STRIP ────────────────────────────────────────── */
.ps-trust-strip {
  background: #e8714a;
  padding: 13px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ps-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ps-trust-item .ps-trust-icon { font-size: 14px; }

/* ── CATEGORY FILTER PILLS ──────────────────────────────── */
.ps-filter-bar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 20px 24px;
  position: sticky;
  top: 68px;
  z-index: 100;
}
body.admin-bar .ps-filter-bar { top: 100px; }
@media screen and (max-width: 782px) {
  body.admin-bar .ps-filter-bar { top: 114px; }
}
.ps-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ps-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a6080;
  margin-right: 8px;
  white-space: nowrap;
}
.ps-filter-pill {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #5a6080;
  background: #f4f3f0;
  border: 1.5px solid transparent;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.ps-filter-pill:hover {
  background: #fdf0eb;
  color: #e8714a;
  border-color: rgba(232,113,74,0.3);
}
.ps-filter-pill.active {
  background: #e8714a;
  color: #fff !important;
  border-color: #e8714a;
}

/* ── SHOP LAYOUT WRAPPER ────────────────────────────────── */
.woocommerce-page .site-main,
.woocommerce .site-main {
  padding-top: 0 !important;
}

/* ── HIDE DEFAULT PAGE TITLE / BREADCRUMB ───────────────── */
.woocommerce-products-header,
.woocommerce-breadcrumb,
.ps-hidden { display: none !important; }

/* ── SHOP CONTENT AREA ──────────────────────────────────── */
.woocommerce-page .woocommerce,
.woocommerce-page #content .woocommerce {
  padding: 40px 24px 80px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── PRODUCT GRID ───────────────────────────────────────── */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
@media (max-width: 1100px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

/* ── PRODUCT CARD ───────────────────────────────────────── */
.woocommerce ul.products li.product {
  background: #fff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,0.07) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 36px rgba(0,0,0,0.12) !important;
}

/* Product image container */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* Product info area */
.woocommerce ul.products li.product .ps-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* Hide default WC category text (shown in small above title) */
.woocommerce ul.products li.product .ps-card-cats {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e8714a;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1a1a2e !important;
  line-height: 1.25 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Price */
.woocommerce ul.products li.product .price {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #e8714a !important;
  margin: 0 0 12px !important;
  font-family: 'Inter', sans-serif !important;
}
.woocommerce ul.products li.product .price del {
  font-size: 12px !important;
  color: #bbb !important;
  font-weight: 400 !important;
}
.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
}

/* Add to cart / Shop Now button */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce ul.products li.product .product_type_variable {
  display: block !important;
  width: 100% !important;
  background: #0d1117 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  padding: 11px 16px !important;
  border-radius: 12px !important;
  border: none !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.18s !important;
  font-family: 'Inter', sans-serif !important;
  margin: 0 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  outline: none !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce ul.products li.product .product_type_variable:hover {
  background: #e8714a !important;
  color: #fff !important;
}

/* Hide star ratings on archive */
.woocommerce ul.products li.product .star-rating { display: none !important; }

/* ── SORT / RESULT COUNT BAR ────────────────────────────── */
.woocommerce-products-header + .woocommerce-result-count,
.woocommerce-result-count,
.woocommerce-ordering {
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #5a6080 !important;
  margin-bottom: 24px !important;
}
.woocommerce-ordering select {
  border-radius: 8px !important;
  border: 1.5px solid rgba(0,0,0,0.12) !important;
  padding: 6px 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}

/* ── PAGINATION ─────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination ul {
  border: none !important;
  display: flex !important;
  gap: 6px !important;
  justify-content: center !important;
  margin-top: 48px !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1.5px solid rgba(0,0,0,0.1) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  color: #1a1a2e !important;
  background: #fff !important;
  transition: background 0.18s, color 0.18s !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: #fdf0eb !important;
  color: #e8714a !important;
  border-color: rgba(232,113,74,0.3) !important;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #e8714a !important;
  color: #fff !important;
  border-color: #e8714a !important;
}

/* ── RESPONSIVE FILTER BAR ──────────────────────────────── */
@media (max-width: 768px) {
  .ps-filter-bar { top: 68px; overflow-x: auto; }
  .ps-filter-inner { flex-wrap: nowrap; }
  .ps-shop-header { padding: 56px 20px 36px; }
  .woocommerce-page .woocommerce { padding: 24px 16px 60px; }
  .ps-trust-strip { gap: 16px; padding: 12px 16px; }
}
