:root {
    --tw-blue: #0007a3;
    --tw-blue-2: #1739d7;
    --tw-ink: #101833;
    --tw-muted: #69738d;
    --tw-line: #e4e9f2;
    --tw-soft: #f6f8fc;
    --tw-card: #ffffff;
    --tw-orange: #ff9f0a;
    --tw-green: #168b55;
    --tw-radius: 18px;
    --tw-shadow: 0 14px 38px rgba(17, 33, 76, .07);
}

body {
    background: #fff !important;
}

.tw-product-modern {
    padding: 8px 0 54px;
    color: var(--tw-ink);
    background: #fff;
}

.tw-product-modern .container {
    width: min(1580px, calc(100% - 42px));
    max-width: none;
}

.tw-product-breadcrumb {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: #8790a5;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
}

.tw-product-breadcrumb a {
    color: #4f5a75;
    font-weight: 650;
}

.tw-product-breadcrumb a:hover {
    color: var(--tw-blue);
}

.tw-product-breadcrumb__current {
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tw-ink);
    font-weight: 700;
}

.tw-product-main-grid {
    align-items: flex-start;
    margin-right: -10px;
    margin-left: -10px;
}

.tw-product-main-grid > [class*="col-"],
.tw-product-primary > .row:first-child > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

/* Requested desktop proportions: image 40%, product information 35%, vendor/other details 25%. */
@media (min-width: 1200px) {
    .tw-product-main-grid > .tw-product-primary {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .tw-product-main-grid > .tw-product-aside {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .tw-product-primary > .row:first-child > .tw-product-gallery-column {
        flex: 0 0 53.333333%;
        max-width: 53.333333%;
    }

    .tw-product-primary > .row:first-child > .tw-product-info-column {
        flex: 0 0 46.666667%;
        max-width: 46.666667%;
    }
}

.tw-product-gallery-column .cz-product-gallery,
.tw-product-info-column .details,
.tw-product-info-column .descriptionClass,
.tw-product-aside .product-details-shipping-details,
.tw-product-aside .__inline-31,
.tw-more-store-wide,
.tw-product-bottom-benefits,
.tw-product-primary .__review-overview {
    border: 1px solid var(--tw-line);
    border-radius: var(--tw-radius);
    background: var(--tw-card) !important;
    box-shadow: none;
}

/* Gallery: adapt the stage to the uploaded image ratio.
   The gallery column remains 40% of the desktop screen. A square image therefore
   receives a square stage; landscape and portrait images resize the stage automatically. */
.tw-product-gallery-column .cz-product-gallery {
    width: 100%;
    padding: 12px;
    overflow: hidden;
}

.tw-product-gallery-column .cz-preview {
    --tw-gallery-ratio: 1;
    width: 100%;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: var(--tw-gallery-ratio);
    max-height: min(82vh, 860px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0 !important;
    border-radius: 15px;
    background: linear-gradient(145deg, #fbfcff 0%, #f0f3f8 100%);
    transition: aspect-ratio .18s ease;
}

.tw-product-gallery-column .cz-preview-item,
.tw-product-gallery-column .cz-preview-item.active {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    padding: 10px !important;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: transparent !important;
}

.tw-product-gallery-column .cz-preview-item.active {
    display: flex;
}

.tw-product-gallery-column .cz-preview-item > img,
.tw-product-gallery-column .cz-image-zoom {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    filter: drop-shadow(0 14px 18px rgba(19, 33, 72, .08));
}

.tw-product-gallery-column .cz-image-zoom-pane {
    border-radius: 14px;
}

.tw-product-gallery-column .cz {
    margin-top: 12px;
}

.tw-product-gallery-column .table-responsive {
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin;
}

.tw-product-gallery-column .cz .d-flex {
    gap: 9px;
}

.tw-product-gallery-column .cz-thumblist {
    flex: 0 0 auto;
}

.tw-product-gallery-column .cz-thumblist-item,
.tw-product-gallery-column .cz-thumblist-item.active {
    width: 82px;
    height: 82px;
    margin: 0;
    padding: 7px !important;
    display: grid !important;
    place-items: center;
    border: 1px solid var(--tw-line) !important;
    border-radius: 13px;
    background: #fff !important;
}

.tw-product-gallery-column .cz-thumblist-item.active {
    border: 2px solid var(--tw-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 7, 163, .07);
}

.tw-product-gallery-column .cz-thumblist-item > img {
    width: 100%;
    height: 100%;
    max-height: 66px;
    object-fit: contain;
    opacity: 1;
}

@media (max-width: 1199.98px) {
    .tw-product-gallery-column .cz-preview {
        max-height: 75vh;
    }
}

@media (max-width: 767.98px) {
    .tw-product-gallery-column .cz-product-gallery {
        padding: 8px;
    }

    .tw-product-gallery-column .cz-preview {
        max-height: 70vh;
        border-radius: 12px;
    }

    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        padding: 6px !important;
    }
}

/* Product information */
.tw-product-info-column .details {
    min-height: 100%;
    padding: 28px;
}

.tw-product-kicker-row {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tw-product-kicker {
    padding: 6px 11px;
    border-radius: 7px;
    background: #eef1ff;
    color: var(--tw-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
}

.tw-share-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tw-line);
    border-radius: 50%;
    background: #fff;
    color: #59647e;
    cursor: pointer;
}

.tw-share-button:hover {
    border-color: var(--tw-blue);
    color: var(--tw-blue);
}

.tw-product-info-column .productNameDiv {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.tw-product-info-column .productNameDiv > span {
    color: var(--tw-ink);
    font-size: clamp(25px, 2.1vw, 36px) !important;
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.tw-product-info-column .productNameDiv .star-rating {
    display: inline-flex;
    margin-top: 4px;
}

.tw-product-info-column .pro {
    margin: 12px 0 17px !important;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tw-line);
    color: var(--tw-muted);
    font-size: 13px;
    font-weight: 600;
}

.tw-product-info-column .h3,
.tw-product-info-column .text-accent {
    color: var(--tw-blue) !important;
    font-size: clamp(31px, 2.6vw, 42px) !important;
    font-weight: 900 !important;
    letter-spacing: -.02em;
}

.tw-product-offer {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 14px 0 16px;
    padding: 12px 15px;
    border: 1px solid #bce2cc;
    border-radius: 12px;
    background: #f1fbf5;
    color: #175f3d;
    font-size: 13px;
    font-weight: 750;
}

.tw-product-offer i {
    color: var(--tw-green);
    font-size: 16px;
}

.tw-product-summary {
    margin: 17px 0;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid var(--tw-line);
    border-radius: 0;
    background: transparent;
}

.tw-product-summary__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.tw-product-summary__heading h3 {
    margin: 0;
    color: var(--tw-ink);
    font-size: 15px;
    font-weight: 850;
}

.tw-product-summary__heading a {
    color: var(--tw-blue);
    font-size: 12px;
    font-weight: 800;
}

.tw-product-summary p {
    margin: 0;
    color: #525d75;
    font-size: 14px;
    line-height: 1.65;
}

.tw-product-info-column .checkbox-color,
.tw-product-info-column .checkbox-alphanumeric {
    gap: 7px;
}

.tw-product-info-column .checkbox-alphanumeric label {
    min-width: 44px;
    min-height: 40px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tw-line);
    border-radius: 9px;
    background: #fff;
    color: var(--tw-ink);
    font-weight: 700;
}

.tw-product-info-column [type="radio"]:checked + label {
    border-color: var(--tw-blue) !important;
    color: var(--tw-blue);
    background: #f0f2ff;
}

.tw-product-info-column .product-quantity {
    justify-content: space-between;
    padding: 15px 16px;
    border: 1px solid var(--tw-line);
    border-radius: 13px;
    background: #fff;
}

.tw-product-info-column .input-number {
    width: 52px !important;
    height: 42px;
    border: 1px solid var(--tw-line);
    border-radius: 0;
    box-shadow: none;
}

.tw-product-info-column .btn-number {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: grid;
    place-items: center;
    border: 1px solid var(--tw-line);
    border-radius: 9px;
    background: #fff;
    font-size: 20px;
    font-weight: 800;
}

.tw-product-info-column .btn-number:hover {
    border-color: var(--tw-blue);
    color: var(--tw-blue) !important;
}

.tw-product-info-column .addtoCartDiv {
    display: grid;
    grid-template-columns: 1fr 1.25fr 54px;
    gap: 10px;
    margin-top: 14px !important;
}

.tw-product-info-column .buynowBtn,
.tw-product-info-column .addtoCartBtn,
.tw-product-info-column .wishlistBtn {
    min-height: 54px;
    margin: 0 !important;
    border-radius: 11px !important;
    font-size: 15px;
    font-weight: 850;
    transition: .2s ease;
}

.tw-product-info-column .buynowBtn {
    border: 1.5px solid var(--tw-blue) !important;
    background: #fff !important;
    color: var(--tw-blue) !important;
}

.tw-product-info-column .buynowBtn:hover {
    background: #eef1ff !important;
}

.tw-product-info-column .addtoCartBtn {
    border: 1.5px solid var(--tw-blue) !important;
    background: var(--tw-blue) !important;
    color: #fff !important;
    box-shadow: 0 9px 20px rgba(0, 7, 163, .16);
}

.tw-product-info-column .addtoCartBtn:hover {
    background: #07188b !important;
    transform: translateY(-1px);
}

.tw-product-info-column .wishlistBtn {
    min-width: 54px;
    border: 1px solid #ffd0d8 !important;
    background: #fff7f8 !important;
}

.tw-product-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tw-line);
}

.tw-product-trust-strip > div {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    border-radius: 10px;
    background: #f7f9fd;
    color: #5d6880;
    font-size: 10px;
    font-weight: 750;
    text-align: center;
}

.tw-product-trust-strip i {
    color: var(--tw-blue);
    font-size: 15px;
}

.tw-product-info-column .descriptionClass {
    margin-top: 14px;
    padding: 17px 19px;
    color: #556078;
}

.tw-product-info-column .descriptionClass p {
    color: var(--tw-ink);
    font-weight: 850;
}

/* Vendor and fulfilment: 25% width */
.tw-product-aside {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tw-product-aside .__inline-31 {
    order: 1;
    padding: 20px !important;
}

.tw-product-aside .product-details-shipping-details {
    order: 2;
    margin: 0;
    overflow: hidden;
}

.tw-product-aside .__seller-author {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--tw-line);
}

.tw-product-aside .__seller-author img,
.tw-product-aside .__inline-32 {
    width: 58px !important;
    height: 58px !important;
    object-fit: cover;
    border: 1px solid var(--tw-line);
    border-radius: 50%;
}

.tw-product-aside .__seller-author h6,
.tw-product-aside .__inline-31 .font-bold {
    margin: 0 0 3px;
    color: var(--tw-ink);
    font-size: 15px;
    font-weight: 850;
}

.tw-product-aside .__h-79px {
    height: 76px !important;
    border: 1px solid #edf0f6;
    border-radius: 12px !important;
    background: #f7f9fd !important;
}

.tw-product-aside .visitBtn,
.tw-product-aside .btn[style*="background"] {
    min-height: 48px;
    border: 1px solid var(--tw-blue) !important;
    border-radius: 11px;
    background: #fff !important;
    color: var(--tw-blue) !important;
    font-size: 14px;
    font-weight: 850;
}

.tw-product-aside .visitBtn:hover,
.tw-product-aside .btn[style*="background"]:hover {
    background: var(--tw-blue) !important;
    color: #fff !important;
}

.tw-product-aside .shipping-details-bottom-border {
    border-bottom: 1px solid var(--tw-line);
}

.tw-product-aside .shipping-details-bottom-border:last-child {
    border-bottom: 0;
}

.tw-product-aside .shipping-details-bottom-border > div {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tw-ink);
    font-size: 14px;
    font-weight: 800;
}

