html, body {
  background: #fff !important;
  overflow-x: hidden !important;
}

/* Указываем box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
  padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
  
  /* min-height: 100vh; */
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class*/
ul[class],
ol[class] {
  list-style: none;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
  max-width: 100%;
  display: block;
}

/* Указываем понятную периодичность в потоке данных у article*/
article > * + * {
  margin-top: 1em;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
  font: inherit;
}

/* Удаляем все анимации и переходы для людей, которые предпочитай их не использовать */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}








.ibm-plex-mono-thin {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-mono-extralight {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-mono-light {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-mono-regular {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-mono-medium {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-mono-semibold {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-mono-bold {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-mono-thin-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 100;
  font-style: italic;
}

.ibm-plex-mono-extralight-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 200;
  font-style: italic;
}

.ibm-plex-mono-light-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 300;
  font-style: italic;
}

.ibm-plex-mono-regular-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: italic;
}

.ibm-plex-mono-medium-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-style: italic;
}

.ibm-plex-mono-semibold-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-style: italic;
}

.ibm-plex-mono-bold-italic {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-style: italic;
}








/* header */


.container{
  max-width: min(1160px, 95%);
  margin-left: auto;
  margin-right: auto;
  padding-top: 40px;
}

/* Добавляю отступ сверху для контейнера, чтобы контент не перекрывался шапкой */
/* .container {
  padding-top: 140px;
} */

.header_section{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 90px;
  background: #fff;
  z-index: 10000;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
  border-bottom: 1px solid #e5e5e5;
}
.header_side {
  width: 60px;
  height: 1px;
}
.a_logo {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 70px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}
.img_logo{
  height: 50px;
  width: 90px;
  margin-right: -30px;
  margin-left: auto;
  margin-top: auto;
  margin-bottom: auto;
  border-width: 1px;
  border-radius: 35px;
  border-color: rgb(155, 155, 155);
  
  border-style: solid;
  
}
.a_shop{
  margin-top:auto;
 margin-bottom: auto;
}
.img_shop_bag{
  opacity: 0.7;
  height: clamp(25px, 3vw, 35px);
  width: clamp(25px, 3vw, 35px);
 margin-right: 30px;
 margin-left: 10px;
 margin-top:auto;
 margin-bottom: auto;
}


/* main */



.grid-container  {
  max-width: 100%;
  margin: 40px auto 0 auto !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(15px, 2vw, 40px);
  padding: clamp(10px, 2vw, 20px);
}
.fst {
  margin-top: 0 !important;
}
.main-bascket{
  margin-top: 150px;
}

.product-card{
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: rgb(0, 0, 0);
}
.product-info{
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  align-items: center;
}
.product-image{
  width: 358px;
  height: 365px;
  border-style: solid;
  border-radius: 15px;
  border-width: 1px;
  border-color: rgb(100, 100, 100);
  transition-delay: 0ms;
  transition: transform 0.35s;
  transition-property: all;
}
.product-image:hover{
  border-color: white;
  -webkit-transform: scale(1.1);
  transform: scale(1.08);
}
.product-title{
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  text-align: center !important;
  
}
.product-description{
  font-family: "IBM Plex Mono", monospace;
  margin-top: 15px;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 200;
}
.product-price{
  font-family: "IBM Plex Mono", monospace;
  margin-top: 15px;
  font-size: clamp(14px, 1.3vw, 16px);
  font-weight: 400;
}
@media (max-width: 768px) {
  .grid-container {
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
  }
}

@media (max-width: 480px) {
  .product-card,
  .product-info,
  .product-image1 {
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .product-image1 {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
  }
}

@media (max-width: 480px) {
  body {
    background: #fafafa;
  }
  .header_section {
    height: 80px;
  }
  .container {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 0 10px 0;
    margin-top: 70px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .product-card {
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    border: none;
    align-items: center;
    padding-bottom: 12px;
    box-sizing: border-box;
  }
  .product-image1 {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 0;
    background: none;
    border: none;
  }
  .product-info {
    background: none;
    border: none;
    box-shadow: none;
  }
  .product-title, .product-description, .product-price {
    text-align: center;
  }
}

/* Footer */

footer {
    margin-top: clamp(60px, 8vh, 120px);
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2vw, 30px);
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}
.oferta-button {
  font-family: "IBM Plex Mono", monospace;
  background-color: rgb(255, 255, 255);
  
  color: rgb(0, 0, 0);
  border: none;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  margin-left: 15px;
  transition: background-color 0.7s;
  margin: 0;
}

.oferta-button:hover {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.img_kont{
  height: 50px;
  width: 50px;
}

footer a {
    font-family: "IBM Plex Mono", monospace;
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.7s;
    margin: 0;
}

footer a:hover {
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}





/* Jacket */


.main_jacket{
  display: flex;
  flex-direction: row;
  margin-top:150px;
  
  
}
.photo_sec{
  width: 50%;
}
.descrip_sec{
  width: 50%;
  padding: 10px;
}

.txt_des{
  font-family:"IBM Plex Mono", monospace ;
  font-weight: 600;
  font-size: 24px;
}
.price_des{
  margin-top: 20px;
  font-family:"IBM Plex Mono", monospace ;
  font-size: 22px;
  font-weight: 400;
}
.about_des{
  margin-top: 30px;
  font-family:"IBM Plex Mono", monospace ;
  font-size: 16px;
  font-weight: 300;
  
}
.img_corusel{
  width: 300px;
  height: 400px;
}






/* Style the label */
label {
  font-family:"IBM Plex Mono", monospace ;
  font-size: 18px;
  color: #333;
}

/* Style the select wrapper for custom arrow */
.select-wrapper {
  position: relative;
  display: inline-block;
  
}

/* Create a custom arrow for the dropdown */
.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ffffff;
  pointer-events: none;
}

/* Style the select element */
select {
  font-family:"IBM Plex Mono", monospace ;
  font-weight: 600;
  padding: 10px;
  font-size: 16px;
  color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #b6b6b6;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px; /* Space for the arrow */
  min-width: 130px;
  transition: border-color 0.3s ease;
}
/* Hover and focus effects */
select:hover {
  border-color: #666;
  
}

select:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  
}

/* Align label and select using flexbox */
.size-selector {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
  
}

.price{
  margin-right:20px;
}


.buy-section {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-right: 20px;
}

.total-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 20px;
    margin: 30px 0;
    background-color: white;
    /* border: 1px solid rgb(155, 155, 155); */
    /* border-radius: 35px; */
}

