@font-face {
  font-family: 'sirenik';
  src: url('fonts/sirenik.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'tolkien';
  src: url('fonts/tolkien.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'prada';
  src: url('fonts/prada.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'geoform';
  src: url('fonts/geoform.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* {
    box-sizing: border-box;
}


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 75px;
  z-index: 10;
  background: rgba(0,0,0,0.65); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  font-family: sirenik, sans-serif;
  box-shadow: 0 -8px 10px 15px rgba(0, 0, 0, 0.50);
}

.cart-icon-wrapper {
  position: absolute;
  top: 20px;
  right: 32px;
  z-index: 10;
}

.cart-icon {
  transition: stroke 0.2s, fill 0.2s;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: 10px;
  right: 24px;
  background: #e91e63;
  color: #fff;
  border-radius: 50%;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: bold;
  min-width: 22px;
  text-align: center;
  z-index: 15;
  pointer-events: none;
}



.cart-icon-wrapper a:hover .cart-icon circle,
.cart-icon-wrapper a:hover .cart-icon path {
  stroke: #ff4f4f;
}

.cart-icon-wrapper a:hover .cart-icon circle:last-child,
.cart-icon-wrapper a:hover .cart-icon circle:nth-child(3) {
  fill: #ff4f4f;
}

@media (max-width: 480px) {
  header { height: 75px; }
}

a {
    text-decoration: none;
    color: rgb(15, 15, 15);
}

h1 a{
  color: #e6e6e6;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

html, body {
    height: 100%;
}
body{
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    padding-top: 75px;
}

.pre-container {
    justify-self: center;
}


.container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    margin-top: 2%;
    background: #e9e9e9;
    border-radius: 12px;
    box-shadow: 0px 0px 20px 1px rgba(0, 0, 0, 0.2);
    padding: 10px;
    box-sizing: border-box;
    gap: 1%;
    flex-wrap: wrap;
    justify-content: center;
}

.container section {
    display: flex;
}

.gallery {
    flex-direction: column;
    gap: 18px;
    width: 90px;
    max-width: 120px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
}
.gallery img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 13px;
    border: 2.5px solid #eaeaea;
    box-shadow: 0 0 0 transparent;
    transition: border .25s, box-shadow .2s, transform .17s;
    cursor: pointer;
}

.gallery img.selected, .gallery img:hover {
  border: 2px solid #e91e63;
  box-shadow: 0 0px 14px 0 #e91e632e;
  transform: scale(1.03);
  background: #faf4f9;
}


.main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 500px;
    width: 100%;
    min-height: 350px;
    border-radius: 20px;
    padding: 0px 14px 15px;
    margin: 0 18px 0 0;
}
.main-image img {
    width: 100%;
    max-width: 440px;
    min-height: 240px;
    object-position: center;
    border-radius: 16px;
    transition: box-shadow .3s;
}

.btn-cart {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
}
#buyAndGoToCartBtn, #addToCartBtn{
  height: 40px;
  width: 100%;
  border-radius: 6px;
  border: 6px;
  background: #fff;
  border: 1.6px solid #bdbdbd;
  border-radius: 6px;
  font-size: 1em;
  font-weight: 600;
  padding: 8px 17px;
  cursor: pointer;
  font-family: inherit;
  transition: border .2s, background .2s;
}

#addToCartBtn:hover {
  background: #e6e6e6;
  border-color: #e91e63;
}

#buyAndGoToCartBtn{
  background: #eb5c8e8a;
}

#buyAndGoToCartBtn:hover {
  background: #e6e6e6;
  border-color: #e91e63;
}

.main-image img.fade {
  opacity: 0;
  transition: opacity 0.19s;
}

@media (max-width: 700px) {
  section {
    flex-direction: column;
    align-items: center;
  }
  .main-image {
    order: 1;
    width: 98vw;
    max-width: 98vw;

    margin: 0;
  }
  .gallery {
    order: 2;
    flex-direction: row;
    gap: 8px;
    width: 91vw;
    justify-content: center;
    min-width: unset;
    max-width: 98vw;
    background: #fff;
    margin: 0;
    border-radius: 14px;
    box-shadow: 0 1.2px 7px #efeef918;
    padding: 7px 0;
    overflow-x: auto;
    border: 0.1px solid;
  }
  .gallery img {
    width: 63px;
    min-width: 45px;
    min-height: 45px;
    max-height: 79px;
    border-radius: 9px;
    padding: 2.5px;
  }
  .pre-container {
    justify-self: auto;
}
}


.info {
  flex: 1 1 250px;
  min-width: 320px;
  display: flex;
  max-width: 550px;
  width: 100%;
  flex-direction: column;
  font-family: geoform;
}

