/* Pips Robot WooCommerce Design */
body.prwd-active,
body.prwd-active .page_wrap,
body.prwd-active .body_wrap,
body.prwd-active .content_wrap,
body.prwd-active .woocommerce {
    background: var(--prwd-page-bg) !important;
}

body.prwd-active {
    color: var(--prwd-text);
}

body.prwd-full-width.woocommerce-page .content_wrap,
body.prwd-full-width.woocommerce-page .content,
body.prwd-full-width.woocommerce-page main.site-main,
body.prwd-full-width.woocommerce-page .site-main,
body.prwd-full-width.woocommerce-page .woocommerce {
    width: 100% !important;
    max-width: 1320px !important;
    margin-inline: auto !important;
    padding-inline: clamp(14px, 3vw, 34px) !important;
    box-sizing: border-box;
}

body.prwd-active.woocommerce-page #content,
body.prwd-active.woocommerce-page .site-content,
body.prwd-active.woocommerce-page .page_content_wrap,
body.prwd-active.woocommerce-page .content_wrap {
    padding-top: clamp(14px, 2.5vw, 34px) !important;
}

body.prwd-active a {
    transition: all .22s ease;
}

.prwd-archive-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 clamp(22px, 4vw, 44px) 0;
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid var(--prwd-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(214,165,43,.16), transparent 34%),
        linear-gradient(135deg, rgba(11,18,34,.98), rgba(17,24,39,.94));
    box-shadow: 0 24px 70px rgba(0,0,0,.34);
    text-align: center;
}

.prwd-archive-hero:before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 24px;
    pointer-events: none;
}

.prwd-archive-kicker,
.prwd-type-badge,
.prwd-sale-badge,
.prwd-single-badges span,
.prwd-loop-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid var(--prwd-border);
    background: rgba(214,165,43,.09);
    color: var(--prwd-gold-light);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
}

.prwd-sale-badge {
    background: linear-gradient(135deg, var(--prwd-gold-light), var(--prwd-gold));
    color: #111;
    border-color: rgba(244,211,107,.9);
}

.prwd-archive-hero h1 {
    position: relative;
    max-width: 880px;
    margin: 18px auto 14px !important;
    color: var(--prwd-text) !important;
    font-size: clamp(30px, 5vw, 64px) !important;
    line-height: 1.14 !important;
    font-weight: 900 !important;
    letter-spacing: -1px;
}

.prwd-archive-hero p {
    position: relative;
    max-width: 800px;
    margin: 0 auto !important;
    color: var(--prwd-muted) !important;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.9;
}

.prwd-archive-trust {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.prwd-archive-trust span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(214,165,43,.28);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    color: var(--prwd-text);
    font-size: 13px;
    font-weight: 700;
}

.prwd-archive-trust span:before,
.prwd-loop-meta span:before,
.prwd-spec-item .prwd-dot,
.prwd-single-note:before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: var(--prwd-gold);
    box-shadow: 0 0 14px rgba(214,165,43,.75);
}

body.prwd-active .woocommerce-result-count,
body.prwd-active .woocommerce-ordering select {
    color: var(--prwd-muted) !important;
}

body.prwd-active .woocommerce-ordering select,
body.prwd-active .woocommerce select,
body.prwd-active .woocommerce input.input-text,
body.prwd-active .woocommerce textarea {
    border: 1px solid var(--prwd-border) !important;
    background-color: #08101f !important;
    color: var(--prwd-text) !important;
    border-radius: 14px !important;
    min-height: 46px;
}

body.prwd-active .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px !important;
    margin: 0 !important;
}

body.prwd-active .woocommerce ul.products:before,
body.prwd-active .woocommerce ul.products:after {
    display: none !important;
}

body.prwd-active .woocommerce ul.products li.product,
.prwd-custom-card {
    position: relative;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-height: 100%;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--prwd-border) !important;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(214,165,43,.12), transparent 32%),
        linear-gradient(180deg, var(--prwd-card-bg), var(--prwd-card-bg-2));
    box-shadow: 0 18px 45px rgba(0,0,0,.3);
    padding: 14px !important;
    color: var(--prwd-text);
}

body.prwd-active .woocommerce ul.products li.product:hover,
.prwd-custom-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244,211,107,.88) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(244,211,107,.08) inset;
}

body.prwd-active .woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
}

