/* ============================================================
   Molla Home Variant
   ============================================================ */

:root {
  --molla-dark: #222222;
  --molla-gray: #777777;
  --molla-light-gray: #f5f5f5;
  --molla-border: #ebebeb;
  --molla-new: #26c061;
  --molla-sale: #e02b27;
  --molla-font: 'Poppins', 'Open Sans', sans-serif;
}

body { font-family: var(--molla-font); color: var(--molla-dark); overflow-x: hidden; }
/* Remove gap between molla newsletter and footer */
.footer-newsletter-wrapper { margin-top: 0 !important; }

/* ── Section Shared ── */
.molla-section { padding: 60px 0; }

.molla-section-title {
  text-align: center;
  font-size: 24px; font-weight: 700; color: var(--molla-dark);
  letter-spacing: .5px; margin-bottom: 4px;
  position: relative; padding-bottom: 20px;
}
.molla-section-title::after {
  content: ''; display: block;
  width: 40px; height: 2px;
  background: var(--molla-dark);
  margin: 14px auto 0;
}
.molla-section-sub {
  text-align: center; color: var(--molla-gray);
  font-size: 13px; margin-bottom: 36px;
}

/* ════════════════════════════════════════════
   1. HERO
════════════════════════════════════════════ */
.molla-hero {
  background: #f5f5f5;
  padding: 24px 0 0;
}
.molla-hero-inner {
  display: flex;
  gap: 12px;
  min-height: 520px;
}

/* Left slider – 65% */
.molla-hero-slider {
  flex: 0 0 65%;
  position: relative;
  overflow: hidden;
}
.molla-hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  display: flex; align-items: center; padding: 56px 72px;
  opacity: 0; transition: opacity .65s ease;
}
.molla-hero-slide.active { opacity: 1; z-index: 1; }
.molla-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,.05) 65%, transparent 100%);
}
.molla-hero-caption {
  position: relative; z-index: 2; color: #fff; max-width: 420px;
}
.molla-hero-caption .pre-title {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  opacity: .85; margin-bottom: 12px; font-weight: 600;
}
.molla-hero-caption h2 {
  font-size: clamp(30px, 3.5vw, 48px); font-weight: 700; line-height: 1.15;
  margin-bottom: 24px;
}
.molla-hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 2px solid rgba(255,255,255,.85);
  color: #fff; padding: 12px 28px; font-size: 12px;
  font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; transition: background .25s, color .25s, border-color .25s;
}
.molla-hero-btn:hover {
  background: #fff; color: var(--molla-dark); border-color: #fff;
}

/* Slider controls */
.molla-hero-controls {
  position: absolute; bottom: 24px; left: 72px; z-index: 3;
  display: flex; align-items: center; gap: 8px;
}
.molla-hero-dot {
  width: 8px; height: 8px; min-width: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: background .2s, transform .2s; border: none;
  padding: 0; flex-shrink: 0; display: block;
}
.molla-hero-dot.active { background: #fff; transform: scale(1.3); }
.molla-hero-arrow {
  position: absolute; top: 50%; z-index: 3;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s; font-size: 14px;
  backdrop-filter: blur(2px);
}
.molla-hero-arrow:hover { background: rgba(255,255,255,.25); }
.molla-hero-arrow.prev { left: 20px; }
.molla-hero-arrow.next { right: 20px; }

/* Right banners – 35% */
.molla-hero-banners {
  flex: 0 0 35%;
  display: flex; flex-direction: column; gap: 12px;
}
.molla-hero-banner {
  flex: 1; position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  display: block; text-decoration: none;
}
.molla-hero-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 30%, rgba(0,0,0,.5) 100%);
  transition: background .3s;
}
.molla-hero-banner:hover .molla-hero-banner-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 30%, rgba(0,0,0,.6) 100%);
}
.molla-hero-banner-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 24px; color: #fff;
}
.molla-hero-banner-caption h4 {
  font-size: 17px; font-weight: 700; margin-bottom: 4px; color: #fff;
}
.molla-hero-banner-caption p { font-size: 12px; opacity: .85; margin: 0 0 10px; }
.molla-hero-banner-caption span,
.molla-hero-banner-caption a {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 2px;
}

