.twss-shop {
    --twss-ink: #172033;
    --twss-muted: #64748b;
    --twss-line: #dce4ef;
    --twss-soft: #f4f7fb;
    --twss-brand: #2563eb;
    color: var(--twss-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 28px auto;
    max-width: 1120px;
}

.twss-shop *,
.twss-shop *::before,
.twss-shop *::after {
    box-sizing: border-box;
}

.twss-shop-head {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #eaf3ff 100%);
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 22px;
}

.twss-shop-head p,
.twss-thankyou p {
    color: var(--twss-brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.twss-shop-head h2,
.twss-thankyou h2 {
    color: #0f172a;
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
}

.twss-cart-link,
.twss-primary-link,
.twss-front-actions a,
.twss-front-actions button,
.twss-checkout-form button,
.twss-front-product button,
.twss-cart-form button,
.twss-detail-cart button,
.twss-unavailable-button {
    align-items: center;
    background: var(--twss-brand);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    text-decoration: none;
}

.twss-cart-link span {
    background: #ffffff;
    border-radius: 999px;
    color: var(--twss-brand);
    margin-left: 8px;
    min-width: 24px;
    padding: 3px 7px;
    text-align: center;
}

.twss-front-product button:disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

.twss-unavailable-button:disabled {
    background: #cbd5e1;
    color: #475569;
    cursor: not-allowed;
}

.twss-product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.twss-front-product {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.twss-product-image-link,
.twss-front-product img,
.twss-product-placeholder {
    aspect-ratio: 16 / 10;
    background: #eaf3ff;
    display: block;
    object-fit: cover;
    width: 100%;
}

.twss-product-image-link {
    color: inherit;
    text-decoration: none;
}

.twss-product-placeholder {
    align-items: center;
    display: flex;
    justify-content: center;
}

.twss-product-placeholder span {
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    color: var(--twss-brand);
    display: flex;
    font-size: 42px;
    font-weight: 900;
    height: 78px;
    justify-content: center;
    width: 78px;
}

.twss-front-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.twss-front-product h3 {
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

.twss-front-product h3 a {
    color: inherit;
    text-decoration: none;
}

.twss-front-product h3 a:hover {
    color: var(--twss-brand);
}

.twss-front-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.twss-front-badges span {
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.twss-front-badges span.is-available {
    background: #dcfce7;
    color: #166534;
}

.twss-front-badges span.is-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.twss-front-product p {
    color: var(--twss-muted);
    margin: 0;
}

.twss-front-product-foot {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
}

.twss-front-product-foot strong,
.twss-cart-total strong,
.twss-cart-line strong,
.twss-order-summary strong {
    color: #0f172a;
    font-weight: 900;
}

.twss-price-wrap {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
}

.twss-price-wrap del {
    color: #94a3b8;
    font-weight: 800;
}

.twss-price-wrap ins {
    color: #0f172a;
    font-weight: 900;
    text-decoration: none;
}

.twss-price-wrap.is-sale ins {
    color: #dc2626;
}

.twss-front-notice {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-weight: 900;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.twss-front-empty {
    background: var(--twss-soft);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--twss-muted);
    font-weight: 900;
    margin-bottom: 14px;
    padding: 28px;
    text-align: center;
}

.twss-cart-form,
.twss-checkout-form,
.twss-order-summary,
.twss-thankyou {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    padding: 22px;
}

.twss-cart-lines {
    display: grid;
    gap: 10px;
}

.twss-cart-line {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 96px auto;
    padding: 12px;
}

.twss-cart-line strong,
.twss-cart-line small {
    display: block;
}

.twss-cart-line small {
    color: var(--twss-muted);
}

.twss-cart-line input,
.twss-checkout-form input,
.twss-checkout-form select,
.twss-checkout-form textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: none;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.twss-cart-total {
    align-items: center;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
}

.twss-front-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.twss-front-actions button {
    background: #0f172a;
}

.twss-checkout-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
}

.twss-checkout-form {
    display: grid;
    gap: 14px;
}

.twss-checkout-form label {
    display: grid;
    gap: 6px;
}

.twss-checkout-form span {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.twss-order-summary h3 {
    color: #0f172a;
    font-size: 20px;
    margin: 0 0 14px;
}

.twss-order-summary div {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 0;
}

.twss-order-summary div + div {
    border-top: 1px solid #e2e8f0;
}

.twss-order-summary span {
    color: var(--twss-muted);
}

.twss-order-summary .is-total {
    font-size: 18px;
}

.twss-thankyou {
    text-align: center;
}

.twss-thankyou strong {
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    display: inline-flex;
    font-size: 16px;
    font-weight: 900;
    margin: 16px 0;
    padding: 8px 12px;
}

.twss-thankyou span {
    color: var(--twss-muted);
    display: block;
    margin: 0 auto;
    max-width: 620px;
}

.twss-thankyou-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px auto;
    max-width: 720px;
}

.twss-thankyou-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.twss-thankyou-grid span {
    color: var(--twss-muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.twss-thankyou-grid b {
    color: #0f172a;
    display: block;
    font-size: 16px;
    margin-top: 5px;
}

.twss-front-actions.is-centered {
    justify-content: center;
}

.twss-detail-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.twss-detail-media,
.twss-detail-content,
.twss-detail-description {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.twss-detail-media img,
.twss-detail-media .twss-product-placeholder {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.twss-detail-content {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.twss-detail-content h1 {
    color: #0f172a;
    font-size: 34px;
    line-height: 1.1;
    margin: 0;
}

.twss-detail-lead {
    color: var(--twss-muted);
    font-size: 18px;
    line-height: 1.45;
    margin: 0;
}

.twss-detail-price {
    font-size: 28px;
    line-height: 1.1;
}

.twss-detail-cart {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: 120px minmax(160px, auto);
}

.twss-detail-cart label {
    display: grid;
    gap: 6px;
}

.twss-detail-cart span {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.twss-detail-cart input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.twss-back-link {
    color: var(--twss-brand);
    font-weight: 900;
    text-decoration: none;
}

.twss-detail-description {
    margin-top: 18px;
    padding: 22px;
}

.twss-detail-description h2 {
    color: #0f172a;
    font-size: 22px;
    margin: 0 0 10px;
}

.twss-detail-description p {
    color: var(--twss-muted);
    line-height: 1.65;
    margin: 0 0 12px;
}

@media (max-width: 900px) {
    .twss-product-grid,
    .twss-checkout-grid,
    .twss-thankyou-grid,
    .twss-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .twss-shop {
        margin: 18px auto;
    }

    .twss-shop-head,
    .twss-cart-line {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .twss-shop-head {
        display: grid;
    }

    .twss-front-product-foot,
    .twss-front-actions,
    .twss-cart-total,
    .twss-detail-cart {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .twss-detail-content h1 {
        font-size: 28px;
    }
}

.twss-shop-intro {
    color: var(--twss-muted);
    display: block;
    line-height: 1.45;
    margin-top: 8px;
    max-width: 680px;
}

.twss-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.twss-category-filters a {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 999px;
    color: var(--twss-ink);
    font-size: 13px;
    font-weight: 900;
    padding: 9px 12px;
    text-decoration: none;
}

.twss-category-filters a.is-active,
.twss-category-filters a:hover {
    background: var(--twss-brand);
    border-color: var(--twss-brand);
    color: #ffffff;
}

.twss-front-badges span.is-category {
    background: #fef3c7;
    color: #92400e;
}

.twss-front-badges span.is-delivery {
    background: #ede9fe;
    color: #5b21b6;
}

.twss-detail-gallery {
    background: #ffffff;
    border-top: 1px solid var(--twss-line);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px;
}

.twss-detail-gallery img {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.twss-specifics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.twss-specifics span {
    background: var(--twss-soft);
    border: 1px solid var(--twss-line);
    border-radius: 999px;
    color: var(--twss-muted);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 10px;
}

.twss-theme-beauty {
    --twss-brand: #db2777;
    --twss-soft: #fff1f2;
    --twss-line: #fbcfe8;
}

.twss-theme-beauty .twss-shop-head {
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 55%, #ffffff 100%);
}

.twss-theme-electronics {
    --twss-brand: #0891b2;
    --twss-soft: #ecfeff;
    --twss-line: #bae6fd;
}

.twss-theme-electronics .twss-shop-head {
    background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 55%, #ffffff 100%);
}

.twss-theme-dark {
    --twss-ink: #e5e7eb;
    --twss-muted: #94a3b8;
    --twss-line: #334155;
    --twss-soft: #111827;
    --twss-brand: #8b5cf6;
}

.twss-theme-dark,
.twss-theme-dark .twss-front-product,
.twss-theme-dark .twss-checkout-form,
.twss-theme-dark .twss-order-summary,
.twss-theme-dark .twss-thankyou,
.twss-theme-dark .twss-detail-media,
.twss-theme-dark .twss-detail-content,
.twss-theme-dark .twss-detail-description {
    background: #0f172a;
    color: var(--twss-ink);
}

.twss-theme-dark .twss-shop-head {
    background: linear-gradient(135deg, #111827 0%, #1e1b4b 100%);
}

.twss-theme-dark .twss-shop-head h2,
.twss-theme-dark .twss-front-product h3,
.twss-theme-dark .twss-front-product-foot strong,
.twss-theme-dark .twss-detail-content h1,
.twss-theme-dark .twss-detail-description h2,
.twss-theme-dark .twss-price-wrap strong,
.twss-theme-dark .twss-order-summary strong,
.twss-theme-dark .twss-cart-line strong,
.twss-theme-dark .twss-cart-total strong {
    color: #ffffff;
}

.twss-theme-dark .twss-front-product p,
.twss-theme-dark .twss-detail-description p {
    color: var(--twss-muted);
}

.twss-theme-minimal {
    --twss-brand: #111827;
    --twss-soft: #ffffff;
    --twss-line: #e5e7eb;
}

.twss-theme-minimal .twss-shop-head,
.twss-theme-minimal .twss-front-product,
.twss-theme-minimal .twss-checkout-form,
.twss-theme-minimal .twss-order-summary,
.twss-theme-minimal .twss-thankyou,
.twss-theme-minimal .twss-detail-media,
.twss-theme-minimal .twss-detail-content,
.twss-theme-minimal .twss-detail-description {
    box-shadow: none;
}

/* v0.5 product detail, lightbox and stronger theme contrast */
.twss-cart-link,
.twss-cart-link:visited,
.twss-cart-link:hover,
.twss-primary-link,
.twss-primary-link:visited,
.twss-front-actions a,
.twss-front-actions a:visited,
.twss-front-actions button,
.twss-checkout-form button,
.twss-front-product button,
.twss-cart-form button,
.twss-detail-cart button,
.twss-unavailable-button {
    color: #ffffff !important;
}

.twss-cart-link span {
    color: var(--twss-brand) !important;
}

.twss-secondary-link,
.twss-secondary-link:visited {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    color: var(--twss-brand) !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    min-height: 42px;
    padding: 0 16px;
    text-decoration: none;
}

.twss-detail-head-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.twss-detail-main-button {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    display: block;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
}

.twss-detail-main-button span {
    background: rgba(15, 23, 42, .72);
    border-radius: 999px;
    bottom: 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    left: 12px;
    opacity: 0;
    padding: 7px 10px;
    position: absolute;
    transform: translateY(4px);
    transition: opacity .16s ease, transform .16s ease;
}

.twss-detail-main-button:hover span,
.twss-detail-main-button:focus span {
    opacity: 1;
    transform: translateY(0);
}

.twss-detail-gallery {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
}

.twss-gallery-thumb {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.twss-gallery-thumb.is-active {
    border-color: var(--twss-brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--twss-brand) 24%, transparent);
}

.twss-gallery-thumb img {
    border: 0;
    border-radius: 0;
    display: block;
}

.twss-lightbox[hidden] {
    display: none !important;
}

.twss-lightbox {
    align-items: center;
    background: rgba(2, 6, 23, .86);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 58px 28px 28px;
    position: fixed;
    z-index: 999999;
}

.twss-lightbox img {
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
    max-height: calc(100vh - 120px);
    max-width: min(1100px, calc(100vw - 80px));
    object-fit: contain;
}

.twss-lightbox-close,
.twss-lightbox-nav {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    font-weight: 900;
    justify-content: center;
    position: fixed;
    z-index: 1000000;
}

.twss-lightbox-close {
    font-size: 30px;
    height: 46px;
    right: 22px;
    top: 22px;
    width: 46px;
}

.twss-lightbox-nav {
    font-size: 46px;
    height: 56px;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
}

.twss-lightbox-nav.is-prev {
    left: 22px;
}

.twss-lightbox-nav.is-next {
    right: 22px;
}

.twss-lightbox-open {
    overflow: hidden;
}

.twss-clear-cart-form {
    margin-top: 10px;
    text-align: right;
}

.twss-clear-cart-form button {
    background: transparent;
    border: 0;
    color: var(--twss-muted);
    cursor: pointer;
    font-weight: 900;
    text-decoration: underline;
}

.twss-theme-beauty .twss-shop-head,
.twss-theme-beauty .twss-front-product,
.twss-theme-beauty .twss-detail-media,
.twss-theme-beauty .twss-detail-content,
.twss-theme-beauty .twss-detail-description {
    border-color: #f9a8d4;
}

.twss-theme-electronics .twss-front-product,
.twss-theme-electronics .twss-detail-media,
.twss-theme-electronics .twss-detail-content,
.twss-theme-electronics .twss-detail-description {
    border-color: #67e8f9;
}

.twss-theme-dark .twss-secondary-link,
.twss-theme-dark .twss-secondary-link:visited {
    background: #111827;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .twss-detail-head-actions {
        justify-content: stretch;
    }

    .twss-detail-head-actions a {
        width: 100%;
    }

    .twss-lightbox {
        padding: 58px 14px 20px;
    }

    .twss-lightbox img {
        max-width: calc(100vw - 28px);
    }

    .twss-lightbox-nav {
        bottom: 18px;
        top: auto;
        transform: none;
    }
}

/* v0.6 layouts, ratings, options and featured merchandising */
.twss-rating {
    align-items: center;
    color: #f59e0b;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 900;
    gap: 5px;
    line-height: 1;
}

.twss-rating strong,
.twss-rating small {
    color: var(--twss-muted);
    font-size: 12px;
}

.twss-product-options {
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
}

.twss-product-options fieldset {
    border: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.twss-product-options legend {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    padding: 0;
}

.twss-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.twss-option-buttons input {
    height: 1px !important;
    opacity: 0;
    position: absolute;
    width: 1px !important;
}

.twss-option-buttons label span {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
}

.twss-option-buttons label input:checked + span {
    border-color: var(--twss-brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--twss-brand) 20%, transparent);
    color: var(--twss-brand);
}

.twss-option-buttons i {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    display: inline-block;
    height: 18px;
    width: 18px;
}

.twss-choose-options,
.twss-choose-options:visited {
    align-items: center;
    background: #0f172a;
    border-radius: 8px;
    color: #ffffff !important;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    text-decoration: none;
}

.twss-store-promos {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 22px;
}

.twss-store-promos article {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    display: grid;
    gap: 6px;
    min-height: 130px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

.twss-store-promos article::after {
    background: color-mix(in srgb, var(--twss-brand) 12%, transparent);
    border-radius: 999px;
    content: "";
    height: 120px;
    position: absolute;
    right: -34px;
    top: -34px;
    width: 120px;
}

.twss-store-promos span {
    align-self: start;
    background: var(--twss-brand);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    justify-self: start;
    padding: 4px 8px;
    text-transform: uppercase;
}

.twss-store-promos strong {
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
}

.twss-store-promos small {
    color: var(--twss-muted);
    line-height: 1.4;
}

.twss-featured-section {
    margin: 0 0 22px;
}

.twss-section-head {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 0 0 10px;
}

.twss-section-head h3 {
    color: #0f172a;
    font-size: 18px;
    margin: 0;
}

.twss-section-head span {
    color: var(--twss-muted);
    font-size: 13px;
    font-weight: 800;
}

.twss-featured-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.twss-mini-product,
.twss-mini-product:visited {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 8px;
    color: #0f172a;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 10px;
    text-decoration: none;
}

.twss-mini-product img,
.twss-mini-product > span {
    aspect-ratio: 1 / 1;
    background: var(--twss-soft);
    border-radius: 7px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.twss-mini-product > span {
    align-items: center;
    color: var(--twss-brand);
    display: flex;
    font-size: 28px;
    font-weight: 900;
    justify-content: center;
}

.twss-mini-product strong {
    font-size: 12px;
    line-height: 1.25;
}

.twss-mini-product .twss-price-wrap {
    font-size: 12px;
}

.twss-sidebar-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: 250px minmax(0, 1fr);
}

.twss-shop-sidebar {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045);
    padding: 16px;
    position: sticky;
    top: 24px;
}

.twss-shop-sidebar h3 {
    color: #0f172a;
    font-size: 18px;
    margin: 0 0 12px;
}

.twss-category-filters.is-vertical {
    display: grid;
    margin: 0;
}

.twss-category-filters.is-vertical a {
    align-items: center;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.twss-category-filters.is-vertical small {
    background: var(--twss-soft);
    border-radius: 999px;
    color: var(--twss-muted);
    min-width: 26px;
    padding: 2px 7px;
    text-align: center;
}

.twss-category-filters.is-vertical a.is-active small,
.twss-category-filters.is-vertical a:hover small {
    background: rgba(255,255,255,.2);
    color: #ffffff;
}

.twss-sidebar-box {
    background: var(--twss-soft);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 13px;
}

.twss-sidebar-box strong {
    color: var(--twss-brand);
    font-size: 26px;
    line-height: 1;
}

.twss-sidebar-box span {
    color: var(--twss-muted);
    font-size: 12px;
    font-weight: 900;
}

.twss-layout-compact_list .twss-product-grid {
    grid-template-columns: 1fr;
}

.twss-layout-compact_list .twss-front-product {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
}

.twss-layout-compact_list .twss-product-image-link,
.twss-layout-compact_list .twss-front-product img,
.twss-layout-compact_list .twss-product-placeholder {
    aspect-ratio: auto;
    height: 100%;
    min-height: 190px;
}

.twss-layout-retail_featured .twss-shop-head {
    border-radius: 12px;
    padding: 28px;
}

.twss-layout-retail_featured .twss-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.twss-theme-dark .twss-store-promos article,
.twss-theme-dark .twss-mini-product,
.twss-theme-dark .twss-shop-sidebar {
    background: #111827;
    border-color: #334155;
}

.twss-theme-dark .twss-store-promos strong,
.twss-theme-dark .twss-section-head h3,
.twss-theme-dark .twss-mini-product,
.twss-theme-dark .twss-shop-sidebar h3,
.twss-theme-dark .twss-option-buttons label span {
    color: #ffffff;
}

@media (max-width: 1040px) {
    .twss-featured-row,
    .twss-layout-retail_featured .twss-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .twss-store-promos,
    .twss-sidebar-layout,
    .twss-layout-compact_list .twss-front-product {
        grid-template-columns: 1fr;
    }

    .twss-shop-sidebar {
        position: static;
    }

    .twss-featured-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .twss-featured-row,
    .twss-layout-retail_featured .twss-product-grid {
        grid-template-columns: 1fr;
    }
}

/* v0.7 real storefront layouts and gallery lightbox improvements */
.twss-shop {
    max-width: min(1320px, calc(100vw - 48px));
    width: calc(100% - 48px);
}

.twss-product-detail.twss-shop {
    max-width: min(1380px, calc(100vw - 48px));
}

.twss-layout-sidebar_catalog.twss-shop,
.twss-layout-handy_showcase.twss-shop,
.twss-layout-wide_retail.twss-shop {
    max-width: min(1460px, calc(100vw - 48px));
}

.twss-layout-sidebar_catalog .twss-sidebar-layout,
.twss-layout-handy_showcase .twss-sidebar-layout {
    grid-template-columns: 270px minmax(0, 1fr);
}

.twss-layout-sidebar_catalog .twss-shop-main .twss-product-grid,
.twss-layout-handy_showcase .twss-shop-main .twss-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.twss-layout-handy_showcase {
    --twss-brand: #9aca3c;
    --twss-soft: #f6faea;
    --twss-line: #dcecc0;
}

.twss-layout-handy_showcase .twss-shop-head {
    background: linear-gradient(135deg, #ffffff 0%, #fbfff2 100%);
    border-radius: 2px;
    border-color: #e3efc6;
    box-shadow: none;
}

.twss-layout-handy_showcase .twss-shop-sidebar {
    border-radius: 2px;
    box-shadow: none;
}

.twss-catalog-hero {
    align-items: stretch;
    background: linear-gradient(100deg, #ffffff 0%, var(--twss-soft) 100%);
    border: 1px solid var(--twss-line);
    border-radius: 2px;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    margin: 0 0 22px;
    min-height: 300px;
    overflow: hidden;
}

.twss-catalog-hero-copy {
    align-content: center;
    display: grid;
    gap: 12px;
    padding: clamp(24px, 4vw, 54px);
}

.twss-catalog-hero-copy span {
    color: var(--twss-brand);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.twss-catalog-hero-copy h3 {
    color: #1f2937;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.04;
    margin: 0;
}

.twss-catalog-hero-copy p {
    color: var(--twss-muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

.twss-catalog-hero-copy a,
.twss-catalog-hero-copy a:visited {
    align-items: center;
    background: var(--twss-brand);
    border-radius: 2px;
    color: #ffffff !important;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    justify-self: start;
    min-height: 44px;
    padding: 0 20px;
    text-decoration: none;
}

.twss-catalog-hero figure {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 260px;
    padding: 24px;
}

.twss-catalog-hero img,
.twss-hero-placeholder {
    aspect-ratio: 1.15 / 1;
    border-radius: 2px;
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.twss-hero-placeholder {
    align-items: center;
    background: rgba(255,255,255,.55);
    display: flex;
    justify-content: center;
}

.twss-hero-placeholder b {
    color: var(--twss-brand);
    font-size: 86px;
}

.twss-layout-wide_retail .twss-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.twss-layout-wide_retail .twss-store-promos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.twss-layout-wide_retail .twss-featured-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.twss-layout-wide_retail .twss-front-product h3 {
    font-size: 17px;
}

.twss-layout-wide_retail .twss-front-product-body {
    padding: 14px;
}

.twss-layout-wide_retail .twss-front-badges span:nth-child(n+3) {
    display: none;
}

.twss-detail-layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
}

.twss-detail-media,
.twss-detail-content,
.twss-detail-description {
    border-radius: 12px;
}

.twss-detail-main-button {
    background: #f8fafc;
}

.twss-detail-main-button img {
    max-height: 680px;
}

.twss-detail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: thin;
}

.twss-gallery-thumb {
    flex: 0 0 104px;
}

.twss-lightbox {
    background: rgba(2, 6, 23, .92);
    overflow: auto;
    padding: 62px 34px 42px;
}

.twss-lightbox img {
    cursor: zoom-in;
    height: auto;
    max-height: calc(100vh - 126px);
    max-width: calc(100vw - 96px);
    min-width: min(760px, calc(100vw - 96px));
    object-fit: contain;
    width: auto;
}

.twss-lightbox.is-zoomed {
    align-items: flex-start;
}

.twss-lightbox.is-zoomed img {
    cursor: zoom-out;
    max-height: none;
    max-width: none;
    min-width: 0;
    transform: scale(1.45);
    transform-origin: center top;
}

.twss-lightbox-hint {
    background: rgba(255,255,255,.12);
    border-radius: 999px;
    bottom: 18px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    left: 50%;
    padding: 8px 12px;
    position: fixed;
    transform: translateX(-50%);
    z-index: 1000000;
}

@media (max-width: 1180px) {
    .twss-layout-wide_retail .twss-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .twss-shop,
    .twss-product-detail.twss-shop,
    .twss-layout-sidebar_catalog.twss-shop,
    .twss-layout-handy_showcase.twss-shop,
    .twss-layout-wide_retail.twss-shop {
        max-width: calc(100vw - 28px);
        width: calc(100vw - 28px);
    }

    .twss-catalog-hero,
    .twss-layout-sidebar_catalog .twss-sidebar-layout,
    .twss-layout-handy_showcase .twss-sidebar-layout {
        grid-template-columns: 1fr;
    }

    .twss-layout-wide_retail .twss-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .twss-lightbox img {
        max-width: calc(100vw - 28px);
        min-width: 0;
        width: 100%;
    }

    .twss-lightbox-hint {
        display: none;
    }

    .twss-layout-wide_retail .twss-product-grid {
        grid-template-columns: 1fr;
    }
}

/* v0.8 actual alternative storefront layouts, wider canvas and stronger gallery */
.twss-layout-handy_full.twss-shop,
.twss-layout-wide_department.twss-shop,
.twss-layout-wide_retail.twss-shop {
    max-width: min(1640px, calc(100vw - 32px));
    width: min(1640px, calc(100vw - 32px));
}

/* Break out of narrow page content containers when a full-storefront layout is selected. */
.twss-layout-handy_full.twss-shop,
.twss-layout-wide_department.twss-shop {
    margin-left: 50%;
    margin-right: 0;
    transform: translateX(-50%);
}

.twss-layout-handy_full {
    --twss-brand: #95c83d;
    --twss-soft: #f6faeb;
    --twss-line: #d9ebbb;
    background: #fbfdf5;
    border: 1px solid #dcefc1;
    padding: 0 0 32px;
}

.twss-handy-topline {
    align-items: center;
    background: rgba(255,255,255,.72);
    border-bottom: 1px solid #e5efcf;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    gap: 24px;
    justify-content: center;
    min-height: 34px;
    text-transform: uppercase;
}

.twss-handy-header {
    align-items: center;
    background: rgba(255,255,255,.92);
    display: grid;
    gap: 22px;
    grid-template-columns: 260px minmax(260px, 1fr) auto;
    padding: 24px 32px;
}

.twss-handy-logo,
.twss-handy-logo:visited {
    align-items: center;
    color: #1f2937;
    display: flex;
    gap: 12px;
    text-decoration: none;
}

.twss-handy-logo b {
    align-items: center;
    background: var(--twss-brand);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 24px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.twss-handy-logo span {
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}

.twss-handy-search {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce7c4;
    display: grid;
    grid-template-columns: minmax(0,1fr) 52px;
    min-height: 48px;
}

.twss-handy-search span {
    color: #94a3b8;
    padding: 0 18px;
}

.twss-handy-search button {
    background: var(--twss-brand);
    border: 0;
    color: #ffffff;
    font-size: 22px;
    height: 48px;
}

.twss-handy-nav {
    background: #34383d;
    display: flex;
    gap: 0;
    margin: 0 32px 28px;
    min-height: 46px;
}

.twss-handy-nav a,
.twss-handy-nav a:visited {
    align-items: center;
    border-right: 1px solid rgba(255,255,255,.10);
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    padding: 0 22px;
    text-decoration: none;
    text-transform: uppercase;
}

.twss-handy-layout {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: 285px minmax(0, 1fr);
    padding: 0 32px;
}

.twss-handy-sidebar {
    display: grid;
    gap: 22px;
}

.twss-handy-sidebar h3,
.twss-handy-special h4 {
    color: #334155;
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 12px;
}

.twss-handy-sidebar .twss-category-filters.is-vertical {
    background: #ffffff;
    border: 1px solid #e4ecd2;
    gap: 0;
    padding: 0;
}

.twss-handy-sidebar .twss-category-filters.is-vertical a {
    border: 0;
    border-bottom: 1px solid #eef3df;
    border-radius: 0;
    color: #475569;
    min-height: 40px;
}

.twss-handy-sidebar .twss-category-filters.is-vertical a.is-active,
.twss-handy-sidebar .twss-category-filters.is-vertical a:hover {
    background: var(--twss-brand);
    color: #ffffff;
}

.twss-handy-special {
    background: #ffffff;
    border: 1px solid #e4ecd2;
    padding: 18px;
}

.twss-side-product,
.twss-side-product:visited {
    align-items: center;
    border-top: 1px solid #eef2e2;
    color: #1f2937;
    display: grid;
    gap: 10px;
    grid-template-columns: 64px minmax(0,1fr);
    padding: 12px 0;
    text-decoration: none;
}

.twss-side-product img,
.twss-side-product > span {
    aspect-ratio: 1/1;
    background: var(--twss-soft);
    border-radius: 4px;
    display: block;
    object-fit: cover;
    width: 64px;
}

.twss-side-product > span {
    align-items: center;
    color: var(--twss-brand);
    display: flex;
    font-weight: 900;
    justify-content: center;
}

.twss-side-product em {
    display: grid;
    font-style: normal;
    gap: 4px;
    min-width: 0;
}

.twss-side-product strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.twss-side-product .twss-price-wrap {
    font-size: 12px;
}

.twss-handy-main .twss-catalog-hero {
    min-height: 420px;
}

.twss-handy-main .twss-catalog-hero-copy h3 {
    font-size: clamp(42px, 5.8vw, 72px);
}

.twss-handy-banner {
    background: var(--twss-brand);
    color: #ffffff;
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 300;
    margin: 0 0 28px;
    padding: 26px;
    text-align: center;
}

.twss-layout-handy_full .twss-featured-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.twss-layout-handy_full .twss-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.twss-layout-handy_full .twss-front-product,
.twss-layout-handy_full .twss-mini-product {
    border-radius: 2px;
    box-shadow: none;
}

.twss-layout-wide_department {
    --twss-soft: #f8fafc;
}

.twss-layout-wide_department .twss-shop-head {
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 0;
}

.twss-department-promos {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 42px;
}

.twss-department-promo,
.twss-department-promo:visited {
    align-items: center;
    background: #f6f6f6;
    color: #0f172a;
    display: grid;
    gap: 4px 18px;
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 150px;
    overflow: hidden;
    padding: 26px;
    position: relative;
    text-decoration: none;
}

.twss-department-promo span {
    background: #facc15;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    justify-self: start;
    padding: 4px 8px;
    text-transform: uppercase;
}

.twss-department-promo strong {
    font-size: 22px;
    line-height: 1.16;
}

.twss-department-promo small {
    color: var(--twss-brand);
    font-weight: 900;
}

.twss-department-promo img {
    grid-row: 1 / span 3;
    height: 132px;
    object-fit: cover;
    width: 190px;
}

.twss-layout-wide_department .twss-featured-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 42px;
}

.twss-free-delivery-strip {
    align-items: center;
    background: linear-gradient(90deg, #f3f4f6 0%, #ffffff 100%);
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 0 0 42px;
    min-height: 82px;
    padding: 18px;
    text-align: center;
}

.twss-free-delivery-strip strong {
    color: #0f172a;
    font-size: 24px;
}

.twss-free-delivery-strip span {
    color: #334155;
}

.twss-free-delivery-strip a,
.twss-free-delivery-strip a:visited {
    background: #facc15;
    border-radius: 999px;
    color: #111827;
    font-weight: 900;
    padding: 10px 18px;
    text-decoration: none;
}

.twss-department-sections {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 42px;
}

.twss-department-section {
    display: grid;
    gap: 10px;
}

.twss-department-section .twss-section-head a {
    background: #f3f4f6;
    border-radius: 999px;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 10px;
    text-decoration: none;
}

.twss-layout-wide_department .twss-product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.twss-layout-wide_department .twss-front-product {
    border-radius: 0;
    box-shadow: none;
}

.twss-layout-wide_department .twss-front-product h3 {
    font-size: 15px;
}

.twss-layout-wide_department .twss-front-product-body {
    padding: 14px;
}

.twss-layout-wide_department .twss-front-product p,
.twss-layout-wide_department .twss-front-badges span:nth-child(n+3) {
    display: none;
}

/* Make lightbox behave like a real gallery viewer, not a small inline image. */
.twss-lightbox {
    align-items: center;
    display: flex;
    justify-content: center;
}

.twss-lightbox[hidden] {
    display: none !important;
}

.twss-lightbox img {
    background: transparent;
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    max-height: calc(100vh - 110px);
    max-width: calc(100vw - 110px);
    min-width: 0;
}

.twss-lightbox.is-zoomed img {
    max-height: none;
    max-width: none;
    transform: scale(1.7);
}

@media (max-width: 1320px) {
    .twss-layout-handy_full .twss-product-grid,
    .twss-layout-wide_department .twss-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .twss-layout-handy_full .twss-featured-row,
    .twss-layout-wide_department .twss-featured-row,
    .twss-department-sections {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .twss-layout-handy_full.twss-shop,
    .twss-layout-wide_department.twss-shop {
        margin-left: auto;
        transform: none;
        width: calc(100vw - 28px);
    }

    .twss-handy-header,
    .twss-handy-layout,
    .twss-department-promos,
    .twss-department-sections {
        grid-template-columns: 1fr;
    }

    .twss-handy-nav {
        flex-wrap: wrap;
    }

    .twss-layout-handy_full .twss-product-grid,
    .twss-layout-wide_department .twss-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .twss-handy-topline,
    .twss-handy-header,
    .twss-handy-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .twss-handy-nav {
        margin-left: 16px;
        margin-right: 16px;
    }

    .twss-layout-handy_full .twss-product-grid,
    .twss-layout-wide_department .twss-product-grid,
    .twss-layout-handy_full .twss-featured-row,
    .twss-layout-wide_department .twss-featured-row {
        grid-template-columns: 1fr;
    }

    .twss-department-promo {
        grid-template-columns: 1fr;
    }

    .twss-department-promo img {
        grid-row: auto;
        width: 100%;
    }
}

/* v0.8.1 — stabilize true storefront width and body-mounted gallery lightbox */
.twss-layout-handy_full.twss-shop,
.twss-layout-wide_department.twss-shop {
    left: auto !important;
    margin-left: calc(50% - 50vw + 16px) !important;
    margin-right: calc(50% - 50vw + 16px) !important;
    max-width: none !important;
    transform: none !important;
    width: calc(100vw - 32px) !important;
}

.twss-layout-handy_full .twss-handy-topline,
.twss-layout-handy_full .twss-handy-header,
.twss-layout-handy_full .twss-handy-nav,
.twss-layout-handy_full .twss-handy-layout {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.twss-layout-handy_full .twss-handy-topline {
    justify-content: space-between;
    padding-left: 32px;
    padding-right: 32px;
}

.twss-layout-handy_full .twss-handy-header {
    border-left: 1px solid #e5efcf;
    border-right: 1px solid #e5efcf;
}

.twss-layout-handy_full .twss-handy-nav {
    border-radius: 0;
    overflow-x: auto;
}

.twss-layout-handy_full .twss-handy-nav a {
    white-space: nowrap;
}

.twss-layout-handy_full .twss-catalog-hero {
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    min-height: 500px;
}

.twss-layout-handy_full .twss-catalog-hero figure img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.twss-layout-handy_full .twss-product-grid {
    gap: 22px;
}

.twss-layout-handy_full .twss-front-product {
    background: #ffffff;
    min-height: 100%;
}

.twss-layout-wide_department.twss-shop {
    background: #ffffff;
    border-color: transparent;
}

.twss-layout-wide_department .twss-shop-head,
.twss-layout-wide_department .twss-department-promos,
.twss-layout-wide_department .twss-featured-section,
.twss-layout-wide_department .twss-free-delivery-strip,
.twss-layout-wide_department .twss-department-sections,
.twss-layout-wide_department .twss-category-filters,
.twss-layout-wide_department .twss-product-grid {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.twss-image-fallback {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, color-mix(in srgb, var(--twss-brand) 14%, #f8fafc), #ffffff);
    color: var(--twss-brand);
    display: flex;
    font-size: clamp(34px, 6vw, 72px);
    font-weight: 1000;
    justify-content: center;
    width: 100%;
}

.twss-side-product .twss-image-fallback,
.twss-mini-product .twss-image-fallback {
    aspect-ratio: 1 / 1;
    font-size: 24px;
}

body > .twss-lightbox {
    align-items: center !important;
    background: rgba(15, 23, 42, .94) !important;
    box-sizing: border-box;
    display: flex !important;
    inset: 0 !important;
    justify-content: center !important;
    margin: 0 !important;
    overflow: auto !important;
    padding: 76px 72px 54px !important;
    position: fixed !important;
    transform: none !important;
    width: 100vw !important;
    z-index: 2147483000 !important;
}

body > .twss-lightbox[hidden] {
    display: none !important;
}

body.admin-bar > .twss-lightbox {
    padding-top: 108px !important;
}

body > .twss-lightbox img[data-twss-lightbox-image] {
    background: transparent !important;
    border-radius: 14px;
    box-shadow: 0 26px 90px rgba(0,0,0,.55) !important;
    display: block !important;
    height: auto !important;
    max-height: calc(100vh - 142px) !important;
    max-width: calc(100vw - 160px) !important;
    min-height: 0 !important;
    min-width: 0 !important;
    object-fit: contain !important;
    opacity: 1 !important;
    transform: none;
    width: auto !important;
}

body.admin-bar > .twss-lightbox img[data-twss-lightbox-image] {
    max-height: calc(100vh - 174px) !important;
}

body > .twss-lightbox.is-zoomed {
    align-items: flex-start !important;
}

body > .twss-lightbox.is-zoomed img[data-twss-lightbox-image] {
    max-height: none !important;
    max-width: none !important;
    transform: scale(1.55) !important;
    transform-origin: center top !important;
}

body > .twss-lightbox .twss-lightbox-close,
body > .twss-lightbox .twss-lightbox-nav {
    align-items: center !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 40px rgba(0,0,0,.35) !important;
    color: #0f172a !important;
    cursor: pointer !important;
    display: flex !important;
    font-weight: 1000 !important;
    justify-content: center !important;
    opacity: 1 !important;
    position: fixed !important;
    visibility: visible !important;
    z-index: 2147483001 !important;
}

body > .twss-lightbox .twss-lightbox-close {
    font-size: 34px !important;
    height: 52px !important;
    line-height: 1 !important;
    right: 26px !important;
    top: 26px !important;
    width: 52px !important;
}

body.admin-bar > .twss-lightbox .twss-lightbox-close {
    top: 58px !important;
}

body > .twss-lightbox .twss-lightbox-nav {
    font-size: 48px !important;
    height: 62px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 62px !important;
}

body > .twss-lightbox .twss-lightbox-nav.is-prev {
    left: 26px !important;
}

body > .twss-lightbox .twss-lightbox-nav.is-next {
    right: 26px !important;
}

body > .twss-lightbox .twss-lightbox-hint {
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.22);
    bottom: 18px !important;
    color: #ffffff !important;
    left: 50% !important;
    position: fixed !important;
    transform: translateX(-50%) !important;
    z-index: 2147483001 !important;
}

html.twss-lightbox-open,
body.twss-lightbox-open {
    overflow: hidden !important;
}

@media (max-width: 980px) {
    .twss-layout-handy_full.twss-shop,
    .twss-layout-wide_department.twss-shop {
        margin-left: auto !important;
        margin-right: auto !important;
        width: calc(100vw - 28px) !important;
    }

    .twss-layout-handy_full .twss-catalog-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body > .twss-lightbox {
        padding-left: 26px !important;
        padding-right: 26px !important;
    }

    body > .twss-lightbox img[data-twss-lightbox-image] {
        max-width: calc(100vw - 52px) !important;
    }
}

@media (max-width: 640px) {
    .twss-layout-handy_full .twss-handy-topline,
    .twss-layout-handy_full .twss-handy-header,
    .twss-layout-handy_full .twss-handy-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    body > .twss-lightbox .twss-lightbox-nav {
        height: 48px !important;
        width: 48px !important;
    }

    body > .twss-lightbox .twss-lightbox-nav.is-prev {
        left: 10px !important;
    }

    body > .twss-lightbox .twss-lightbox-nav.is-next {
        right: 10px !important;
    }
}

/* v0.9 Design Pack Engine + Fashion/Lifestyle layout */
.twss-shop.twss-design-core-simple,
.twss-shop.twss-design-handy-catalogue,
.twss-shop.twss-design-wide-department,
.twss-shop.twss-design-beauty-boutique,
.twss-shop.twss-design-compact-services,
.twss-shop.twss-design-fashion-lifestyle {
    --twss-design-radius: 0;
}

.twss-layout-fashion_hero.twss-shop {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: none !important;
    padding: 0 0 46px;
    width: 100vw !important;
}

.twss-fashion-shell {
    margin: 0 auto;
    max-width: 1480px;
    padding: 0 38px;
}

.twss-fashion-top {
    align-items: center;
    background: #fbf4e8;
    color: #111827;
    display: grid;
    font-size: 13px;
    font-weight: 900;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 12px;
    text-align: center;
    text-transform: uppercase;
}

.twss-fashion-top span {
    border-right: 1px solid rgba(15,23,42,.14);
    padding: 18px 12px;
}

.twss-fashion-top span:last-child {
    border-right: 0;
}

.twss-fashion-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 24px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 18px 0;
}

.twss-fashion-logo {
    color: #111827;
    font-size: 32px;
    font-weight: 1000;
    letter-spacing: -.06em;
    text-decoration: none;
}

.twss-fashion-header nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: center;
}

.twss-fashion-header nav a {
    color: #111827;
    font-size: 13px;
    font-weight: 1000;
    text-decoration: none;
    text-transform: uppercase;
}

.twss-fashion-benefits {
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.twss-fashion-benefits span {
    border-right: 1px solid #e5e7eb;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    padding: 16px 10px;
    text-transform: uppercase;
}

.twss-fashion-benefits span:last-child {
    border-right: 0;
}

.twss-fashion-hero {
    background: #5da69b;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, .92fr) minmax(240px, 1fr);
    min-height: 520px;
    overflow: hidden;
}

.twss-fashion-hero figure {
    margin: 0;
    min-height: 100%;
}

.twss-fashion-hero img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.twss-fashion-hero-copy {
    align-items: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px;
    text-align: center;
}

.twss-fashion-hero-copy span {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.twss-fashion-hero-copy h2 {
    color: #ffffff;
    font-size: clamp(42px, 5.6vw, 84px);
    letter-spacing: -.07em;
    line-height: .92;
    margin: 18px 0;
    text-transform: uppercase;
}

.twss-fashion-hero-copy p {
    color: rgba(255,255,255,.86);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 420px;
}

.twss-fashion-hero-copy a {
    background: #ffffff;
    color: #111827;
    display: inline-flex;
    font-size: 13px;
    font-weight: 1000;
    justify-content: center;
    min-width: 170px;
    padding: 16px 24px;
    text-decoration: none;
    text-transform: uppercase;
}

.twss-layout-fashion_hero .twss-category-filters {
    justify-content: center;
    margin: 30px 0;
}

.twss-layout-fashion_hero .twss-featured {
    margin: 28px auto;
}

.twss-layout-fashion_hero .twss-featured h3,
.twss-layout-fashion_hero .twss-product-grid {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
}

.twss-layout-fashion_hero .twss-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.twss-layout-fashion_hero .twss-product-card {
    border-color: #e5e7eb;
    border-radius: 0;
    box-shadow: none;
}

.twss-layout-fashion_hero .twss-product-image {
    border-radius: 0;
}

@media (max-width: 980px) {
    .twss-fashion-shell {
        padding: 0 18px;
    }
    .twss-fashion-top,
    .twss-fashion-benefits,
    .twss-fashion-hero,
    .twss-fashion-header {
        grid-template-columns: 1fr;
    }
    .twss-fashion-hero figure {
        min-height: 260px;
    }
    .twss-fashion-header nav {
        justify-content: flex-start;
    }
}

/* v0.9.2 — repair scale, avoid fake-wide overflow, keep storefronts usable */
html.twss-lightbox-open,
body.twss-lightbox-open {
    overflow: hidden !important;
}

.twss-shop {
    max-width: min(1240px, calc(100vw - 32px)) !important;
    width: min(1240px, calc(100vw - 32px)) !important;
    overflow-x: clip;
}

.twss-shop img {
    max-width: 100%;
}

.twss-product-detail.twss-shop {
    max-width: min(1180px, calc(100vw - 32px)) !important;
    width: min(1180px, calc(100vw - 32px)) !important;
}

.twss-product-detail .twss-shop-head {
    padding: 18px 22px !important;
}

.twss-product-detail .twss-shop-head h2 {
    font-size: clamp(26px, 3vw, 36px) !important;
}

.twss-product-detail .twss-detail-layout {
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr) !important;
    gap: 20px !important;
}

.twss-product-detail .twss-detail-media {
    align-self: start;
}

.twss-product-detail .twss-detail-main-button {
    aspect-ratio: 4 / 3;
    max-height: 520px;
    overflow: hidden;
}

.twss-product-detail .twss-detail-main-button img,
.twss-product-detail .twss-detail-main-image {
    aspect-ratio: auto !important;
    display: block;
    height: 100% !important;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.twss-product-detail .twss-detail-content {
    gap: 14px !important;
    padding: 22px !important;
}

.twss-product-detail .twss-detail-content h1 {
    font-size: clamp(28px, 3vw, 42px) !important;
    letter-spacing: -.03em;
    line-height: 1.05 !important;
}

.twss-product-detail .twss-detail-lead {
    font-size: 16px !important;
}

.twss-product-detail .twss-detail-price {
    font-size: 24px !important;
}

.twss-product-detail .twss-detail-description {
    margin-top: 18px;
    padding: 20px !important;
}

.twss-detail-gallery {
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)) !important;
}

.twss-layout-handy_full.twss-shop,
.twss-layout-wide_department.twss-shop,
.twss-layout-fashion_hero.twss-shop {
    left: auto !important;
    margin: 24px auto !important;
    max-width: min(1440px, calc(100vw - 32px)) !important;
    transform: none !important;
    width: min(1440px, calc(100vw - 32px)) !important;
    overflow-x: clip !important;
}

.twss-layout-handy_full .twss-handy-topline,
.twss-layout-handy_full .twss-handy-header,
.twss-layout-handy_full .twss-handy-nav,
.twss-layout-handy_full .twss-handy-layout,
.twss-layout-wide_department .twss-shop-head,
.twss-layout-wide_department .twss-department-promos,
.twss-layout-wide_department .twss-featured-section,
.twss-layout-wide_department .twss-free-delivery-strip,
.twss-layout-wide_department .twss-department-sections,
.twss-layout-wide_department .twss-category-filters,
.twss-layout-wide_department .twss-product-grid,
.twss-fashion-shell {
    max-width: 1320px !important;
}

.twss-layout-handy_full .twss-handy-layout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 24px !important;
    padding: 0 18px !important;
}

.twss-layout-handy_full .twss-catalog-hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .82fr) !important;
    min-height: 360px !important;
}

.twss-layout-handy_full .twss-catalog-hero-copy {
    padding: clamp(24px, 3vw, 42px) !important;
}

.twss-layout-handy_full .twss-catalog-hero-copy h3,
.twss-handy-main .twss-catalog-hero-copy h3 {
    font-size: clamp(32px, 4vw, 54px) !important;
    line-height: 1.02 !important;
}

.twss-layout-handy_full .twss-product-grid,
.twss-layout-wide_department .twss-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}

.twss-layout-handy_full .twss-featured-row,
.twss-layout-wide_department .twss-featured-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
}

.twss-layout-wide_department .twss-department-promos {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
}

.twss-fashion-shell {
    padding: 0 !important;
}

.twss-fashion-hero {
    grid-template-columns: minmax(220px, .8fr) minmax(280px, 1fr) minmax(220px, .8fr) !important;
    min-height: 420px !important;
}

.twss-fashion-hero-copy {
    padding: 34px !important;
}

.twss-fashion-hero-copy h2 {
    font-size: clamp(34px, 4.5vw, 64px) !important;
}

.twss-image-fallback {
    align-items: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f8fafc, color-mix(in srgb, var(--twss-brand) 12%, #ffffff));
    color: var(--twss-brand);
    display: flex;
    font-size: clamp(26px, 4vw, 54px);
    font-weight: 1000;
    justify-content: center;
    min-height: 140px;
    width: 100%;
}

.twss-inline-actions {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.twss-inline-actions .twss-inline-form {
    margin: 0;
}

.twss-inline-help {
    display: block;
    margin: 8px 0 0;
    max-width: 420px;
}

@media (max-width: 960px) {
    .twss-product-detail .twss-detail-layout,
    .twss-layout-handy_full .twss-handy-layout,
    .twss-fashion-hero {
        grid-template-columns: 1fr !important;
    }

    .twss-layout-handy_full .twss-handy-sidebar {
        order: 2;
    }

    .twss-layout-handy_full .twss-handy-main {
        order: 1;
    }
}

/* v0.9.3 — hard reset: usable scale, Commerce Pro storefront, no horizontal scroll */
.twss-shop,
.twss-product-detail.twss-shop {
    width: min(100% - 32px, 1180px) !important;
    max-width: 1180px !important;
    margin: 24px auto 44px !important;
    overflow-x: clip !important;
}

.twss-layout-commerce_pro.twss-shop {
    --twss-brand: #8cc63f;
    --twss-ink: #111827;
    --twss-muted: #64748b;
    --twss-line: #dfe8d2;
    background: #fffefa;
    border: 1px solid var(--twss-line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    padding: 0;
}

.twss-pro-shell {
    width: 100%;
}

.twss-pro-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fbf4e8;
    border-bottom: 1px solid var(--twss-line);
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.twss-pro-top span {
    padding: 11px 8px;
    border-right: 1px solid rgba(15,23,42,.09);
}

.twss-pro-top span:last-child { border-right: 0; }

.twss-pro-header {
    align-items: center;
    display: grid;
    grid-template-columns: 260px minmax(220px, 1fr) auto;
    gap: 22px;
    padding: 20px 22px;
    background: #fffefa;
}

.twss-pro-logo,
.twss-pro-logo:visited {
    align-items: center;
    color: var(--twss-ink);
    display: inline-flex;
    gap: 12px;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.05;
    text-decoration: none;
}

.twss-pro-logo b {
    align-items: center;
    background: var(--twss-brand);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.twss-pro-logo span {
    max-width: 190px;
}

.twss-pro-search {
    align-items: center;
    background: #fff;
    border: 1px solid var(--twss-line);
    color: #94a3b8;
    display: flex;
    min-height: 44px;
    padding: 0 16px;
}

.twss-pro-nav {
    background: #2b3036;
    display: flex;
    padding: 0 22px;
}

.twss-pro-nav a,
.twss-pro-nav a:visited {
    border-right: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    padding: 16px 22px;
    text-decoration: none;
    text-transform: uppercase;
}

.twss-pro-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: 230px minmax(0, 1fr);
    padding: 22px;
}

.twss-pro-sidebar {
    min-width: 0;
}

.twss-pro-sidebar h3 {
    font-size: 26px;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0 0 18px;
}

.twss-pro-sidebar .twss-category-filters.is-vertical {
    gap: 0;
}

.twss-pro-sidebar .twss-category-filters.is-vertical a {
    background: #fff;
    border: 1px solid var(--twss-line);
    border-bottom: 0;
    border-radius: 0;
    color: #334155;
    min-height: 42px;
}

.twss-pro-sidebar .twss-category-filters.is-vertical a:first-child { border-radius: 0; }
.twss-pro-sidebar .twss-category-filters.is-vertical a:last-child { border-bottom: 1px solid var(--twss-line); }
.twss-pro-sidebar .twss-category-filters.is-vertical a.is-active,
.twss-pro-sidebar .twss-category-filters.is-vertical a:hover {
    background: var(--twss-brand);
    color: #fff;
}

.twss-pro-main { min-width: 0; }

.twss-pro-hero {
    background: #ffffff;
    border: 1px solid var(--twss-line);
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(280px, .7fr);
    margin: 0 0 18px;
    min-height: 310px;
    overflow: hidden;
}

.twss-pro-hero-copy {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px 44px;
}

.twss-pro-hero-copy span {
    color: var(--twss-brand);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.twss-pro-hero-copy h2 {
    color: var(--twss-ink);
    font-size: clamp(34px, 4.3vw, 58px);
    letter-spacing: -.055em;
    line-height: .98;
    margin: 0 0 14px;
    max-width: 620px;
}

.twss-pro-hero-copy p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.5;
    margin: 0 0 22px;
    max-width: 560px;
}

.twss-pro-hero-copy a {
    background: var(--twss-brand);
    color: #fff;
    display: inline-flex;
    font-weight: 950;
    min-height: 44px;
    padding: 0 26px;
    align-items: center;
    text-decoration: none;
}

.twss-pro-hero figure {
    background: #f8fafc;
    margin: 0;
    min-height: 310px;
}

.twss-pro-hero figure img,
.twss-pro-hero figure .twss-image-fallback {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.twss-pro-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--twss-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 22px;
    text-align: center;
}

.twss-pro-benefits span { padding: 15px 12px; }

.twss-layout-commerce_pro .twss-featured-section h3,
.twss-layout-commerce_pro .twss-product-grid + h3 {
    font-size: 24px;
}

.twss-layout-commerce_pro .twss-featured-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.twss-layout-commerce_pro .twss-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.twss-layout-commerce_pro .twss-front-product {
    border-radius: 0;
    box-shadow: none;
}

.twss-layout-commerce_pro .twss-product-image-link,
.twss-layout-commerce_pro .twss-front-product img,
.twss-layout-commerce_pro .twss-product-placeholder {
    aspect-ratio: 4 / 3;
}

.twss-layout-commerce_pro .twss-front-body {
    padding: 16px;
}

.twss-layout-commerce_pro .twss-front-body h3 {
    font-size: 20px;
    letter-spacing: -.03em;
    line-height: 1.15;
}

.twss-layout-commerce_pro .twss-front-text {
    font-size: 14px;
    line-height: 1.42;
}

.twss-layout-commerce_pro .twss-front-bottom {
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.twss-layout-commerce_pro .twss-price {
    font-size: 17px;
}

.twss-product-detail.twss-shop {
    padding: 0 !important;
}

.twss-product-detail .twss-shop-head {
    border-radius: 0;
    margin-bottom: 20px;
}

.twss-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr) !important;
    gap: 22px !important;
}

.twss-detail-media,
.twss-detail-content,
.twss-detail-description {
    border-radius: 10px !important;
}

.twss-detail-main-button img,
.twss-detail-media > img {
    max-height: 520px !important;
    object-fit: cover !important;
}

.twss-detail-content h1 {
    font-size: clamp(30px, 3.4vw, 46px) !important;
    line-height: 1.02 !important;
}

.twss-detail-price {
    font-size: 26px !important;
}

.twss-layout-handy_full.twss-shop,
.twss-layout-wide_department.twss-shop,
.twss-layout-fashion_hero.twss-shop {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 1180px !important;
    width: min(100% - 32px, 1180px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.twss-layout-handy_full .twss-catalog-hero,
.twss-layout-fashion_hero .twss-fashion-hero {
    min-height: 340px !important;
}

.twss-layout-handy_full .twss-catalog-hero-copy h3,
.twss-fashion-hero-copy h2 {
    font-size: clamp(32px, 4vw, 52px) !important;
}

@media (max-width: 980px) {
    .twss-pro-header,
    .twss-pro-layout,
    .twss-pro-hero,
    .twss-detail-layout {
        grid-template-columns: 1fr !important;
    }
    .twss-pro-header { gap: 12px; }
    .twss-pro-nav { overflow-x: auto; }
    .twss-pro-benefits,
    .twss-pro-top,
    .twss-layout-commerce_pro .twss-product-grid,
    .twss-layout-commerce_pro .twss-featured-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .twss-shop,
    .twss-product-detail.twss-shop,
    .twss-layout-handy_full.twss-shop,
    .twss-layout-wide_department.twss-shop,
    .twss-layout-fashion_hero.twss-shop {
        width: calc(100% - 16px) !important;
    }
    .twss-pro-layout,
    .twss-pro-header,
    .twss-pro-hero-copy { padding: 16px; }
    .twss-pro-benefits,
    .twss-pro-top,
    .twss-layout-commerce_pro .twss-product-grid,
    .twss-layout-commerce_pro .twss-featured-row {
        grid-template-columns: 1fr;
    }
}

/* Breakdance Bridge components */
.twss-bd-component.twss-shop {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}
.twss-bd-grid .twss-product-grid,
.twss-bd-featured .twss-featured-row {
    margin: 0;
}
.twss-bd-sidebar {
    background: transparent;
}
.twss-bd-sidebar h3,
.twss-bd-featured h2 {
    margin-top: 0;
}
.twss-bd-cart-button {
    align-items: center;
    background: var(--twss-accent, #2563eb);
    border-radius: 12px;
    color: #fff !important;
    display: inline-flex;
    font-weight: 900;
    gap: 10px;
    justify-content: center;
    padding: 12px 16px;
    text-decoration: none !important;
}
.twss-bd-cart-button strong {
    align-items: center;
    background: #fff;
    border-radius: 999px;
    color: var(--twss-accent, #2563eb);
    display: inline-flex;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 7px;
}
.twss-bd-product-detail {
    display: grid;
    gap: clamp(20px, 3vw, 44px);
    grid-template-columns: minmax(0, 1fr) minmax(320px, .78fr);
}
.twss-bd-product-summary-col h1 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    margin: 0 0 12px;
}
.twss-bd-gallery .twss-detail-main-button img {
    max-height: 620px;
}
.twss-bd-price {
    font-size: 28px;
    margin: 16px 0;
}
.twss-bd-add-to-cart {
    margin-top: 18px;
}
@media (max-width: 860px) {
    .twss-bd-product-detail { grid-template-columns: 1fr; }
}

/* Breakdance starter layout / 1.0.1 */
.twss-bd-layout.twss-shop {
    --twss-bd-bg: #ffffff;
    --twss-bd-panel: #ffffff;
    --twss-bd-soft: #f8fafc;
    --twss-bd-accent: var(--twss-brand, #2563eb);
    margin: 24px auto;
    max-width: 1240px;
    padding: 0;
    width: min(100% - 32px, 1240px);
}
.twss-bd-layout .twss-bd-topbar {
    align-items: center;
    background: var(--twss-bd-soft);
    border: 1px solid var(--twss-line);
    border-radius: 14px 14px 0 0;
    color: var(--twss-muted);
    display: grid;
    font-size: 12px;
    font-weight: 900;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    letter-spacing: .04em;
    overflow: hidden;
    text-align: center;
    text-transform: uppercase;
}
.twss-bd-layout .twss-bd-topbar span {
    background: rgba(255,255,255,.72);
    padding: 13px 10px;
}
.twss-bd-layout .twss-bd-hero-section {
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid var(--twss-line);
    border-top: 0;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: clamp(26px, 4vw, 52px);
}
.twss-bd-layout .twss-bd-hero-section p {
    color: var(--twss-bd-accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.twss-bd-layout .twss-bd-hero-section h1 {
    color: var(--twss-ink);
    font-size: clamp(38px, 5.2vw, 72px);
    letter-spacing: -.05em;
    line-height: .95;
    margin: 0;
    max-width: 760px;
}
.twss-bd-layout .twss-bd-hero-section span {
    color: var(--twss-muted);
    display: block;
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.55;
    margin-top: 18px;
    max-width: 680px;
}
.twss-bd-layout .twss-bd-hero-cart { justify-self: end; }
.twss-bd-layout .twss-bd-columns {
    align-items: start;
    display: grid;
    gap: clamp(22px, 3vw, 40px);
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    margin-top: 28px;
}
.twss-bd-layout .twss-bd-left-col {
    position: sticky;
    top: 28px;
}
.twss-bd-layout .twss-bd-sidebar {
    background: var(--twss-bd-panel);
    border: 1px solid var(--twss-line);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
    padding: 18px;
}
.twss-bd-layout .twss-bd-sidebar h3 {
    font-size: 26px;
    margin: 0 0 14px;
}
.twss-bd-layout .twss-bd-main-col {
    display: grid;
    gap: 30px;
    min-width: 0;
}
.twss-bd-layout .twss-bd-featured {
    background: var(--twss-bd-panel);
    border: 1px solid var(--twss-line);
    border-radius: 20px;
    padding: clamp(20px, 3vw, 30px);
}
.twss-bd-layout .twss-bd-featured h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 18px;
}
.twss-bd-layout .twss-featured-row {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.twss-bd-layout .twss-mini-product {
    border-radius: 14px;
    min-height: 100%;
}
.twss-bd-layout .twss-bd-grid .twss-product-grid {
    gap: clamp(18px, 2.4vw, 28px);
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.twss-bd-layout .twss-front-product {
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}
.twss-bd-layout .twss-front-product h3 {
    font-size: 22px;
}
.twss-builder-page-shell {
    max-width: none;
}
.twss-builder-hero-note {
    background: #eef6ff;
    border: 1px dashed #93c5fd;
    border-radius: 16px;
    color: #1e3a8a;
    margin: 20px auto;
    max-width: 1240px;
    padding: 18px 22px;
}
.twss-builder-hero-note h1 {
    font-size: 22px;
    margin: 0 0 5px;
}
.twss-builder-hero-note p {
    margin: 0;
}
.twss-theme-beauty.twss-bd-layout {
    --twss-bd-accent: #db2777;
    --twss-bd-soft: #fff1f7;
}
.twss-theme-electronics.twss-bd-layout {
    --twss-bd-accent: #0891b2;
    --twss-bd-soft: #ecfeff;
}
.twss-theme-dark.twss-bd-layout {
    --twss-bd-accent: #8b5cf6;
    --twss-bd-soft: #f4f0ff;
}
.twss-theme-minimal.twss-bd-layout {
    --twss-bd-accent: #111827;
    --twss-bd-soft: #f5f5f4;
}
.twss-bd-layout .twss-bd-cart-button,
.twss-bd-layout .twss-front-actions button,
.twss-bd-layout .twss-primary-link {
    background: var(--twss-bd-accent) !important;
}
.twss-bd-layout .twss-bd-cart-button strong,
.twss-bd-layout .twss-cart-link span {
    color: var(--twss-bd-accent) !important;
}
@media (max-width: 900px) {
    .twss-bd-layout .twss-bd-topbar,
    .twss-bd-layout .twss-bd-hero-section,
    .twss-bd-layout .twss-bd-columns {
        grid-template-columns: 1fr;
    }
    .twss-bd-layout .twss-bd-hero-cart { justify-self: start; }
    .twss-bd-layout .twss-bd-left-col { position: static; }
}
@media (max-width: 640px) {
    .twss-bd-layout.twss-shop { width: calc(100% - 18px); }
    .twss-bd-layout .twss-bd-hero-section { padding: 22px; }
    .twss-bd-layout .twss-bd-hero-section h1 { font-size: 38px; }
}

/* 1.1.0 Visual Builder Mode: real HTML pages for Breakdance editing */
.twss-visual-native-page {
  --twss-visual-accent: var(--twss-accent, #2563eb);
  --twss-visual-ink: #0f172a;
  --twss-visual-muted: #64748b;
  --twss-visual-line: #dbe4ef;
  --twss-visual-soft: #f8fafc;
  width: min(1280px, calc(100vw - 48px));
  margin: 40px auto;
  color: var(--twss-visual-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.twss-visual-topbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--twss-visual-line);
  border-bottom: 0;
  background: #f8f3e8;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  color: #475569;
}
.twss-visual-topbar span {
  padding: 13px 18px;
  text-align: center;
  border-right: 1px solid var(--twss-visual-line);
}
.twss-visual-topbar span:last-child { border-right: 0; }
.twss-visual-header {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--twss-visual-line);
  padding: 22px 28px;
  background: #fff;
}
.twss-visual-brand { display:flex; align-items:center; gap:12px; font-size:22px; line-height:1.05; }
.twss-visual-brand span { display:grid; place-items:center; width:46px; height:46px; border-radius:999px; color:#fff; background:var(--twss-visual-accent); font-weight:900; }
.twss-visual-brand strong { max-width:260px; }
.twss-visual-header nav { display:flex; justify-content:center; gap:24px; text-transform:uppercase; font-size:13px; font-weight:900; }
.twss-visual-header nav a { color:var(--twss-visual-ink); text-decoration:none; }
.twss-visual-cart, .twss-visual-button, .twss-visual-add {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding: 0 22px;
  border-radius: 10px;
  border:0;
  background: var(--twss-visual-accent);
  color:#fff !important;
  font-weight:900;
  text-decoration:none !important;
  cursor:pointer;
}
.twss-visual-cart strong { display:grid; place-items:center; min-width:24px; height:24px; border-radius:999px; background:#fff; color:var(--twss-visual-accent); }
.twss-visual-hero {
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  align-items:center;
  border:1px solid var(--twss-visual-line);
  border-top:0;
  background:#fff;
  min-height:360px;
}
.twss-visual-hero > div { padding:52px 64px; }
.twss-visual-hero p, .twss-visual-kicker { margin:0 0 12px; color:var(--twss-visual-accent); font-weight:900; text-transform:uppercase; letter-spacing:.08em; font-size:13px; }
.twss-visual-hero h1 { margin:0 0 18px; font-size: clamp(38px, 5vw, 66px); line-height:.95; letter-spacing:-.06em; }
.twss-visual-hero span { display:block; color:var(--twss-visual-muted); font-size:18px; line-height:1.55; max-width:560px; margin-bottom:28px; }
.twss-visual-hero figure { margin:0; height:100%; min-height:360px; background:var(--twss-visual-soft); overflow:hidden; }
.twss-visual-hero img { width:100%; height:100%; object-fit:cover; display:block; }
.twss-visual-layout { display:grid; grid-template-columns: 270px 1fr; gap:32px; margin-top:32px; align-items:start; }
.twss-visual-sidebar { border:1px solid var(--twss-visual-line); background:#fff; padding:24px; position:sticky; top:24px; }
.twss-visual-sidebar h2 { margin:0 0 18px; font-size:30px; letter-spacing:-.03em; }
.twss-visual-sidebar a { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 12px; border:1px solid var(--twss-visual-line); border-radius:10px; color:#2563eb; font-weight:800; text-decoration:none; margin-bottom:8px; background:#fff; }
.twss-visual-sidebar small { min-width:24px; height:24px; display:grid; place-items:center; border-radius:999px; background:var(--twss-visual-soft); color:var(--twss-visual-muted); }
.twss-visual-section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.twss-visual-section-head h2 { margin:0; font-size:34px; letter-spacing:-.04em; }
.twss-visual-section-head p { margin:0; color:var(--twss-visual-muted); font-weight:700; max-width:420px; }
.twss-visual-products { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:24px; }
.twss-visual-card { border:1px solid var(--twss-visual-line); background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 12px 28px rgba(15,23,42,.06); }
.twss-visual-card-image { display:block; aspect-ratio: 4/3; background:var(--twss-visual-soft); overflow:hidden; text-decoration:none; }
.twss-visual-card-image img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .2s ease; }
.twss-visual-card:hover .twss-visual-card-image img { transform:scale(1.035); }
.twss-visual-card-image span { height:100%; display:grid; place-items:center; font-size:44px; font-weight:900; color:var(--twss-visual-accent); }
.twss-visual-card-body { padding:20px; display:flex; min-height:240px; flex-direction:column; }
.twss-visual-card-meta { margin:0 0 8px; color:var(--twss-visual-accent); font-size:12px; font-weight:900; text-transform:uppercase; }
.twss-visual-card h3 { margin:0 0 10px; font-size:22px; line-height:1.1; letter-spacing:-.03em; }
.twss-visual-card h3 a { color:var(--twss-visual-ink); text-decoration:none; }
.twss-visual-card p:not(.twss-visual-card-meta) { margin:0; color:var(--twss-visual-muted); line-height:1.45; }
.twss-visual-card-bottom { margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:14px; padding-top:18px; }
.twss-visual-add-form.is-compact { margin:0; }
.twss-visual-add-form:not(.is-compact) { display:grid; gap:14px; margin-top:24px; }
.twss-visual-add-form label { display:grid; gap:6px; color:var(--twss-visual-ink); font-weight:800; }
.twss-visual-add-form input, .twss-visual-add-form select { min-height:44px; border:1px solid var(--twss-visual-line); border-radius:10px; padding:0 12px; }
.twss-visual-detail-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.twss-visual-detail-grid { display:grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap:34px; align-items:start; }
.twss-visual-detail-gallery, .twss-visual-detail-summary, .twss-visual-description, .twss-visual-checkout-hero, .twss-visual-live-block { border:1px solid var(--twss-visual-line); border-radius:18px; background:#fff; padding:28px; box-shadow:0 18px 45px rgba(15,23,42,.06); }
.twss-visual-detail-main { width:100%; max-height:620px; object-fit:cover; border-radius:14px; display:block; }
.twss-visual-thumbs { display:grid; grid-template-columns: repeat(5, 1fr); gap:10px; margin-top:12px; }
.twss-visual-thumbs img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.twss-visual-detail-summary h1 { font-size: clamp(34px, 4vw, 58px); line-height:.98; letter-spacing:-.06em; margin:0 0 18px; }
.twss-visual-lead { color:var(--twss-visual-muted); font-size:18px; line-height:1.55; }
.twss-visual-price { font-size:24px; margin:18px 0; }
.twss-visual-description { margin-top:32px; }
.twss-visual-checkout-hero { text-align:center; margin-bottom:24px; }
.twss-visual-checkout-hero h1 { font-size:52px; margin:0 0 10px; }
.twss-visual-live-block .twss-checkout { margin:0; }
.twss-theme-beauty .twss-visual-native-page { --twss-visual-accent:#db2777; }
.twss-theme-tech .twss-visual-native-page { --twss-visual-accent:#0891b2; }
.twss-theme-dark .twss-visual-native-page { --twss-visual-accent:#7c3aed; }
.twss-theme-clean .twss-visual-native-page { --twss-visual-accent:#2563eb; }
@media (max-width: 900px) {
  .twss-visual-native-page { width: min(100%, calc(100vw - 24px)); margin:24px auto; }
  .twss-visual-header, .twss-visual-hero, .twss-visual-layout, .twss-visual-detail-grid { grid-template-columns:1fr; }
  .twss-visual-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .twss-visual-sidebar { position:static; }
}
@media (max-width: 620px) {
  .twss-visual-topbar, .twss-visual-products { grid-template-columns:1fr; }
  .twss-visual-header nav { flex-wrap:wrap; justify-content:flex-start; }
  .twss-visual-hero > div { padding:32px 24px; }
}

/* TW Simple Shop 1.5.3: emergency WooCommerce storefront skin.
   This is used when WooCommerce is the engine, so the customer-facing shop
   no longer looks like an unstyled default archive while Breakdance templates
   are being prepared. */
.twss-wc-storefront-skin {
  --twss-wc-accent: #2563eb;
  --twss-wc-ink: #0f172a;
  --twss-wc-muted: #64748b;
  --twss-wc-line: #dbe7f5;
  --twss-wc-soft: #f6f9fd;
  --twss-wc-card: #ffffff;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 35%, #f8fafc 100%);
  padding: clamp(32px, 5vw, 72px) 18px;
}
.twss-wc-storefront-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
}
.twss-wc-storefront-skin .woocommerce-notices-wrapper,
.twss-wc-storefront-skin .woocommerce-result-count,
.twss-wc-storefront-skin .woocommerce-ordering {
  margin-bottom: 22px;
}
.twss-wc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 34px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--twss-wc-line);
  border-radius: 28px;
  background: radial-gradient(circle at 90% 10%, rgba(37,99,235,.14), transparent 34%), #fff;
  box-shadow: 0 22px 60px rgba(15,23,42,.06);
}
.twss-wc-hero span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--twss-wc-accent);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.twss-wc-hero h1 {
  margin: 0;
  color: var(--twss-wc-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
}
.twss-wc-hero p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--twss-wc-muted);
  font-size: 17px;
  line-height: 1.6;
}
.twss-wc-cart-link,
.twss-wc-storefront-skin a.button,
.twss-wc-storefront-skin button.button,
.twss-wc-storefront-skin .button,
.twss-wc-storefront-skin .added_to_cart {
  border-radius: 14px !important;
  border: 0 !important;
  background: var(--twss-wc-accent) !important;
  color: #fff !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(37,99,235,.20);
}
.twss-wc-cart-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 48px;
  padding: 12px 18px;
}
.twss-wc-storefront-skin .woocommerce-ordering select {
  min-height: 46px;
  padding: 0 42px 0 16px;
  border: 1px solid var(--twss-wc-line);
  border-radius: 14px;
  background-color: #fff;
  color: var(--twss-wc-ink);
}
.twss-wc-storefront-skin .woocommerce-result-count {
  color: var(--twss-wc-muted);
  font-weight: 700;
}
.twss-wc-storefront-skin ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.twss-wc-storefront-skin ul.products::before,
.twss-wc-storefront-skin ul.products::after { display: none !important; }
.twss-wc-storefront-skin ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 0 18px !important;
  overflow: hidden;
  border: 1px solid var(--twss-wc-line);
  border-radius: 22px;
  background: var(--twss-wc-card);
  box-shadow: 0 18px 46px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.twss-wc-storefront-skin ul.products li.product:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.25);
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
}
.twss-wc-storefront-skin ul.products li.product a.woocommerce-LoopProduct-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.twss-wc-storefront-skin ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / .86;
  object-fit: cover;
  margin: 0 0 18px !important;
  background: var(--twss-wc-soft);
}
.twss-wc-storefront-skin ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.5em;
  margin: 0 !important;
  padding: 0 18px !important;
  color: var(--twss-wc-ink);
  font-size: 20px !important;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.twss-wc-storefront-skin ul.products li.product .price {
  display: block !important;
  margin: 14px 18px 16px !important;
  color: var(--twss-wc-ink) !important;
  font-size: 22px !important;
  font-weight: 950 !important;
}
.twss-wc-storefront-skin ul.products li.product .price del {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-size: 15px;
  margin-right: 6px;
}
.twss-wc-storefront-skin ul.products li.product .price ins {
  text-decoration: none !important;
}
.twss-wc-storefront-skin ul.products li.product .button,
.twss-wc-storefront-skin ul.products li.product .added_to_cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 18px !important;
  padding: 10px 16px !important;
}
.twss-wc-storefront-skin ul.products li.product .onsale,
.twss-wc-storefront-skin span.onsale {
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-transform: uppercase;
}
.twss-wc-storefront-skin div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--twss-wc-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15,23,42,.07);
}
.twss-wc-storefront-skin div.product div.images,
.twss-wc-storefront-skin div.product div.summary {
  width: auto !important;
  float: none !important;
}
.twss-wc-storefront-skin div.product .product_title {
  color: var(--twss-wc-ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}
.twss-wc-storefront-skin div.product p.price,
.twss-wc-storefront-skin div.product span.price {
  color: var(--twss-wc-ink);
  font-size: 28px;
  font-weight: 950;
}
.twss-wc-storefront-skin .quantity .qty {
  min-height: 48px;
  border: 1px solid var(--twss-wc-line);
  border-radius: 14px;
}
.twss-wc-storefront-skin .woocommerce-cart-form,
.twss-wc-storefront-skin .cart-collaterals,
.twss-wc-storefront-skin form.checkout {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--twss-wc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15,23,42,.06);
}
@media (max-width: 1080px) {
  .twss-wc-storefront-skin ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .twss-wc-storefront-skin div.product { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .twss-wc-hero { display: block; }
  .twss-wc-cart-link { margin-top: 18px; }
  .twss-wc-storefront-skin ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px !important; }
}
@media (max-width: 520px) {
  .twss-wc-storefront-skin ul.products { grid-template-columns: 1fr; }
}

body.twss-wc-storefront-skin-body .entry-content > .woocommerce,
body.twss-wc-storefront-skin-body main .woocommerce {
  width: min(1220px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}
body.twss-wc-storefront-skin-body.woocommerce-cart .entry-content > .woocommerce,
body.twss-wc-storefront-skin-body.woocommerce-checkout .entry-content > .woocommerce {
  margin-top: clamp(28px, 5vw, 70px);
  margin-bottom: clamp(28px, 5vw, 70px);
}
body.twss-wc-storefront-skin-body .woocommerce table.shop_table {
  border: 1px solid #dbe7f5;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15,23,42,.06);
}
body.twss-wc-storefront-skin-body .woocommerce table.shop_table th,
body.twss-wc-storefront-skin-body .woocommerce table.shop_table td {
  padding: 16px 18px;
}

/* The existing checkout now offers manual payment beside configured Stripe. */
.twss-checkout-form .twss-payment-method { border: 1px solid #dce4ef; border-radius: 8px; display: grid; gap: 10px; margin: 0; padding: 14px; min-width: 0; }
.twss-checkout-form .twss-payment-method legend { font-weight: 700; padding: 0 5px; }
.twss-checkout-form .twss-payment-method label { align-items: center; display: flex; gap: 9px; }
.twss-checkout-form .twss-payment-method input[type="radio"] { border: initial; flex: 0 0 auto; height: 18px; min-height: 0; margin: 0; padding: 0; width: 18px; }

/* TW Simple Shop 1.9.0 — Modern Emerald, adapted from the supplied HTML.
   All selectors are scoped so existing design packs remain unchanged. */
.twss-design-modern-emerald.twss-shop {
    --twss-brand: #10b981;
    --twss-ink: #1f2937;
    --twss-muted: #6b7280;
    --twss-line: #e5e7eb;
    --twss-soft: #f9fafb;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--twss-ink);
    background: #f9fafb;
    width: min(100% - 24px, 1200px) !important;
    max-width: 1200px !important;
    margin: 26px auto 48px;
    padding: 0 !important;
    border-radius: 14px;
}
.twss-design-modern-emerald .twss-emerald-storefront {
    border: 1px solid #eef2f3;
    border-radius: 14px;
    overflow: hidden;
    background: #f9fafb;
}
.twss-design-modern-emerald .twss-emerald-topbar {
    background: #1f2937;
    color: #fff;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    letter-spacing: .045em;
}
.twss-design-modern-emerald .twss-emerald-header {
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 26px;
}
.twss-design-modern-emerald .twss-emerald-logo {
    color: #1f2937;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.2;
    min-width: 0;
}
.twss-design-modern-emerald .twss-emerald-logo span { color: #059669; }
.twss-design-modern-emerald .twss-emerald-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 450px;
    margin: 0 auto;
}
.twss-design-modern-emerald .twss-emerald-search input {
    min-width: 0;
    flex: 1;
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background: #f9fafb;
    color: #1f2937;
    padding: 10px 16px;
    font: inherit;
}
.twss-design-modern-emerald .twss-emerald-search input:focus {
    border-color: #10b981;
    outline: 3px solid rgba(16,185,129,.18);
}
.twss-design-modern-emerald .twss-emerald-search button {
    border: 0;
    color: #065f46;
    background: #d1fae5;
    font-weight: 700;
    padding: 10px 13px;
    border-radius: 24px;
    cursor: pointer;
}
.twss-design-modern-emerald .twss-emerald-cart.twss-cart-link {
    white-space: nowrap;
    margin: 0;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 28px;
    background: #059669;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(5,150,105,.12);
}
.twss-design-modern-emerald .twss-emerald-cart span {
    color: #065f46;
    background: rgba(255,255,255,.9);
}
.twss-design-modern-emerald .twss-emerald-main { padding: 40px 28px 46px; }
.twss-design-modern-emerald .twss-emerald-collection { margin: 0 0 22px; }
.twss-design-modern-emerald .twss-emerald-collection h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.2;
    letter-spacing: -.035em;
    color: #1f2937;
    font-weight: 800;
}
.twss-design-modern-emerald .twss-emerald-collection p,
.twss-design-modern-emerald .twss-emerald-search-label { margin: 0 0 18px; color: #6b7280; }
.twss-design-modern-emerald .twss-category-filters { margin-bottom: 26px; }
.twss-design-modern-emerald .twss-category-filters a {
    border-radius: 24px;
    padding: 8px 14px;
    background: white;
    color: #4b5563;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}
.twss-design-modern-emerald .twss-category-filters a.is-active {
    color: #065f46;
    background: #d1fae5;
    border-color: #a7f3d0;
}
.twss-design-modern-emerald .twss-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}
.twss-design-modern-emerald .twss-front-product {
    background: #fff;
    border: 1px solid #f0f2f4;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.twss-design-modern-emerald .twss-front-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,.09);
}
.twss-design-modern-emerald .twss-product-image-link,
.twss-design-modern-emerald .twss-front-product img,
.twss-design-modern-emerald .twss-front-product .twss-product-placeholder {
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #eef2f6;
}
.twss-design-modern-emerald .twss-front-product-body { padding: 20px; gap: 10px; }
.twss-design-modern-emerald .twss-front-product h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
}
.twss-design-modern-emerald .twss-front-badges span {
    border-radius: 18px;
    padding: 5px 9px;
    background: #ecfdf5;
    color: #047857;
    font-size: 11px;
    font-weight: 600;
}
.twss-design-modern-emerald .twss-front-badges span.is-unavailable { background: #fee2e2; color: #991b1b; }
.twss-design-modern-emerald .twss-front-product-foot { gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.twss-design-modern-emerald .twss-front-product-foot .twss-price { color: #1f2937; font-size: 19px; font-weight: 800; }
.twss-design-modern-emerald .twss-front-product button,
.twss-design-modern-emerald .twss-choose-options {
    border-radius: 8px;
    background: #059669;
    color: #fff;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 700;
    min-height: 40px;
}
.twss-design-modern-emerald .twss-front-product button:hover,
.twss-design-modern-emerald .twss-emerald-cart:hover { background: #047857; }
.twss-design-modern-emerald .twss-front-product button:disabled { background: #cbd5e1; color: #475569; }
/* Product single inherits the same active design; do not change cart/stock logic. */
.twss-design-modern-emerald.twss-product-detail.twss-shop { background: transparent; max-width: 1150px !important; }
.twss-design-modern-emerald.twss-product-detail .twss-shop-head {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 24px;
}
.twss-design-modern-emerald.twss-product-detail .twss-shop-head h2 { font-size: 23px; }
.twss-design-modern-emerald.twss-product-detail .twss-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0 !important;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.07);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.twss-design-modern-emerald.twss-product-detail .twss-detail-media {
    background: #f3f4f6;
    border: 0;
    border-radius: 0 !important;
    padding: 20px;
    min-width: 0;
}
.twss-design-modern-emerald.twss-product-detail .twss-detail-content {
    border: 0;
    border-radius: 0 !important;
    padding: clamp(24px, 3.6vw, 50px);
    min-width: 0;
}
.twss-design-modern-emerald.twss-product-detail .twss-detail-content h1 {
    color: #1f2937;
    font-size: clamp(28px, 3vw, 40px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em;
}
.twss-design-modern-emerald.twss-product-detail .twss-detail-price {
    color: #059669;
    font-size: 28px !important;
    font-weight: 800;
}
.twss-design-modern-emerald.twss-product-detail .twss-detail-cart button { background: #059669; border-radius: 9px; }
.twss-design-modern-emerald.twss-product-detail .twss-detail-description {
    margin-top: 20px;
    background: #fff;
    padding: 24px;
    border-radius: 12px !important;
    border: 1px solid #e5e7eb;
}
@media (max-width: 840px) {
    .twss-design-modern-emerald .twss-emerald-header { flex-wrap: wrap; padding: 16px; }
    .twss-design-modern-emerald .twss-emerald-search { order: 3; flex: 0 0 100%; max-width: none; }
    .twss-design-modern-emerald .twss-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .twss-design-modern-emerald.twss-product-detail .twss-detail-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 540px) {
    .twss-design-modern-emerald.twss-shop { width: min(100% - 14px, 1200px) !important; }
    .twss-design-modern-emerald .twss-emerald-main { padding: 25px 14px; }
    .twss-design-modern-emerald .twss-product-grid { grid-template-columns: 1fr; }
    .twss-design-modern-emerald .twss-emerald-header { gap: 12px; }
    .twss-design-modern-emerald .twss-emerald-logo { font-size: 17px; }
    .twss-design-modern-emerald .twss-emerald-cart.twss-cart-link { padding: 9px 12px; }
    .twss-design-modern-emerald.twss-product-detail .twss-detail-media { padding: 12px; }
}

/* 2.3.0 responsive image pipeline: preserve gallery layout with optional <picture> */
.twss-detail-main-button picture{display:block;width:100%;height:100%}
.twss-detail-main-button picture img{display:block;width:100%;height:100%;object-fit:contain}
