:root {
  --primary-blue: #4A90E2;
  --text-dark: #2C3E50;
  --text-gray: #6B7280;
  --background-light: #F8FAFC;
  --border-light: #E5E7EB;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@scope(.productsection){

/* CSS Variables */


/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

  .product-card{
    flex: 250px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0 0 0 / 30%) 100%);
    overflow: hidden;
    position: relative;
    height: 400px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .product-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);
    color: white;
}

  .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

  .learn-more-btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}


  .product-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;}

  .product-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.4;
}

  .learn-more-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    /* border-radius: 6px; */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  
  }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

/* Main Section */
.product-categories-section {
  padding: 60px 0px;
  /* min-height: 100vh; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  /* font-family: sans-serif; */
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--text-dark);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Category Card */
.category-card {
  background: white;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #f3f4f6;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
}

.card-title {
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 20px;
}



.learn-more-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .container {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .product-categories-section {
    padding: 60px 16px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .card-image {
    height: 200px;
  }

  .product-card{
    height: 300px;
  }

  .product-categories-section{
    padding: 60px 0px;
  }

  
  .learn-more-btn {
    width: 100%;
    padding: 14px 24px;
  }
}
}