/* ════════════════════════════════════════════
   2. BRANDS
════════════════════════════════════════════ */
.molla-brands {
  padding: 28px 0;
  border-bottom: 1px solid var(--molla-border);
  background: #fff;
}
.molla-brands-inner {
  display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 24px;
}
.molla-brand-item {
  opacity: .4; transition: opacity .2s;
  font-size: 17px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--molla-dark); font-style: italic;
  white-space: nowrap;
}
.molla-brand-item:hover { opacity: .7; }

/* ════════════════════════════════════════════
   3. TABS
════════════════════════════════════════════ */
.molla-tabs {
  display: flex; justify-content: center; gap: 0; margin-bottom: 36px;
  border-bottom: 1px solid var(--molla-border);
}
.molla-tab-btn {
  padding: 10px 24px; border: none; background: none;
  font-size: 13px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--molla-gray);
  cursor: pointer; position: relative; transition: color .2s;
  margin-bottom: -1px; border-bottom: 2px solid transparent;
}
.molla-tab-btn:hover { color: var(--molla-dark); }
.molla-tab-btn.active { color: var(--molla-dark); border-bottom-color: var(--molla-dark); }

/* ════════════════════════════════════════════
   4. PRODUCT CARD — CSS moved to product-item.scss (shared)
════════════════════════════════════════════ */

/* ════════════════════════════════════════════
   5. CATEGORIES MASONRY
════════════════════════════════════════════ */
.molla-categories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: 12px;
}
.molla-cat-item {
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--molla-light-gray);
}
.molla-cat-item:first-child { grid-row: 1 / 3; }
.molla-cat-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.molla-cat-item:hover img { transform: scale(1.06); }
.molla-cat-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 20px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  color: #fff;
}
.molla-cat-label a {
  font-size: 14px; font-weight: 700; color: #fff;
  text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
}
.molla-cat-label a:hover { color: rgba(255,255,255,.85); }

/* ════════════════════════════════════════════
   6. LOAD MORE / VIEW MORE BUTTONS
════════════════════════════════════════════ */
.molla-load-more-wrap,
.molla-view-more-wrap { text-align: center; margin-top: 40px; }

.molla-load-more,
.molla-view-more {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--molla-border); background: none;
  color: var(--molla-dark); padding: 11px 32px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s, color .2s;
}
.molla-load-more:hover,
.molla-view-more:hover {
  border-color: var(--molla-dark); background: var(--molla-dark); color: #fff;
}

/* ════════════════════════════════════════════
   7. SERVICES BAR
════════════════════════════════════════════ */
.molla-services {
  padding: 44px 0;
  border-top: 1px solid var(--molla-border);
  border-bottom: 1px solid var(--molla-border);
  background: #fff;
}
.molla-services-grid {
  display: flex; flex-wrap: nowrap;
}
.molla-service-item {
  display: flex; align-items: center; gap: 20px;
  flex: 1 1 0;
  padding: 0 32px;
  border-right: 1px solid var(--molla-border);
}
.molla-service-item:last-child { border-right: none; }
.molla-service-icon {
  font-size: 36px; color: var(--molla-dark); flex-shrink: 0;
  line-height: 1;
}
.molla-service-title {
  font-size: 14px; font-weight: 700; color: var(--molla-dark); margin-bottom: 4px;
}
.molla-service-desc { font-size: 12px; color: var(--molla-gray); line-height: 1.6; }

/* ════════════════════════════════════════════
   8. BLOG
════════════════════════════════════════════ */
.molla-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.molla-blog-card .molla-blog-img {
  aspect-ratio: 4/3; overflow: hidden; margin-bottom: 18px;
  background: var(--molla-light-gray);
}
.molla-blog-card .molla-blog-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.molla-blog-card:hover .molla-blog-img img { transform: scale(1.05); }