.tw-product-aside .shipping-details-bottom-border img {
    width: 36px !important;
    height: 36px !important;
    padding: 8px;
    object-fit: contain;
    border-radius: 11px;
    background: #f2f5ff;
}

.tw-more-store-aside-title,
.tw-more-store-aside-list {
    display: none !important;
}

/* Full-width store products */
.tw-more-store-wide {
    margin-top: 20px;
    padding: 18px;
}

.tw-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.tw-section-heading h2 {
    margin: 0;
    color: var(--tw-ink);
    font-size: 20px;
    font-weight: 900;
}

.tw-section-heading a {
    color: var(--tw-blue);
    font-size: 13px;
    font-weight: 800;
}

.tw-more-store-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.tw-more-store-card {
    position: relative;
    min-width: 0;
    min-height: 146px;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 42px 12px 12px;
    border: 1px solid var(--tw-line);
    border-radius: 13px;
    background: #fff;
    color: inherit;
    transition: .2s ease;
}

.tw-more-store-card:hover {
    border-color: #cbd3e8;
    box-shadow: 0 10px 24px rgba(16, 32, 75, .07);
    transform: translateY(-2px);
}

.tw-more-store-card__image {
    width: 96px;
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f7fb;
}

.tw-more-store-card__image img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.tw-more-store-card__body {
    min-width: 0;
}

