/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

.lblp-home {
  --lblp-bg: #f5f6f7;
  --lblp-card: #ffffff;
  --lblp-border: #e5e7eb;
  --lblp-text: #1f2937;
  --lblp-muted: #6b7280;
  --lblp-accent: #111827;
  --lblp-max: 1200px;
}

.lblp-home * {
  box-sizing: border-box;
}

.lblp-section {
  padding: 32px 20px;
  background: var(--lblp-bg);
}

.lblp-wrap {
  max-width: var(--lblp-max);
  margin: 0 auto;
}

.lblp-heading,
.lblp-heading-row {
  margin-bottom: 24px;
}

.lblp-heading h2,
.lblp-heading-row h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  color: var(--lblp-text);
}

.lblp-heading p {
  margin: 0;
  color: var(--lblp-muted);
  line-height: 1.6;
}

.lblp-btn {
  display: inline-block;
  text-decoration: none;
  color: var(--lblp-accent);
  font-weight: 700;
}

.lblp-btn:hover {
  text-decoration: underline;
}

/* Rotator */
.lblp-rotator {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--lblp-border);
}

.lblp-slides {
  position: relative;
}

.lblp-slide {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  min-height: 480px;
}

/* Full-width image slide */
.lblp-slide.lblp-slide-banner {
  grid-template-columns: 1fr;
}

.lblp-slide.is-active {
  display: grid;
}

.lblp-slide-media {
  height: 480px;
  overflow: hidden;
  background: #000;
}

/* Full-width image slide media */
.lblp-slide-banner .lblp-slide-media {
  height: 480px;
  background: #fff;
}

.lblp-slide-media img,
.lblp-slide-media video,
.lblp-slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lblp-slide-content {
  min-height: 420px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lblp-slide-content h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.1;
  color: var(--lblp-text);
}

.lblp-slide-content p {
  margin: 0 0 18px;
  color: var(--lblp-muted);
  line-height: 1.6;
  font-size: 16px;
}

.lblp-rotator-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  background: rgba(255,255,255,.9);
  color: var(--lblp-text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 5;
}

.lblp-rotator-prev {
  left: 16px;
}

.lblp-rotator-next {
  right: 16px;
}

.lblp-rotator-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.lblp-rotator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
}

.lblp-rotator-dot.is-active {
  background: #fff;
}

/* Categories */
.lblp-category-section {
  background: #f8f8f8;
}

.lblp-category-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lblp-category-grid ul.products::before,
.lblp-category-grid ul.products::after {
  display: none !important;
}

.lblp-category-grid ul.products li.product-category {
  position: relative;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lblp-category-grid ul.products li.product-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: #d9d9d9;
}

.lblp-category-grid ul.products li.product-category a {
  position: relative !important;
  display: block !important;
  width: 100%;
  min-height: 130px;
  padding: 0;
  margin: 0;
  text-decoration: none;
  color: inherit;
}

.lblp-category-grid ul.products li.product-category a::before,
.lblp-category-grid ul.products li.product-category a::after,
.lblp-category-grid ul.products li.product-category h2::before,
.lblp-category-grid ul.products li.product-category h2::after,
.lblp-category-grid ul.products li.product-category .woocommerce-loop-category__title::before,
.lblp-category-grid ul.products li.product-category .woocommerce-loop-category__title::after {
  content: none !important;
  display: none !important;
}

.lblp-category-grid ul.products li.product-category img {
  display: none !important;
}

.lblp-category-grid ul.products li.product-category h2,
.lblp-category-grid ul.products li.product-category .woocommerce-loop-category__title {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: calc(100% - 40px) !important;
  max-width: none !important;
  display: block !important;
  float: none !important;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111;
  text-align: center !important;
}

.lblp-category-grid ul.products li.product-category .count,
.lblp-category-grid ul.products li.product-category mark,
.lblp-category-grid ul.products li.product-category .button,
.lblp-category-grid ul.products li.product-category .shop-now {
  display: none !important;
}

.lblp-category-grid ul.products li.is-hidden {
  display: none !important;
}

.lblp-category-grid ul.products li.is-revealed {
  animation: lblpFadeIn .35s ease;
}

@keyframes lblpFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lblp-grid-loader {
  display: block;
  margin: 24px auto 0;
  padding: 12px 22px;
  border: 1px solid var(--lblp-text);
  background: #fff;
  color: var(--lblp-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lblp-grid-loader:hover {
  background: var(--lblp-text);
  color: #fff;
}

.lblp-grid-loader.is-hidden {
  display: none;
}

/* Designers */
.lblp-designers {
  background: #fff;
  border: 1px solid var(--lblp-border);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.lblp-designer {
  border-right: 1px solid var(--lblp-border);
  padding: 20px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lblp-designer:last-child {
  border-right: 0;
}

.lblp-designer img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}

/* Newsletter */
.lblp-newsletter {
  background: #fff;
  border: 1px solid var(--lblp-border);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.lblp-newsletter h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.2;
  color: var(--lblp-text);
}

.lblp-newsletter p {
  margin: 0;
  color: var(--lblp-muted);
  line-height: 1.6;
  font-size: 16px;
}

.lblp-newsletter .sureforms-shortcode-wrap {
  grid-column: 1 / -1;
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .lblp-category-grid ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lblp-designers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lblp-newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .lblp-section {
    padding: 20px 16px;
  }

  .lblp-slide,
  .lblp-slide.is-active {
    grid-template-columns: 1fr;
  }

  .lblp-slide {
    min-height: auto;
  }

  .lblp-slide-media {
    height: 260px;
  }

  .lblp-slide-content {
    min-height: auto;
    padding: 24px;
  }

  .lblp-slide-content h2 {
    font-size: 28px;
  }

  .lblp-category-grid ul.products {
    grid-template-columns: 1fr;
  }

  .lblp-category-grid ul.products li.product-category a {
    min-height: 96px;
    padding: 0 16px;
  }

  .lblp-designers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lblp-newsletter {
    padding: 24px;
  }
}
