:root {
  --body-color: #333231;
  --savanna-bg: #fafafa;
  --beach-bg: #fafafa;
  --glacier-bg: #fafafa;
  --coral-bg: #fafafa;
  --arrow-fill: #333231;
}

/* Typography */
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #333;
  margin: 0;
}

* {
  box-sizing: border-box;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--body-color);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0;
  margin: 0;
  width: 100%;
  min-height: 500px;
  height: auto;
  color: var(--body-color);
}

/* Main Container - Critical Changes */
.container {
  border-radius: 4px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: #fafafa;
  padding: 20px 30px;
  overflow: visible;
  position: relative;
  min-height: 500px;
  height: auto;
}

.logo {
  width: 116px;
}

.left-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 320px;
}

.mySwiper {
  display: flex;
  flex-grow: 1;
  position: relative;
  height: auto !important;
}

.main {
  padding: 30px 0;
  display: flex;
  flex-grow: 1;
  position: relative;
  min-height: 400px;
}

.main-header {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 4px;
  font-weight: 600;
  transition-delay: 0.2s;
}

.main-title {
  font-size: 60px;
  font-weight: 400;
  margin-top: 10px;
  line-height: 1em;
  transition-delay: 0.3s;
}

.main-subtitle {
  font-weight: 400;
  font-size: 28px;
  margin-top: 14px;
  margin-bottom: 40px;
  transition-delay: 0.4s;
}

.main-content__title {
  font-size: 22px;
  font-style: italic;
  margin-bottom: 14px;
  transition-delay: 0.2s;
}

.main-content__subtitle {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  transition-delay: 0.3s;
}

.center {
  display: flex;
  margin-left: 80px;
  position: relative;
  flex-shrink: 0;
}

.center .bottle-bg {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 20px;
}

.swiper-pagination {
  position: absolute;
  right: 30px;
  left: auto;
  top: 100px;
  width: auto;
  bottom: auto;
  z-index: 2;
  font-size: 14px;
  font-weight: 500;
}

.button-wrapper {
  position: absolute;
  right: 30px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  align-items: center;
}

.button-wrapper svg {
  width: 28px;
}

.button-wrapper .swiper-button {
  border: 1px solid var(--body-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, var(--body-color) 40%, transparent 0%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: all 0.3s ease-out;
  cursor: pointer;
}

.button-wrapper .swiper-button + .swiper-button {
  margin-left: 16px;
}

.button-wrapper .swiper-button:hover {
  background-color: var(--body-color);
  background-position: left bottom;
}

.button-wrapper .swiper-button:hover svg {
  stroke: #fff;
}

.button-wrapper .swiper-prev-button {
  background: linear-gradient(to left, var(--body-color) 40%, transparent 0%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition: all 0.3s ease-out;
}

.button-wrapper .swiper-prev-button svg {
  transform: rotate(-180deg);
}

.button-wrapper .swiper-prev-button:hover {
  background-position: right bottom;
}

/* Swiper Transitions */
.swiper-slide {
  opacity: 0 !important;
  transition: 0.4s;
}

.swiper-slide-active {
  opacity: 1 !important;
}

.swiper-slide .main-wrapper > *,
.swiper-slide .main-content > * {
  transform: translateY(-30px);
  opacity: 0;
  transition-duration: 0.8s;
}

.swiper-slide-active .main-wrapper > *,
.swiper-slide-active .main-content > * {
  transform: none;
  opacity: 1;
}

.swiper-slide .bottle-bg {
  transition-duration: 0.6s;
  opacity: 0;
  object-position: 60%;
}

.swiper-slide-active .bottle-bg {
  opacity: 1;
  transform: none;
  object-position: 50%;
}

/* Responsive Breakpoints */
@media screen and (max-width: 1024px) {
  .main-title {
    font-size: 50px;
  }
  
  .center {
    margin-left: 40px;
  }
}

@media screen and (max-width: 930px) {
  .container {
    padding: 15px;
  }
  
  .left-side {
    text-align: center;
    max-width: 100%;
    margin-bottom: 30px;
  }
  
  .main {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 0;
  }
  
  .main-title {
    font-size: 42px;
  }
  
  .main-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
  }
  
  .center {
    margin-left: 0;
    margin-bottom: 30px;
  }
  
  .center .bottle-bg {
    max-height: 300px;
  }
  
  .button-wrapper {
    position: relative;
    right: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 20px;
    padding: 0;
  }
  
  .swiper-pagination {
    position: relative;
    right: auto;
    top: auto;
    text-align: center;
    margin: 20px 0;
  }
}

@media screen and (max-width: 575px) {
  .main-title {
    font-size: 36px;
  }
  
  .main-subtitle {
    font-size: 20px;
  }
  
  .main-content__title {
    font-size: 18px;
  }
  
  .center .bottle-bg {
    max-height: 250px;
  }
  
  .button-wrapper .swiper-button {
    width: 36px;
    height: 36px;
  }
  
  .button-wrapper svg {
    width: 20px;
  }
}

/* Theme Colors */
[data-sld="1"] .container {
  background-color: var(--savanna-bg);
}

[data-sld="2"] .container {
  background-color: var(--glacier-bg);
}

[data-sld="3"] .container {
  background-color: var(--coral-bg);
}