
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #18231c;
  background: #f6f7f5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e3e8e2;
}

.banner-wrap {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
}

.banner {
  aspect-ratio: 5 / 1;
  object-fit: cover;
}

.store-info {
  position: absolute;
  left: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

.logo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.store-name {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 1px;
}

.store-subtitle {
  margin-top: 8px;
  font-size: 15px;
  color: #526157;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 28px 18px 54px;
}

.section-title {
  font-size: 28px;
  margin: 18px 0 18px;
  font-weight: 800;
}

.feature-stack {
  display: grid;
  gap: 24px;
}

.feature-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e0e5df;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.feature-card img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.feature-caption {
  padding: 18px 22px 22px;
}

.feature-caption h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.feature-caption p {
  margin: 0;
  color: #59665d;
  font-size: 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e1e7e0;
  border-radius: 18px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f1f3f0;
}

.product-info {
  padding: 14px;
}

.product-title {
  font-size: 16px;
  line-height: 1.35;
  min-height: 44px;
  font-weight: 700;
}

.price {
  margin-top: 10px;
  font-size: 18px;
  color: #b12704;
  font-weight: 800;
}

.detail-header {
  max-width: 1260px;
  margin: 0 auto;
  padding: 18px;
}

.back-link {
  display: inline-block;
  color: #2f6f3e;
  font-weight: 700;
}

.detail-layout {
  max-width: 1260px;
  margin: 0 auto 60px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 34px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.thumbs {
  display: grid;
  gap: 12px;
}

.thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #dfe5de;
  background: #fff;
}

.main-image img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid #dfe5de;
  background: #fff;
}

.detail-panel {
  background: #ffffff;
  border: 1px solid #e1e7e0;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.detail-title {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.detail-price {
  color: #b12704;
  font-size: 28px;
  font-weight: 800;
  margin: 12px 0 20px;
}

.bullets {
  padding-left: 20px;
  margin: 0;
}

.bullets li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer {
  text-align: center;
  padding: 30px 18px;
  color: #6b756d;
  background: #ffffff;
  border-top: 1px solid #e3e8e2;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .banner {
    aspect-ratio: 5 / 1;
    min-height: 160px;
  }

  .store-info {
    left: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .logo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  .store-name {
    font-size: 22px;
  }

  .store-subtitle {
    font-size: 12px;
    margin-top: 4px;
  }

  .container {
    padding: 18px 12px 38px;
  }

  .section-title {
    font-size: 22px;
    margin: 16px 0 12px;
  }

  .feature-stack {
    gap: 16px;
  }

  .feature-card {
    border-radius: 16px;
  }

  .feature-caption {
    padding: 14px 16px 16px;
  }

  .feature-caption h3 {
    font-size: 19px;
  }

  .feature-caption p {
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info {
    padding: 11px;
  }

  .product-title {
    font-size: 14px;
    min-height: 40px;
  }

  .price {
    font-size: 16px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
    order: 2;
  }

  .main-image {
    order: 1;
  }

  .detail-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .detail-title {
    font-size: 24px;
  }

  .detail-price {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .store-info {
    max-width: calc(100% - 24px);
  }
}


.thumb-image {
  cursor: pointer;
  transition: all .18s ease;
}

.thumb-image:hover {
  transform: scale(1.03);
}

.active-thumb {
  border: 3px solid #2f6f3e !important;
  box-shadow: 0 0 0 3px rgba(47,111,62,0.15);
}


/* Flexible product gallery: supports 5-8 images */
.gallery {
  grid-template-columns: 76px 1fr;
  align-items: start;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 620px;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
}

.thumb-button {
  width: 68px;
  height: 68px;
  padding: 3px;
  border: 1px solid #dfe5de;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: all .18s ease;
  flex: 0 0 auto;
}

.thumb-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.thumb-button img,
.thumbs img.thumb-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 0 !important;
  border-radius: 7px;
}

.thumb-button.active-thumb {
  border: 2px solid #2f6f3e !important;
  box-shadow: 0 0 0 3px rgba(47,111,62,0.16);
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .thumbs {
    order: 2;
    flex-direction: row;
    gap: 9px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 2px 4px;
    -webkit-overflow-scrolling: touch;
  }

  .thumb-button {
    width: 62px;
    height: 62px;
  }

  .main-image {
    order: 1;
  }
}

@media (max-width: 420px) {
  .thumb-button {
    width: 56px;
    height: 56px;
    border-radius: 9px;
  }
}


/* A+ content module */
.aplus-section {
  max-width: 1464px;
  margin: 0 auto 64px;
  padding: 0 18px;
}

.aplus-title {
  max-width: 1260px;
  margin: 0 auto 18px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  color: #18231c;
}

.aplus-stack {
  display: grid;
  gap: 18px;
}

.aplus-stack img {
  width: 100%;
  aspect-ratio: 61 / 25;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e0e5df;
  background: #f2f4f3;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
  .aplus-section {
    padding: 0 12px;
    margin-bottom: 42px;
  }

  .aplus-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .aplus-stack {
    gap: 12px;
  }

  .aplus-stack img {
    border-radius: 14px;
  }
}
