.outlet-page {
  background: #f7f7f5;
}

/* HERO */
.outlet-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 44px) 20px 54px;
  background:
    linear-gradient(135deg, rgba(26, 61, 109, 0.96), rgba(24, 24, 24, 0.9)),
    url("../images/outlet-hero.jpg") center/cover no-repeat;
  color: #fff;
}

.outlet-hero__inner {
  max-width: 980px;
  margin: 0 auto;
  padding-left: 28px;
  transform: translateY(-32px);
}

.outlet-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.outlet-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 22px;
}

.outlet-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  margin: 0 0 26px;
}

.outlet-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.outlet-hero__note {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.outlet-hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}

/* STRIP */
.outlet-strip {
  max-width: 980px;
  margin: -18px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}

.outlet-strip__item {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 20px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-align: center;
  font-weight: 500;
  color: var(--text);
}

.outlet-strip__item .icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

/* MAIN */
.outlet-main {
  padding: 48px 20px 90px;
}

.outlet-section {
  max-width: 1100px;
  margin: 0 auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 8px;
}

.section-heading p {
  margin: 0;
}

/* GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.outlet-card {
    position: relative;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
    background 0.2s ease;
    
}

.outlet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
   background: #fafafa;
}


.outlet-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
  background: linear-gradient(#f8f9fb, #f3f4f6);
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.outlet-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}


.outlet-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.outlet-card__badge--outlet {
  background: #f28322;
}

.outlet-card__badge--kampanja {
  background: #1a3d6d;
}

.outlet-card__badge--esittelytuote {
  background: #f28322;
}

.outlet-card__content {
  padding: 24px;
}

.outlet-card__title {
  margin: 0 0 10px;
  font-size: 1.16rem;
   font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.outlet-card__desc {
  margin: 0 0 14px;
  color: #555;
  min-height: 72px;
}

.outlet-card__price {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.outlet-card__stock {
    margin-top: 4px;
  margin-bottom: 16px;
  color: #d65a2f;
  font-size: 0.95rem;
  font-weight: 600;
}

.outlet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.outlet-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.outlet-button-secondary:hover {
  background: #f5f5f5;
}
.outlet-card:hover .outlet-card__media img {
  transform: scale(1.05);
  opacity: 0.95;
}
.outlet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0) 40%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.outlet-card:hover::before {
  opacity: 1;
}

/* STICKY BUTTON */
.sticky-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

#cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  margin-left: 8px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

/* MODAL */
.custom-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.custom-modal.is-open {
  display: block;
}

.custom-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.custom-modal__dialog {
  position: relative;
  width: min(680px, calc(100% - 32px));
  margin: 5vh auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  z-index: 1;
}

.custom-modal__dialog--wide {
  width: min(920px, calc(100% - 32px));
}

.custom-modal__content {
  padding: 28px 24px;
}

.custom-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.custom-modal__close:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: scale(1.04);
}

.custom-modal__title {
  margin: 0 0 18px;
  font-size: 1.6rem;
}

/* PRODUCT MODAL */
.product-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-modal__image img {
  width: 100%;
  display: block;
  border-radius: 14px;
  background: #f7f7f7;
  padding: 14px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.product-modal__image img:hover {
  transform: scale(1.03);
}

.product-modal__info h2 {
  margin: 0 0 10px;
}

.product-modal__info p {
  margin-bottom: 14px;
}

.product-modal__price {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.product-modal__stock {
  color: #b42318;
  font-weight: 700;
  margin-bottom: 18px;
}

/* OFFER FORM */
.selected-products {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8f8f8;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.selected-product {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.selected-product:last-child {
  border-bottom: 0;
}

.outlet-form .form-group {
  margin-bottom: 16px;
}

.outlet-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text);
}

.outlet-form input,
.outlet-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.outlet-form input:focus,
.outlet-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(242, 131, 34, 0.18);
}

.outlet-form textarea {
  resize: vertical;
  min-height: 110px;
}

.outlet-form__submit {
  margin-top: 6px;
}

.form-status {
  min-height: 24px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.is-success {
  color: #157347;
}

.form-status.is-error {
  color: #b42318;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  align-items: center;
  justify-content: center;
  z-index: 1300;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 14px;
  display: block;
  background: #fff;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 44px;
  background: #fff;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__nav.is-hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-modal {
    grid-template-columns: 1fr;
  }

  .outlet-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .sticky-cart {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }

  .custom-modal__dialog,
  .custom-modal__dialog--wide {
    width: calc(100% - 20px);
    margin: 3vh auto;
  }

  .custom-modal__content {
    padding: 22px 16px;
  }

  .lightbox__close {
    top: -6px;
    right: -2px;
  }
  .outlet-hero__inner {
    padding-left: 0;
    transform: none;
  }
}

.product-modal__image-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-modal__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-modal__thumb {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
}

.product-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-modal__thumb.is-active {
  border-color: rgba(242, 131, 34, 0.8);
}

@media (max-width: 640px) {
  .custom-modal.is-open ~ .sticky-cart {
    display: none !important;
  }
}

.toast-message {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: #2f7d32;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .toast-message {
    width: calc(100% - 32px);
    border-radius: 14px;
    text-align: center;
    bottom: 84px;
  }
}

.product-modal__zoom-hint {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 6px;
}




