/**
 * FSP Shop / Product Archive Page Styles
 * Clean grid layout without sidebars or filtering
 *
 * @package Free_Style_Products
 */

/* ============================================================
   SHOP PAGE WRAPPER
   ============================================================ */

.fsp-shop-page {
  background: linear-gradient(
    135deg,
    var(--hw-dark, #0f0f0f) 0%,
    var(--hw-dark-secondary, #1a1a1a) 50%,
    var(--hw-dark-tertiary, #2d2d2d) 100%
  );
  min-height: 100vh;
  position: relative;
  padding-top: 80px;
}

.fsp-shop-page .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   SHOP TITLE
   ============================================================ */

.fsp-shop-title {
  color: var(--hw-white, #ffffff);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   HIDE RESULT COUNT, ORDERING, SIDEBAR, BREADCRUMBS
   ============================================================ */

.fsp-shop-page .woocommerce-result-count,
.fsp-shop-page .woocommerce-ordering,
.fsp-shop-page .woocommerce-breadcrumb,
.woocommerce-page:not(.single-product) #secondary,
.woocommerce-page:not(.single-product) aside.widget-area,
.woocommerce-page:not(.single-product) .sidebar {
  display: none !important;
}

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

.fsp-shop-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.fsp-shop-page ul.products li.product {
  background-color: rgba(30, 30, 50, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--hw-radius-lg, 16px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

.fsp-shop-page ul.products li.product:hover {
  border-color: rgba(44, 198, 77, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Product Images */
.fsp-shop-page ul.products li.product a img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: var(--hw-radius, 8px);
  margin-bottom: 12px;
}

/* Product Title */
.fsp-shop-page ul.products li.product .woocommerce-loop-product__title {
  color: var(--hw-white, #ffffff);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 8px 0;
}

/* Product Links */
.fsp-shop-page ul.products li.product a {
  color: var(--hw-white, #ffffff);
  text-decoration: none;
}

/* Product Price — pushed to bottom of card, always aligned across cards */
.fsp-shop-page ul.products li.product .price {
  color: var(--hw-primary, #2cc64d);
  font-size: 1rem;
  font-weight: 700;
  margin-top: auto;
  padding-top: 12px;
  margin-bottom: 0;
  display: block;
}

.fsp-shop-page ul.products li.product .price .woocommerce-Price-amount {
  color: var(--hw-primary, #2cc64d);
}

/* Hide "Select Options" / add-to-cart button on product cards */
.fsp-shop-page ul.products li.product a.button,
.fsp-shop-page ul.products li.product .button {
  display: none !important;
}

/* Login-gated price on product cards */
.fsp-shop-page ul.products li.product .fsp-login-to-price {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.fsp-shop-page ul.products li.product .fsp-login-to-price a {
  color: var(--hw-primary, #2cc64d);
  text-decoration: none;
  border-bottom: 1px dashed var(--hw-primary, #2cc64d);
}

.fsp-shop-page ul.products li.product .fsp-login-to-price a:hover {
  color: var(--hw-primary-light, #4ed96a);
  border-color: var(--hw-primary-light, #4ed96a);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media screen and (max-width: 767px) {
  .fsp-shop-page ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .fsp-shop-page ul.products li.product {
    padding: 14px;
  }

  .fsp-shop-page ul.products li.product a img {
    height: 140px;
  }

  .fsp-shop-page ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 400px) {
  .fsp-shop-page ul.products {
    grid-template-columns: 1fr;
  }
}
