body.fontend-page-products {
    background: #fff;
}

.bw-product-page {
    padding: 16px 0 36px;
    background: #fff;
}

.bw-product-top {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.bw-product-gallery {
    position: static;
    width: min(100%, 520px);
}

.bw-product-main-media {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.bw-product-main-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bw-product-thumb-row {
    width: 100%;
    margin-top: 12px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.bw-thumb {
    width: 72px;
    min-width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid var(--bw-primary-soft-strong);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.bw-thumb.is-active {
    border-color: var(--bw-primary);
}

.bw-thumb:hover {
    transform: translateY(-1px);
}

.bw-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.bw-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.bw-product-title-row h1 {
    margin: 0;
    font-size: var(--cv-page-title-size);
    line-height: 1.16;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: #212735;
}

.bw-product-share {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #edd7e2;
    border-radius: 999px;
    background: #fff;
    color: #50576a;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.bw-product-favorite {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #edd7e2;
    border-radius: 999px;
    background: #fff;
    color: #50576a;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
}

.bw-product-share:hover {
    border-color: var(--bw-primary);
    color: var(--bw-primary);
}

.bw-product-favorite:hover,
.bw-product-favorite.is-active {
    border-color: var(--bw-primary);
    color: #ff0b62;
}

.bw-product-price-main {
    margin: 10px 0 0;
    color: var(--bw-primary);
    font-size: 2.2rem;
    line-height: 1.15;
    font-weight: 800;
}

.bw-product-price-sub {
    min-height: 22px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #959bac;
    font-size: 0.96rem;
}

.bw-product-price-sub del {
    color: #a3a9b7;
}

.bw-product-price-sub span {
    color: #6f7687;
}

.bw-product-reseller-meta {
    margin: 8px 0 0;
    display: grid;
    gap: 4px;
    color: #2d3446;
    font-size: 1rem;
    line-height: 1.4;
}

.bw-product-reseller-meta p {
    margin: 0;
}

.bw-product-reseller-meta strong {
    font-weight: 700;
}

.bw-product-rating-line {
    margin: 5px 0 0;
    color: #6c7280;
    font-size: 0.95rem;
}

.bw-product-rating-star {
    color: #f6be16;
}

.bw-product-meta-panel {
    margin-top: 14px;
}

.bw-product-variant-block h3,
.bw-product-qty-head span {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #354153;
}

.bw-variation-native {
    display: none;
}

.bw-product-variant-options {
    display: grid;
    gap: 8px;
}

.bw-product-variant-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #262d3d;
    font-size: 1rem;
}

.bw-product-variant-option input {
    margin: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #ced4e1;
    border-radius: 2px;
    accent-color: var(--bw-primary);
}

.bw-product-variant-option.is-disabled {
    opacity: 0.5;
}

.bw-product-stock-hint,
.bw-product-delivery {
    margin: 6px 0 0 26px;
    color: #485164;
    font-size: 0.95rem;
}

.bw-reseller-profit-card {
    width: min(100%, 210px);
    margin-top: 14px;
    padding: 9px;
    border: 1px solid #b2ecc2;
    border-radius: 4px;
    background: #e9fff0;
    box-shadow: none;
}

.bw-reseller-profit-card.hidden {
    display: none;
}

.bw-reseller-profit-card-head {
    display: grid;
    gap: 4px;
}

.bw-reseller-profit-card-head strong {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 800;
}

.bw-reseller-profit-card-head span {
    color: #3f4c45;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bw-reseller-profit-label {
    display: block;
    margin-top: 8px;
    color: #3f4c45;
    font-size: 0.76rem;
    font-weight: 700;
}

.bw-reseller-profit-input-wrap {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    margin-top: 8px;
    border: 1px solid #cce5d2;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.bw-reseller-profit-input-wrap span {
    display: grid;
    place-items: center;
    height: 34px;
    background: #f2fff5;
    color: #3f4c45;
    font-size: 0.86rem;
    font-weight: 800;
}

.bw-reseller-profit-input-wrap input {
    width: 100%;
    height: 34px;
    border: 0;
    padding: 0 10px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 0.82rem;
}

.bw-reseller-profit-input-wrap input:focus {
    outline: none;
}

.bw-reseller-profit-hint {
    margin: 8px 0 0;
    color: #3f4c45;
    font-size: 0.74rem;
    line-height: 1.4;
}

.bw-reseller-profit-error {
    margin: 8px 0 0;
    color: #dc2626;
    font-size: 0.74rem;
    font-weight: 600;
}

.bw-reseller-profit-submit {
    margin-top: 12px;
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--bw-primary);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.bw-reseller-profit-submit:hover {
    transform: translateY(-1px);
}

.bw-product-stock-state {
    margin: 6px 0 0 0;
    color: #18a648;
    font-size: 0.95rem;
    font-weight: 700;
}

.bw-product-stock-state.is-out {
    color: #e33c5f;
}

.bw-product-qty-block {
    margin-top: 14px;
}

.bw-qty-control {
    display: inline-grid;
    grid-template-columns: 36px 54px 36px;
    align-items: center;
    gap: 8px;
}

.bw-qty-control button,
.bw-qty-control input {
    border: 0;
    background: #fff;
    height: 34px;
    text-align: center;
    color: #495164;
    font: inherit;
}

.bw-qty-control button {
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: #7a8395;
}

.bw-qty-control input {
    width: 100%;
    border: 1px solid #e5e7ef;
    border-radius: 2px;
}

.bw-coupon-box {
    width: min(100%, 210px);
    margin-top: 14px;
    padding: 9px;
    background: #e9fff0;
    border: 1px solid #b2ecc2;
    border-radius: 4px;
}

.bw-coupon-box p {
    margin: 0 0 8px;
    color: #3f4c45;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bw-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.bw-coupon-row input {
    width: 100%;
    height: 34px;
    border: 1px solid #cce5d2;
    border-radius: 4px;
    padding: 0 10px;
    background: #fff;
    color: #334155;
    font: inherit;
}

.bw-coupon-row button {
    min-width: 58px;
    border: 0;
    border-radius: 4px;
    background: #4ed3b0;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.bw-discount-code {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bw-discount-code label {
    color: #384355;
    font-size: 1rem;
    font-weight: 700;
}

.bw-discount-code input {
    width: 160px;
    height: 36px;
    border: 1px solid #ece6eb;
    border-radius: 4px;
    padding: 0 12px;
    background: #fff;
    color: #334155;
    font: inherit;
}

.bw-buy-actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.bw-buy-now,
.bw-add-cart {
    height: 42px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.bw-buy-now:hover,
.bw-add-cart:hover {
    transform: translateY(-1px);
}

.bw-buy-now:disabled,
.bw-add-cart:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.bw-buy-now {
    border: 1px solid #4acfb6;
    background: #49ceb5;
    color: #fff;
}

.bw-add-cart {
    border: 1px solid var(--bw-primary);
    background: #fff;
    color: var(--bw-primary);
}

.bw-description {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #eef0f5;
}

.bw-description h3 {
    margin: 0 0 12px;
    color: #283244;
    font-size: 1.1rem;
    font-weight: 700;
}

.bw-description-content {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.62;
}

.bw-description-content p,
.bw-description-content ul,
.bw-description-content ol {
    margin: 0 0 10px;
}

.bw-description-content ul,
.bw-description-content ol {
    padding-left: 22px;
}

.bw-description-content li {
    margin-bottom: 6px;
}

.bw-product-policy-list {
    margin-top: 18px;
    color: #353e4e;
    font-size: 0.98rem;
    line-height: 1.7;
}

.bw-product-policy-list p {
    margin: 0 0 6px;
}

.bw-product-facebook-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bw-product-facebook-link i {
    color: #111827;
}

.bw-product-facebook-link a {
    color: #e53874;
    text-decoration: underline;
}

.bw-review-block {
    margin-top: 34px;
    padding: 18px 14px 8px;
    background: linear-gradient(180deg, #f7fbff 0%, #fff 72%);
}

.bw-review-block h3 {
    margin: 0;
    color: #254b84;
    font-size: 1.18rem;
    font-weight: 500;
}

.bw-review-empty {
    margin: 34px 0 0;
    text-align: center;
    color: #a1a6b3;
    font-style: italic;
}

.bw-recommended {
    margin-top: 24px;
}

.bw-recommended h3 {
    margin: 0 0 10px;
    color: #2b3242;
    font-size: 1.55rem;
    font-weight: 700;
}

.bw-recommended-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.bw-recommended-card {
    background: #fff;
    min-width: 0;
}

.bw-recommended-card--empty {
    grid-column: 1 / -1;
}

.bw-rec-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f8fb;
    aspect-ratio: 1 / 1;
}

.bw-rec-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.bw-recommended-card:hover .bw-rec-img-wrap img {
    transform: scale(1.03);
}

.bw-rec-badge {
    position: absolute;
    left: 0;
    bottom: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 0 6px 6px 0;
    background: var(--bw-primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.bw-rec-badge i {
    font-size: 0.72rem;
}

.bw-rec-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    color: var(--bw-primary);
    font-size: 1.4rem;
    line-height: 1;
}

.bw-rec-body {
    display: grid;
    grid-template-rows: auto auto auto;
    row-gap: 4px;
    padding: 8px 0 0;
    min-height: 84px;
}

.bw-rec-body h4 {
    margin: 0;
    color: #2b3344;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 0;
}

.bw-rec-price {
    margin: 0;
    color: var(--bw-primary);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.1;
}

.bw-rec-price del {
    margin-left: 4px;
    color: #a7adba;
    font-size: 0.78rem;
    font-weight: 500;
}

.bw-rec-meta {
    margin: 0;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.3;
}

.bw-rec-star {
    color: #f7bc16;
}

.fontend-page-products .bw-footer {
    margin-top: 52px;
}

/* Final forced match for product details typography/layout */
.fontend-page-products .bw-product-info {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.fontend-page-products .bw-product-price-main {
    font-size: 44px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
}

.fontend-page-products .bw-product-price-sub,
.fontend-page-products .bw-product-rating-line,
.fontend-page-products .bw-product-stock-hint,
.fontend-page-products .bw-product-stock-state,
.fontend-page-products .bw-product-delivery,
.fontend-page-products .bw-product-variant-option,
.fontend-page-products .bw-description-content,
.fontend-page-products .bw-product-policy-list {
    font-size: 14px !important;
}

.fontend-page-products .bw-product-variant-block h3,
.fontend-page-products .bw-product-qty-head span,
.fontend-page-products .bw-description h3,
.fontend-page-products .bw-discount-code label {
    font-size: 16px !important;
    font-weight: 700 !important;
}

.fontend-page-products .bw-coupon-box {
    width: 210px !important;
    padding: 12px !important;
}

.fontend-page-products .bw-reseller-profit-card {
    width: 210px !important;
    padding: 12px !important;
}

.fontend-page-products .bw-coupon-box p,
.fontend-page-products .bw-coupon-row input,
.fontend-page-products .bw-coupon-row button,
.fontend-page-products .bw-discount-code input {
    font-size: 13px !important;
}

.fontend-page-products .bw-reseller-profit-card-head strong,
.fontend-page-products .bw-reseller-profit-card-head span,
.fontend-page-products .bw-reseller-profit-label,
.fontend-page-products .bw-reseller-profit-hint,
.fontend-page-products .bw-reseller-profit-error,
.fontend-page-products .bw-reseller-profit-input-wrap input {
    font-size: 13px !important;
}

.fontend-page-products .bw-reseller-profit-input-wrap span,
.fontend-page-products .bw-reseller-profit-input-wrap input {
    height: 34px !important;
}

.fontend-page-products .bw-discount-code input {
    height: 34px !important;
}

.fontend-page-products .bw-buy-actions {
    gap: 14px !important;
}

.fontend-page-products .bw-buy-now,
.fontend-page-products .bw-add-cart {
    height: 44px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

@media (max-width: 1280px) {
    .bw-product-top {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .bw-product-gallery {
        position: static;
    }

    .bw-recommended-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .bw-recommended-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .fontend-page-products .bw-floating-action {
        display: none !important;
    }

    .fontend-page-products .bw-footer {
        margin-top: 24px;
        padding-bottom: 84px;
    }

    .fontend-page-products .bw-footer-bottom {
        display: none;
    }

    .fontend-page-products .bw-mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 140;
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        background: var(--bw-primary);
        box-shadow: 0 -8px 24px rgba(20, 24, 39, 0.18);
    }

    .fontend-page-products .bw-mobile-bottom-nav a,
    .fontend-page-products .bw-mobile-bottom-nav button {
        position: relative;
        min-height: 58px;
        border: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.92);
        display: grid;
        place-items: center;
        gap: 2px;
        padding: 6px 2px 8px;
        font: inherit;
    }

    .fontend-page-products .bw-mobile-bottom-nav a.is-active,
    .fontend-page-products .bw-mobile-bottom-nav button.is-active {
        color: #fff;
    }

    .fontend-page-products .bw-mobile-bottom-nav i {
        font-size: 1rem;
    }

    .fontend-page-products .bw-mobile-bottom-nav span {
        font-size: 0.66rem;
        line-height: 1.15;
    }

    .fontend-page-products .bw-mobile-bottom-count {
        position: absolute;
        top: 6px;
        right: calc(50% - 16px);
        min-width: 16px;
        height: 16px;
        border-radius: 999px;
        background: #fff;
        color: var(--bw-primary);
        font-size: 0.65rem;
        font-weight: 800;
        display: grid;
        place-items: center;
        padding: 0 4px;
    }

    .bw-product-page {
        padding: 0 0 calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .bw-product-page .bw-container {
        width: min(var(--cv-shell-width), calc(100% - var(--cv-shell-gutter-mobile)));
    }

    .bw-product-top {
        gap: 14px;
    }

    .bw-product-main-media {
        border-radius: 0;
    }

    .bw-product-main-media img {
        aspect-ratio: 1 / 1;
    }

    .bw-product-thumb-row {
        margin-top: 8px;
        gap: 6px;
        justify-content: center;
        overflow-x: visible;
    }

    .bw-thumb {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border-width: 1px;
        border-radius: 3px;
    }

    .bw-product-title-row {
        gap: 10px;
    }

    .bw-product-title-row h1 {
        font-size: var(--cv-page-title-size-mobile);
        line-height: 1.28;
    }

    .bw-product-share,
    .bw-product-favorite {
        width: 28px;
        height: 28px;
        min-width: 28px;
        border: 0;
        padding: 0;
    }

    .bw-product-price-main {
        margin-top: 8px;
        font-size: 1.7rem;
    }

    .bw-product-price-sub,
    .bw-product-rating-line,
    .bw-product-stock-hint,
    .bw-product-delivery,
    .bw-product-policy-list,
    .bw-description-content {
        font-size: 0.88rem;
    }

    .bw-product-meta-panel {
        margin-top: 10px;
    }

    .bw-product-variant-block h3,
    .bw-product-qty-head span,
    .bw-description h3 {
        font-size: 1.05rem;
    }

    .bw-product-variant-option {
        font-size: 0.95rem;
    }

    .bw-product-stock-hint,
    .bw-product-delivery {
        margin-left: 25px;
    }

    .bw-reseller-profit-card {
        width: min(100%, 208px);
        margin-top: 12px;
        padding: 8px;
        border-radius: 4px;
    }

    .bw-reseller-profit-card-head strong {
        font-size: 0.74rem;
    }

    .bw-reseller-profit-card-head span,
    .bw-reseller-profit-hint,
    .bw-reseller-profit-error {
        font-size: 0.7rem;
    }

    .bw-reseller-profit-label {
        font-size: 0.74rem;
    }

    .bw-reseller-profit-input-wrap span,
    .bw-reseller-profit-input-wrap input {
        height: 30px;
    }

    .bw-reseller-profit-input-wrap input {
        font-size: 0.76rem;
    }

    .bw-reseller-profit-submit {
        height: 38px;
        font-size: 0.84rem;
    }

    .bw-product-stock-state {
        font-size: 0.98rem;
    }

    .bw-qty-control {
        grid-template-columns: 26px 42px 26px;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .bw-qty-control button,
    .bw-qty-control input {
        height: 32px;
        font-size: 1.05rem;
        background: transparent;
        color: #4f5664;
    }

    .bw-qty-control button {
        font-weight: 700;
    }

    .bw-qty-control input {
        border: 0;
        width: 100%;
    }

    .bw-coupon-box {
        width: min(100%, 208px);
        margin-top: 12px;
        padding: 8px;
    }

    .bw-coupon-box > p:not(.bw-coupon-message) {
        display: none;
    }

    .bw-coupon-box p {
        font-size: 0.74rem;
        line-height: 1.45;
    }

    .bw-coupon-row input,
    .bw-coupon-row button {
        height: 30px;
        font-size: 0.76rem;
    }

    .bw-discount-code {
        margin-top: 12px;
        gap: 8px;
        align-items: center;
    }

    .bw-discount-code label {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .bw-discount-code input {
        width: 100%;
        min-width: 0;
        height: 34px;
        font-size: 0.82rem;
    }

    .bw-buy-actions {
        margin-top: 12px;
        gap: 10px;
    }

    .bw-buy-now,
    .bw-add-cart {
        height: 38px;
        font-size: 0.86rem;
    }

    .bw-description {
        margin-top: 16px;
        padding-top: 12px;
    }

    .bw-review-block {
        margin-top: 18px;
        padding: 12px 6px 2px;
    }

    .bw-review-block h3 {
        font-size: 0.96rem;
    }

    .bw-review-empty {
        margin-top: 24px;
        font-size: 0.84rem;
    }

    .bw-recommended {
        margin-top: 16px;
    }

    .bw-recommended h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .bw-recommended-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 8px;
    }

    .bw-rec-img-wrap {
        border-radius: 4px;
    }

    .bw-rec-badge {
        bottom: 6px;
        min-height: 20px;
        padding: 0 7px;
        border-radius: 0 5px 5px 0;
        font-size: 0.6rem;
    }

    .bw-rec-heart {
        top: 7px;
        right: 7px;
        font-size: 1.05rem;
    }

    .bw-rec-body {
        grid-template-rows: auto auto auto;
        row-gap: 3px;
        padding-top: 6px;
        min-height: 66px;
    }

    .bw-rec-body h4 {
        font-size: 0.84rem;
        min-height: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bw-rec-price {
        font-size: 1.08rem;
    }

    .bw-rec-price del {
        font-size: 0.68rem;
    }

    .bw-rec-meta {
        font-size: 0.72rem;
    }
}
