/****************************************
    GLOBAL RESET
*****************************************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --max-width: 1400px;
  --page-pad: 40px;

  /* Colors */
  --champagne: #f9f2e4;
  --text-dark: #3e3a30;
  --text-muted: #7d7d7d;

  /* Shadows */
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.12);
}

body {
  background: #fff;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/****************************************
    SHOP BY CATEGORY (Homepage)
*****************************************/
.shop-category {
  padding: 90px 0;
  background: var(--champagne);
  text-align: center;
}

.cat-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.cat-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 50px;
}

.cat-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px; /* smaller gap = luxury look */
  max-width: 1200px; /* keeps it tight & centered */
  margin: 0 auto; /* center grid */
  padding: 20px 0;
}

/* Mobile – 1 per row */
@media (max-width: 700px) {
  .cat-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
  }
}
@media (max-width: 517px) {
  .cat-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/****************************************
    CATEGORY CARD
*****************************************/
.cat-card {
  width: 240px;
  background: white;
  padding: 40px 28px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: 0.3s ease;
  cursor: pointer;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(212, 160, 23, 0.22);
  border-color: #d4a017;
}

.cat-card:hover .cat-name,
.cat-card:hover .cat-count {
  background: linear-gradient(135deg, #d4a017, #edc669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-card:hover .cat-icon {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(212, 160, 23, 0.35);
}

/****************************************
    GOLD CIRCLE ICON
*****************************************/
.cat-icon {
  width: 90px;
  height: 90px;

  background: linear-gradient(135deg, #d4a84f, #f1d08a);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 36px;
  font-weight: 700;
  color: white;

  margin: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/****************************************
    CATEGORY NAME & COUNT
*****************************************/
.cat-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 22px;
}

.cat-count {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 6px;
}

/****************************************
    PRODUCT GRID (Category Page)
*****************************************/
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: 0.3s ease;
  cursor: pointer;
}

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

.product-image-wrapper {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  margin-top: 12px;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.price {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-dark);
}

/****************************************
    RESPONSIVE GRID
*****************************************/
@media (max-width: 1063px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-card {
    width: 200px;
  }
}

@media (max-width: 905px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .cat-subtitle {
    margin-bottom: 5px;
  }

  .cat-card {
    width: 150px;
    padding: 22px 22px;
  }

  .cat-title {
    font-size: 32px;
  }
}
