/*
Theme Name: GeneratePress MAHANCRIS
Template: generatepress
Description: MAHANCRIS child theme for the Shopify -> WooCommerce migration.
Version: 1.0.0
*/

:root {
  --mc-ink: #111111;
  --mc-soft: #f6f3ef;
  --mc-accent: #77535f;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--mc-ink);
}

h1, h2, h3, h4 {
  font-family: 'Besley', Georgia, 'Times New Roman', serif;
  font-weight: 600;
}

.mc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 48px;
}

.mc-hero img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.mc-hero__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8%;
  background: linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,0));
  color: #fff;
}

.mc-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  max-width: 620px;
  margin: 0 0 16px;
}

.mc-hero p {
  max-width: 520px;
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.mc-btn,
.mc-btn:visited {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.mc-btn:hover {
  background: #333;
  color: #fff;
}

.mc-section-title {
  text-align: center;
  margin: 56px 0 24px;
}

.mc-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mc-cats--5 {
  grid-template-columns: repeat(5, 1fr);
}

.mc-cat {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 5;
}

.mc-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.mc-cat:hover img {
  transform: scale(1.04);
}

.mc-cat span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.68));
  font-weight: 600;
  font-size: 1rem;
}

.mc-blog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mc-blog a {
  text-decoration: none;
  color: var(--mc-ink);
}

.mc-blog img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.mc-blog h3 {
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

.mc-trust {
  display: flex;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
  margin: 56px 0 24px;
  padding: 28px 16px;
  background: var(--mc-soft);
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

/* Inquiry-only catalog */
.single-product .price,
.products .price,
.woocommerce-loop-product__link .price {
  display: none !important;
}

.mc-inquiry {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e6e6e6;
}

.mc-inquiry h2 {
  margin-bottom: 8px;
}

.mc-inquiry-lead {
  color: #555;
  margin-bottom: 20px;
}

.mc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.mc-form-grid p {
  margin: 0;
}

.mc-form-grid label {
  font-weight: 600;
  font-size: .92rem;
}

.mc-form-grid input,
.mc-form-grid select,
.mc-form-grid textarea {
  width: 100%;
  margin-top: 6px;
}

.mc-form-full {
  grid-column: 1 / -1;
}

.mc-inquire {
  margin-top: 8px;
}

.mc-inquiry-cta {
  text-align: center;
  padding: 56px 24px;
  background: var(--mc-soft);
  border-radius: 8px;
  margin-top: 56px;
}

.mc-inquiry-cta h2 {
  margin-top: 0;
}

.mc-404 {
  text-align: center;
  padding: 80px 24px;
}

.mc-404__code {
  font-family: 'Besley', Georgia, serif;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1;
  color: #e6e6e6;
  margin: 0;
}

.mc-404 h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 8px 0 12px;
}

.mc-404 .mc-btn {
  margin: 8px;
}

.mc-404 .search-form {
  max-width: 420px;
  margin: 28px auto 0;
}

.mc-product-extra h2 {
  margin-top: 32px;
}

.mc-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.mc-specs th,
.mc-specs td {
  border: 1px solid #e6e6e6;
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.mc-specs th {
  width: 35%;
  background: #faf8f5;
  font-weight: 600;
}

@media (max-width: 900px) {
  .mc-cats,
  .mc-cats--5,
  .mc-blog {
    grid-template-columns: repeat(2, 1fr);
  }
  .mc-hero img {
    height: 420px;
  }
}

@media (max-width: 600px) {
  .mc-cats,
  .mc-cats--5,
  .mc-blog,
  .mc-form-grid {
    grid-template-columns: 1fr;
  }
  .mc-hero img {
    height: 360px;
  }
}
