/* Homepage — modern layout & product titles */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

.page-home {
  --home-accent: #d42424;
  --home-accent-dark: #b91c1c;
  --home-ink: #0f172a;
  --home-muted: #64748b;
  --home-surface: #ffffff;
  --home-radius: 20px;
  font-family: "Poppins", "Roboto", sans-serif;
  color: var(--home-ink);
}

/* Menu — normal size (content font must not affect nav) */
.page-home .top,
.page-home .top ul li,
.page-home .top ul li a,
.page-home .header,
.page-home .header .right ul li,
.page-home .header .right ul li a,
.page-home .nav,
.page-home .menu-container,
.page-home .menu > ul > li > ul > li a {
  font-size: 13px !important;
}

.page-home .menu > ul > li a {
  font-size: 13px !important;
  padding: 10px 14px !important;
}

.page-home .header .search-top,
.page-home .header .search-area button,
.page-home .header .navbar-form button {
  font-size: 13px !important;
}

.page-home .footer-main,
.page-home .footer-bottom {
  font-size: 14px !important;
}

.page-home .home-main {
  font-size: 30px;
  line-height: 1.8;
}

/* Hero slider — same layout on every slide */
.page-home .home-hero {
  margin-bottom: 0;
}

.page-home .home-slider {
  height: auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #0f172a;
  margin-bottom: 0;
}

.page-home .home-slider .carousel-inner {
  height: clamp(300px, 38vw, 460px);
}

.page-home .home-slide {
  height: clamp(300px, 38vw, 460px);
  position: relative;
  overflow: hidden;
}

.page-home .home-slide__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  margin: 0;
}

.page-home .home-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(15, 23, 42, 0.15) 100%
  );
  pointer-events: none;
}

.page-home .home-slide__content {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: flex;
  align-items: center;
  padding: 24px 15px 36px;
  pointer-events: none;
}

.page-home .home-slide__box {
  max-width: 640px;
  pointer-events: auto;
  text-align: left;
}

.page-home .home-slide__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--home-accent);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.page-home .home-slide__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.page-home .home-slide__text {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px;
  max-width: 580px;
}

.page-home .home-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-slide-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.page-home .home-slide-btn--primary {
  background: var(--home-accent);
  color: #fff;
  border: 2px solid var(--home-accent);
}

.page-home .home-slide-btn--primary:hover {
  background: var(--home-accent-dark);
  border-color: var(--home-accent-dark);
  color: #fff;
  transform: translateY(-2px);
}

.page-home .home-slide-btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.page-home .home-slide-btn--outline:hover {
  background: #fff;
  color: var(--home-ink);
  transform: translateY(-2px);
}

.page-home .home-slider .carousel-control {
  z-index: 15;
  width: 48px;
  height: 48px;
  top: 50%;
  margin-top: -24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  line-height: 48px;
  text-shadow: none;
}

.page-home .home-slider .carousel-control:hover {
  background: rgba(255, 255, 255, 0.35);
}

.page-home .home-slider.indicators-line > .carousel-indicators {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  bottom: 10px;
  margin-bottom: 0;
  text-align: center;
  padding: 0;
}

.page-home .home-slider .carousel-indicators {
  z-index: 15;
}

/* Override touch-slider theme (fade/black box fixes) */
.page-home .home-slider .carousel-inner > .item {
  height: clamp(300px, 38vw, 460px);
}

.page-home .home-slider .carousel-inner > .item.next,
.page-home .home-slider .carousel-inner > .item.prev,
.page-home .home-slider .carousel-inner > .item.active {
  left: 0;
  right: 0;
}

.page-home .home-slider.control-round .carousel-control {
  opacity: 0.9 !important;
}

.page-home .home-slider.control-round:hover .carousel-control {
  opacity: 1 !important;
}

/* Services */
.page-home .home-services {
  padding: 56px 0 48px;
}

.page-home .home-services .service-card {
  text-align: center;
  background: var(--home-surface);
  border-radius: var(--home-radius);
  padding: 32px 24px 28px;
  height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-services .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.1);
}

.page-home .home-services .service-card__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff5f5, #fef3e8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.page-home .home-services .service-card__icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.page-home .home-services .service-card__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--home-ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.page-home .home-services .service-card__text {
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--home-muted);
  margin: 0;
}

/* Section headings */
.page-home .headline--modern {
  margin-bottom: 42px;
}

.page-home .headline__eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--home-accent);
  background: rgba(212, 36, 36, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.page-home .headline__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--home-ink);
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0 0 10px;
  line-height: 1.2;
}

.page-home .headline__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--home-accent), #f59e0b);
}

.page-home .headline__subtitle {
  font-size: 1.4rem;
  color: var(--home-muted);
  margin: 12px 0 0;
  font-weight: 400;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Product sections */
.page-home .home-products {
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-home .home-products--alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
}

.page-home .product .product-carousel {
  padding-top: 8px;
}

/* Product card */
.page-home .product-card {
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.page-home .product-card__media {
  position: relative;
}

.page-home .product-card__media .photo {
  height: 240px;
  transition: transform 0.45s ease;
}

.page-home .product-card:hover .product-card__media .photo {
  transform: scale(1.05);
}

.page-home .product-card__badge {
  position: absolute;
  z-index: 3;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
}

.page-home .product-card__badge--label {
  top: 12px;
  left: 12px;
  background: var(--home-ink);
  color: #fff;
}

.page-home .product-card__badge--sale {
  top: 12px;
  right: 12px;
  background: var(--home-accent);
  color: #fff;
}

.page-home .product-card__quick {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  z-index: 4;
  background: #fff;
  color: var(--home-ink);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.page-home .product-card__quick:hover {
  background: var(--home-ink);
  color: #fff;
  text-decoration: none;
}

.page-home .product-card:hover .product-card__quick {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.page-home .product-card__body {
  padding: 18px 18px 20px !important;
  text-align: left !important;
}

.page-home .product-card__title {
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  min-height: 2.9em;
  text-align: left !important;
}

.page-home .product-card__title a {
  color: var(--home-ink) !important;
  font-weight: 600 !important;
  font-size: inherit !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.page-home .product-card__title a:hover {
  color: var(--home-accent) !important;
}

.page-home .product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.page-home .product-card__price-current {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--home-ink);
  letter-spacing: -0.02em;
}

.page-home .product-card__price-old {
  font-size: 1.15rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.page-home .product-card__rating {
  text-align: left !important;
  margin: 4px 0 8px;
  font-size: 1.1rem;
}

.page-home .product-card__action a {
  font-size: 1.2rem !important;
  padding: 12px 18px !important;
}

.page-home .product-card__action {
  text-align: left !important;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
}

.page-home .product-card__action a {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .product .out-of-stock .inner {
  font-size: 1.1rem !important;
}

.page-home .product .owl-controls {
  top: -72px;
}

@media (max-width: 767px) {
  .page-home .home-slider .carousel-inner,
  .page-home .home-slide,
  .page-home .home-slider .carousel-inner > .item {
    height: 280px;
  }

  .page-home .home-slide__content {
    align-items: flex-end;
    padding: 16px 12px 32px;
  }

  .page-home .home-slide__box {
    max-width: 100%;
  }

  .page-home .home-slide__actions {
    flex-direction: column;
  }

  .page-home .home-slide-btn {
    width: 100%;
    text-align: center;
  }

  .page-home .home-products {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .page-home .product-card__media .photo {
    height: 200px;
  }

  .page-home .product-card__quick {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
