/* ==============================
   SHOP PAGE
   TrailWatch UK
   Professional Product Layout
============================== */

.shop-hero__content {
  max-width: 900px;
}

.shop-section-label {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* Main section */

.shop-page {
  padding: 104px 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 191, 77, 0.13), transparent 30%),
    linear-gradient(180deg, #f6f8f2 0%, #ffffff 52%, #f4f7f0 100%);
}

.shop-head {
  max-width: 960px;
  margin-bottom: 30px;
}

.shop-head h2,
.shop-help h2 {
  margin: 0;
  color: #101410;
  font-size: clamp(42px, 5.8vw, 78px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.shop-head p,
.shop-help p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #566154;
  font-size: 18px;
  line-height: 1.7;
}

.shop-notice {
  position: relative;
  margin-bottom: 36px;
  padding: 20px 24px 20px 58px;
  border: 1px solid rgba(11, 61, 44, 0.12);
  border-radius: 22px;
  color: #4d584c;
  background:
    radial-gradient(circle at 98% 0%, rgba(199, 229, 109, 0.20), transparent 28%),
    #ffffff;
  font-size: 16px;
  line-height: 1.6;
  box-shadow:
    0 18px 44px rgba(6, 20, 15, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.shop-notice::before {
  content: "i";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07140f;
  background: linear-gradient(135deg, #c7e56d, #8fbf4d);
  font-size: 14px;
  font-weight: 900;
  font-style: normal;
}

.shop-notice strong {
  color: #101410;
}

/* Product grid */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.shop-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(11, 61, 44, 0.12);
  border-radius: 28px;
  background: #ffffff;
  box-shadow:
    0 18px 48px rgba(6, 20, 15, 0.07),
    inset 0 0 0 1px rgba(255, 255, 255, 0.70);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.shop-card:hover {
  transform: translateY(-6px);
  border-color: rgba(143, 191, 77, 0.34);
  box-shadow:
    0 28px 70px rgba(6, 20, 15, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.90);
}

.shop-card__image {
  position: relative;
  overflow: hidden;
  margin: 12px 12px 0;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #e7ece0, #f7f9f3);
  aspect-ratio: 1 / 0.95;
}

.shop-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 5, 4, 0.02) 0%, rgba(2, 5, 4, 0.10) 100%),
    radial-gradient(circle at 80% 8%, rgba(199, 229, 109, 0.14), transparent 28%);
  pointer-events: none;
}

.shop-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.shop-card:hover .shop-card__image img {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.04);
}

.shop-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(11, 61, 44, 0.88);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

.shop-card__body h3 {
  min-height: 74px;
  margin: 0;
  color: #111711;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.shop-card__meta {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 22px;
}

.shop-card__price {
  color: #101410;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.02em;
}

.shop-card__price::after {
  content: "Guide price";
  display: block;
  margin-top: 6px;
  color: #7b8777;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.shop-card__actions {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
  align-items: center;
}

.shop-details-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(11, 61, 44, 0.16);
  border-radius: 16px;
  color: #101410;
  background: #f7f9f3;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.shop-details-btn:hover {
  color: #ffffff;
  border-color: #0b3d2c;
  background: #0b3d2c;
  transform: translateY(-2px);
}

.shop-icon-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #07140f;
  background: linear-gradient(135deg, #c7e56d, #8fbf4d);
  box-shadow: 0 14px 28px rgba(143, 191, 77, 0.24);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.shop-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(143, 191, 77, 0.34);
  filter: saturate(1.06);
}

.shop-icon-btn img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

/* Buttons inside modal */

.shop-btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.shop-btn:hover {
  transform: translateY(-2px);
}

.shop-btn--primary {
  border: 0;
  color: #07140f;
  background: linear-gradient(135deg, #c7e56d, #8fbf4d);
  box-shadow: 0 14px 30px rgba(143, 191, 77, 0.24);
}

.shop-btn--ghost {
  border: 1px solid rgba(11, 61, 44, 0.16);
  color: #101410;
  background: #ffffff;
}

/* Product modal */

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(2, 5, 4, 0.76);
  backdrop-filter: blur(18px);
}

.product-modal.is-open {
  display: flex;
}

.product-modal__dialog {
  width: min(100%, 1080px);
  max-height: calc(100svh - 60px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.44);
}

.product-modal__close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 225;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 229, 109, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: #06140f;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.product-modal__close:hover {
  transform: rotate(90deg);
  background: #0b3d2c;
}

.product-modal__media {
  padding: 22px;
  background:
    radial-gradient(circle at 12% 10%, rgba(199, 229, 109, 0.20), transparent 28%),
    #f4f7f0;
}

.product-modal__media > img {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  background: #d9ded2;
  box-shadow: 0 18px 40px rgba(6, 20, 15, 0.10);
}

.product-modal__thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.product-modal__thumbs button {
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
}

.product-modal__thumbs button.is-active {
  border-color: #8fbf4d;
}

.product-modal__thumbs img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  display: block;
  object-fit: cover;
}

.product-modal__content {
  padding: 44px;
}

.product-modal__content h2 {
  margin: 0;
  color: #101410;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
}

.product-modal__price {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 22px 0 0;
  padding: 0 16px;
  border-radius: 999px;
  color: #07140f;
  background: linear-gradient(135deg, #c7e56d, #8fbf4d);
  font-size: 24px;
  font-weight: 950;
}

.product-modal__description {
  margin: 22px 0 0;
  color: #556052;
  font-size: 17px;
  line-height: 1.72;
}

.product-modal__features {
  display: grid;
  gap: 11px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.product-modal__features li {
  position: relative;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(11, 61, 44, 0.10);
  border-radius: 16px;
  color: #4f5a4f;
  background: #f7f9f3;
  font-size: 15px;
  line-height: 1.45;
}

.product-modal__features li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #07140f;
  background: var(--accent-strong, #c7e56d);
  font-size: 11px;
  font-weight: 900;
}

.product-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Help */

.shop-help {
  padding: 96px 0;
  background: #ffffff;
}

.shop-help__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 42px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 12%, rgba(199, 229, 109, 0.20), transparent 30%),
    linear-gradient(135deg, #06140f 0%, #0b3d2c 100%);
  box-shadow: 0 28px 70px rgba(6, 20, 15, 0.16);
}

.shop-help .shop-section-label {
  color: var(--accent-strong);
}

.shop-help h2 {
  max-width: 780px;
  color: #ffffff;
}

.shop-help p {
  color: rgba(255, 255, 255, 0.74);
}

/* Responsive */

@media (max-width: 1240px) {
  .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .shop-help__box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-modal__dialog {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shop-page,
  .shop-help {
    padding: 72px 0;
  }

  .shop-head h2,
  .shop-help h2 {
    font-size: clamp(38px, 12vw, 58px);
    letter-spacing: -0.05em;
  }

  .shop-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shop-card__image {
    aspect-ratio: 1 / 0.9;
  }

  .shop-card__body h3 {
    min-height: auto;
  }

  .shop-card__actions {
    grid-template-columns: 1fr 52px;
  }

  .shop-icon-btn {
    width: 52px;
    height: 52px;
  }

  .product-modal {
    padding: 16px;
  }

  .product-modal__dialog {
    max-height: calc(100svh - 32px);
    border-radius: 24px;
  }

  .product-modal__media {
    padding: 14px;
  }

  .product-modal__content {
    padding: 28px 22px;
  }

  .product-modal__actions {
    display: grid;
  }

  .shop-btn {
    width: 100%;
  }

  .shop-help__box {
    padding: 28px;
    border-radius: 28px;
  }
}