/* Home-only styles for the orange v2 theme. Global layout remains in site_v2.css. */

.ir-home-v2 {
  background: var(--surf-1);
  overflow: hidden;
}

.ir-home-v2 .brand-card,
.ir-home-v2 .hero-cta-btn,
.ir-home-v2 .btn-details,
.ir-home-v2 .promo-banner-btn {
  text-decoration: none;
}

.ir-home-v2 .products-slider,
.ir-home-v2 .product-slide {
  direction: rtl;
}

.ir-home-v2 .product-card {
  min-height: 100%;
}

.ir-home-v2 .product-title a {
  color: inherit;
  text-decoration: none;
}

.promo-banner {
  padding: clamp(20px, 4vw, 32px) 0;
  background: var(--surf-1);
}

.promo-banner-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: clamp(20px, 4vw, 32px) clamp(20px, 5vw, 40px);
  border-radius: var(--r-2xl);
  background: linear-gradient(120deg, var(--red-core) 0%, var(--red-deep) 100%);
  box-shadow: var(--shadow-red-lg);
}

.promo-banner-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255,255,255,.18) 0%, transparent 60%);
  pointer-events: none;
}

.promo-banner-text,
.promo-banner-btn {
  position: relative;
  z-index: 1;
}

.promo-banner-tag {
  display: inline-block;
  margin-bottom: var(--sp-2);
  padding: 3px 12px;
  border-radius: var(--r-full);
  background: #fff;
  color: var(--red-core);
  font-size: var(--fs-xs);
  font-weight: 800;
}

.promo-banner-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: clamp(17px, 3vw, 24px);
  font-weight: 900;
  line-height: 1.55;
}

.promo-banner-desc {
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: var(--fs-sm);
}

.promo-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-full);
  background: #fff;
  color: var(--red-core);
  box-shadow: var(--shadow-sm);
  font-size: var(--fs-sm);
  font-weight: 800;
  white-space: nowrap;
  transition: transform var(--t2) var(--ease-spring), box-shadow var(--t2) var(--ease), color var(--t2) var(--ease);
}

.promo-banner-btn:hover {
  color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-register-section {
  padding: clamp(28px, 5vw, 48px) 0 clamp(36px, 6vw, 56px);
  background: var(--surf-1);
}

.store-register-card {
  width: 100%;
  max-width: 340px;
  background: var(--surf-1);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.store-register-card .hero-cta-note {
  color: var(--text-tertiary);
}

.btn-cart.is-disabled,
.btn-cart:disabled {
  background: var(--milk-500);
  color: var(--text-tertiary);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: .8;
}

.home-empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed var(--border-medium);
  border-radius: var(--r-xl);
  background: var(--white);
  color: var(--text-muted);
  text-align: center;
}

.home-empty-state .bi {
  color: var(--red-core);
  font-size: 32px;
}

.home-empty-state p {
  margin: 0;
}

@media (max-width: 575.98px) {
  .promo-banner-card {
    flex-direction: column;
    padding: 22px 18px;
    text-align: center;
  }

  .promo-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner-btn,
  .promo-banner-card,
  .store-register-card {
    transition: none;
  }
}

.btn-cart.is-success {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 8px 24px rgba(22,163,74,.30);
}

.btn-cart.is-error {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 8px 24px rgba(220,38,38,.24);
}

/* Products Grid styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
@media (max-width: 991.98px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767.98px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.btn-more-products {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 24px;
  border-radius: var(--r-full);
  background: var(--red-core);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
  text-decoration: none;
  transition: all var(--t2) var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn-more-products:hover {
  background: var(--red-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Services Grid & Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}
@media (max-width: 991.98px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 575.98px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t2) var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card-header {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, var(--red-core) 0%, var(--red-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.service-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 0%, transparent 80%);
}
.service-card-icon {
  font-size: 3rem;
  z-index: 1;
}
.service-card-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--sp-2);
}
.service-card-category {
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--red-core);
  text-transform: uppercase;
}
.service-card-title {
  margin: 0;
  font-size: var(--fs-md);
  font-weight: 800;
  color: var(--text-primary);
}
.service-card-title a {
  color: inherit;
  text-decoration: none;
}
.service-card-location {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.service-card-footer {
  margin-top: auto;
  padding-top: var(--sp-2);
}
.btn-service-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--surf-2);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-medium);
  transition: all var(--t2) var(--ease);
}
.btn-service-details:hover {
  background: var(--red-core);
  color: #fff;
  border-color: var(--red-core);
}

/* Slideshow custom controls styling */
.registration-slideshow-section .carousel-indicators [data-bs-target] {
  background-color: rgba(255,255,255,0.6);
}
.registration-slideshow-section .carousel-indicators .active {
  background-color: #fff;
}

/* Container and page width constraints for premium desktop centering */
.ir-home-v2 .container-fluid {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.brands-scroll {
  max-width: 1400px;
  margin: 0 auto;
}

/* Products Grid styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
@media (max-width: 1199.98px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 991.98px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767.98px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.btn-more-products {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 24px;
  border-radius: var(--r-full);
  background: var(--red-core);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 800;
  text-decoration: none;
  transition: all var(--t2) var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn-more-products:hover {
  background: var(--red-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.products-grid .product-card .btn-cart {
  padding: 10px 14px;
  font-size: var(--fs-xs);
  border-radius: var(--r-md);
}