.total-text {
    font-family: "IBM Plex Mono", monospace;
    font-size: 24px;
    font-weight: 300;
    margin-right: 30px;
    color: black;
}

.total-price {
    font-family: "IBM Plex Mono", monospace;
    font-size: 28px;
    font-weight: 600;
    color: black;
    min-width: 120px;
    text-align: right;
    padding: 10px 20px;
    background-color: #f8f8f8;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.total-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.buy-button {
  font-family:"IBM Plex Mono", monospace ;
  font-weight: 400;
  margin-top: 20px;
  background-color: #2c2c2c; /* Green background */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
display: block;
margin-right: 20px;

  
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.buy-button:hover {
  background-color: #000000; /* Darker green on hover */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  
}

.buy-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.2); /* Custom focus ring */
}

.buy-button1 {
  font-family:"IBM Plex Mono", monospace ;
  font-weight: 400;
  margin-top: 20px;
  background-color: #2c2c2c; /* Green background */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  font-size: 16px;

  
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.buy-button1:hover {
  background-color: #000000; /* Darker green on hover */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  
}

.buy-button1:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.2); /* Custom focus ring */
}

/* Container for total and buy button */
.checkout-container {
    position: sticky;
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 35px;
    margin-top: 20px;
    z-index: 100;
}

/* Basket Styles */
main {
    margin: 60px 0 50px 0;
}

.product-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgb(155, 155, 155);
    border-radius: 35px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: white;
    max-width: 100%;
    height: 120px;
}

.product-image {
    flex: 0 0 auto;
    margin-right: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image1 {
  width: 182.5px !important;
  height: 227px !important;
  aspect-ratio: unset !important;
  object-fit: cover;
  display: block;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    border: 0px solid rgb(155, 155, 155);
}
.product-image1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid rgb(155, 155, 155);
}

.product-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.product-name {
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: black;
    flex: 1;
    margin-right: 20px;
}

.product-size {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin-right: 20px;
}

