/* ==========================================================================
   Haru Ceramic Collections - Category Grid (Inspired by demo-harucraft)
   ========================================================================== */

/* Section Header (Optional) */
.oja-section-header {
  margin: 40px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e1d9;
}

.oja-sec-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  color: #222222;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

.oja-sec-sub {
  font-size: 15px;
  color: #5c5755;
  margin-top: 6px;
  margin-bottom: 0;
  font-style: italic;
}

.oja-more-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #222222;
  text-decoration: none;
  border-bottom: 1px solid #222222;
  padding-bottom: 3px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.oja-more-link:hover {
  opacity: 0.7;
}

/* Category Grid Container */
.oja-lines-4grid {
  display: grid;
  grid-template-columns: repeat(var(--oja-cols-pc, 4), 1fr);
  gap: var(--oja-gap, 32px);
  width: 100%;
  margin-bottom: 24px;
  box-sizing: border-box;
}

/* Category Card Item */
.oja-line-item {
  cursor: pointer;
  display: block;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease;
}

.oja-line-item:hover {
  color: inherit;
}

/* Image Wrapper */
.oja-line-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f5f2;
  margin-bottom: 16px;
  position: relative;
}

.oja-line-img.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

.oja-line-img.ratio-4-5 {
  aspect-ratio: 4 / 5;
}

.oja-line-img.ratio-3-4 {
  aspect-ratio: 3 / 4;
}

.oja-line-img.ratio-auto {
  aspect-ratio: auto;
}

.oja-line-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.oja-line-item:hover .oja-line-img img {
  transform: scale(1.04);
}

/* Category Title */
.oja-line-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  border-bottom: 1px solid #d2cbc0;
  margin: 0 0 10px 0;
  text-transform: capitalize;
  line-height: 1.25;
  transition: border-color 0.2s ease, color 0.2s ease;
  font-weight: 600;
  color: #1A1A1A;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.oja-line-item:hover .oja-line-name {
  color: #000000;
  border-bottom-color: #3e3b3a;
}

/* Category Subtitle (Keywords: Artistic · Sculptural · Imperfect) */
.oja-line-keywords {
  font-size: 14px;
  font-weight: 400;
  color: #5c5755;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  line-height: 1.55;
  font-family: 'Noto Sans', sans-serif;
}

/* Category Description (Optional) */
.oja-line-desc {
  font-size: 13px;
  color: #8a8380;
  line-height: 1.65;
  margin-top: 6px;
}

/* Bottom "See more" Button */
.oja-bottom-btn-wrap {
  text-align: center;
  margin-top: 32px;
}

.oja-btn-solid {
  display: inline-block;
  padding: 12px 36px;
  background: #3e3b3a;
  color: #ffffff !important;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #3e3b3a;
}

.oja-btn-solid:hover {
  background: #ffffff;
  color: #3e3b3a !important;
}

/* ==========================================================================
   Responsive Breakpoints:
   PC (Desktop): 4 columns
   Tablet: 2 columns
   Mobile: 1 column
   ========================================================================== */
@media (max-width: 849px) {
  .oja-lines-4grid {
    grid-template-columns: repeat(var(--oja-cols-tablet, 2), 1fr) !important;
    gap: 18px !important;
  }

  .oja-sec-title {
    font-size: 28px;
  }
}

@media (max-width: 549px) {
  .oja-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .oja-sec-title {
    font-size: 24px;
  }

  /* Force 1 Column on Mobile */
  .oja-lines-4grid {
    grid-template-columns: repeat(var(--oja-cols-mobile, 1), 1fr) !important;
    gap: 24px !important;
  }
}