/*
Theme Name: Stuffworks Theme
Theme URI: https://www.stuffworks.com
Author: Stuffworks LLC
Author URI: https://www.stuffworks.com
Description: A custom, ultra-lightweight theme designed specifically for Stuffworks LLC.
Version: 1.0.5
Text Domain: stuffworks
*/

/* --- RESET & BASICS --- */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #334155;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }

/* --- ACCESSIBILITY --- */
.sw-skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10001;
    padding: 10px 16px;
    color: #ffffff;
    background: #0f172a;
    border-radius: 6px;
    transform: translateY(-150%);
}
.sw-skip-link:focus {
    transform: translateY(0);
}
:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

/* --- GLOBAL BUTTONS --- */
button, 
input[type="submit"], 
.elementor-button,
.elementor-button-link {
    border-radius: 50px !important;
}
/* --- HEADER DESKTOP --- */
.swb-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e2e8f0;
}
.swb-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.swb-header-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}
.swb-header-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
}

.swb-nav-menu ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.swb-nav-menu ul li {
    position: relative;
}
.swb-nav-menu ul li a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s ease;
}
.swb-nav-menu ul li a:hover {
    color: #2563eb;
}
.swb-nav-menu .menu-item-has-children > a::after {
    content: "\25BE" !important;
    display: inline-block;
    margin-left: 0.4em;
    font-family: inherit !important;
    font-size: 0.75em;
}
.swb-nav-menu ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    flex-direction: column;
    z-index: 10000;
}
.swb-nav-menu ul li:hover ul.sub-menu {
    display: flex;
}
.swb-nav-menu ul li:focus-within ul.sub-menu {
    display: flex;
}
.swb-nav-menu ul li ul.sub-menu li {
    width: 100%;
}
.swb-nav-menu ul li ul.sub-menu li a {
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
    color: #1e293b;
    font-size: 0.95rem;
}
.swb-nav-menu ul li ul.sub-menu li a:hover {
    background: #f8fafc;
    color: #2563eb;
}

.swb-header-socials {
    display: flex;
    gap: 15px;
    align-items: center;
}
.swb-header-socials a {
    color: #64748b;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.swb-header-socials svg {
    display: block;
    width: 1em;
    height: 1em;
}
.swb-header-socials a:hover {
    color: #2563eb;
}

.swb-mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: #0f172a;
    cursor: pointer;
    padding: 6px 10px;
}
.swb-menu-icon,
.swb-menu-icon::before,
.swb-menu-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.swb-menu-icon {
    position: relative;
}
.swb-menu-icon::before,
.swb-menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
}
.swb-menu-icon::before {
    transform: translateY(-7px);
}
.swb-menu-icon::after {
    transform: translateY(7px);
}
.swb-menu-open .swb-menu-icon {
    background: transparent;
}
.swb-menu-open .swb-menu-icon::before {
    transform: rotate(45deg);
}
.swb-menu-open .swb-menu-icon::after {
    transform: rotate(-45deg);
}
.swb-mobile-only {
    display: none;
}
.swb-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 50px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.swb-header-cta:hover {
    color: #ffffff;
    background: #1d4ed8;
    transform: translateY(-1px);
}
.swb-header-cta-mobile {
    display: none;
}

/* --- FOOTER (DESKTOP & GLOBAL) --- */
.swb-site-footer {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    padding: 45px 40px 30px !important;
    width: 100%;
}
.swb-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.swb-footer-menu {
    text-align: center;
    width: 100%;
}
.swb-footer-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.swb-footer-menu ul li {
    display: inline-flex !important;
    align-items: center;
}
.swb-footer-menu ul li:not(:last-child):after {
    content: "\2022";
    margin-left: 16px;
    color: #64748b;
}
.swb-footer-menu a {
    color: #cbd5e1 !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 500;
}
.swb-footer-menu a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.swb-footer-bottom-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid #334155;
    padding-top: 20px;
    width: 100%;
}
.swb-footer-copy {
    text-align: left;
    font-size: 0.9rem;
    color: #94a3b8 !important;
}
.swb-footer-phone a {
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none !important;
}
.swb-footer-phone a:hover {
    color: #60a5fa !important;
}

