.product_page {
  display: grid;
  gap: 18px;
  padding-bottom: 56px;
}

.product_head {
  margin-top: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid #d7dde7;
  border-top: 4px solid #d92b2b;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  box-shadow: 0 10px 24px rgba(16, 24, 36, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.product_overline {
  margin: 0 0 8px;
  color: #6d7788;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product_head h1 {
  margin: 0;
  line-height: 1.15;
}

.product_head_note {
  margin: 10px 0 0;
  color: #49586e;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.product_back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #d4dbe6;
  background: #fff;
  color: #223146;
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.product_back:hover {
  border-color: #c6cfdb;
  box-shadow: 0 7px 14px rgba(18, 28, 43, 0.08);
}

.product_main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

.product_gallery,
.product_sidebar > *,
.product_specs,
.product_description {
  border-radius: 16px;
  border: 1px solid #d7dee8;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 26, 38, 0.08);
}

.product_gallery {
  padding: 16px;
}

.product_main_img_wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  border: 1px solid #d4dbe6;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 100%);
}

.product_main_img_wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.product_stock_badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.product_stock_badge.is-instock {
  color: #0e6b40;
  background: #e9fbf2;
  border-color: #bde8d1;
}

.product_stock_badge.is-out {
  color: #9a2323;
  background: #fff0f0;
  border-color: #f0c8c8;
}

.product_zoom_btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(10, 18, 30, 0.64);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(3px);
}

.product_zoom_btn:hover {
  background: rgba(10, 18, 30, 0.78);
}

.product_thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 10px;
}

.product_thumb {
  border: 1px solid #d3dae5;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product_thumb:hover {
  border-color: #bcc8d8;
  box-shadow: 0 8px 16px rgba(19, 28, 44, 0.12);
  transform: translateY(-1px);
}

.product_thumb.is-active {
  border-color: #d92b2b;
  box-shadow: 0 0 0 2px rgba(217, 43, 43, 0.16);
}

.product_thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.product_block_title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: #1a273a;
}

.product_video {
  margin-top: 14px;
  border: 1px solid #d6dde7;
  border-radius: 12px;
  background: #f7f9fc;
  padding: 12px;
}

.product_video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  display: block;
}

.product_sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 14px;
}

.product_buybox,
.product_meta,
.product_accessories {
  padding: 14px;
}

.product_status_row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.product_status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.product_status.is-instock {
  color: #0e6b40;
  background: #e9fbf2;
  border-color: #bde8d1;
}

.product_status.is-out {
  color: #9a2323;
  background: #fff0f0;
  border-color: #f0c8c8;
}

.product_sku {
  color: #667487;
  font-size: 0.82rem;
  font-weight: 700;
}

.product_wishlist_btn {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #d6dde8;
  background: #fff;
  color: #24354f;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.product_wishlist_btn:hover {
  border-color: #d92b2b;
  box-shadow: 0 10px 22px rgba(18, 28, 43, 0.08);
}

.product_wishlist_btn.is-active {
  border-color: #d92b2b;
  background: #fff2f2;
  color: #b31717;
}

.product_wishlist_icon {
  font-size: 1.15rem;
  line-height: 1;
}

.product_price {
  margin-top: 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1;
  font-weight: 900;
  color: #121f31;
}

