/* 
 * Product Cards Styling for Othala Solutions Website
 * Advanced product card styling with modern aesthetics
 */

/* Product Card Styling */
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

/* Product Tag */
.product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(45, 58, 242, 0.9);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Product Card Image */
.product-card .card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.product-card .card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Image Overlay */
.product-card .card-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2));
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .card-img::after {
  opacity: 1;
}

/* Product Logo */
.product-logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.product-logo img {
  max-height: 100%;
  object-fit: contain;
}

/* Features Tags */
.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background-color: rgba(1, 179, 167, 0.1);
  color: var(--color-secondary);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background-color: rgba(1, 179, 167, 0.2);
  transform: translateY(-2px);
}

/* Product Card Body */
.product-card .card-body {
  padding: 1.75rem;
}

.product-card .card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.75rem;
  position: relative;
}

.product-card .card-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-full);
  opacity: 0;
  transform: scaleX(0.7);
  transform-origin: left;
  transition: all 0.3s ease;
}

.product-card:hover .card-title::after {
  opacity: 1;
  transform: scaleX(1);
}

.product-card .card-text {
  color: var(--color-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Product Card Footer */
.product-card .card-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Product Card Button */
.product-card .btn {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card .btn-icon i {
  transition: transform 0.3s ease;
}

.product-card .btn:hover i {
  transform: translateX(4px);
}

/* Product Grid Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Product Card Variants */
.product-card-featured {
  border-top: 4px solid var(--color-primary);
}

.product-card-new::before {
  content: 'NEW';
  position: absolute;
  top: -8px;
  left: 24px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 4px 12px;
  border-radius: var(--radius);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .product-card .card-img {
    height: 180px;
  }
  
  .product-card .card-body {
    padding: 1.25rem;
  }
  
  .product-card .card-footer {
    padding: 1rem 1.25rem;
  }
  
  .product-card .btn {
    width: 100%;
  }
}