.tw-more-store-card__body h3 {
    min-height: 38px;
    margin: 0 0 7px;
    overflow: hidden;
    color: var(--tw-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tw-more-store-card__rating {
    margin-bottom: 6px;
    color: var(--tw-orange);
    font-size: 11px;
    font-weight: 750;
}

.tw-more-store-card__rating span {
    color: var(--tw-muted);
}

.tw-more-store-card__body strong {
    color: var(--tw-ink);
    font-size: 14px;
    font-weight: 900;
}

.tw-more-store-card__add {
    position: absolute;
    right: 11px;
    bottom: 11px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--tw-blue);
    color: #fff;
    font-size: 12px;
}

.tw-product-bottom-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
    padding: 15px 20px;
}

.tw-product-bottom-benefits > div {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-right: 1px solid var(--tw-line);
}

.tw-product-bottom-benefits > div:last-child {
    border-right: 0;
}

.tw-product-bottom-benefits i {
    color: var(--tw-blue);
    font-size: 23px;
}

.tw-product-bottom-benefits span {
    display: flex;
    flex-direction: column;
}

.tw-product-bottom-benefits strong {
    color: var(--tw-ink);
    font-size: 12px;
    font-weight: 850;
}

.tw-product-bottom-benefits small {
    color: var(--tw-muted);
    font-size: 10px;
}