.product_buy_btn {
  width: 100%;
  margin-top: 14px;
  min-height: 48px;
  border: 1px solid #b81f1f;
  border-radius: 11px;
  background: linear-gradient(180deg, #e33f3f 0%, #c92525 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.product_buy_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(176, 31, 31, 0.25);
  filter: saturate(1.04);
}

.product_buy_btn.is-disabled,
.product_buy_btn:disabled {
  cursor: not-allowed;
  border-color: #d7dde7;
  background: #eef2f6;
  color: #7a889b;
  box-shadow: none;
  transform: none;
}

.product_benefits {
  margin-top: 14px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.product_benefits li {
  display: flex;
  gap: 8px;
  color: #4e5d72;
  font-size: 0.88rem;
}

.product_benefits li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d92b2b;
  margin-top: 0.47rem;
  flex-shrink: 0;
}

.product_meta_list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.product_meta_list > div {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5eaf1;
}

.product_meta_list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product_meta_list dt {
  margin: 0;
  color: #6d7788;
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product_meta_list dd {
  margin: 0;
  color: #1c2b3f;
  font-size: 0.93rem;
  font-weight: 700;
}

.goods_accessories h4 {
  margin: 0 0 10px;
  color: #1a273a;
  font-size: 1rem;
  font-weight: 800;
}

.goods_accessories {
  display: grid;
  gap: 8px;
}

.accessor_wrap {
  margin: 0;
}

.accessor {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-decoration: none;
  border: 1px solid #dde4ee;
  border-radius: 10px;
  background: #f8fafc;
  padding: 7px;
}

.accessor:hover {
  border-color: #ced8e4;
  background: #f3f6fa;
}

.accessor img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 7px;
}

.accessor_text {
  color: #24344a;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}

.product_specs,
.product_description {
  padding: 18px;
}

.product_section_head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.product_section_head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
}

.product_section_head p {
  margin: 0;
  color: #68778c;
  font-size: 0.86rem;
  font-weight: 700;
}

.product_specs table {
  width: 100%;
  border-collapse: collapse;
}

.product_specs tr {
  border-bottom: 1px solid #e2e8f0;
}

.product_specs tr:last-child {
  border-bottom: 0;
}

.product_specs th,
.product_specs td {
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.product_specs th {
  width: 44%;
  color: #67778d;
  font-size: 0.87rem;
  font-weight: 700;
}

.product_specs td {
  color: #1b293c;
  font-size: 0.92rem;
  font-weight: 700;
}

.product_description .text {
  color: #33445a;
  line-height: 1.68;
}

.product_description .text p {
  color: #3d4f66;
}

.product_description .text > * + * {
  margin-top: 10px;
}

.product_description .text a {
  color: #c62525;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product_description .text ul,
.product_description .text ol {
  margin: 10px 0 0;
  padding-left: 18px;
}

.product_description .text ul {
  list-style: disc;
}

.product_description .text ol {
  list-style: decimal;
}

.product_description .text li {
  margin: 5px 0;
}

.product_description .text img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.product_description .text table {
  max-width: 100%;
  width: 100% !important;
  border-collapse: collapse;
  border: 1px solid #dde5ef;
  margin: 12px 0;
}

.product_description .text table td,
.product_description .text table th {
  border: 1px solid #dde5ef;
  padding: 8px;
  font-size: 0.88rem;
}

@media (max-width: 1120px) {
  .product_main {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 980px) {
  .product_head {
    padding: 14px;
    border-radius: 13px;
    flex-direction: column;
  }

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

  .product_sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .product_page {
    gap: 14px;
    padding-bottom: 30px;
  }

  .product_gallery,
  .product_sidebar > *,
  .product_specs,
  .product_description {
    border-radius: 12px;
  }

  .product_gallery,
  .product_buybox,
  .product_meta,
  .product_accessories,
  .product_specs,
  .product_description {
    padding: 12px;
  }

  .product_stock_badge {
    top: 8px;
    left: 8px;
  }

  .product_zoom_btn {
    right: 8px;
    bottom: 8px;
    font-size: 0.75rem;
  }

  .product_price {
    font-size: 1.8rem;
  }

  .product_specs th,
  .product_specs td {
    display: block;
    width: 100%;
    padding: 6px 6px;
  }

  .product_specs th {
    padding-bottom: 2px;
  }

  .product_specs td {
    padding-top: 0;
    padding-bottom: 10px;
  }
}

.storefront_help_sections {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  margin-top: 26px;
}

.storefront_links_block,
.storefront_faq_block {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at top right, rgba(200, 31, 37, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(186, 201, 221, 0.72);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.storefront_links_block::before,
.storefront_faq_block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #16345f 0%, #c81f25 100%);
  opacity: 0.95;
}

.storefront_service_links::before {
  background: linear-gradient(90deg, #16345f 0%, #4d74b8 100%);
}

.storefront_related_links::before {
  background: linear-gradient(90deg, #16345f 0%, #c81f25 70%, #e9b44c 100%);
}

.storefront_faq_block::before {
  background: linear-gradient(90deg, #16345f 0%, #89a6d8 100%);
}

.storefront_links_block h2,
.storefront_faq_block h2 {
  margin: 0 0 18px;
  padding-right: 38px;
  font-size: clamp(1.1rem, 1.2vw, 1.28rem);
  line-height: 1.2;
  color: #16345f;
}

.storefront_links_block ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.storefront_links_block li,
.storefront_faq_block details {
  margin: 0;
}

.storefront_links_block a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 110px;
  padding: 18px 18px 16px;
  color: #16345f;
  text-decoration: none;
  border-radius: 18px;
  border: 1px solid rgba(195, 208, 227, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 246, 253, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.storefront_links_block a:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 31, 37, 0.3);
  box-shadow: 0 16px 30px rgba(19, 45, 82, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

.storefront_link_content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.storefront_link_title {
  display: block;
  font-size: clamp(1rem, 1.05vw, 1.14rem);
  line-height: 1.3;
  font-weight: 800;
  color: #16345f;
}

.storefront_link_desc {
  display: block;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #627898;
}

.storefront_link_icon {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16345f 0%, #244a84 100%);
  box-shadow: 0 10px 18px rgba(22, 52, 95, 0.22);
}

.storefront_related_links .storefront_link_icon {
  background: linear-gradient(135deg, #c81f25 0%, #16345f 100%);
}

.storefront_link_icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
}

.storefront_faq_block details + details {
  margin-top: 12px;
}

.storefront_faq_block details {
  border: 1px solid rgba(197, 210, 229, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.storefront_faq_block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 800;
  color: #16345f;
}

.storefront_faq_block summary span {
  min-width: 0;
}

.storefront_faq_block summary::-webkit-details-marker {
  display: none;
}

.storefront_faq_block summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #edf3fb;
  color: #16345f;
  font-size: 1.15rem;
  font-weight: 500;
  flex: 0 0 auto;
}

.storefront_faq_block details[open] summary::after {
  content: "−";
  background: #16345f;
  color: #fff;
}

.storefront_faq_block p {
  margin: 0;
  padding: 0 18px 18px;
  color: #596f8d;
  line-height: 1.7;
}

@media (min-width: 900px) {
  .storefront_links_block ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .storefront_help_sections {
    margin-top: 22px;
  }

  .storefront_links_block,
  .storefront_faq_block {
    padding: 16px;
    border-radius: 20px;
  }

  .storefront_links_block h2,
  .storefront_faq_block h2 {
    margin-bottom: 14px;
    padding-right: 0;
  }

  .storefront_links_block a {
    min-height: 96px;
    padding: 14px;
    gap: 12px;
    border-radius: 16px;
  }

  .storefront_link_desc {
    font-size: 0.9rem;
  }

  .storefront_link_icon {
    width: 38px;
    height: 38px;
  }

  .storefront_faq_block summary {
    padding: 14px;
    font-size: 0.96rem;
  }

  .storefront_faq_block p {
    padding: 0 14px 14px;
    font-size: 0.94rem;
  }
}