body.prwd-active .woocommerce ul.products li.product img,
.prwd-card-image img {
    width: 100% !important;
    aspect-ratio: 1 / .78;
    object-fit: cover;
    border-radius: 18px;
    background: #060b15;
    margin: 0 0 14px !important;
    border: 1px solid rgba(255,255,255,.06);
}

.prwd-card-image {
    position: relative;
    display: block;
    text-decoration: none !important;
}

.prwd-loop-badges,
.prwd-card-image .prwd-type-badge,
.prwd-card-image .prwd-sale-badge {
    position: absolute;
    z-index: 3;
    top: 24px;
    right: 24px;
}

.prwd-card-image .prwd-sale-badge,
.prwd-loop-badges .prwd-sale-badge {
    top: 62px;
}

body.rtl .prwd-loop-badges,
body.rtl .prwd-card-image .prwd-type-badge,
body.rtl .prwd-card-image .prwd-sale-badge {
    right: auto;
    left: 24px;
}

body.prwd-active .woocommerce ul.products li.product .woocommerce-loop-product__title,
.prwd-custom-card h3 {
    color: var(--prwd-text) !important;
    font-size: 18px !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
    margin: 10px 0 10px !important;
    min-height: 50px;
}

.prwd-custom-card h3 a {
    color: var(--prwd-text) !important;
    text-decoration: none !important;
}

body.prwd-active .woocommerce ul.products li.product .price,
.prwd-card-price,
body.prwd-active div.product p.price,
body.prwd-active div.product span.price {
    color: var(--prwd-gold-light) !important;
    font-weight: 900 !important;
    font-size: 20px !important;
    line-height: 1.3;
    display: block;
    margin: 8px 0 10px !important;
}

body.prwd-active .woocommerce ul.products li.product .price del,
.prwd-card-price del,
body.prwd-active div.product p.price del,
body.prwd-active div.product span.price del {
    color: rgba(174,182,200,.7) !important;
    opacity: 1 !important;
    font-size: .82em;
    margin-inline-end: 8px;
}

body.prwd-active .woocommerce ul.products li.product .price ins,
.prwd-card-price ins,
body.prwd-active div.product p.price ins,
body.prwd-active div.product span.price ins {
    text-decoration: none;
    color: var(--prwd-gold-light) !important;
}

.prwd-loop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 9px;
}

.prwd-loop-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--prwd-muted);
    font-size: 12px;
    font-weight: 700;
}

.prwd-loop-meta span:before {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

.prwd-card-rating,
body.prwd-active .woocommerce ul.products li.product .star-rating {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: var(--prwd-gold-light) !important;
    margin: 7px 0;
}

.prwd-card-rating span:not(.star-rating) {
    color: var(--prwd-muted);
    font-size: 12px;
    font-weight: 700;
}

.prwd-buy-now,
body.prwd-active .woocommerce a.button,
body.prwd-active .woocommerce button.button,
body.prwd-active .woocommerce input.button,
body.prwd-active .woocommerce #respond input#submit,
.prwd-card-actions a {
    width: 100%;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--prwd-gold-light), var(--prwd-gold)) !important;
    color: #080a10 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    padding: 15px 18px !important;
    margin-top: auto !important;
    box-shadow: 0 12px 30px rgba(214,165,43,.26);
}

.prwd-buy-now:hover,
body.prwd-active .woocommerce a.button:hover,
body.prwd-active .woocommerce button.button:hover,
body.prwd-active .woocommerce input.button:hover,
body.prwd-active .woocommerce #respond input#submit:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.prwd-countdown {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid rgba(214,165,43,.35);
    border-radius: 16px;
    background: rgba(214,165,43,.06);
}

.prwd-countdown-title {
    display: block;
    color: var(--prwd-gold-light);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 9px;
}

.prwd-countdown-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}

.prwd-countdown-boxes span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 11px;
    background: rgba(0,0,0,.25);
    color: var(--prwd-text);
    font-weight: 900;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,.06);
}

body.prwd-active.single-product div.product {
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
    gap: clamp(22px, 4vw, 50px);
    align-items: start;
}

body.prwd-active.single-product div.product div.images,
body.prwd-active.single-product div.product div.summary {
    float: none !important;
    width: auto !important;
}

