/* ============================================
   PRODUCTS CSS - SesYalitimci.com
   Product Grid Cards (Aksa Store Style)
   ============================================ */

/* Product Grid - 5 columns like Aksa */
.store-fullwidth {
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

.office-cabins-fullwidth {
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

.isolation-fullwidth {
  width: 100%;
  max-width: none;
  padding: 0 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.best-products-title {
  justify-content: center;
  text-align: center;
  background: linear-gradient(to top right, #014b64, #01124d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.best-products-title::after {
  display: none;
}

.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Product Card - Aksa Style */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--gray-300);
}

/* Product Image */
.product-card .product-img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  /* 1:1 aspect ratio */
  overflow: hidden;
  background: var(--gray-100);
}

.product-card .product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.08);
}

/* Quick View Button */
.product-card .quick-view {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background: rgba(15, 41, 107, 0.9);
  color: var(--white);
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
}

.product-card:hover .quick-view {
  bottom: 0;
}

/* Discount Badge */
.product-card .discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e74c3c;
  color: var(--white);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

/* Product Info */
.product-card .product-info {
  padding: 15px;
  text-align: center;
}

.product-card .product-category {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-card .product-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-name a {
  color: var(--primary);
  transition: var(--transition);
}

.product-card .product-name a:hover {
  color: var(--primary-light);
}

.product-card .product-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 72px;
}

/* Pricing */
.product-card .product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

.product-card .product-price .old-price {
  text-decoration: line-through;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 400;
  margin-right: 5px;
}

.product-card .product-price .unit {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gray-600);
}

/* Responsive */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .product-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-grid-4,
  .product-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card .product-info {
    padding: 10px;
  }

  .product-card .product-name {
    font-size: 0.78rem;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .store-fullwidth {
    padding: 0 10px;
  }

  .office-cabins-fullwidth {
    padding: 0 10px;
  }

  .isolation-fullwidth {
    padding: 0 10px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}