/* Overview and related products */
.tw-product-primary > .row:nth-child(2) {
    margin-top: 18px;
}

.tw-product-primary .nav-tabs {
    justify-content: flex-start !important;
    gap: 6px;
    border: 0;
}

.tw-product-primary .nav-tabs .nav-link {
    padding: 11px 19px;
    border: 0;
    border-radius: 9px;
    color: var(--tw-muted);
    font-size: 13px;
    font-weight: 850;
}

.tw-product-primary .nav-tabs .nav-link.active {
    background: var(--tw-blue);
    color: #fff !important;
}

.tw-product-primary .__review-overview {
    padding: 22px !important;
}

.tw-product-primary .specification,
.tw-product-primary .specification * {
    max-width: 100%;
}

.tw-product-primary .specification img,
.tw-product-primary .specification iframe {
    max-width: 100%;
    border-radius: 12px;
}

.tw-product-modern .__text-30px {
    color: var(--tw-ink) !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

@media (max-width: 1350px) {
    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        min-height: 530px;
    }

    .tw-product-gallery-column .cz-preview-item > img,
    .tw-product-gallery-column .cz-image-zoom {
        height: 480px !important;
        max-height: 480px !important;
    }

    .tw-more-store-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tw-more-store-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 1199px) {
    .tw-product-main-grid > .tw-product-primary,
    .tw-product-main-grid > .tw-product-aside {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tw-product-aside {
        position: static;
        margin-top: 18px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
    }

    .tw-product-aside .__inline-31,
    .tw-product-aside .product-details-shipping-details {
        order: initial;
    }
}

@media (max-width: 991px) {
    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        min-height: 450px;
    }

    .tw-product-gallery-column .cz-preview-item > img,
    .tw-product-gallery-column .cz-image-zoom {
        height: 410px !important;
        max-height: 410px !important;
    }

    .tw-more-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tw-more-store-card:nth-child(n) {
        display: grid;
    }

    .tw-product-bottom-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tw-product-bottom-benefits > div:nth-child(2) {
        border-right: 0;
    }

    .tw-product-bottom-benefits > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--tw-line);
    }
}