body.prwd-active.single-product div.product div.images {
    border: 1px solid var(--prwd-border);
    border-radius: 28px;
    padding: 14px;
    background: linear-gradient(180deg, var(--prwd-card-bg), var(--prwd-card-bg-2));
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

body.prwd-active.single-product div.product div.images img {
    border-radius: 20px;
}

body.prwd-active.single-product div.product div.summary {
    border: 1px solid var(--prwd-border);
    border-radius: 28px;
    padding: clamp(22px, 4vw, 40px) !important;
    background:
        radial-gradient(circle at top right, rgba(214,165,43,.12), transparent 32%),
        linear-gradient(180deg, var(--prwd-card-bg), var(--prwd-card-bg-2));
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

body.prwd-active.single-product .product_title {
    color: var(--prwd-text) !important;
    font-size: clamp(30px, 4.8vw, 58px) !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    margin: 12px 0 16px !important;
}

.prwd-single-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 14px;
}

body.prwd-active.single-product .woocommerce-product-rating,
body.prwd-active.single-product .woocommerce-review-link {
    color: var(--prwd-muted) !important;
}

body.prwd-active.single-product form.cart {
    margin-top: 18px !important;
}

body.prwd-active.single-product .quantity {
    display: none !important;
}

.prwd-single-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0 !important;
    color: var(--prwd-muted) !important;
    font-size: 13px;
    line-height: 1.7;
}

.prwd-spec-panel {
    clear: both;
    margin-top: clamp(24px, 4vw, 52px);
    border: 1px solid var(--prwd-border);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--prwd-card-bg), var(--prwd-card-bg-2));
    padding: clamp(20px, 4vw, 38px);
    box-shadow: 0 20px 60px rgba(0,0,0,.24);
}

.prwd-spec-head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
}

.prwd-spec-head > span,
.prwd-cat-ai {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(244,211,107,.28), rgba(214,165,43,.08));
    border: 1px solid var(--prwd-border);
    color: var(--prwd-gold-light);
    font-weight: 900;
}

.prwd-spec-head h2 {
    margin: 0 !important;
    color: var(--prwd-text) !important;
    font-size: clamp(22px, 3vw, 34px) !important;
    font-weight: 900 !important;
}

.prwd-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.prwd-spec-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px;
    border: 1px solid rgba(214,165,43,.24);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    color: var(--prwd-text);
    font-weight: 800;
}

body.prwd-active .woocommerce-tabs {
    clear: both;
    margin-top: clamp(24px, 4vw, 45px) !important;
    border: 1px solid var(--prwd-border);
    border-radius: 28px;
    background: linear-gradient(180deg, var(--prwd-card-bg), var(--prwd-card-bg-2));
    padding: clamp(16px, 3vw, 30px) !important;
}

body.prwd-active .woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 0 18px !important;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.prwd-active .woocommerce div.product .woocommerce-tabs ul.tabs:before {
    display: none !important;
}

body.prwd-active .woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: 1px solid var(--prwd-border) !important;
    background: rgba(255,255,255,.04) !important;
    border-radius: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.prwd-active .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: rgba(214,165,43,.12) !important;
}

body.prwd-active .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--prwd-text) !important;
    padding: 12px 16px !important;
}

body.prwd-active .woocommerce-Tabs-panel,
body.prwd-active .woocommerce-Tabs-panel p,
body.prwd-active .woocommerce-Tabs-panel li {
    color: var(--prwd-muted) !important;
    line-height: 1.9;
}

.prwd-products,
.prwd-categories {
    display: grid;
    gap: 22px;
}

.prwd-products.prwd-products-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 18px;
    scrollbar-color: var(--prwd-gold) rgba(255,255,255,.08);
}

.prwd-products-slider .prwd-custom-card {
    flex: 0 0 min(320px, 82vw);
    scroll-snap-align: start;
}

.prwd-cols-1 { grid-template-columns: 1fr; }
.prwd-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prwd-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prwd-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prwd-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prwd-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.prwd-category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--prwd-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(214,165,43,.14), transparent 35%),
        linear-gradient(180deg, var(--prwd-card-bg), var(--prwd-card-bg-2));
    color: var(--prwd-text) !important;
    text-decoration: none !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.prwd-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244,211,107,.9);
}

.prwd-cat-img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
    display: inline-flex;
}

.prwd-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prwd-category-card strong {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 900;
}

.prwd-category-card small {
    color: var(--prwd-muted);
    margin-top: 8px;
    font-weight: 700;
}

