
/* =========================
   ULTRA PRODUCT CARD
========================= */

.tr-card {
  list-style: none;
}

.tr-card-wrap {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}

.tr-card-wrap:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* IMAGE */

.tr-card-image {
  display: block;
  position: relative;
}

.tr-card-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .3s;
}

.tr-card-wrap:hover img {
  transform: scale(1.05);
}

/* BADGES */

.tr-badge-sale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 700;
}

.tr-badge-condition {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #00c56e;
  color: #fff;
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 600;
}

/* WISHLIST */

.tr-wishlist {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
}

/* BODY */

.tr-card-body {
  padding: 14px;
}

.tr-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0;
}
  

/* =========================
   PRODUCT GRID
========================= */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}


/* ===============================
   RESET WOOCOMMERCE DEFAULT LIST
================================= */

ul.products,
.woocommerce ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Remove bullets */
ul.products li,
.woocommerce ul.products li {
  list-style: none !important;
}

/* ===============================
   PRODUCT GRID — DESKTOP
================================= */

.tr-deals-grid,
.tr-product-grid,
.woocommerce ul.products {

  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;

}


/* ===============================
   MOBILE — PERFECT GRID
================================= */

@media (max-width: 768px) {

  .tr-deals-grid,
  .tr-product-grid,
  .woocommerce ul.products {

    grid-template-columns: repeat(2, 1fr);
    gap: 14px;

  }

  .tr-card-img img,
  .woocommerce ul.products li.product img {
    height: 180px;
  }

}

/* =====================================
   PRODUCT CARD
===================================== */

.tr-card {

  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: .25s;
  position: relative;

}

.tr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* IMAGE */

.tr-card-img img {

  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;

}

/* SALE BADGE */

.tr-sale {

  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff4d4f;
  color: #fff;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 12px;

}

/* TITLE */

.tr-title {

  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 6px;
  color: #111;

}

/* PRICE */

.tr-price {

  color: #0f9d58;
  font-weight: 700;
  margin-bottom: 8px;

}

/* BUTTON */

.tr-card .button {

  display: block;
  width: 100%;
  background: #0f9d58;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  text-align: center;

}

.tr-card .button:hover {
  background: #0c7f47;
}

/* REMOVE BULLETS FROM ANY LIST */

.tr-deals-grid,
.tr-product-grid {
  list-style: none !important;
}
.tr-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.tr-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.tr-product {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .tr-product {
    grid-template-columns: 1fr;
  }
}
.tr-buy-now {
  display: inline-block;
  margin-left: 12px;
  background: #f4a000;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.tr-buy-now:hover {
  background: #d68c00;
}
/* =========================================
   ThriftRise Product Gallery
========================================= */

/* Main gallery wrapper */

.tr-gallery {
  width: 100%;
}

/* Woo main container */

.woocommerce-product-gallery {
  width: 100%;
  position: relative;
}

/* Main image */

.woocommerce-product-gallery__wrapper img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

/* Zoom cursor */

.woocommerce-product-gallery__image {
  cursor: zoom-in;
}

/* -----------------------------------------
   Thumbnails — HORIZONTAL STRIP
----------------------------------------- */

.flex-control-thumbs {
  display: flex !important;
  gap: 14px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  overflow-x: auto;
}

/* Individual thumb */

.flex-control-thumbs li {
  width: 80px;
  flex-shrink: 0;
}

/* Thumb image */

.flex-control-thumbs img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.25s;
  border: 2px solid transparent;
}

/* Active thumb */

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
  opacity: 1;
  border-color: #0f9d58;
  transform: scale(1.05);
}

/* -----------------------------------------
   Lightbox tweaks
----------------------------------------- */

.pswp__bg {
  background: rgba(0,0,0,0.95);
}

/* -----------------------------------------
   SALE BADGE POSITION FIX
----------------------------------------- */

.woocommerce span.onsale {
  top: 14px;
  left: 14px;
  right: auto;
  background: #ff3b30;
  border-radius: 999px;
  padding: 6px 10px;
}

/* -----------------------------------------
   MOBILE
----------------------------------------- */

@media (max-width: 768px) {

  .woocommerce-product-gallery__wrapper img {
    border-radius: 14px;
  }

  .flex-control-thumbs li {
    width: 60px;
  }

}
/* =========================================
   ThriftRise Product Tabs
========================================= */

.tr-tabs {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Tabs wrapper */

.woocommerce div.product .woocommerce-tabs {
  margin-top: 40px;
}

/* TAB NAVIGATION */

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 2px solid #eee;
  padding: 0;
  margin: 0 0 24px 0;
  list-style: none;
}

/* Remove Woo default shapes */

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

/* Tab links */

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: 0.25s;
}

/* Active tab */

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #111;
  border-bottom-color: #0f9d58;
}

/* Hover */

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  color: #111;
}

/* TAB CONTENT */

.woocommerce div.product .woocommerce-tabs .panel {
  padding: 20px 0;
  line-height: 1.7;
  color: #444;
}

/* Headings inside tabs */

.woocommerce div.product .woocommerce-tabs h2 {
  font-size: 22px;
  margin-bottom: 16px;
}

/* Reviews form spacing */

#reviews {
  max-width: 800px;
}

/* -----------------------------------------
   MOBILE
----------------------------------------- */

@media (max-width: 768px) {

  .woocommerce div.product .woocommerce-tabs ul.tabs {
    gap: 18px;
    overflow-x: auto;
  }

}
.woocommerce div.product .woocommerce-tabs .panel {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}
.tr-cart-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.tr-cart-count {
  background: #ff3b30;
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}
/* ===============================
   CATEGORY PAGE — FIX GRID
================================ */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: .25s;
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* IMAGE */

