/* ---- Base ---- */
html, body {
    max-width: 100vw;
}

.bike-page {
    -webkit-text-size-adjust: 100%;
    font-family: Open Sans, Verdana, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #4f4f4f;
    font-size: 14px;
    line-height: 22px;
    background: #f5f6f8;
    min-height: 100vh;
}

.page-wrapper {
    background: #f5f6f8;
    min-height: 100vh;
}

/* ---- Product layout ---- */
.columns {
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
    max-width: 1280px;
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr);
}

.column.main {
    width: 100%;
}

.product-info-main {
    width: 100%;
}

/* ---- Buybox ---- */
.buybox-wrapper .product-buybox {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 24px;
}

.subtitle {
    margin: 0 0 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.product-title {
    color: #202938;
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.18;
}

.product-title strong {
    font-weight: 700;
}

.ratings-stars {
    display: inline-flex;
    gap: 3px;
    line-height: 1;
}

.ratings-stars .star {
    position: relative;
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: #d1d5db;
}

.ratings-stars .star .star-base,
.ratings-stars .star .star-fill {
    width: 100%;
    height: 100%;
    display: block;
}

.ratings-stars .star .star-base path {
    fill: currentColor;
}

.ratings-stars .star.is-filled {
    color: #f59e0b;
}

.ratings-stars .star.is-half {
    color: #d1d5db;
}

.ratings-stars .star .star-half-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.ratings-stars .star .star-half-fill .star-fill path {
    fill: #f59e0b;
}

.review-summary {
    color: #6b7280;
    font-weight: 600;
}

.variant-select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 12px;
    background: #fff;
}

.price-container {
    margin: 10px 0;
}

#priceNow {
    color: #111827;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.price-old {
    color: #8d96a6;
    text-decoration: line-through;
    margin-left: 8px;
}

.stock {
    color: #0f7e2c;
}

.add-to-cart-button {
    min-height: 48px;
    border-radius: 8px;
    border: 0;
    background: #f29900;
    color: #fff;
    font-weight: 700;
    width: 100%;
}

.list-checks {
    margin: 0;
    padding-left: 16px;
}

.list-checks li {
    margin: 6px 0;
}

/* ---- Media / Gallery ---- */
.media-wrapper,
.below-media-wrapper {
    width: 100%;
}

.product-top {
    margin-bottom: 6px;
}

#gallery {
    --thumb-size: calc(72px + 1rem);
}

.gallery-stage {
    aspect-ratio: var(--gallery-stage-ratio, 712 / 476);
    border: 1px solid #e5e7eb;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
    transition: transform .2s ease;
}

.gallery-stage.is-zoomed .main-image {
    transform: scale(1.03);
}

.thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
}

.thumb {
    width: 90px;
    height: 80px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    flex: 0 0 auto;
}

.thumb.active {
    border-color: #0f7e2c;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- Description / Specs ---- */
.desc {
    line-height: 1.7;
    color: #374151;
}

.product-specifications {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.spec-row {
    border-bottom: 1px solid #f0f2f5;
}

.spec-row:last-child {
    border-bottom: 0;
}

/* ---- Responsive ---- */
@media (min-width: 1024px) {
    .columns {
        padding: 24px;
    }

    .buybox-wrapper {
        float: right;
        width: 388px;
    }

    .media-wrapper,
    .below-media-wrapper {
        float: left;
        width: calc(100% - 420px);
    }
}

@media (min-width: 1280px) {
    .buybox-wrapper {
        width: 488px;
    }

    .media-wrapper,
    .below-media-wrapper {
        width: calc(100% - 520px);
    }
}

@media (max-width: 768px) {
    .columns {
        padding: 14px;
    }

    .product-title {
        font-size: 26px;
    }

    #priceNow {
        font-size: 30px;
    }

    .product-buybox .list-checks {
        padding-left: 10px;
    }

    .product-buybox .product-reviews-top {
        margin-bottom: 10px;
    }

    .thumbs {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .thumbs::-webkit-scrollbar {
        display: none;
    }
}