.prwd-empty {
    border: 1px solid var(--prwd-border);
    border-radius: 18px;
    padding: 20px;
    color: var(--prwd-muted);
    background: var(--prwd-card-bg);
}

@media (max-width: 1200px) {
    body.prwd-active .woocommerce ul.products,
    .prwd-cols-4,
    .prwd-cols-5,
    .prwd-cols-6,
    .prwd-spec-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.prwd-active .woocommerce ul.products,
    .prwd-cols-3,
    .prwd-cols-4,
    .prwd-cols-5,
    .prwd-cols-6,
    .prwd-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.prwd-active.single-product div.product {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.prwd-full-width.woocommerce-page .content_wrap,
    body.prwd-full-width.woocommerce-page .content,
    body.prwd-full-width.woocommerce-page main.site-main,
    body.prwd-full-width.woocommerce-page .site-main,
    body.prwd-full-width.woocommerce-page .woocommerce {
        padding-inline: 12px !important;
    }
    .prwd-archive-hero,
    body.prwd-active.single-product div.product div.summary,
    body.prwd-active.single-product div.product div.images,
    .prwd-spec-panel {
        border-radius: 22px;
        padding: 18px !important;
    }
    body.prwd-active .woocommerce ul.products,
    .prwd-products:not(.prwd-products-slider),
    .prwd-categories,
    .prwd-spec-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    body.prwd-active .woocommerce ul.products li.product,
    .prwd-custom-card {
        border-radius: 20px;
    }
    .prwd-archive-hero h1,
    body.prwd-active.single-product .product_title {
        letter-spacing: 0;
    }
    .prwd-archive-trust {
        flex-direction: column;
    }
    .prwd-countdown-boxes span {
        min-height: 32px;
        font-size: 12px;
    }
}

/* v1.1.0 - Full width, mobile-safe and clean WooCommerce screens */
body.prwd-active,
body.prwd-active * {
    box-sizing: border-box;
}

html:has(body.prwd-active),
body.prwd-active {
    overflow-x: clip !important;
}

body.prwd-active.woocommerce-page,
body.prwd-active.woocommerce-page .page_wrap,
body.prwd-active.woocommerce-page .body_wrap,
body.prwd-active.woocommerce-page .page_content_wrap,
body.prwd-active.woocommerce-page .site-content,
body.prwd-active.woocommerce-page #content,
body.prwd-active.woocommerce-page main,
body.prwd-active.woocommerce-page .main,
body.prwd-active.woocommerce-page .content_wrap,
body.prwd-active.woocommerce-page .content,
body.prwd-active.woocommerce-page .woocommerce {
    background: var(--prwd-page-bg) !important;
}

/* Clean layout: keep header/footer and WooCommerce content only */
body.prwd-active.woocommerce-page .sidebar,
body.prwd-active.woocommerce-page .sidebar_inner,
body.prwd-active.woocommerce-page .widget_area,
body.prwd-active.woocommerce-page .widgets_above_page_wrap,
body.prwd-active.woocommerce-page .widgets_below_page_wrap,
body.prwd-active.woocommerce-page .related_wrap,
body.prwd-active.woocommerce-page .related_posts,
body.prwd-active.woocommerce-page .trx_addons_related_posts,
body.prwd-active.woocommerce-page .sc_blogger,
body.prwd-active.woocommerce-page .post_meta,
body.prwd-active.woocommerce-page .post_footer,
body.prwd-active.woocommerce-page .post_author,
body.prwd-active.woocommerce-page .comments_wrap,
body.prwd-active.woocommerce-page .nav-links-single,
body.prwd-active.single-product .related.products,
body.prwd-active.single-product .upsells.products {
    display: none !important;
}

body.prwd-full-width.woocommerce-page .page_content_wrap > .content_wrap,
body.prwd-full-width.woocommerce-page .content_wrap,
body.prwd-full-width.woocommerce-page .content,
body.prwd-full-width.woocommerce-page main.site-main,
body.prwd-full-width.woocommerce-page .site-main,
body.prwd-full-width.woocommerce-page .woocommerce,
body.prwd-full-width.woocommerce-page div.product {
    width: 100% !important;
    max-width: 1460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(12px, 2.2vw, 34px) !important;
    padding-right: clamp(12px, 2.2vw, 34px) !important;
}

body.prwd-active.woocommerce-page .page_content_wrap,
body.prwd-active.woocommerce-page .content_wrap,
body.prwd-active.woocommerce-page .content {
    padding-top: clamp(10px, 1.8vw, 26px) !important;
    padding-bottom: clamp(20px, 4vw, 56px) !important;
}

body.prwd-active.woocommerce-page .woocommerce-notices-wrapper,
body.prwd-active.woocommerce-page .woocommerce-result-count,
body.prwd-active.woocommerce-page .woocommerce-ordering,
body.prwd-active.woocommerce-page nav.woocommerce-pagination {
    max-width: 1460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Archive hero with balanced spacing */
.prwd-archive-hero {
    width: 100%;
    margin: 0 0 clamp(18px, 3vw, 34px) !important;
    padding: clamp(22px, 4vw, 46px) !important;
}

.prwd-archive-hero h1 {
    font-size: clamp(28px, 4.2vw, 56px) !important;
    max-width: 960px;
}

/* Product archive/cards */
body.prwd-active .woocommerce ul.products {
    width: 100% !important;
    max-width: 1460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    align-items: stretch !important;
}

body.prwd-active .woocommerce ul.products li.product,
.prwd-custom-card {
    min-width: 0 !important;
    max-width: 100% !important;
    isolation: isolate;
}

body.prwd-active .woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.prwd-card-content,
.prwd-custom-card h3,
.prwd-custom-card h3 a {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.prwd-active .woocommerce ul.products li.product .woocommerce-loop-product__title,
.prwd-custom-card h3 {
    min-height: unset !important;
    overflow-wrap: anywhere;
}

.prwd-loop-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-width: calc(100% - 30px);
}

.prwd-loop-badges .prwd-type-badge,
.prwd-loop-badges .prwd-sale-badge {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
}

body.prwd-active .woocommerce ul.products li.product .prwd-loop-badges {
    position: absolute;
    z-index: 5;
    top: 22px;
    inset-inline-start: 22px;
    inset-inline-end: auto;
}

.prwd-type-badge,
.prwd-sale-badge,
.prwd-single-badges span,
.prwd-loop-badges span {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

body.prwd-active .woocommerce ul.products li.product .price,
.prwd-card-price {
    word-break: break-word;
}

/* Single product: strong responsive reset */
body.prwd-active.single-product .woocommerce div.product,
body.prwd-active.single-product div.product.product,
body.prwd-active.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
    gap: clamp(18px, 3vw, 44px) !important;
    align-items: start !important;
    overflow: visible !important;
    padding-top: 0 !important;
}

body.prwd-active.single-product .woocommerce-product-gallery,
body.prwd-active.single-product div.product div.images,
body.prwd-active.single-product div.product div.summary,
body.prwd-active.single-product .summary,
body.prwd-active.single-product .entry-summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    clear: none !important;
}

body.prwd-active.single-product .summary,
body.prwd-active.single-product .entry-summary,
body.prwd-active.single-product div.product div.summary {
    overflow: hidden !important;
}

body.prwd-active.single-product .product_title,
body.prwd-active.single-product .woocommerce-product-details__short-description,
body.prwd-active.single-product .woocommerce-product-details__short-description p,
body.prwd-active.single-product .summary p,
body.prwd-active.single-product .summary li {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

body.prwd-active.single-product .product_title {
    font-size: clamp(28px, 4.4vw, 54px) !important;
}

body.prwd-active.single-product .woocommerce-product-details__short-description {
    color: var(--prwd-muted) !important;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.9;
    margin: 12px 0 18px !important;
}

body.prwd-active.single-product .prwd-single-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
}

body.prwd-active.single-product .prwd-single-badges span {
    flex: 0 1 auto;
    min-width: 0;
}

body.prwd-active.single-product form.cart,
body.prwd-active.single-product form.cart .single_add_to_cart_button,
body.prwd-active.single-product .prwd-buy-now {
    width: 100% !important;
    max-width: 100% !important;
}

body.prwd-active.single-product form.cart .single_add_to_cart_button {
    min-height: 58px !important;
    border-radius: 18px !important;
    font-size: 17px !important;
}

body.prwd-active.single-product .woocommerce-product-gallery__wrapper,
body.prwd-active.single-product .woocommerce-product-gallery__image,
body.prwd-active.single-product .woocommerce-product-gallery__image a,
body.prwd-active.single-product .woocommerce-product-gallery__image img {
    max-width: 100% !important;
}

.prwd-spec-panel,
body.prwd-active .woocommerce-tabs {
    width: 100% !important;
    max-width: 1460px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.prwd-active .woocommerce-tabs .panel,
body.prwd-active .woocommerce-Tabs-panel {
    overflow-wrap: anywhere;
}

/* Shortcode products/categories inherit the same safe layout */
.prwd-products,
.prwd-categories {
    width: 100%;
    min-width: 0;
}

.prwd-products-slider {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    body.prwd-active.single-product .woocommerce div.product,
    body.prwd-active.single-product div.product.product,
    body.prwd-active.single-product div.product {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    body.prwd-full-width.woocommerce-page .page_content_wrap > .content_wrap,
    body.prwd-full-width.woocommerce-page .content_wrap,
    body.prwd-full-width.woocommerce-page .content,
    body.prwd-full-width.woocommerce-page main.site-main,
    body.prwd-full-width.woocommerce-page .site-main,
    body.prwd-full-width.woocommerce-page .woocommerce,
    body.prwd-full-width.woocommerce-page div.product {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.prwd-active.woocommerce-page .page_content_wrap,
    body.prwd-active.woocommerce-page .content_wrap,
    body.prwd-active.woocommerce-page .content {
        padding-top: 8px !important;
    }

    .prwd-archive-hero {
        border-radius: 22px !important;
        padding: 20px 16px !important;
    }

    .prwd-archive-hero h1 {
        font-size: clamp(26px, 8vw, 38px) !important;
        line-height: 1.25 !important;
    }

    .prwd-archive-hero p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    body.prwd-active .woocommerce ul.products,
    .prwd-products:not(.prwd-products-slider),
    .prwd-categories,
    .prwd-spec-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    body.prwd-active .woocommerce ul.products li.product,
    .prwd-custom-card,
    body.prwd-active.single-product div.product div.images,
    body.prwd-active.single-product div.product div.summary,
    .prwd-spec-panel,
    body.prwd-active .woocommerce-tabs {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 22px !important;
    }

    body.prwd-active.single-product div.product div.summary,
    body.prwd-active.single-product div.product div.images,
    .prwd-spec-panel,
    body.prwd-active .woocommerce-tabs {
        padding: 18px !important;
    }

    body.prwd-active.single-product .product_title {
        font-size: clamp(26px, 8vw, 38px) !important;
        line-height: 1.25 !important;
    }

    body.prwd-active.single-product .prwd-single-badges span,
    .prwd-archive-trust span {
        font-size: 12px !important;
        padding: 7px 10px !important;
    }

    body.prwd-active .woocommerce ul.products li.product img,
    .prwd-card-image img {
        aspect-ratio: 1 / .72;
        border-radius: 16px;
    }

    .prwd-countdown-boxes {
        gap: 6px !important;
    }

    .prwd-countdown-boxes span {
        min-height: 34px !important;
        font-size: 12px !important;
    }

    body.prwd-active .woocommerce div.product .woocommerce-tabs ul.tabs {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body.prwd-active .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 420px) {
    body.prwd-full-width.woocommerce-page .page_content_wrap > .content_wrap,
    body.prwd-full-width.woocommerce-page .content_wrap,
    body.prwd-full-width.woocommerce-page .content,
    body.prwd-full-width.woocommerce-page .woocommerce,
    body.prwd-full-width.woocommerce-page div.product {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.prwd-active .woocommerce ul.products li.product,
    .prwd-custom-card,
    body.prwd-active.single-product div.product div.summary,
    body.prwd-active.single-product div.product div.images,
    .prwd-spec-panel,
    body.prwd-active .woocommerce-tabs {
        padding: 14px !important;
        border-radius: 20px !important;
    }

    .prwd-type-badge,
    .prwd-sale-badge,
    .prwd-single-badges span,
    .prwd-loop-badges span {
        font-size: 11px !important;
        min-height: 28px !important;
        padding: 6px 9px !important;
    }

    body.prwd-active.single-product form.cart .single_add_to_cart_button,
    .prwd-buy-now,
    body.prwd-active .woocommerce a.button,
    body.prwd-active .woocommerce button.button,
    .prwd-card-actions a {
        min-height: 52px !important;
        font-size: 15px !important;
        border-radius: 16px !important;
    }
}