.woocommerce ul.products li.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
}

/* TITLE */

.woocommerce ul.products li.product h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 6px;
  color: #111;
}

/* PRICE */

.woocommerce ul.products li.product .price {
  color: #0f9d58;
  font-weight: 700;
  margin-bottom: 10px;
}

/* BUTTON */

.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  background: #0f9d58;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  text-align: center;
}

.woocommerce ul.products li.product .button:hover {
  background: #0c7f47;
}

/* SALE BADGE */

.woocommerce span.onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff4d4f;
  color: #fff;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 12px;
}

/* MOBILE */

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .woocommerce ul.products li.product img {
    height: 180px;
  }
}
/* ===============================
   SHOP PAGE — PERFECT GRID
================================ */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  padding: 0;
  margin: 30px 0;
  list-style: none;
}

/* CARD */

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: .25s;
  position: relative;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* IMAGE */

.woocommerce ul.products li.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
}

/* TITLE */

.woocommerce ul.products li.product h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 6px;
  color: #111;
}

/* PRICE */

.woocommerce ul.products li.product .price {
  color: #0f9d58;
  font-weight: 700;
  margin-bottom: 10px;
}

/* BUTTON */

.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  background: #0f9d58;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  text-align: center;
}

/* SALE BADGE */

.woocommerce span.onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff4d4f;
  color: #fff;
  padding: 5px 10px;
  border-radius: 50px;
  font-size: 12px;
}

/* MOBILE */

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .woocommerce ul.products li.product img {
    height: 180px;
  }
}
/* ===============================
   FORCE WOOCOMMERCE PRODUCT GRID
================================= */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 22px !important;
  padding: 0;
  margin: 30px auto;
  list-style: none;
}

/* Remove default widths */

.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Make cards look normal */

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: .25s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Product image */

.woocommerce ul.products li.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* Mobile */

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .woocommerce ul.products li.product img {
    height: 180px;
  }
}
/* ===============================
   RELATED PRODUCTS GRID FIX
================================= */

.related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 22px !important;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

/* Remove old float layout */

.related ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Card style */

.related ul.products li.product {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: .25s;
}

.related ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Image */

.related ul.products li.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

/* Fix button width */

.related ul.products li.product .button {
  display: block;
  width: 100%;
  text-align: center;
}

/* MOBILE */

@media (max-width: 768px) {
  .related ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .related ul.products li.product img {
    height: 180px;
  }
}
/* =====================================
   RELATED PRODUCTS — PERFECT CARDS
===================================== */

/* GRID */

.related ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding: 0;
  margin: 20px 0;
  list-style: none;
}

/* REMOVE OLD FLOATS */

.related ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}

/* CARD */

.related ul.products li.product {

  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: .25s;

  display: flex;
  flex-direction: column;
}

/* HOVER */

.related ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* IMAGE FIX */

.related ul.products li.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* TITLE */

.related ul.products li.product .woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0;
  min-height: 38px;
}

/* PRICE */

.related ul.products li.product .price {
  font-weight: 700;
  margin-bottom: 10px;
}

/* BUTTON FIX — NO MORE TALL GREEN BLOCK */

.related ul.products li.product .button {

  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 8px;

  background: #0f9d58;
  color: #fff !important;
  text-align: center;
  font-weight: 600;

  margin-top: auto; /* push to bottom */
}

/* SALE BADGE */

.related ul.products li.product .onsale {
  top: 10px;
  left: 10px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

/* MOBILE */

@media (max-width: 768px) {

  .related ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .related ul.products li.product img {
    height: 180px;
  }
}
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
}
.woocommerce-page .site-main {
  max-width: 1400px;
  margin: auto;
  padding: 30px 20px;
}
/* ===============================
   FIX WOOCOMMERCE PRODUCT GRID
================================= */

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* PRODUCT CARD RESET */

.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: .25s;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* IMAGE */

.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 240px !important;
  object-fit: cover !important;
  border-radius: 12px;
}

/* TITLE */

.woocommerce ul.products li.product h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 6px;
}

/* PRICE */

.woocommerce ul.products li.product .price {
  color: #0f9d58;
  font-weight: 700;
}

/* BUTTON */

.woocommerce ul.products li.product .button {
  display: block;
  width: 100%;
  background: #0f9d58;
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 0;
  font-weight: 600;
  text-align: center;
}

/* ===============================
   MOBILE GRID
================================= */

@media (max-width: 768px) {

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .woocommerce ul.products li.product img {
    height: 180px !important;
  }

}
/* SHOP LAYOUT */

.tr-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}
/* ===== FILTER PANEL ===== */

.tr-filters h3{
  font-size:20px;
  margin-bottom:14px;
}

.tr-filters h4{
  margin:18px 0 10px;
  font-size:16px;
  font-weight:600;
}

.tr-filters label{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
  font-size:14px;
  cursor:pointer;
}

.tr-filters input[type="text"],
.tr-filters input[type="number"]{
  width:100%;
  padding:8px 10px;
  border:1px solid #ddd;
  border-radius:8px;
  margin-bottom:10px;
}

/* Checkbox style */

.tr-filters input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:#16a34a;
}
.tr-price-slider input[type=range]{
  width:100%;
  margin:6px 0;
  accent-color:#16a34a;
}

.tr-price-values{
  text-align:center;
  font-weight:600;
  margin-top:8px;
}
/* ================================
   SHOP LAYOUT — CLEAN FIX
================================ */

.tr-shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Sidebar */
.tr-shop-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 120px;
}

/* Products area */
.tr-shop-products {
  min-width: 0;
}

/* WooCommerce grid */
.tr-shop-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* Remove weird widths */
.tr-shop-products ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
}