/* Shop By Categories Section */
.shop-categories-section {
  padding: 60px 0;
  background-color: #fff;
}

.shop-categories-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.sc-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.sc-header-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sc-title-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sc-title-wrap h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.sc-highlight {
  color: #0d3b2e; /* dark green for 'Categories' */
}

.sc-divider {
  width: 40px;
  height: 2px;
  background-color: #dfc282;
}

.sc-header-left p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #666;
  margin: 0;
}

.sc-view-all {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.sc-view-all:hover {
  color: #dfc282;
}

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

/* Category Card */
.shop-cat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-cat-card__main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shop-cat-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 16px;
  background: #fff;
}

.shop-cat-subcategory {
  padding: 5px 9px;
  border: 1px solid #e5e5e5;
  color: #555;
  font: 600 11px/1.2 'Inter', sans-serif;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.shop-cat-subcategory:hover {
  color: #111;
  border-color: #111;
}

.shop-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.shop-cat-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f8f8f8;
}

.shop-cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Make image cover the area like the screenshot */
  transition: transform 0.5s ease;
}

.shop-cat-card:hover .shop-cat-img {
  transform: scale(1.05);
}

.shop-cat-content {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-top: 1px solid #eee; /* subtle divider */
}

.shop-cat-text {
  display: flex;
  flex-direction: column;
}

.shop-cat-title {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0 0 4px 0;
}

.shop-cat-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #888;
  margin: 0;
}

.shop-cat-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.3s ease, color 0.3s ease;
}

.shop-cat-card:hover .shop-cat-arrow {
  background: #111;
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .shop-categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .shop-categories-grid {
    grid-template-columns: 1fr;
  }
}
