/* Products Page Specific Styles */

.products-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f4f6fb 100%);
}

.filter-card {
  border: 1px solid #e7eaf3;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.filter-card-header {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 14px 16px;
}

.filter-card-header h5 {
  font-size: 1rem;
  font-weight: 700;
}

.filter-card-body {
  padding: 14px 16px 16px;
}

.category-filter-item {
  margin-bottom: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-item {
  min-width: 0;
  height: 100%;
  display: flex;
}

.product-item.is-hidden {
  display: none !important;
}

.product-card {
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  background: #ffffff;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 110, 253, 0.25);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.product-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-content {
  padding: 14px 14px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 10px;
}

.product-name {
  margin: 0;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

.product-content .btn {
  margin-top: auto;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px 10px;
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

@media (max-width: 1199.98px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}


/* Category grid styles to mimic the screenshot tiles */
.category-simple-card {
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .65rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.category-simple-card .category-simple-img {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}

.category-simple-card .category-simple-img img {
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}

.category-simple-card h6 {
  font-size: .95rem;
  margin: 0;
  color: #222;
}

.category-simple-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
  transition: all .18s ease;
}

/* Keep grid compact on small screens */
@media (max-width: 576px) {
  .category-simple-card .category-simple-img {
    height: 56px;
  }

  .category-simple-card .category-simple-img img {
    max-height: 48px;
  }
}

/* Featured product price styles */
.product-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

/* Featured Products Price Styling */
.featured-products-price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  justify-content: center;
  min-height: 24px;
}

.featured-products-price__original {
  display: inline-block;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: #dc3545;
  text-decoration-thickness: 1.5px;
  opacity: 0.75;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.featured-products-price__discount {
  display: inline-block;
  color: #dc3545;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.featured-products-price__regular {
  display: inline-block;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.product-item:hover .featured-products-price__original {
  opacity: 1;
  transform: scale(1.02);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  font-size: 0.82rem;
  /* reduced base size */
}

.product-price .original-price {
  color: #6c757d;
  font-size: 0.72rem;
  /* smaller muted price */
}

.product-price .original-price s {
  color: inherit;
}

.product-price .discount-price {
  font-weight: 700;
  color: #d9534f;
  font-size: 0.86rem;
  /* slightly larger than base */
}

.product-price .price {
  font-weight: 700;
  font-size: 0.86rem;
  /* slightly larger than base */
  color: #222;
}

@media (max-width: 576px) {
  .product-price {
    font-size: 0.78rem;
    gap: 6px;
  }

  .product-price .discount-price,
  .product-price .price {
    font-size: 0.82rem;
  }

  .product-price .original-price {
    font-size: 0.68rem;
  }
}

/* Small adjustments for product card image */
.product-card .product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pagination styles (Laravel default .pagination) */
.pagination {
  display: inline-flex;
  gap: 8px;
  padding-left: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}

.pagination .page-item {
  display: inline-block;
}

.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e4e9f2;
  color: #10213f;
  background: #fff;
  text-decoration: none;
}

.pagination .page-link:hover {
  background: #f8fafc;
}

.pagination .page-item.active .page-link {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.12);
}

.pagination .page-item.disabled .page-link,
.pagination .page-item.disabled .page-link:hover {
  color: #adb5bd;
  background: #fff;
  border-color: #e9ecef;
  pointer-events: none;
}

/* Small screens: slightly smaller buttons */
@media (max-width: 576px) {
  .pagination .page-link {
    padding: 5px 8px;
    font-size: 0.88rem;
  }
}

/* Ensure pagination sits above carousels/nav buttons */
.pagination-wrapper {
  position: relative;
  z-index: 1000;
}

/* Lower global owl nav z-index so it doesn't overlap centered pagination */
.owl-nav {
  z-index: 1;
}

.owl-nav button i {
  font-size: 16px;
}