@media (max-width: 767px) {
    .tw-product-modern {
        padding-top: 0;
    }

    .tw-product-modern .container {
        width: calc(100% - 20px);
    }

    .tw-product-breadcrumb {
        margin-bottom: 10px;
    }

    .tw-product-gallery-column,
    .tw-product-info-column {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .tw-product-info-column {
        margin-top: 14px !important;
    }

    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        min-height: 370px;
    }

    .tw-product-gallery-column .cz-preview-item > img,
    .tw-product-gallery-column .cz-image-zoom {
        height: 330px !important;
        max-height: 330px !important;
    }

    .tw-product-info-column .details {
        padding: 19px;
    }

    .tw-product-info-column .addtoCartDiv {
        grid-template-columns: 1fr 1fr;
    }

    .tw-product-info-column .wishlistBtn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .tw-product-aside {
        grid-template-columns: 1fr;
    }

    .tw-more-store-wide {
        padding: 14px;
    }

    .tw-more-store-grid {
        grid-template-columns: 1fr;
    }

    .tw-more-store-card {
        min-height: 126px;
    }
}

@media (max-width: 480px) {
    .tw-product-gallery-column .cz-product-gallery {
        padding: 10px;
    }

    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        min-height: 320px;
    }

    .tw-product-gallery-column .cz-preview-item > img,
    .tw-product-gallery-column .cz-image-zoom {
        height: 285px !important;
        max-height: 285px !important;
    }

    .tw-product-gallery-column .cz-thumblist-item,
    .tw-product-gallery-column .cz-thumblist-item.active {
        width: 66px;
        height: 66px;
    }

    .tw-product-info-column .productNameDiv > span {
        font-size: 24px !important;
    }

    .tw-product-info-column .addtoCartDiv {
        grid-template-columns: 1fr;
    }

    .tw-product-info-column .wishlistBtn {
        grid-column: auto;
    }

    .tw-product-trust-strip {
        grid-template-columns: 1fr;
    }

    .tw-product-bottom-benefits {
        grid-template-columns: 1fr;
    }

    .tw-product-bottom-benefits > div,
    .tw-product-bottom-benefits > div:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--tw-line);
    }

    .tw-product-bottom-benefits > div:last-child {
        border-bottom: 0;
    }
}

/* V5: cleaner 40 / 35 / 25 layout and vertical thumbnail rail */
.tw-product-modern {
    background: #fff !important;
}

.tw-product-main-grid,
.tw-product-primary > .row:first-child {
    align-items: stretch;
}

