
.product-details h1 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text);
}

.product-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category {
    background: var(--background-700);
    color: var(--text);
    padding: 0.35rem 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    align-self: center;
}

.product-description {
    color: var(--sub-text);
    line-height: 1.6;
    margin: 2rem auto;
    background: var(--background-700);
    padding: 1rem 1rem;
}

.add-to-cart-btn {
    width: 100%;
    background: none;
    border: 2px solid var(--primary) !important;
    color: white;
    padding: 1rem 2rem;
    border: none;
    font-size: 1.1rem;
    transition: 0.3s ease;
}

.add-to-cart-btn:not(:disabled):hover {
    border-color: var(--secondary);
    cursor: pointer;
}

.add-to-cart-btn i {
    color: var(--primary);
}

select {
    width: 100%;
    padding: 1rem 1rem;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1em;
    background: var(--background-700);
    border: 0;
    outline: none;
    offset: 0;
}

option {
    background: var(--background-700);
    color: var(--text);
}

.splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 270px;
    width: 543px;
    background-color: transparent;
    transition: opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
}

.splide__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.splide__slide img {
    max-width: 100%;
    max-height: 270px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
}

#product-slider {
    margin-bottom: 25px;
    width: 570px;
    height: 275px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.splide__track {
    overflow: hidden;
}

.splide__list {
    overflow: visible;
}

.splide__arrow {
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0.7;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    z-index: 10;
}

.splide__arrow--prev {
    left: 5px;
}

.splide__arrow--next {
    right: 5px;
}

.splide__arrow svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.splide__arrow:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.9);
}

.splide__pagination {
    bottom: -20px;
}

.splide__pagination__page {
    background: #ccc;
    opacity: 0.7;
}

.splide__pagination__page.is-active {
    background: #3E7BFA;
    transform: scale(1.2);
}

@media screen and (min-width: 990px) and (max-width: 1200px) {
  #product-slider {
    width: 100%;
    max-width: 570px;
    height: 275px;
  }
  
  .splide__slide {
    height: 270px;
    width: 100%;
    max-width: 543px;
  }
  
  .splide__slide img {
    max-height: 270px;
  }
  
  .splide__pagination {
    bottom: -15px;
  }
}