.img_bascket {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.price {
    font-family: "IBM Plex Mono", monospace;
    font-size: 20px;
    font-weight: 400;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}


.quantity-btn {
    width: 30px;
    height: 30px;
    border: 2px solid rgb(155, 155, 155);
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    display: flex;
    font-family: "IBM Plex Mono", monospace;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.3s;
    font-weight: bold;
}

.quantity-btn:hover {
    background-color: #f0f0f0;
}

.quantity {
    font-size: 14px !important;
    width: 32px !important;
    height: 32px !important;
    text-align: center !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: "IBM Plex Mono", monospace;
    font-size: 1.1rem;
    min-width: 25px;
    font-weight: bold;
    text-align: center;

    margin: 0 4px !important;
    padding: 0 2px !important;
    appearance: textfield !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .quantity::-webkit-outer-spin-button,
  .quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.logo_txt {
  font-family: 'PlayfairDisplayVar', serif !important;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 400;
  font-style: normal;
  color: black;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.empty-basket-message {
    font-family: "IBM Plex Mono", monospace;
    font-size: 24px;
    font-weight: 300;
    color: #666;
    text-align: center;
    margin: 50px 0;
    padding: 20px;
}

/* Media Queries */
@media screen and (max-width: 1280px) {
}

@media screen and (max-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main_jacket {
        flex-direction: column;
        gap: 30px;
    }

    
    .photo_sec, .descrip_sec {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .header_section {
        height: 80px;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
  button, 
  .quantity-btn,
  .close-button {
      min-height: 15px;
      min-width: 15px;
  }
}
@media screen and (max-width: 480px) {
    .header_section {
        height: 60px;
    }
    .logo_txt {
      font-size: 25px;
    }
    .quantity-controls{
      display: flex;
      flex-direction: column-reverse;
      gap: 3px;
    }
    .price{
      margin-right: 30px;
    }
    .quantity-btn{
      height: 15px;
      width: 15px;
    }
    .product-name{
      font-size: 14px;
    }
    .grid-container {
        grid-template-columns: -1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .slideshow-container {
        max-width: 100%;
    }
    
    .img_corusel {
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 320px) {
    .header_section {
        height: 50px;
    }
    
    .grid-container {
        gap: 10px;
        padding: 5px;
    }
}

/* Improve touch t

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    position: relative;
    border-radius: 5px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

.oferta-text {
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.6;
    color: #333;
}

.oferta-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.oferta-text h3 {
    font-size: 18px;
    margin: 20px 0 10px;
}

.oferta-text p {
    margin-bottom: 10px;
}

.oferta-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.oferta-text li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .oferta-text h2 {
        font-size: 20px;
    }

    .oferta-text h3 {
        font-size: 16px;
    }
    .price{
      font-size: 14px;
    }
}

/* Carousel/swipe support for .img_corusel */
.img_corusel {
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

/* Optional: Hide overflow for carousel container */
.img_corusel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.logo_txt, .product-card, .product-info, .product-image1, .oferta-button, footer a, .social-links, footer {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Слайдер товаров и модальное фото */
.mySlides {display: none;}
img {vertical-align: middle;}
.slideshow-container {
  max-width: 400px;
  position: relative;
  margin: auto;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 25px;
  user-select: none;
}
.next { right: 0; border-radius: 25px; }
.prev:hover, .next:hover { background-color: #444444; }
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #e6e6e6;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active, .dot:hover { background-color: #2c2c2c; }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
}
.close, .close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 10;
}
.close:hover, .close:focus, .close-button:hover, .close-button:focus {
  color: black;
  text-decoration: none;
}

/* Форма заказа */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
}
.form-group textarea { height: 100px; resize: vertical; }
.order-button {
  background-color: #000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  margin-top: 10px;
}
.order-button:hover { background-color: #333; }

/* Корзина и шоп */
.basket-count {
  position: absolute;
  top: -8px;
  right: 7px;
  background-color: black;
  color: white;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a_shop { position: relative; }

/* Описание товара */
.txt_des {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  font-size: 24px;
}
.price_des {
  margin-top: 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  font-weight: 400;
}
.about_des {
  margin-top: 30px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 300;
}
.size-selector {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: start;
}
.select-wrapper {
  position: relative;
  display: inline-block;
}
.select-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #ffffff;
  pointer-events: none;
}
select {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  padding: 10px;
  font-size: 16px;
  color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #b6b6b6;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
  min-width: 130px;
  transition: border-color 0.3s ease;
}
select:hover { border-color: #666; }
select:focus { outline: none; box-shadow: 0 0 5px rgba(0,0,0,0.2); }



/* --- FLEX-раскладка только для product-страниц --- */
.products-page .product-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 40px;
  justify-content: center;
}
.products-page .photo_sec {
  width: 50%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.products-page .descrip_sec {
  width: 50%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
@media (max-width: 768px) {
  .products-page .product-card {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .products-page .photo_sec, .products-page .descrip_sec {
    width: 100% !important;
    max-width: none !important;
  }
}

/* === Единые отступы для описания товара === */
.descrip_sec > * {
  margin-top: 20px;
  margin-bottom: 0;
}
.descrip_sec > .txt_des {
  margin-top: 0;
}

/* --- Размер фото и отступы только для главной страницы --- */
.grid-container .product-image1 {
  width: 300px !important;
  height: 365px !important;
}
.grid-container {
  /* margin-top: 170px !important; */
}

@media (max-width: 480px) {
  .grid-container .product-image1 {
    width: 90vw !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    margin: 0 auto !important;
  }
}

@media (min-width: 481px) {
  .products-page .container {
    padding-top: 80px !important;
  }
  .products-page .main_jacket {
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .products-page .container {
    padding-top: 30px !important;
  }
  .products-page .main_jacket {
    margin-top: 0 !important;
  }
  .quantity-btn {
    width: 72px !important;
    height: 72px !important;
    background: transparent !important;
    color: #000 !important;
    font-size: 2.5rem !important;
    border: 2px solid #000 !important;
  }
}

@font-face {
  font-family: 'DidotBold';
  src: url('/fonts/didot_bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'PlayfairDisplayVar';
  src: url('/fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

#closeImgModal {
  color: #fff !important;
  text-shadow: 0 2px 8px #000, 0 0 2px #000;
  font-size: 44px !important;
  font-weight: bold;
  z-index: 10001;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  position: absolute;
  top: 110px;
  right: 30px;
}
@media (max-width: 600px) {
  #closeImgModal {
    top: 120px;
    right: 16px;
    font-size: 36px !important;
  }
}
#closeImgModal:hover {
  color: #ff5252 !important;
}