/* --- 404 PAGE --- */
.sw-404 {
    max-width: 760px;
    min-height: 60vh;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sw-404-code {
    margin: 0 0 12px;
    color: #2563eb;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}
.sw-404 h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
}
.sw-404-message {
    max-width: 560px;
    margin: 0;
    color: #475569;
    font-size: 1.1rem;
}
.sw-404-actions {
    margin-top: 28px;
}
.sw-404-home {
    display: inline-flex;
    justify-content: center;
    padding: 13px 24px;
    color: #ffffff;
    background: #2563eb;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.sw-404-home:hover {
    color: #ffffff;
    background: #1d4ed8;
}
.sw-404-search {
    width: 100%;
    max-width: 480px;
    margin-top: 42px;
}
.sw-404-search h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 1.15rem;
}
.sw-404-search form {
    display: flex;
    gap: 10px;
}
.sw-404-search input[type="search"] {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    font: inherit;
}
.sw-404-search input[type="submit"] {
    padding: 12px 18px;
    border: 0;
    color: #ffffff;
    background: #1e293b;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.sw-404-search input[type="submit"]:hover {
    background: #0f172a;
}

/* --- WOOCOMMERCE --- */
body.woocommerce-page #content,
body.post-type-archive-product #content,
body.tax-product_cat #content,
body.tax-product_tag #content {
    min-height: 65vh;
    padding: clamp(32px, 5vw, 64px) 24px;
    background: #f8fafc;
}

body.woocommerce-page .sw-woocommerce-main {
    float: none;
    width: 100%;
    max-width: none;
    min-height: 65vh;
    margin: 0;
    padding: clamp(24px, 4vw, 52px) 24px 64px;
    background: #f8fafc;
}
.sw-woocommerce-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.sw-woocommerce-container > .woocommerce {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.woocommerce-page #content > .woocommerce,
body.post-type-archive-product #content > .woocommerce,
body.tax-product_cat #content > .woocommerce,
body.tax-product_tag #content > .woocommerce {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.woocommerce .woocommerce-breadcrumb {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 0.9rem;
}
.woocommerce .woocommerce-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.woocommerce .woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}
.woocommerce .woocommerce-products-header {
    margin: 0 0 28px;
    text-align: center;
}
.woocommerce .woocommerce-products-header__title,
.woocommerce div.product .product_title,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
    color: #0f172a;
    font-weight: 800;
    line-height: 1.2;
}
.woocommerce .woocommerce-products-header__title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.7rem);
}
.woocommerce .woocommerce-result-count {
    margin: 0 0 18px;
    color: #64748b;
}
.woocommerce .woocommerce-ordering {
    margin: 0 0 18px;
}

.woocommerce select,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce-page select,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"],
.woocommerce-page input[type="number"],
.woocommerce-page textarea {
    max-width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
}
.woocommerce select:focus,
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce-page select:focus,
.woocommerce-page input:focus,
.woocommerce-page textarea:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.16);
    outline-offset: 1px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin: 26px 0 0;
    padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}
.woocommerce ul.products li.product {
    display: flex;
    float: none;
    flex-direction: column;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.woocommerce-page .woocommerce ul.products li.product {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 16px;
    border-radius: 10px;
    background: #f8fafc;
    object-fit: contain;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}
.woocommerce ul.products li.product .price {
    margin: 10px 0 14px;
}
.woocommerce ul.products li.product .price del {
    color: #94a3b8;
    font-weight: 400;
}
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 50px;
    color: #ffffff;
    background: #2563eb;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.woocommerce ul.products li.product .button {
    align-self: flex-start;
    margin: auto 0 0;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce #payment #place_order:hover,
.woocommerce-page #payment #place_order:hover {
    color: #ffffff;
    background: #1d4ed8;
    transform: translateY(-1px);
}
.woocommerce span.onsale {
    top: 24px;
    left: 24px;
    min-width: 0;
    min-height: 0;
    padding: 7px 12px;
    border-radius: 50px;
    color: #ffffff;
    background: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
}
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    border: 0;
}
.woocommerce nav.woocommerce-pagination ul li {
    float: none;
    border: 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 42px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    background: #ffffff;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
    border-color: #2563eb;
    color: #ffffff;
    background: #2563eb;
}

.woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    float: none;
    width: auto;
    margin: 0;
}
.woocommerce div.product div.images img {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
}
.woocommerce div.product .product_title {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.woocommerce div.product p.price {
    margin: 16px 0;
    font-size: 1.4rem;
}
.woocommerce div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.woocommerce div.product form.cart .variations {
    width: 100%;
    margin: 0 0 14px;
}
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    padding: 8px 0;
}
.woocommerce div.product form.cart .variations label {
    color: #334155;
    font-weight: 600;
}
.woocommerce div.product form.cart .quantity .qty {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

body.single-product {
    background: #f8fafc;
}
body.single-product .content-area,
body.single-product main.site-main {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
}
body.single-product main.site-main,
body.single-product .sw-woocommerce-main {
    min-height: 65vh;
    padding: clamp(24px, 4vw, 52px) 24px 64px;
    background: #f8fafc;
}
body.single-product .sw-woocommerce-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
body.single-product .sw-woocommerce-container > .woocommerce {
    width: 100%;
    max-width: none;
    margin: 0;
}
body.single-product.woocommerce .woocommerce-breadcrumb {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 0.95rem;
}
body.single-product.woocommerce .woocommerce-breadcrumb a {
    color: #2563eb;
}
body.single-product.woocommerce div.product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: stretch;
}
body.single-product.woocommerce div.product div.images,
body.single-product.woocommerce div.product div.summary {
    float: none;
    width: 100%;
    margin: 0;
    min-width: 0;
    padding: clamp(18px, 3vw, 32px);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
body.single-product.woocommerce #content div.product div.images,
body.single-product.woocommerce #content div.product div.summary {
    float: none;
    width: 100%;
    margin: 0;
}
body.single-product.woocommerce div.product div.images {
    align-self: start;
}
body.single-product.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    margin: 0;
}
body.single-product.woocommerce div.product div.images img {
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs li {
    float: none;
    width: auto;
    flex: 1;
    min-width: 0;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs img {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    opacity: 0.75;
}
body.single-product.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
body.single-product.woocommerce div.product div.images .flex-control-thumbs img:hover {
    border-color: #2563eb;
    opacity: 1;
}
body.single-product.woocommerce div.product .product_title {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.035em;
}
body.single-product.woocommerce div.product p.price,
body.single-product.woocommerce div.product span.price {
    color: #1d4ed8;
    font-size: 1.5rem;
    font-weight: 800;
}
body.single-product.woocommerce div.product .woocommerce-product-details__short-description {
    margin: 22px 0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}
body.single-product.woocommerce div.product form.cart {
    gap: 14px;
    margin-top: 24px;
}
body.single-product.woocommerce div.product form.cart .variations {
    border: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
}
body.single-product.woocommerce div.product form.cart .variations td,
body.single-product.woocommerce div.product form.cart .variations th {
    padding: 5px 8px 5px 0;
    border: 0;
    vertical-align: middle;
}
body.single-product.woocommerce div.product form.cart .variations th.label {
    width: 28%;
}
body.single-product.woocommerce div.product form.cart .variations label {
    color: #334155;
    font-weight: 700;
}
body.single-product.woocommerce div.product form.cart .variations select {
    width: 100%;
    min-height: 48px;
}
body.single-product.woocommerce div.product form.cart .quantity .qty {
    width: 72px;
    min-height: 48px;
}
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button,
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:hover,
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:focus {
    min-height: 48px;
    padding: 12px 26px;
    border: 0;
    border-radius: 50px;
    color: #ffffff;
    background: #2563eb !important;
    box-shadow: none;
    font: inherit;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
body.single-product.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
}
body.single-product.woocommerce div.product .product_meta {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.8;
}
body.single-product.woocommerce div.product .product_meta a {
    color: #2563eb;
    text-decoration: none;
}
body.single-product.woocommerce div.product .product_meta a:hover {
    text-decoration: underline;
}
body.single-product.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding: 22px clamp(18px, 3vw, 32px) 30px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0 0 12px;
    border: 0;
}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    display: none;
}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50px;
    background: transparent;
}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 10px 18px;
    border-radius: 50px;
    color: #475569;
    font-weight: 700;
}
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #1d4ed8;
    background: #eff6ff;
}
body.single-product.woocommerce div.product .woocommerce-tabs .panel {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}
body.single-product.woocommerce div.product .woocommerce-tabs .panel h2 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
}
body.single-product.woocommerce section.related {
    box-sizing: border-box;
    grid-column: 1 / -1;
    clear: both;
    float: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-top: 14px;
}
body.single-product.woocommerce section.related > h2 {
    margin: 0 0 22px;
    color: #0f172a;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}
body.single-product.woocommerce section.related ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin-top: 0;
}
body.single-product.woocommerce section.related ul.products[class*="columns-"] > li.product {
    box-sizing: border-box;
    float: none;
    width: 100% !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
}
body.single-product.woocommerce section.related ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
body.single-product.woocommerce section.related ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.8em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
body.single-product.woocommerce section.related ul.products li.product .price {
    min-height: 1.5em;
}
body.single-product.woocommerce section.related ul.products li.product .button {
    width: 100%;
    align-self: stretch;
    margin-top: auto;
}