.molla-blog-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--molla-gray); margin-bottom: 8px;
}
.molla-blog-meta a { color: inherit; text-decoration: none; }
.molla-blog-meta a:hover { color: var(--molla-accent); }
.molla-blog-meta-sep { color: #ddd; }
.molla-blog-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--molla-accent); text-transform: uppercase; margin-bottom: 6px;
}
.molla-blog-title {
  font-size: 16px; font-weight: 600; color: var(--molla-dark);
  margin-bottom: 10px; line-height: 1.45;
}
.molla-blog-title a { color: inherit; text-decoration: none; }
.molla-blog-title a:hover { color: var(--molla-accent); }
.molla-blog-excerpt {
  font-size: 13px; color: var(--molla-gray); line-height: 1.7; margin-bottom: 14px;
}
.molla-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--molla-dark);
  text-decoration: none; border-bottom: 1px solid var(--molla-dark);
  padding-bottom: 1px; transition: color .2s, border-color .2s;
}
.molla-read-more:hover { color: var(--molla-accent); border-color: var(--molla-accent); }

/* ════════════════════════════════════════════
   9. NEWSLETTER
════════════════════════════════════════════ */
.molla-newsletter {
  position: relative; padding: 64px 0;
  background: #1d1d1b; overflow: hidden;
  margin-bottom: 0;
}
.molla-newsletter-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18;
}
.molla-newsletter-inner { position: relative; z-index: 1; text-align: center; }
.molla-newsletter-sub {
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--molla-accent); margin-bottom: 12px;
}
.molla-newsletter-title {
  font-size: 30px; font-weight: 700; color: #fff; margin-bottom: 28px;
}
.molla-nl-group .molla-nl-input {
  background: rgba(255,255,255,.95); color: var(--molla-dark);
  border: none; height: 48px; font-size: 13px; border-radius: 0;
}
.molla-nl-group .molla-nl-input::placeholder { color: #999; }
.molla-nl-group .molla-nl-input:focus { box-shadow: none; background: #fff; }
.molla-nl-group .molla-nl-btn {
  height: 48px; padding: 0 28px; background: var(--molla-accent);
  border: none; color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: background .2s; white-space: nowrap; border-radius: 0;
}
.molla-nl-group .molla-nl-btn:hover { background: #b58851; color: #fff; }

/* ════════════════════════════════════════════
   TAB PANE VISIBILITY
════════════════════════════════════════════ */
.molla-tab-pane { display: none; }
.molla-tab-pane.active { display: block; }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .molla-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .molla-hero { flex-direction: column; min-height: auto; }
  .molla-hero-slider { flex: none; min-height: 360px; }
  .molla-hero-banners { flex: none; flex-direction: row; gap: 2px; height: 220px; }
  .molla-hero-banner { min-height: auto; }
  .molla-hero-caption { padding: 36px 36px; }
  .molla-hero-controls { left: 36px; }

  .molla-products-grid { grid-template-columns: repeat(2, 1fr); }
  .molla-categories-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .molla-cat-item:first-child { grid-row: auto; }
  .molla-services-grid { grid-template-columns: 1fr; gap: 0; }
  .molla-service-item { border-right: none; border-bottom: 1px solid var(--molla-border); padding: 20px 0; }
  .molla-service-item:last-child { border-bottom: none; }
  .molla-blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .molla-hero-slide { padding: 28px; }
  .molla-hero-controls { left: 28px; }
  .molla-hero-banners { flex-direction: column; height: auto; }
  .molla-hero-banner { min-height: 180px; }
  .molla-products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .molla-categories-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .molla-blog-grid { grid-template-columns: 1fr; }
  .molla-newsletter-form-wrap { padding: 0 8px; }
  .molla-nl-group { flex-wrap: nowrap; }
  .molla-section-title { font-size: 20px; }
}