.tw-product-primary,
.tw-product-gallery-column,
.tw-product-info-column,
.tw-product-aside {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tw-product-gallery-column .cz-product-gallery {
    min-height: 100%;
    padding: 14px !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    border: 1px solid var(--tw-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tw-product-gallery-column .cz-preview {
    grid-column: 1;
    grid-row: 1;
    min-height: 620px;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 14px;
    background: linear-gradient(145deg, #fbfcff, #f2f5fb) !important;
    box-shadow: none !important;
}

.tw-product-gallery-column .cz-preview-item,
.tw-product-gallery-column .cz-preview-item.active {
    min-height: 620px;
    padding: 24px !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tw-product-gallery-column .cz-preview-item > img,
.tw-product-gallery-column .cz-image-zoom {
    height: 570px !important;
    max-height: 570px !important;
    object-fit: contain !important;
}

.tw-product-gallery-column .cz {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0 !important;
}

.tw-product-gallery-column .cz .table-responsive {
    width: 100%;
    height: 620px;
    max-height: 620px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding-right: 2px;
}

.tw-product-gallery-column .cz .d-flex {
    flex-direction: column;
    gap: 9px;
}

.tw-product-gallery-column .cz-thumblist,
.tw-product-gallery-column .cz-thumblist-item {
    width: 100% !important;
}

.tw-product-gallery-column .cz-thumblist-item,
.tw-product-gallery-column .cz-thumblist-item.active {
    height: 78px !important;
    padding: 6px !important;
    border: 1px solid var(--tw-line) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tw-product-gallery-column .cz-thumblist-item.active {
    border: 2px solid var(--tw-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 7, 163, .07) !important;
}

.tw-product-info-column .details {
    min-height: 100%;
    border: 1px solid var(--tw-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tw-product-info-column .descriptionClass,
.tw-product-info-column .tw-product-summary,
.tw-product-info-column .tw-product-offer,
.tw-product-info-column .tw-product-trust-strip {
    box-shadow: none !important;
}

.tw-product-info-column .descriptionClass {
    border: 0 !important;
    background: transparent !important;
}

.tw-product-aside {
    position: sticky;
    top: 92px;
}

.tw-product-aside .product-details-shipping-details,
.tw-product-aside .__inline-31,
.tw-more-store-wide,
.tw-product-bottom-benefits {
    border: 1px solid var(--tw-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tw-product-aside .product-details-shipping-details + .__inline-31,
.tw-product-aside .__inline-31 + .product-details-shipping-details {
    margin-top: 16px !important;
}

.tw-product-info-column .details,
.tw-product-aside > * {
    overflow: hidden;
}

.tw-more-store-wide {
    margin-top: 22px;
}

.tw-product-bottom-benefits {
    margin-top: 22px;
}

@media (max-width: 1199px) {
    .tw-product-aside {
        position: static;
    }

    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        min-height: 540px;
    }

    .tw-product-gallery-column .cz-preview-item > img,
    .tw-product-gallery-column .cz-image-zoom {
        height: 490px !important;
        max-height: 490px !important;
    }

    .tw-product-gallery-column .cz .table-responsive {
        height: 540px;
        max-height: 540px !important;
    }
}

@media (max-width: 767px) {
    .tw-product-gallery-column .cz-product-gallery {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        min-height: 380px;
    }

    .tw-product-gallery-column .cz-preview-item > img,
    .tw-product-gallery-column .cz-image-zoom {
        height: 340px !important;
        max-height: 340px !important;
    }

    .tw-product-gallery-column .cz {
        order: 2;
        width: 100%;
    }

    .tw-product-gallery-column .cz .table-responsive {
        width: 100%;
        height: auto;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    .tw-product-gallery-column .cz .d-flex {
        flex-direction: row;
    }

    .tw-product-gallery-column .cz-thumblist,
    .tw-product-gallery-column .cz-thumblist-item {
        width: 72px !important;
        min-width: 72px;
    }
}
/* TOWNWAY_PRODUCT_RATIO_40_40_20_START */
/* UI-only desktop proportions: gallery 40%, description/purchase 40%, seller/other details 20%. */
@media (min-width: 1200px) {
    .tw-product-modern .tw-product-main-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
    }

    .tw-product-modern .tw-product-main-grid > .tw-product-primary {
        flex: 0 0 80% !important;
        width: 80% !important;
        max-width: 80% !important;
    }

    .tw-product-modern .tw-product-main-grid > .tw-product-aside {
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
    }

    .tw-product-modern .tw-product-primary > .row:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
    }

    .tw-product-modern .tw-product-primary > .row:first-child > .tw-product-gallery-column {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .tw-product-modern .tw-product-primary > .row:first-child > .tw-product-info-column {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }

    .tw-product-modern .tw-product-gallery-column .cz-product-gallery,
    .tw-product-modern .tw-product-info-column .details {
        min-height: 100% !important;
    }

    .tw-product-modern .tw-product-aside {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Keep tablet readable: image and information share the row; seller details move below. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .tw-product-modern .tw-product-main-grid > .tw-product-primary,
    .tw-product-modern .tw-product-main-grid > .tw-product-aside {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .tw-product-modern .tw-product-primary > .row:first-child > .tw-product-gallery-column,
    .tw-product-modern .tw-product-primary > .row:first-child > .tw-product-info-column {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}
/* TOWNWAY_PRODUCT_RATIO_40_40_20_END */


/* ========================================================================
   TOWNWAY PRODUCT DETAILS V6
   Desktop proportions: product image 50%, product information 30%, vendor 20%.
   Product images retain their uploaded aspect ratio and are never cropped.
   ======================================================================== */
@media (min-width: 1200px) {
    .tw-product-main-grid > .tw-product-primary {
        flex: 0 0 80% !important;
        max-width: 80% !important;
    }

    .tw-product-main-grid > .tw-product-aside {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }

    /* 62.5% of the 80% primary area = 50% of the complete content width. */
    .tw-product-primary > .row:first-child > .tw-product-gallery-column {
        flex: 0 0 62.5% !important;
        max-width: 62.5% !important;
    }

    /* 37.5% of the 80% primary area = 30% of the complete content width. */
    .tw-product-primary > .row:first-child > .tw-product-info-column {
        flex: 0 0 37.5% !important;
        max-width: 37.5% !important;
    }
}

/* Keep the gallery independent from a long description card. */
.tw-product-gallery-column {
    align-self: flex-start !important;
}

.tw-product-gallery-column .cz-product-gallery {
    min-height: 0 !important;
    align-items: stretch !important;
}

/* A stable responsive viewing box. The image itself remains uncropped. */
.tw-product-gallery-column .cz-preview,
.tw-product-gallery-column .cz-preview-item,
.tw-product-gallery-column .cz-preview-item.active {
    height: clamp(480px, 44vw, 760px) !important;
    min-height: 0 !important;
    max-height: 760px !important;
}

.tw-product-gallery-column .cz-preview {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.tw-product-gallery-column .cz-preview-item,
.tw-product-gallery-column .cz-preview-item.active {
    width: 100% !important;
    padding: 16px !important;
    align-items: center !important;
    justify-content: center !important;
}

.tw-product-gallery-column .cz-preview-item.active {
    display: flex !important;
}

/* Preserve 1:1, 9:16, 3:4, landscape, and all other uploaded ratios. */
.tw-product-gallery-column .cz-preview-item > img,
.tw-product-gallery-column .cz-image-zoom {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: auto !important;
    filter: none !important;
}

/* Match the vertical thumbnail rail to the responsive image viewer. */
.tw-product-gallery-column .cz .table-responsive {
    height: clamp(480px, 44vw, 760px) !important;
    max-height: 760px !important;
}

.tw-product-gallery-column .cz-thumblist-item > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Tablet: keep image and details balanced, with vendor below when required. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        height: clamp(430px, 55vw, 620px) !important;
        max-height: 620px !important;
    }

    .tw-product-gallery-column .cz .table-responsive {
        height: clamp(430px, 55vw, 620px) !important;
        max-height: 620px !important;
    }
}

/* Mobile: full-width image first, product information second, vendor third. */
@media (max-width: 767.98px) {
    .tw-product-gallery-column .cz-preview,
    .tw-product-gallery-column .cz-preview-item,
    .tw-product-gallery-column .cz-preview-item.active {
        height: min(72vh, 560px) !important;
        min-height: 360px !important;
        max-height: 560px !important;
    }

    .tw-product-gallery-column .cz .table-responsive {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
    }
}

/* ========================================================================
   TOWNWAY PRODUCT DETAILS V8 — FINAL AUTHORITATIVE OVERRIDES
   Frameless natural-ratio image + 40 / 40 / 20 desktop layout + real zoom.
   These declarations intentionally come last to override earlier legacy rules.
   ======================================================================== */
@media (min-width: 1200px) {
    .tw-product-modern .tw-product-main-grid > .tw-product-primary {
        flex: 0 0 80% !important;
        width: 80% !important;
        max-width: 80% !important;
    }

    .tw-product-modern .tw-product-main-grid > .tw-product-aside {
        flex: 0 0 20% !important;
        width: 20% !important;
        max-width: 20% !important;
    }

    .tw-product-modern .tw-product-primary > .row:first-child > .tw-product-gallery-column,
    .tw-product-modern .tw-product-primary > .row:first-child > .tw-product-info-column {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}

/* Remove the old fixed 570/620/760px viewing stage. The active image now
   determines the natural gallery height, so 1:1, portrait and landscape
   uploads never receive artificial top/bottom blank space. */
.tw-product-modern .tw-product-gallery-column .cz-product-gallery {
    min-height: 0 !important;
    padding: 0 !important;
    grid-template-columns: minmax(0, 1fr) 82px !important;
    align-items: start !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.tw-product-modern .tw-product-gallery-column .cz-preview {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    display: block !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tw-product-modern .tw-product-gallery-column .cz-preview-item,
.tw-product-modern .tw-product-gallery-column .cz-preview-item.active {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    align-items: flex-start !important;
    justify-content: center !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tw-product-modern .tw-product-gallery-column .cz-preview-item {
    display: none !important;
}

.tw-product-modern .tw-product-gallery-column .cz-preview-item.active {
    display: flex !important;
}

.tw-product-modern .tw-product-gallery-column .cz-preview-item > img,
.tw-product-modern .tw-product-gallery-column .cz-image-zoom {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center top !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    filter: none !important;
    cursor: zoom-in !important;
}

/* The legacy hover-zoom pane blocked clicks but did not initialise a zoom
   plugin on this page. The V8 fullscreen viewer replaces it. */
.tw-product-modern .tw-product-gallery-column .cz-image-zoom-pane {
    display: none !important;
    pointer-events: none !important;
}

.tw-product-modern .tw-product-gallery-column .cz {
    align-self: start !important;
}

.tw-product-modern .tw-product-gallery-column .cz .table-responsive {
    width: 100% !important;
    height: auto !important;
    max-height: min(82vh, 760px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

@media (max-width: 767.98px) {
    .tw-product-modern .tw-product-gallery-column .cz-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .tw-product-modern .tw-product-gallery-column .cz-preview,
    .tw-product-modern .tw-product-gallery-column .cz-preview-item,
    .tw-product-modern .tw-product-gallery-column .cz-preview-item.active,
    .tw-product-modern .tw-product-gallery-column .cz-preview-item > img,
    .tw-product-modern .tw-product-gallery-column .cz-image-zoom {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .tw-product-modern .tw-product-gallery-column .cz .table-responsive {
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}

body.tw-product-lightbox-open {
    overflow: hidden !important;
}

.tw-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 12, 30, .94);
    backdrop-filter: blur(6px);
}

.tw-product-lightbox.is-open {
    display: flex;
}

.tw-product-lightbox__stage {
    width: min(94vw, 1500px);
    height: min(88vh, 1000px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
    cursor: zoom-in;
}

.tw-product-lightbox__stage.is-zoomed {
    cursor: grab;
}

.tw-product-lightbox__stage.is-zoomed:active {
    cursor: grabbing;
}

.tw-product-lightbox__stage img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    transition: transform .12s ease-out;
    will-change: transform;
}

.tw-product-lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.tw-product-lightbox__controls {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 2;
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    background: rgba(15, 23, 50, .75);
    transform: translateX(-50%);
}

.tw-product-lightbox__controls button {
    min-width: 44px;
    height: 40px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.tw-product-lightbox__controls button[data-zoom-action="reset"] {
    min-width: 72px;
    font-size: 13px;
}

@media (max-width: 600px) {
    .tw-product-lightbox {
        padding: 8px;
    }

    .tw-product-lightbox__stage {
        width: 100vw;
        height: 84vh;
    }

    .tw-product-lightbox__close {
        top: 10px;
        right: 10px;
    }
}