@media (min-width: 992px) {
    body.single-product .content-area,
    body.single-product main.site-main {
        box-sizing: border-box;
        float: none;
        width: 100%;
        max-width: 1200px;
        margin-right: auto;
        margin-left: auto;
    }

    body.single-product main.site-main {
        padding: 32px 24px 64px;
    }

    body.single-product main.site-main > .woocommerce,
    body.single-product .sw-woocommerce-container {
        width: 100%;
        max-width: none;
        margin-right: auto;
        margin-left: auto;
    }

    body.single-product.woocommerce div.product {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: clamp(24px, 3vw, 40px);
        align-items: start;
    }

    body.single-product.woocommerce div.product div.images,
    body.single-product.woocommerce div.product div.summary {
        min-width: 0;
        padding: clamp(20px, 2.5vw, 32px);
    }

    body.single-product.woocommerce div.product div.images img {
        width: 100%;
        max-height: 650px;
        object-fit: contain;
    }

    body.single-product.woocommerce div.product .product_title {
        font-size: clamp(1.8rem, 2.4vw, 2.5rem);
        overflow-wrap: anywhere;
    }
}

@media (max-width: 991px) {
    body.single-product .content-area,
    body.single-product main.site-main {
        box-sizing: border-box;
        float: none;
        width: 100%;
        max-width: 760px;
        margin-right: auto;
        margin-left: auto;
    }

    body.single-product main.site-main {
        padding: 24px 20px 48px;
    }

    body.single-product.woocommerce div.product {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    body.single-product.woocommerce div.product .woocommerce-tabs {
        grid-column: auto;
    }
    body.single-product.woocommerce section.related ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    margin: 0 0 22px;
    padding: 16px 20px 16px 48px;
    border: 1px solid #bfdbfe;
    border-top: 0;
    border-radius: 10px;
    color: #1e3a8a;
    background: #eff6ff;
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
    color: #2563eb;
}
.woocommerce .woocommerce-error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}
.woocommerce .woocommerce-error::before {
    color: #dc2626;
}

.wc-block-components-button:not(.is-link) {
    min-height: 44px;
    padding: 11px 20px;
    border: 0;
    border-radius: 50px;
    color: #ffffff;
    background: #2563eb;
    font: inherit;
    font-weight: 700;
}
.wc-block-components-button:not(.is-link):hover {
    color: #ffffff;
    background: #1d4ed8;
}
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-select .components-select-control__input,
.wc-block-components-textarea {
    border-color: #cbd5e1 !important;
    border-radius: 8px !important;
    color: #0f172a !important;
}
.wc-block-components-notice-banner {
    border-radius: 10px;
}

.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    border-collapse: separate;
    background: #ffffff;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-page table.shop_table th,