.collection {
  font-size: 0.97em;
  letter-spacing: 1px;
  color: #7a7a7a;
  margin-bottom: 6px;
}

.creator {
  font-size: 0.97em;
  color: #5a75c9;
  margin-left: 4px;
  text-decoration: none;
}

.info h1 {
  font-size: 2em;
  margin: 6px 0;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: geoform;
  text-align: center;
}

.price {
  font-size: 1.7em; 
  color: #1f1f1f;
  margin: 0;
  text-align: center;
}

.sizes {
  display: flex;
  gap: 10px;
  margin: 16px 0 16px 0;
  justify-content: center;
}

.sizes button {
  background: #fff;
  border: 1.6px solid #bdbdbd;
  border-radius: 6px;
  font-size: 1em;
  padding: 8px 17px;
  cursor: pointer;
  font-family: inherit;
  transition: border .2s, background .2s;
}

.sizes button:hover {
  background: #e6e6e6;
  border-color: #e91e63;
}

.sizes button.active {
  background: #e91e63;
  color: #fff;
  border-color: #e91e63;
}

.cart-btn {
  width: 100%;
  padding: 12px;
  background: #9c9c9c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.15em;
  margin: 10px 0;
  cursor: pointer;
  transition: background .2s;
}



.cart-btn:hover {
  background: #e91e63;
}

.subtitle {
  font-weight: bold;
  margin-top: 18px;
  margin-bottom: 7px;
  font-size: 1.13em;
}

.desc, .char {
  font-size: 1.05em;
  margin-bottom: 20px;
}

/* Секция также берут */
.also-section {
  border-radius: 10px;
  padding: 2%;
  margin: 2%;
  max-width: 1200px;
}

.also-title {
  font-size: 1.38em;
  margin-bottom: 20px;
  font-weight: bold;
}

.also-list {
  display: flex;
  gap: 1%;
}

.also-item {
  padding: 1%;
  text-align: center;
  transition: box-shadow .2s;
}

.also-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.also-item img {
  width: 54%;
  height: auto;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 8px;
}

.also-name {
  font-size: clamp(0.8rem, 1vw, 1.2rem);
  font-weight: 600;
  margin: 7px 0 5px 0;
}

.also-price {
  font-size: clamp(0.8rem, 1vw, 1.3rem);
  color: #e91e63;
  font-weight: bold;
}

.site-footer {
  background: black;
  padding: clamp(20px, 5vw, 60px) 0;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 24px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  align-items: start;
  justify-items: center;
  color: white;
}

.column {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.column img{
  color: #1f1f1f;
}

.brand {
  text-align: center;
  font-family: prada, serif;
  display: grid;
}

.brand h2{
  font-size: 2em;
  margin: 10px;
  margin-bottom: 0;
}

@media (max-width: 600px) {
    .brand h2{
    font-size: 3em;
    margin-top: 30px;
    }
  }
  

.brand p { font-family: geoform, sans-serif; font-size: clamp(0.5rem, 1vw, 1.3rem); margin-top: 0;}


@media (max-width: 600px) {
    .brand p{
    font-size: 1em;
    }
  }

.not-found {
    background-color: #333;
    border-radius: 10px;
    padding: 2%;
    padding-bottom: 4%;
    justify-self: center;
    width: 50%;
    font-size: 24px;
    text-align: center;
    margin-top: 3%;
    color: #ffffff;
}

.scroll-images {
  display: flex;
  flex-direction: row;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 97%;
  padding: 6px 0 16px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #e91e63 #fafafa;
  box-sizing: border-box;
  justify-content: center;
}

.scroll-images::-webkit-scrollbar {
  height: 8px;
  background: #fafafa;
}
.scroll-images::-webkit-scrollbar-thumb {
  background: #e91e63;
  border-radius: 8px;
}
.scroll-images::-webkit-scrollbar-track {
  background: #fafafa;
  border-radius: 8px;
}

.scroll-images img {
  flex: 0 0 auto;
  width: 200px;
  max-width: 50vw;
  height: 200px;
  max-height: 50vw;
  object-fit: cover;
  scroll-snap-align: center;
  transition: border .3s, box-shadow .3s, transform .2s;
  cursor: pointer;
}

@media (max-width: 768px) {
  .scroll-images img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .scroll-images {
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 6px 0 16px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #e91e63 #fafafa;
  box-sizing: border-box;
}
  }


.scroll-images img:hover {
  border: 2px solid #e91e63;
  box-shadow: 0 6px 32px rgba(233, 30, 99, 0.15);
  transform: scale(1.04);
}