html {
    scroll-behavior: smooth;
}

.main-display {

    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center
}

.main-display img,
.main-display video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    display: block
}

.thumbs-row {
    display: inline-flex;
    /* inline so it stays in one row */
    gap: .5rem;
    align-items: center;
}


.thumb {
    width: 100px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: .35rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent
}

.thumb img,
.thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.thumb.active {
    border-color: red;
}

.thumbs-scroll {
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 6px;
    white-space: nowrap;
    /* keep in a single row */
    flex: 1;
    /* take available space */
}



.thumbs-scroll::-webkit-scrollbar {
    height: 8px
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pre-text {
    color: black;
    font-size: 20px;
    font-weight: 600;
    padding-top: 15px;
}

.sale-head {
    color: black;
    font-weight: bold;
    font-size: 21px;
}

.sub-heading {
    color: #008000;
    font-style: italic;
    font-weight: 600;
}

.sale-text {
    color: black;
    padding-top: 10px;
}

.perk-btn {
    background-color: #3c1554;
    color: #fff;
    font-weight: 600;
    padding: 20px 25px;
    width: 100%;
    border-radius: 8px;
    text-transform: uppercase;
    transition: 0.3s ease-in-out;
    position: relative;
    top: 10px;
}

.perk-btn:focus {
    color: white;
}

.perk-btn:hover {
    background-color: #581d7a;
    color: #fff;
}
.btns-share-donate {
    display: flex;
    gap: 20px;
}

.share-btn {
    border: 1px solid black;
    margin-top: 20px;
    padding: 10px 0px;
    background-color: transparent;
    font-size: 18px;
    font-weight: 600;
    color: black;
    width: 49%;
}
.paypal-btn {
    background-color: #1161ca;
    color: white;
    border-color: #1161ca;
}
.paypal-btn:hover {
    background-color: #104fa1;
    border-color: #104fa1;
    color: white;
}

.features-list li {
    margin-bottom: 5px;
    color: black;
}

.features-list span {
    font-weight: 600;
}



.switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.switcher button {

    border: none;
    cursor: pointer;
    background: transparent;
    font-size: 18px;
    color: black;
    font-weight: bold;
    padding-inline: 12px;
    padding-bottom: 10px;
}

.switcher button.active {
    border-bottom: 2px solid black;
}

.content {
    display: none;
    color: black;
    padding-top: 15px;
}

.content.active {
    display: block;
}

.content p {
    padding-top: 10px;
}

.sale-image {
    width: 100%;
    height: auto;
}

.perk-head {
    color: black;
    font-weight: bold;
}

.perk-box {
    border: 2px solid #f1f1f1;
    margin-top: 20px;
}

.perk-box .title-text {
  position: relative;
  color: #777777;
  font-size: 16px;
  font-weight: 400;
  margin-top: 10px;
  font-family: "Pacifico", cursive;
}

.perk-link {
    color: black !important;
}

.perk-link .title-text {
  position: relative;
  color: #777777;
  font-size: 16px;
  font-weight: 400;
  margin-top: 10px;
  font-family: "Pacifico", cursive;
}

.perk-content {
    padding: 20px 30px;
}

.price-p {
    font-size: 18px;
    color: black;
    line-height: 20px;
    padding-top: 10px;
}

.usd {
    font-size: 16px;
    text-decoration: line-through;
}

.off {
    font-size: 16px;
    color: #E51075;
    font-weight: 600;
}

.hkd {
    font-size: 14px;
    color: #777777;
}

.perk-p {
    font-size: 16px;
}

.story-section {
    padding-block: 50px;
    display: flex;
    align-items: stretch;
    /* both divs same height */
    gap: 20px;
}

.perks-left {
    flex: 2;
}

.perks-right {
    flex: 1;
    position: sticky;
    top: 85px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Cart Page */
.cart-section {
    padding-block: 50px;
    color: black;
}

.product-box {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}



.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 10px 0;
    width: 130px;
}

.qty-box button {
    border: none;
    background: none;
    font-size: 18px;
    width: 30px;
}

.qty-box input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: bold;
}

.summary-box {
    background: #fafafa;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
}

.savings-box {
    background: #ffe9f0;
    padding: 10px;
    border-radius: 5px;
    margin: 15px 0;
    font-weight: bold;
    color: #d63384;
}

.checkout-btn {
    background: #2d023b;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    display: block;
    border-radius: 8px;
    border: none;
    width: 100%;
}

.checkout-btn:hover {
    color: white;
}

/* Checkout page */
.checkout-container {
    margin-top: 30px;
    color: black;
}

.checkout-container h4 {
    font-weight: 600;
}

.form-section {
    background: #fff;
    padding: 20px;
}

.form-section input {
    background-color: #f1f1f1;
    border: none;
    padding: 25px 15px;
    margin-top: 10px;
}

.summary-box {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
}

.summary-box h4 {
    margin-top: 0;
}

.summary-img {

    margin-right: 10px;
}

.savings-box {
    background: #ffe9f0;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: bold;
    color: #d63384;
}

.btn-submit {
    width: 100%;
    background: #e51075;
    color: #fff;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 6px;
}

/* Responsiveness */
@media screen and (max-width: 767px) {
    .main-display {
        min-height: auto;
        max-height: auto;
        padding-block: 20px;
    }

    .story-section {
        display: grid;
        grid-template-columns: 100%;
    }

    .ordd-1 {
        order: 2;
    }

    .ordd-2 {
        order: 1;
    }
}

@media screen and (max-width:420px){
    .btns-share-donate {
        flex-direction: column;
        gap: 0;
    }
    .share-btn {
        width: 100%;
    }
    .paypal-btn {
        margin-top: 5px;
    }
}