/* HERO */
.hero {
  position: relative;
  height: 60vh;
  overflow-x: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.slide.active {
  opacity: 1;
}

.hero-text {
  color: var(--theme-white);
  position: absolute;
  bottom: 20%;
  left: 5%;
  font-size: 25px;
  z-index: 2;
}

/* ABOUT */
.home-about {
  padding: 25px 2%;
}

/* PRODUCTS */
.home-products {
  padding: 25px 2%;
}

.home-product-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: 10px;
  height: 350px;
  user-select: none;
}

.home-product-slider::-webkit-scrollbar {
  display: none;
}

.home-product-card {
  height: 100%;
  max-width: 300px;
  border-radius: 10px;
  border: 1px solid var(--theme-border-grey);
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--theme-shadow-black);
  background: var(--theme-white);
  flex-direction: column;
  display: flex;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  justify-content: space-between;
}

.home-product-card:hover {
  transform: translateY(-5px);
}

.home-product-card h4 {
  font-size: 16px;
  font-weight: 600;
  padding: 10px;
  color: var(--theme-white);
  background-color: var(--brand-red);
  flex-shrink: 0;
}

.home-product-card img {
  flex: 1 1 auto;
  min-height: 10%;
  width: 100%;
  object-fit: contain;
}

/* FEATURES */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 10px 2%;
  background: var(--theme-white);
}

.home-feature-box {
  background: var(--brand-grey);
  padding: 30px;
  text-align: center;
  font-size: 20px;
  font-weight: 300;
  border-radius: 20px;
  color: var(--brand-black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--theme-shadow-black);
}

@media(max-width:1000px) {
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* QUICK VIEW MODAL */
#quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--theme-shadow-black);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#quick-view-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--theme-white);
  border-radius: 15px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
  display: flex;
  box-shadow: 0 10px 40px var(--theme-shadow-black);
}

#quick-view-modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--brand-grey);
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--brand-black);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--brand-red);
  color: var(--theme-white);
}

.modal-body {
  display: flex;
  width: 100%;
  gap: 20px;
  padding: 30px;
}

.modal-image-col {
  flex: 1;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-image-col img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: none;
}

.modal-image-col img.active {
  display: block;
}

.modal-nav-arrows {
  display: flex;
  justify-content: space-between;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal-nav-arrows button {
  background: var(--theme-shadow-black);
  color: var(--theme-white);
  border: none;
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}

.modal-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-info-col h3 {
  font-size: 28px;
  color: var(--brand-black);
}

.modal-info-col table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.modal-info-col table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--theme-border-grey);
}

.modal-info-col table td:first-child {
  font-weight: 600;
  background: var(--brand-grey);
  width: 40%;
}

.modal-view-full-btn {
  display: inline-block;
  margin-top: auto;
  padding: 12px 20px;
  background: var(--brand-red);
  color: var(--theme-white);
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.modal-view-full-btn:hover {
  opacity: 0.9;
}

@media(max-width: 800px) {
  .modal-body {
    flex-direction: column;
  }
}