body.is-product-single-page .site-frame {
   overflow-x: clip;
}

@media (max-width: 768px) {
   body.is-product-single-page {
      padding: 0;
   }

   body.is-product-single-page .site-frame {
      border-radius: 0;
   }

   .mytheme-product-page {
      overflow-x: clip;
   }
}

.mytheme-product-page {
   padding: 34px var(--header-pad-x, 40px) 58px;
      radial-gradient(circle at top right, rgba(242, 183, 5, 0.12), transparent 24%),
      linear-gradient(180deg, #1f1f1f 0%, var(--catalog-bg, #1f1f1f) 100%);
   color: var(--catalog-text, #f5f7ff);
   width: 100%;
   max-width: 100%;
   overflow-x: clip;
}

.mytheme-product-page .container {
   max-width: 1320px;
   width: 100%;
   min-width: 0;
   margin: 0 auto;
}



.mytheme-product-page .woocommerce-notices-wrapper {

   margin-bottom: 24px;

}



.mytheme-product-page__breadcrumbs {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   align-items: center;
   margin-bottom: 22px;
   color: var(--catalog-muted, rgba(245, 247, 255, 0.72));
   font-size: 14px;
   min-width: 0;
   max-width: 100%;
}



.mytheme-product-page__breadcrumbs a {

   color: #fff;

   text-decoration: none;

   transition: color 0.2s ease;

}



.mytheme-product-page__breadcrumbs a:hover {

   color: var(--catalog-accent, #f2b705);

}



.mytheme-product-page__hero {
   display: grid;
   grid-template-columns: minmax(0, 1fr);
   gap: 20px;
   align-items: start;
   width: 100%;
   min-width: 0;
}

.mytheme-product-gallery,
.mytheme-product-summary,
.mytheme-product-tabs {
   background: #fff;
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 20px;
   box-shadow: var(--catalog-shadow, 0 24px 60px rgba(0, 0, 0, 0.28));
   min-width: 0;
   max-width: 100%;
}



.mytheme-product-gallery {

   padding: 22px;

}



.mytheme-product-gallery__stage {
   position: relative;
   border-radius: 16px;
   overflow: hidden;
   background: #f7f7f7;
   aspect-ratio: 1;
   min-height: 360px;
   width: 100%;
   max-width: 100%;
}



.mytheme-product-gallery__image {
   width: 100%;
   max-width: 100%;
   height: 100% !important;
   object-fit: contain;
   display: block;
   padding: 18px;
   box-sizing: border-box;
}



.mytheme-product-gallery__placeholder {

   width: 100%;

   height: 100%;

   display: grid;

   place-items: center;

   padding: 32px;

   text-align: center;

   color: #56647e;

   font-size: 16px;

   font-weight: 600;

}



.mytheme-product-gallery__counter {

   position: absolute;

   right: 18px;

   bottom: 18px;

   display: inline-flex;

   align-items: center;

   gap: 8px;

   padding: 9px 14px;

   border-radius: 999px;

   background: rgba(31, 31, 31, 0.78);

   color: #fff;

   font-size: 13px;

   font-weight: 600;

   backdrop-filter: blur(10px);

}



.mytheme-product-gallery__thumbs {

   display: grid;

   grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));

   gap: 12px;

   margin-top: 18px;

}



.mytheme-product-gallery__thumb {

   position: relative;

   border: 0;

   background: #f3f3f3;

   border-radius: 12px;

   overflow: hidden;

   cursor: pointer;

   aspect-ratio: 1;

   padding: 0;

   box-shadow: inset 0 0 0 2px transparent;

   transition: transform 0.2s ease, box-shadow 0.2s ease;

}



.mytheme-product-gallery__thumb:hover,

.mytheme-product-gallery__thumb.is-active {

   transform: translateY(-2px);

   box-shadow: inset 0 0 0 2px var(--catalog-accent, #f2b705), 0 10px 16px rgba(0, 0, 0, 0.12);

}



.mytheme-product-gallery__thumb img {

   width: 100%;

   height: 100%;

   object-fit: contain;

   display: block;

   padding: 8px;

   box-sizing: border-box;

}



.mytheme-product-summary {

   padding: 32px 36px 36px;

   position: sticky;

   top: calc(var(--product-category-sticky-top, 96px) + 12px);

   display: flex;

   flex-direction: column;

   gap: 0;

}



.mytheme-product-summary__meta {

   display: flex;

   flex-wrap: wrap;

   gap: 10px;

   margin-bottom: 20px;

}



.mytheme-product-summary__category {

   display: inline-flex;

   align-items: center;

   gap: 8px;

   border-radius: 999px;

   background: rgba(242, 183, 5, 0.14);

   color: #8a6700;

   padding: 8px 14px;

   font-size: 13px;

   font-weight: 700;

   text-decoration: none;

}



.mytheme-product-summary__category:hover {

   background: rgba(242, 183, 5, 0.22);

}



.mytheme-product-summary__title {
   margin: 0 0 28px;
   padding-bottom: 16px;
   color: #111726;
   font-size: clamp(24px, 5vw, 40px);
   line-height: 1.12;
   position: relative;
   display: block;
   max-width: 100%;
   overflow-wrap: anywhere;
}



.mytheme-product-summary__title::after {

   content: "";

   position: absolute;

   left: 0;

   bottom: 0;

   width: 72px;

   height: 3px;

   background: var(--catalog-accent, #f2b705);

}



.mytheme-product-summary__subtitle {

   color: #56647e;

   font-size: 17px;

   line-height: 1.6;

   margin: 18px 0 22px;

}



.mytheme-product-summary__quick-specs {

   display: grid;

   gap: 10px;

   margin-bottom: 22px;

}



.mytheme-product-summary__quick-spec {

   display: grid;

   grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.4fr);

   gap: 12px;

   padding: 12px 14px;

   border-radius: 14px;

   background: #f8fafd;

   border: 1px solid #e8edf4;

}



.mytheme-product-summary__quick-spec-label {

   color: #56647e;

   font-size: 14px;

}



.mytheme-product-summary__quick-spec-value {

   color: #111726;

   font-weight: 600;

}



.mytheme-product-summary__price {

   padding: 28px 26px 30px;

   border-radius: 18px;

   background: linear-gradient(180deg, #fff9e8 0%, #fff4d1 100%);

   border: 1px solid rgba(242, 183, 5, 0.28);

   margin-top: auto;

}



.mytheme-product-summary__price-label {

   color: #56647e;

   font-size: 14px;

   margin-bottom: 14px;

}



.mytheme-product-summary__price-value {

   color: #111726;

   font-size: clamp(32px, 3.6vw, 44px);

   line-height: 1;

   font-weight: 800;

   margin-bottom: 20px;

}



.mytheme-product-summary__actions {

   display: grid;

   grid-template-columns: 1fr;

   gap: 14px;

   margin-top: 0;

}



.mytheme-product-summary__actions .btn-primary {

   width: 100%;

   min-height: 52px;

   padding: 0 20px;

   font-size: 16px;

}



.mytheme-product-page--catalog .mytheme-product-summary__price-note,

.mytheme-product-page--catalog .mytheme-product-gallery__sticker,

.mytheme-product-page--catalog .mytheme-product-summary__eyebrow,

.mytheme-product-page--catalog .mytheme-product-summary__facts,

.mytheme-product-page--catalog .mytheme-product-advantages {

   display: none;

}



.mytheme-product-tabs {

   margin-top: 24px;

   padding: 28px;

}



.mytheme-product-tabs__nav {

   display: flex;

   gap: 10px;

   flex-wrap: wrap;

   margin-bottom: 24px;

   padding-bottom: 18px;

   border-bottom: 1px solid #e8edf4;

}



.mytheme-product-tabs__button {

   border: 1px solid #e8edf4;

   background: #fff;

   color: #56647e;

   border-radius: 999px;

   padding: 12px 18px;

   cursor: pointer;

   font-size: 15px;

   font-weight: 700;

   transition: all 0.2s ease;

}



.mytheme-product-tabs__button:hover,

.mytheme-product-tabs__button.is-active {

   background: rgba(242, 183, 5, 0.12);

   color: #111726;

   border-color: rgba(242, 183, 5, 0.35);

}



.mytheme-product-tabs__panel {

   display: none;

   scroll-margin-top: calc(var(--product-category-sticky-top, 96px) + 24px);

}



.mytheme-product-tabs__panel.is-active {

   display: block;

}



.mytheme-product-copy {

   color: #49566d;

   font-size: 16px;

   line-height: 1.8;

}



.mytheme-product-specs {

   display: grid;

   grid-template-columns: repeat(2, minmax(0, 1fr));

   gap: 16px;

}



.mytheme-product-specs__item {

   display: flex;

   justify-content: space-between;

   gap: 18px;

   align-items: flex-start;

   padding: 16px 18px;

   border-radius: 16px;

   background: #f8fafd;

   border: 1px solid #e8edf4;

}



.mytheme-product-specs__label {

   color: #56647e;

}



.mytheme-product-specs__value {

   color: #111726;

   font-weight: 700;

   text-align: right;

}



.mytheme-product-empty {

   padding: 20px 22px;

   border-radius: 16px;

   background: #f8fafd;

   border: 1px dashed #d7dee9;

   color: #56647e;

}



.mytheme-product-related-section {

   margin-top: 24px;

}



.mytheme-product-related-section__title {

   margin: 0 0 18px;

   color: #fff;

   font-size: 28px;

   position: relative;

   display: inline-block;

}



.mytheme-product-related-section__title::after {

   content: "";

   position: absolute;

   left: 0;

   bottom: -8px;

   width: 72px;

   height: 3px;

   background: var(--catalog-accent, #f2b705);

}



.mytheme-product-related {

   display: grid;

   grid-template-columns: repeat(4, minmax(0, 1fr));

   gap: 18px;

}



.mytheme-product-related__card {

   position: relative;

   display: flex;

   flex-direction: column;

   background: #fff;

   border: 1px solid rgba(255, 255, 255, 0.08);

   border-radius: 16px;

   overflow: hidden;

   box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);

   cursor: pointer;

}



.mytheme-product-related__link {

   position: absolute;

   inset: 0;

   z-index: 1;

}



.mytheme-product-related__image {

   display: block;

   aspect-ratio: 1;

   background: #fff;

   padding: 16px;

   pointer-events: none;

}



.mytheme-product-related__image img {

   width: 100%;

   height: 100%;

   object-fit: contain;

}



.mytheme-product-related__body {

   display: flex;

   flex-direction: column;

   gap: 10px;

   padding: 16px;

   flex: 1;

   pointer-events: none;

}



.mytheme-product-related__title {

   color: #111726;

   font-weight: 700;

   text-decoration: none;

   font-size: 15px;

   line-height: 1.4;

}



.mytheme-product-related__price {

   color: #111726;

   font-size: 18px;

   font-weight: 800;

   margin-top: auto;

}



.mytheme-product-related__actions {

   position: relative;

   z-index: 2;

   pointer-events: auto;

}



.mytheme-product-related__actions .btn-primary {

   width: 100%;

   min-height: 44px;

}



@media (min-width: 1101px) {
   .mytheme-product-page__hero {
      grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
      gap: 24px;
   }
}

@media (max-width: 1100px) {
   .mytheme-product-summary {
      position: static;
   }

   .mytheme-product-related {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }
}

@media (max-width: 900px) {
   .mytheme-product-page {
      padding: 20px 16px 40px;
   }

   .mytheme-product-page__breadcrumbs {
      font-size: 12px;
      gap: 6px;
      margin-bottom: 16px;
   }

   .mytheme-product-gallery,
   .mytheme-product-tabs {
      padding: 16px;
      border-radius: 16px;
   }

   .mytheme-product-summary {
      padding: 20px 16px 22px;
      border-radius: 16px;
   }

   .mytheme-product-gallery__stage {
      min-height: 0;
      aspect-ratio: 1;
   }

   .mytheme-product-gallery__image {
      padding: 12px;
   }

   .mytheme-product-gallery__thumbs {
      grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
      gap: 10px;
   }

   .mytheme-product-summary__subtitle {
      font-size: 15px;
      margin: 14px 0 18px;
   }

   .mytheme-product-summary__price {
      padding: 20px 16px 22px;
   }

   .mytheme-product-summary__price-value {
      font-size: clamp(28px, 8vw, 36px);
   }

   .mytheme-product-tabs__nav {
      gap: 8px;
      margin-bottom: 18px;
   }

   .mytheme-product-tabs__button {
      padding: 10px 14px;
      font-size: 14px;
   }

   .mytheme-product-copy {
      font-size: 15px;
   }

   .mytheme-product-specs,
   .mytheme-product-related {
      grid-template-columns: 1fr;
   }

   .mytheme-product-summary__quick-spec {
      grid-template-columns: 1fr;
   }

   .mytheme-product-related-section__title {
      font-size: 22px;
   }
}

@media (max-width: 480px) {
   .mytheme-product-page {
      padding: 16px 12px 32px;
   }

   .mytheme-product-gallery,
   .mytheme-product-tabs {
      padding: 12px;
   }

   .mytheme-product-summary {
      padding: 16px 14px 18px;
   }

   .mytheme-product-summary__title {
      margin-bottom: 20px;
      padding-bottom: 12px;
   }

   .mytheme-product-summary__actions .btn-primary {
      min-height: 48px;
      font-size: 15px;
   }

   .mytheme-product-gallery__counter {
      right: 10px;
      bottom: 10px;
      padding: 7px 10px;
      font-size: 12px;
   }
}