.woocommerce-page table.shop_table td {
    padding: 14px;
    border-color: #e2e8f0;
}
.woocommerce table.shop_table th {
    color: #0f172a;
    background: #f8fafc;
    font-weight: 700;
}
.woocommerce-cart table.cart img {
    width: 76px;
    border-radius: 8px;
}
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .col2-set,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}
.woocommerce-cart .cart-collaterals .cart_totals {
    width: min(100%, 520px);
    float: right;
}
.woocommerce-cart .wc-proceed-to-checkout {
    padding-bottom: 0;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    margin-bottom: 0;
}
.woocommerce-checkout #customer_details {
    margin-bottom: 28px;
}
.woocommerce-checkout #order_review_heading {
    margin-top: 24px;
}
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
    gap: 24px;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: auto;
    float: none;
}
.woocommerce-account .woocommerce-MyAccount-content {
    width: auto;
    float: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li + li {
    margin-top: 8px;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    color: #1d4ed8;
    background: #eff6ff;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- RESPONSIVE / TABLET / NARROW DESKTOP (991px and down) --- */
@media (max-width: 991px) {
    .swb-header-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px;
    }
    .swb-header-bar {
        width: 100%;
    }
    .swb-mobile-toggle {
        display: block;
        font-size: 1.4rem;
        padding: 6px;
        color: #1e293b;
    }
    .swb-desktop-only {
        display: none !important;
    }

    /* Animated Dropdown Menu Container */
    .swb-nav-menu {
        display: none;
        width: 100%;
        margin-top: 12px;
        padding: 12px 0 8px;
        border-top: 1px solid #f1f5f9;
        animation: swbFadeDown 0.2s ease-out;
    }
    .swb-nav-menu.swb-menu-active {
        display: block !important;
    }

    @keyframes swbFadeDown {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Main Menu Links */
    .swb-nav-menu ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 0;
        margin: 0;
    }
    .swb-nav-menu ul li {
        width: 100%;
    }
    .swb-nav-menu ul li a {
        display: block;
        padding: 10px 14px;
        color: #1e293b;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 8px;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .swb-nav-menu ul li a:hover,
    .swb-nav-menu ul li a:active {
        background: #f1f5f9;
        color: #2563eb;
    }

    /* Sub-menu (Dropdown) Items on Mobile */
    .swb-nav-menu ul li ul.sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid #cbd5e1;
        background: #f8fafc;
        border-radius: 0 8px 8px 0;
        margin: 4px 0 6px 14px;
        padding: 4px 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .swb-nav-menu ul li ul.sub-menu li a {
        padding: 8px 14px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #475569;
    }
    .swb-nav-menu ul li ul.sub-menu li a:hover {
        color: #2563eb;
        background: #e2e8f0;
    }

    /* Social Icons Row */
    .swb-mobile-only {
        display: flex;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
        justify-content: center;
        gap: 20px;
    }
    .swb-mobile-only a {
        font-size: 1.2rem;
        color: #64748b;
    }
    .swb-mobile-only a:hover {
        color: #2563eb;
    }
    .swb-header-cta-desktop {
        display: none;
    }
    .swb-header-cta-mobile {
        display: flex;
        margin: 14px 14px 0;
    }

    /* Footer Mobile */
    .swb-site-footer {
        padding: 30px 20px !important;
    }
    .swb-footer-bottom-bar {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
    }
    .swb-footer-copy {
        text-align: center;
    }
    .swb-footer-menu ul {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .swb-footer-menu ul li:not(:last-child):after {
        display: none !important;
    }

    .woocommerce div.product {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    body.woocommerce-page #content,
    body.post-type-archive-product #content,
    body.tax-product_cat #content,
    body.tax-product_tag #content {
        padding: 28px 16px 40px;
    }
    .woocommerce ul.products {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-top: 18px;
    }
    .woocommerce ul.products li.product {
        width: 100%;
        max-width: 520px;
        justify-self: center;
        padding: 14px;
        border-radius: 14px;
    }
    .woocommerce ul.products li.product a img {
        width: 100%;
        max-height: 260px;
        margin: 0 auto 12px;
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem;
    }
    .woocommerce ul.products li.product .price {
        font-size: 1.05rem;
    }
    .woocommerce ul.products li.product .button {
        width: 100%;
        align-self: stretch;
        padding: 11px 14px;
        font-size: 0.95rem;
    }
    .woocommerce div.product {
        grid-template-columns: minmax(0, 1fr);
    }
    .woocommerce div.product .woocommerce-tabs {
        grid-column: auto;
    }
    body.single-product main.site-main {
        padding: 22px 16px 40px;
    }
    body.single-product.woocommerce div.product {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    body.single-product.woocommerce div.product div.images,
    body.single-product.woocommerce div.product div.summary {
        padding: 16px;
        border-radius: 14px;
    }
    body.single-product.woocommerce div.product .woocommerce-tabs {
        grid-column: auto;
        padding: 18px 16px 22px;
        border-radius: 14px;
    }
    body.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }
    body.single-product.woocommerce div.product form.cart .variations th.label {
        width: 25%;
    }
    body.single-product.woocommerce div.product form.cart .single_add_to_cart_button {
        flex: 1;
    }
    body.single-product.woocommerce section.related ul.products {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    body.single-product.woocommerce section.related ul.products li.product {
        padding: 14px;
    }
    .woocommerce-account .woocommerce {
        grid-template-columns: minmax(0, 1fr);
    }
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
    .woocommerce-cart table.cart td,
    .woocommerce-cart table.cart th {
        padding: 9px 6px;
        font-size: 0.85rem;
    }
}

/* --- WOOCOMMERCE CART & CHECKOUT ON PHONES --- */
@media (max-width: 782px) {
    body.woocommerce-cart .sw-woocommerce-main,
    body.woocommerce-checkout .sw-woocommerce-main {
        padding: 22px 14px 40px;
    }

    body.woocommerce-cart .sw-woocommerce-container,
    body.woocommerce-checkout .sw-woocommerce-container,
    body.woocommerce-cart .sw-woocommerce-container > .woocommerce,
    body.woocommerce-checkout .sw-woocommerce-container > .woocommerce {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
    body.woocommerce-checkout .woocommerce > .woocommerce-notices-wrapper {
        width: 100%;
    }

    /* Classic cart: turn each product row into a readable, stacked card. */
    body.woocommerce-cart .woocommerce-cart-form {
        width: 100%;
        min-width: 0;
    }
    body.woocommerce-cart table.cart,
    body.woocommerce-cart table.cart tbody {
        display: block;
        width: 100%;
        min-width: 0;
        border: 0;
        overflow: visible;
        background: transparent;
    }
    body.woocommerce-cart table.cart thead {
        display: none;
    }
    body.woocommerce-cart table.cart tbody tr:not(.cart_item) {
        display: block;
        width: 100%;
    }
    body.woocommerce-cart table.cart tbody tr.cart_item {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr) auto;
        grid-template-areas:
            "thumbnail name remove"
            "price price price"
            "quantity quantity quantity"
            "subtotal subtotal subtotal";
        align-items: center;
        gap: 8px 12px;
        margin: 0 0 14px;
        padding: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    }
    body.woocommerce-cart table.cart tbody tr.cart_item > td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: auto;
        min-width: 0;
        padding: 7px 0;
        border: 0;
        text-align: right;
        font-size: .92rem;
    }
    body.woocommerce-cart table.cart tbody tr.cart_item > td::before {
        color: #64748b;
        font-weight: 600;
        text-align: left;
    }
    body.woocommerce-cart table.cart td.product-remove {
        grid-area: remove;
        justify-content: flex-end;
        padding: 0;
    }
    body.woocommerce-cart table.cart td.product-remove::before,
    body.woocommerce-cart table.cart td.product-thumbnail::before,
    body.woocommerce-cart table.cart td.product-name::before {
        display: none;
    }
    body.woocommerce-cart table.cart td.product-thumbnail {
        grid-area: thumbnail;
        justify-content: flex-start;
        padding: 0;
    }
    body.woocommerce-cart table.cart td.product-thumbnail img {
        width: 64px;
        height: 64px;
        margin: 0;
        object-fit: contain;
    }
    body.woocommerce-cart table.cart td.product-name {
        grid-area: name;
        display: block;
        padding: 0;
        text-align: left;
        font-weight: 700;
        overflow-wrap: anywhere;
    }
    body.woocommerce-cart table.cart td.product-name a {
        color: #0f172a;
        text-decoration: none;
    }
    body.woocommerce-cart table.cart td.product-price {
        grid-area: price;
    }
    body.woocommerce-cart table.cart td.product-price::before {
        content: "Price";
    }
    body.woocommerce-cart table.cart td.product-quantity {
        grid-area: quantity;
    }
    body.woocommerce-cart table.cart td.product-quantity::before {
        content: "Quantity";
    }
    body.woocommerce-cart table.cart td.product-subtotal {
        grid-area: subtotal;
        border-top: 1px solid #e2e8f0 !important;
        color: #0f172a;
        font-weight: 700;
    }
    body.woocommerce-cart table.cart td.product-subtotal::before {
        content: "Subtotal";
    }
    body.woocommerce-cart table.cart td.product-quantity .quantity {
        display: inline-flex;
        justify-content: flex-end;
        max-width: 120px;
        margin: 0;
    }
    body.woocommerce-cart table.cart td.product-quantity input.qty {
        width: 72px;
        min-height: 42px;
        padding: 8px;
    }
    body.woocommerce-cart table.cart td.product-remove a.remove {
        display: inline-flex;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        color: #b91c1c !important;
        background: #fef2f2;
        border-radius: 50%;
        font-size: 1.4rem;
        line-height: 1;
    }

    body.woocommerce-cart table.cart td.actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 12px 0 0;
        text-align: left !important;
    }
    body.woocommerce-cart table.cart td.actions .coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        float: none;
        gap: 8px;
        width: 100%;
    }
    body.woocommerce-cart table.cart td.actions .coupon label {
        display: none;
    }
    body.woocommerce-cart table.cart td.actions .coupon input.input-text {
        float: none;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        margin: 0;
    }
    body.woocommerce-cart table.cart td.actions .coupon button,
    body.woocommerce-cart table.cart td.actions > button[name="update_cart"] {
        float: none;
        min-height: 44px;
        margin: 0;
        white-space: normal;
    }
    body.woocommerce-cart table.cart td.actions > button[name="update_cart"] {
        width: 100%;
    }

    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart-collaterals .cart_totals {
        float: none;
        width: 100%;
        max-width: none;
        margin: 18px 0 0;
    }
    body.woocommerce-cart .cart-collaterals .cart_totals {
        padding: 18px;
    }
    body.woocommerce-cart .cart-collaterals .cart_totals table {
        width: 100%;
        font-size: .94rem;
    }
    body.woocommerce-cart .cart-collaterals .cart_totals th,
    body.woocommerce-cart .cart-collaterals .cart_totals td {
        padding: 10px 6px;
        overflow-wrap: anywhere;
    }
    body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        width: 100%;
        min-height: 50px;
        padding: 14px 18px;
        white-space: normal;
    }

    /* Classic checkout: stack billing, shipping, order review, and payment. */
    body.woocommerce-checkout form.checkout {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        min-width: 0;
    }
    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2,
    body.woocommerce-checkout .col2-set,
    body.woocommerce-checkout .col2-set .col-1,
    body.woocommerce-checkout .col2-set .col-2,
    body.woocommerce-checkout #order_review,
    body.woocommerce-checkout #payment {
        float: none;
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout #customer_details .col-2,
    body.woocommerce-checkout .col2-set {
        display: block;
        margin: 0;
    }
    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review {
        padding: 16px;
    }
    body.woocommerce-checkout #customer_details .col-1,
    body.woocommerce-checkout .col2-set .col-1 {
        margin-bottom: 18px;
    }
    body.woocommerce-checkout #customer_details .col-2,
    body.woocommerce-checkout .col2-set .col-2 {
        margin-bottom: 0;
    }
    body.woocommerce-checkout .woocommerce-billing-fields h3,
    body.woocommerce-checkout #order_review_heading {
        margin-top: 0;
        font-size: 1.25rem;
    }
    body.woocommerce-checkout .woocommerce form .form-row,
    body.woocommerce-checkout form .form-row-first,
    body.woocommerce-checkout form .form-row-last,
    body.woocommerce-checkout form .form-row-wide {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }
    body.woocommerce-checkout .woocommerce form .form-row input.input-text,
    body.woocommerce-checkout .woocommerce form .form-row textarea,
    body.woocommerce-checkout .woocommerce form .form-row select {
        width: 100%;
        min-height: 46px;
        font-size: 16px;
    }
    body.woocommerce-checkout .woocommerce form .form-row textarea {
        min-height: 100px;
    }
    body.woocommerce-checkout #order_review_heading {
        margin: 0;
    }
    body.woocommerce-checkout table.shop_table {
        width: 100%;
        table-layout: fixed;
        font-size: .9rem;
    }
    body.woocommerce-checkout table.shop_table th,
    body.woocommerce-checkout table.shop_table td {
        padding: 10px 7px;
        overflow-wrap: anywhere;
    }
    body.woocommerce-checkout #payment {
        padding: 14px;
    }
    body.woocommerce-checkout #payment ul.payment_methods {
        padding: 12px 0;
    }
    body.woocommerce-checkout #payment #place_order {
        width: 100%;
        min-height: 50px;
        white-space: normal;
    }
    body.woocommerce-checkout .woocommerce-form-coupon,
    body.woocommerce-checkout form.checkout_coupon {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }
    body.woocommerce-checkout .woocommerce-form-coupon p,
    body.woocommerce-checkout form.checkout_coupon p {
        float: none;
        width: 100%;
        margin: 0;
    }
    body.woocommerce-checkout .woocommerce-form-coupon input,
    body.woocommerce-checkout form.checkout_coupon input {
        width: 100%;
        min-height: 44px;
    }
    body.woocommerce-checkout .woocommerce-form-coupon button,
    body.woocommerce-checkout form.checkout_coupon button {
        width: 100%;
        min-height: 46px;
    }

    /* WooCommerce Cart and Checkout blocks. */
    body.woocommerce-cart .wc-block-cart,
    body.woocommerce-checkout .wc-block-checkout {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }
    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__main,
    body.woocommerce-checkout .wc-block-checkout__sidebar {
        min-width: 0;
    }
    body.woocommerce-cart .wc-block-components-sidebar-layout,
    body.woocommerce-checkout .wc-block-components-sidebar-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    body.woocommerce-cart .wc-block-components-sidebar-layout > *,
    body.woocommerce-checkout .wc-block-components-sidebar-layout > * {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__sidebar {
        margin-top: 20px;
        padding: 16px;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        background: #ffffff;
    }
    body.woocommerce-cart .wc-block-components-totals-wrapper,
    body.woocommerce-checkout .wc-block-components-totals-wrapper {
        padding-right: 0;
        padding-left: 0;
    }
    body.woocommerce-cart .wc-block-cart-items,
    body.woocommerce-cart .wc-block-cart-items__row,
    body.woocommerce-checkout .wc-block-components-order-summary,
    body.woocommerce-checkout .wc-block-components-order-summary-item {
        min-width: 0;
    }
    body.woocommerce-cart .wc-block-cart-items__row,
    body.woocommerce-checkout .wc-block-components-order-summary-item {
        gap: 8px;
    }
    body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__image img,
    body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
        max-width: 64px;
        height: auto;
        border-radius: 8px;
    }
    body.woocommerce-cart .wc-block-components-quantity-selector {
        max-width: 126px;
    }
    body.woocommerce-cart .wc-block-components-quantity-selector input {
        min-width: 36px;
        padding: 6px 2px;
    }
    body.woocommerce-cart .wc-block-cart__submit-container,
    body.woocommerce-checkout .wc-block-checkout__actions {
        position: static;
    }
    body.woocommerce-cart .wc-block-cart__submit-button,
    body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-button {
        width: 100%;
        min-height: 50px;
        white-space: normal;
    }
    body.woocommerce-cart .wc-block-components-totals-coupon__form {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    body.woocommerce-cart .wc-block-components-totals-coupon__form button {
        width: 100%;
    }
    body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input,
    body.woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
    body.woocommerce-checkout .wc-block-components-select .wc-block-components-select__container,
    body.woocommerce-checkout .wc-block-components-textarea {
        max-width: 100%;
        font-size: 16px;
    }
    body.woocommerce-checkout .wc-block-components-checkout-step {
        padding: 18px 0;
    }
}

@media (max-width: 420px) {
    body.woocommerce-cart .sw-woocommerce-main,
    body.woocommerce-checkout .sw-woocommerce-main {
        padding-right: 10px;
        padding-left: 10px;
    }
    body.woocommerce-cart table.cart tbody tr.cart_item {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        gap: 7px 9px;
        padding: 12px;
    }
    body.woocommerce-cart table.cart td.product-thumbnail img {
        width: 54px;
        height: 54px;
    }
    body.woocommerce-cart table.cart td.actions .coupon {
        grid-template-columns: minmax(0, 1fr);
    }
    body.woocommerce-checkout #customer_details,
    body.woocommerce-checkout #order_review {
        padding: 13px;
    }
}