:root {
    --aprw-blue: #0768f8;
    --aprw-blue-dark: #063bc6;
    --aprw-navy: #071d3f;
    --aprw-text: #10213b;
    --aprw-muted: #66758b;
    --aprw-border: #d9e2ef;
    --aprw-soft: #f2f7fd;
    --aprw-lilac: #f1efff;
    --aprw-white: #ffffff;
}

.aprw-shop,
.aprw-single-page {
    font-family: Inter, Arial, sans-serif;
    color: var(--aprw-text);
}

.aprw-shop *,
.aprw-single-page * { box-sizing: border-box; }

/* Shop / catalog */
.aprw-shop { width: 100%; }
.aprw-shop-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
    margin-bottom: 18px;
}
.aprw-search-wrap,
.aprw-sort-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.aprw-search,
.aprw-sort {
    width: 100%;
    min-height: 54px;
    border: 1px solid #d3deec !important;
    background: #fff !important;
    color: #263751 !important;
    border-radius: 14px !important;
    outline: none;
    font: 500 14px/1.2 Inter, sans-serif !important;
    box-shadow: none !important;
}
.aprw-search { padding: 0 18px 0 48px !important; }
.aprw-sort { padding: 0 42px 0 18px !important; }
.aprw-search:focus,
.aprw-sort:focus { border-color: var(--aprw-blue) !important; box-shadow: 0 0 0 3px rgba(7,104,248,.08) !important; }
.aprw-search-icon {
    position: absolute;
    left: 19px;
    width: 14px;
    height: 14px;
    border: 2px solid #93a1b5;
    border-radius: 50%;
    pointer-events: none;
}
.aprw-search-icon::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 2px;
    background: #93a1b5;
    transform: rotate(45deg);
    right: -5px;
    bottom: -2px;
    border-radius: 2px;
}
.aprw-filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.aprw-filter {
    appearance: none;
    border: 1px solid #d4dfea !important;
    background: #fff !important;
    color: #1f3049 !important;
    min-height: 41px;
    padding: 0 17px !important;
    border-radius: 999px !important;
    font: 700 13px/1 Inter, sans-serif !important;
    cursor: pointer;
    transition: .2s ease;
}
.aprw-filter:hover,
.aprw-filter.is-active {
    border-color: var(--aprw-blue) !important;
    background: var(--aprw-blue) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(7,104,248,.20);
}
.aprw-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0 0 19px;
    color: #65738a;
    font-size: 13px;
}
.aprw-grid {
    display: grid;
    grid-template-columns: repeat(var(--aprw-columns, 4), minmax(0, 1fr));
    gap: 18px;
}
.aprw-card {
    min-width: 0;
    border: 1px solid #d9e2ed;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.aprw-card:hover { transform: translateY(-3px); border-color: #8ab7ff; box-shadow: 0 18px 35px rgba(18,61,122,.10); }
.aprw-card[hidden] { display: none !important; }
.aprw-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 235px;
    padding: 22px;
    background: linear-gradient(145deg, #eff6fd, #f7faff);
    text-decoration: none !important;
}
.aprw-card-media img {
    display: block;
    width: auto !important;
    height: 150px !important;
    max-width: 78% !important;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.aprw-sale-badge,
.aprw-product-sale {
    position: absolute;
    z-index: 2;
    left: 14px;
    top: 14px;
    background: var(--aprw-blue);
    color: #fff;
    font: 800 11px/1 Inter, sans-serif;
    letter-spacing: .03em;
    padding: 7px 10px;
    border-radius: 999px;
}
.aprw-card-body { display: flex; flex-direction: column; min-height: 238px; padding: 20px 18px 16px; }
.aprw-card-category { color: #0865f5; font-size: 10px; font-weight: 800; letter-spacing: .025em; margin-bottom: 8px; }
.aprw-card-title { margin: 0 0 16px !important; font: 700 21px/1 Barlow Condensed, Impact, sans-serif !important; letter-spacing: .01em; text-transform: uppercase; }
.aprw-card-title a { color: #08182e !important; text-decoration: none !important; }
.aprw-card-description { color: #66758b; font-size: 12.5px; line-height: 1.55; margin: 0 0 18px; min-height: 58px; }
.aprw-card-bottom { border-top: 1px solid #e2e8f0; margin-top: auto; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aprw-card-price { color: #071426; font: 700 22px/1 Barlow Condensed, Impact, sans-serif; white-space: nowrap; }
.aprw-card-price del { font: 500 11px/1 Inter, sans-serif; color: #91a0b3; margin-left: 4px; }
.aprw-card-price ins { text-decoration: none; }
.aprw-view-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    background: #edf5ff;
    color: #0768f8 !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.aprw-view-product:hover { background: var(--aprw-blue); color: #fff !important; }
.aprw-no-results { text-align: center; padding: 40px 20px; border: 1px dashed #cfdae8; border-radius: 18px; color: #708097; }

/* Single product page */
.aprw-single-enabled .site-main,
.aprw-single-enabled main { max-width: none; }
.aprw-single-page { background: #fff; padding: 32px 0 70px; }
.aprw-single-shell { width: min(1180px, calc(100% - 38px)); margin: 0 auto; }
.aprw-breadcrumb { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: #7a8799; font-size: 12px; margin-bottom: 22px; }
.aprw-breadcrumb a { color: #4e617b; text-decoration: none; }
.aprw-breadcrumb a:hover { color: var(--aprw-blue); }
.aprw-product-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.aprw-product-gallery { position: sticky; top: 30px; }
.aprw-main-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 530px;
    padding: 42px;
    border: 1px solid #dce5f0;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 34%, #fff 0, #f5faff 47%, #edf5fd 100%);
}
.aprw-main-image-wrap::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(7,104,248,.10);
    box-shadow: 0 0 0 52px rgba(7,104,248,.025), 0 0 0 104px rgba(7,104,248,.018);
}
.aprw-main-image { position: relative; z-index: 1; display: block; max-width: 78%; max-height: 420px; width: auto; height: auto; object-fit: contain; }
.aprw-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.aprw-thumb { border: 1px solid #dbe5ef !important; border-radius: 14px !important; background: #fff !important; height: 82px; padding: 8px !important; cursor: pointer; }
.aprw-thumb img { width: 100%; height: 100%; object-fit: contain; }
.aprw-thumb.is-active { border-color: var(--aprw-blue) !important; box-shadow: 0 0 0 2px rgba(7,104,248,.08); }
.aprw-product-summary { padding: 16px 0 0; }
.aprw-eyebrow,
.aprw-section-kicker,
.aprw-spec-kicker { display: block; color: var(--aprw-blue); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 9px; }
.aprw-product-title { margin: 0 0 12px !important; color: #07182f; font: 700 clamp(40px, 5vw, 61px)/.95 Barlow Condensed, Impact, sans-serif !important; text-transform: uppercase; letter-spacing: -.015em; }
.aprw-summary-rating-stock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 19px; }
.aprw-rating { display: flex; align-items: center; gap: 8px; color: #6b7c91; font-size: 12px; }
.aprw-rating .star-rating { margin: 0 !important; }
.aprw-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.aprw-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9aa7b7; }
.aprw-stock.is-in-stock { color: #15803d; }
.aprw-stock.is-in-stock::before { background: #22c55e; }
.aprw-stock.is-out-of-stock { color: #b91c1c; }
.aprw-stock.is-out-of-stock::before { background: #ef4444; }
.aprw-product-price { color: #07182f; font: 700 35px/1 Barlow Condensed, Impact, sans-serif; margin-bottom: 20px; }
.aprw-product-price del { color: #a1aab7; font-size: 20px; margin-right: 8px; }
.aprw-product-price ins { text-decoration: none; }
.aprw-short-description { color: #5e6f84; font-size: 14px; line-height: 1.72; margin-bottom: 20px; }
.aprw-short-description p:last-child { margin-bottom: 0; }
.aprw-research-note { display: flex; align-items: center; gap: 12px; background: #f0f6ff; border: 1px solid #d6e7ff; border-radius: 15px; padding: 13px 15px; color: #50637b; font-size: 12px; line-height: 1.45; margin-bottom: 20px; }
.aprw-note-icon { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--aprw-blue); color: #fff; font-weight: 800; }
.aprw-cart-box { border: 1px solid #dce5ef; border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15,51,100,.05); margin-bottom: 18px; }
.aprw-cart-box form.cart { margin: 0 !important; }
.aprw-cart-box form.cart::after { content: ''; display: block; clear: both; }
.aprw-cart-box .quantity { float: left; margin: 0 10px 0 0 !important; }
.aprw-cart-box .qty { min-height: 52px; width: 72px !important; border: 1px solid #ccd8e6 !important; border-radius: 12px !important; padding: 0 8px !important; box-shadow: none !important; }
.aprw-cart-box .single_add_to_cart_button,
.aprw-cart-box .button.alt {
    min-height: 52px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--aprw-blue), var(--aprw-blue-dark)) !important;
    color: #fff !important;
    font: 800 14px/1 Inter, sans-serif !important;
    padding: 0 25px !important;
    box-shadow: 0 10px 20px rgba(7,104,248,.20) !important;
}
.aprw-cart-box .single_add_to_cart_button:hover { filter: brightness(.96); transform: translateY(-1px); }
.aprw-cart-box .variations { width: 100%; margin-bottom: 12px !important; }
.aprw-cart-box .variations th,
.aprw-cart-box .variations td { display: block; width: 100%; padding: 0 0 7px !important; text-align: left; }
.aprw-cart-box .variations label { color: #20324e; font-size: 12px; font-weight: 800; }
.aprw-cart-box .variations select { width: 100%; min-height: 48px; border: 1px solid #d2deea; border-radius: 12px; padding: 0 12px; background: #fff; }
.aprw-cart-box .reset_variations { font-size: 11px !important; color: var(--aprw-blue) !important; }
.aprw-cart-box .woocommerce-variation-price { margin: 8px 0 12px; font-weight: 800; }
.aprw-product-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #738198; font-size: 11px; padding: 4px 2px 18px; }
.aprw-product-meta a { color: #4f6380; }
.aprw-mini-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aprw-mini-trust > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; border: 1px solid #e0e7f0; border-radius: 14px; padding: 11px 12px; background: #fafcff; }
.aprw-mini-trust > div > span { grid-row: 1 / 3; width: 29px; height: 29px; display: grid; place-items: center; background: #edf5ff; color: var(--aprw-blue); border-radius: 9px; font-weight: 900; }
.aprw-mini-trust strong { color: #20324d; font-size: 10.5px; }
.aprw-mini-trust small { color: #8591a2; font-size: 9px; }

.aprw-product-info { margin-top: 68px; border: 1px solid #dce5ef; border-radius: 24px; overflow: hidden; background: #fff; }
.aprw-info-nav { display: flex; gap: 0; border-bottom: 1px solid #dce5ef; background: #f8fbff; overflow-x: auto; }
.aprw-info-tab { position: relative; border: 0 !important; background: transparent !important; color: #718096 !important; padding: 20px 26px !important; font: 800 12px/1 Inter, sans-serif !important; cursor: pointer; white-space: nowrap; }
.aprw-info-tab::after { content: ''; position: absolute; height: 3px; left: 24px; right: 24px; bottom: 0; border-radius: 999px 999px 0 0; background: transparent; }
.aprw-info-tab.is-active { color: var(--aprw-blue) !important; }
.aprw-info-tab.is-active::after { background: var(--aprw-blue); }
.aprw-info-panel { padding: 34px; }
.aprw-info-panel[data-panel="description"] { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .5fr); gap: 36px; align-items: start; }
.aprw-info-panel[hidden] { display: none !important; }
.aprw-info-copy { color: #52657d; font-size: 14px; line-height: 1.8; }
.aprw-info-copy h2,
.aprw-info-copy h3,
.aprw-info-copy h4 { color: #0c203e; font-family: Inter, sans-serif; }
.aprw-spec-card { border-radius: 20px; background: linear-gradient(145deg, #073fcf, #0a63ef); color: #fff; padding: 26px; box-shadow: 0 20px 40px rgba(7,63,207,.20); }
.aprw-spec-card .aprw-spec-kicker { color: #bcd8ff; }
.aprw-spec-card h3 { margin: 0 0 20px !important; color: #fff; font-size: 25px !important; line-height: 1.12 !important; }
.aprw-spec-card ul { list-style: none; padding: 0; margin: 0; }
.aprw-spec-card li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 11px; }
.aprw-spec-card li span { font-family: Barlow Condensed, sans-serif; font-weight: 700; font-size: 19px; color: #b7d4ff; }
.aprw-info-panel .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.aprw-info-panel .woocommerce-product-attributes th,
.aprw-info-panel .woocommerce-product-attributes td { border-bottom: 1px solid #e2e8f0; padding: 15px !important; text-align: left; }
.aprw-info-panel .woocommerce-product-attributes th { width: 30%; color: #1e304a; }
.aprw-info-panel #reviews { margin: 0; }

.aprw-quality-band { margin-top: 40px; padding: 34px; border-radius: 24px; background: #f2f0ff; display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: center; }
.aprw-quality-band h2 { margin: 0 0 8px !important; color: #0a1b35; font: 700 34px/1 Barlow Condensed, Impact, sans-serif !important; }
.aprw-quality-band p { margin: 0; color: #697991; font-size: 12px; line-height: 1.6; }
.aprw-quality-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.aprw-quality-stats > div { min-height: 104px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #fff; border-radius: 15px; border: 1px solid #e1e5f2; padding: 13px; }
.aprw-quality-stats strong { color: var(--aprw-blue); font: 700 28px/1 Barlow Condensed, Impact, sans-serif; }
.aprw-quality-stats span { color: #65768c; font-size: 9px; margin-top: 5px; }

.aprw-related { margin-top: 58px; }
.aprw-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.aprw-section-heading h2 { margin: 0 !important; color: #0b1a31; font: 700 36px/1 Barlow Condensed, Impact, sans-serif !important; }
.aprw-section-heading > a { color: var(--aprw-blue); text-decoration: none; font-size: 11px; font-weight: 800; }
.aprw-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.aprw-related-card { border: 1px solid #dce5ef; border-radius: 18px; overflow: hidden; background: #fff; }
.aprw-related-image { min-height: 180px; display: flex; align-items: center; justify-content: center; background: #f1f7fd; padding: 18px; }
.aprw-related-image img { display: block; width: auto !important; height: 125px !important; max-width: 85%; object-fit: contain; }
.aprw-related-body { padding: 16px; }
.aprw-related-body > span { display: block; color: var(--aprw-blue); font-size: 9px; font-weight: 800; margin-bottom: 6px; }
.aprw-related-body h3 { margin: 0 0 14px !important; font: 700 20px/1.05 Barlow Condensed, Impact, sans-serif !important; text-transform: uppercase; }
.aprw-related-body h3 a { color: #0b1a2f; text-decoration: none; }
.aprw-related-bottom { border-top: 1px solid #e4e9f1; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aprw-related-bottom strong { color: #08182d; }
.aprw-related-bottom a { color: var(--aprw-blue); text-decoration: none; font-size: 10px; font-weight: 800; }

.aprw-bottom-cta { margin-top: 54px; background: linear-gradient(135deg, #0a50e3, #0634b6); color: #fff; border-radius: 22px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 25px; overflow: hidden; position: relative; }
.aprw-bottom-cta::after { content: ''; position: absolute; width: 250px; height: 250px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); right: 12%; top: -90px; }
.aprw-bottom-cta > div,
.aprw-bottom-cta > a { position: relative; z-index: 1; }
.aprw-bottom-cta span { font-size: 9px; font-weight: 800; letter-spacing: .06em; color: #c7ddff; }
.aprw-bottom-cta h2 { margin: 6px 0 0 !important; color: #fff; font: 700 28px/1.05 Barlow Condensed, Impact, sans-serif !important; }
.aprw-bottom-cta > a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border-radius: 999px; background: #fff; color: #0754dc; text-decoration: none; font-size: 10px; font-weight: 800; white-space: nowrap; }

/* Keep theme/WooCommerce notices tidy */
.aprw-single-page .woocommerce-message,
.aprw-single-page .woocommerce-error,
.aprw-single-page .woocommerce-info { border-radius: 12px; }

@media (max-width: 1024px) {
    .aprw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .aprw-product-hero { gap: 28px; }
    .aprw-main-image-wrap { min-height: 430px; }
    .aprw-product-gallery { position: static; }
    .aprw-related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .aprw-quality-band { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .aprw-shop-toolbar { grid-template-columns: 1fr; }
    .aprw-meta-row { align-items: flex-start; flex-direction: column; gap: 6px; }
    .aprw-grid { grid-template-columns: 1fr; }
    .aprw-card-media { min-height: 220px; }
    .aprw-single-page { padding-top: 18px; }
    .aprw-single-shell { width: min(100% - 24px, 1180px); }
    .aprw-product-hero { grid-template-columns: 1fr; }
    .aprw-main-image-wrap { min-height: 360px; border-radius: 22px; }
    .aprw-main-image { max-width: 74%; max-height: 300px; }
    .aprw-product-title { font-size: 44px !important; }
    .aprw-mini-trust { grid-template-columns: 1fr; }
    .aprw-product-info { margin-top: 42px; }
    .aprw-info-panel { padding: 22px; }
    .aprw-info-panel[data-panel="description"] { grid-template-columns: 1fr; }
    .aprw-info-tab { padding: 17px 16px !important; }
    .aprw-info-tab::after { left: 15px; right: 15px; }
    .aprw-quality-band { padding: 24px; }
    .aprw-quality-stats { grid-template-columns: repeat(2, 1fr); }
    .aprw-section-heading { align-items: flex-start; flex-direction: column; }
    .aprw-related-grid { grid-template-columns: 1fr; }
    .aprw-bottom-cta { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
    .aprw-bottom-cta > a { width: 100%; }
}

/* Responsive hardening */
.aprw-shop,
.aprw-single-page,
.aprw-single-shell,
.aprw-product-hero,
.aprw-product-gallery,
.aprw-product-summary,
.aprw-product-info,
.aprw-info-panel,
.aprw-card,
.aprw-related-card {
    min-width: 0;
}

.aprw-shop img,
.aprw-single-page img {
    max-width: 100%;
}

.aprw-single-page,
.aprw-shop {
    overflow-x: clip;
}

.aprw-info-copy,
.aprw-short-description,
.aprw-card-description,
.aprw-product-meta,
.aprw-related-body,
.aprw-bottom-cta,
.aprw-quality-band {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 900px) {
    .aprw-product-hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .aprw-product-gallery {
        position: static;
        top: auto;
    }

    .aprw-main-image-wrap {
        min-height: 440px;
    }

    .aprw-product-summary {
        padding-top: 0;
    }
}

@media (max-width: 767px) {
    .aprw-shop-toolbar {
        gap: 10px;
        margin-bottom: 14px;
    }

    .aprw-search,
    .aprw-sort {
        min-height: 48px;
        font-size: 16px !important;
    }

    .aprw-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        margin-left: -12px;
        margin-right: -12px;
        padding: 0 12px 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .aprw-filter-row::-webkit-scrollbar {
        display: none;
    }

    .aprw-filter {
        flex: 0 0 auto;
        min-height: 40px;
        white-space: nowrap;
    }

    .aprw-card {
        border-radius: 16px;
    }

    .aprw-card-media {
        min-height: 205px;
        padding: 18px;
    }

    .aprw-card-media img {
        height: 138px !important;
        max-width: 76% !important;
    }

    .aprw-card-body {
        min-height: 0;
        padding: 17px 16px 15px;
    }

    .aprw-card-title {
        font-size: 20px !important;
        margin-bottom: 11px !important;
    }

    .aprw-card-description {
        min-height: 0;
        margin-bottom: 15px;
    }

    .aprw-card-bottom {
        align-items: flex-end;
        gap: 10px;
    }

    .aprw-card-price {
        font-size: 20px;
    }

    .aprw-view-product {
        min-height: 36px;
        padding: 0 11px;
    }

    .aprw-single-page {
        padding: 14px 0 46px;
    }

    .aprw-single-shell {
        width: calc(100% - 24px);
    }

    .aprw-breadcrumb {
        margin-bottom: 15px;
        gap: 6px;
        font-size: 11px;
    }

    .aprw-product-hero {
        gap: 24px;
    }

    .aprw-main-image-wrap {
        min-height: clamp(290px, 88vw, 360px);
        padding: 24px;
        border-radius: 19px;
    }

    .aprw-main-image-wrap::after {
        width: 210px;
        height: 210px;
        box-shadow: 0 0 0 36px rgba(7,104,248,.025), 0 0 0 72px rgba(7,104,248,.018);
    }

    .aprw-main-image {
        max-width: 80%;
        max-height: 270px;
    }

    .aprw-thumbs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .aprw-thumbs::-webkit-scrollbar {
        display: none;
    }

    .aprw-thumb {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        border-radius: 12px !important;
    }

    .aprw-product-title {
        font-size: clamp(36px, 12vw, 44px) !important;
        line-height: .98 !important;
    }

    .aprw-summary-rating-stock {
        margin-bottom: 15px;
    }

    .aprw-rating {
        flex-wrap: wrap;
    }

    .aprw-product-price {
        font-size: 31px;
        margin-bottom: 16px;
    }

    .aprw-short-description {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 17px;
    }

    .aprw-research-note {
        align-items: flex-start;
        padding: 12px 13px;
    }

    .aprw-cart-box {
        padding: 14px;
        border-radius: 15px;
    }

    .aprw-cart-box form.cart,
    .aprw-cart-box .woocommerce-variation-add-to-cart {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }

    .aprw-cart-box form.variations_form.cart {
        display: block;
    }

    .aprw-cart-box .quantity {
        float: none;
        flex: 0 0 78px;
        margin: 0 !important;
    }

    .aprw-cart-box .qty {
        width: 100% !important;
        min-height: 50px;
        font-size: 16px !important;
    }

    .aprw-cart-box .single_add_to_cart_button,
    .aprw-cart-box .button.alt {
        flex: 1 1 180px;
        width: auto;
        min-width: 0;
        min-height: 50px !important;
        padding: 0 16px !important;
        white-space: normal;
        line-height: 1.2 !important;
    }

    .aprw-cart-box .variations,
    .aprw-cart-box .variations tbody,
    .aprw-cart-box .variations tr,
    .aprw-cart-box .variations th,
    .aprw-cart-box .variations td {
        display: block;
        width: 100% !important;
    }

    .aprw-cart-box .variations select {
        max-width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .aprw-cart-box .single_variation_wrap,
    .aprw-cart-box .woocommerce-variation,
    .aprw-cart-box .woocommerce-variation-add-to-cart {
        width: 100%;
    }

    .aprw-product-meta {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
        padding-bottom: 14px;
    }

    .aprw-mini-trust {
        gap: 8px;
    }

    .aprw-product-info {
        margin-top: 34px;
        border-radius: 18px;
    }

    .aprw-info-nav {
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .aprw-info-nav::-webkit-scrollbar {
        display: none;
    }

    .aprw-info-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        padding: 16px 14px !important;
        font-size: 11px !important;
    }

    .aprw-info-panel {
        padding: 18px 16px;
    }

    .aprw-info-copy {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .aprw-info-copy img,
    .aprw-info-copy iframe,
    .aprw-info-copy video,
    .aprw-info-copy table {
        max-width: 100%;
    }

    .aprw-info-copy table,
    .aprw-info-panel .woocommerce-product-attributes {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .aprw-info-panel .woocommerce-product-attributes th,
    .aprw-info-panel .woocommerce-product-attributes td {
        min-width: 120px;
        padding: 12px 10px !important;
    }

    .aprw-spec-card {
        padding: 21px 18px;
        border-radius: 17px;
    }

    .aprw-spec-card h3 {
        font-size: 23px !important;
    }

    .aprw-quality-band {
        margin-top: 28px;
        padding: 20px 16px;
        border-radius: 18px;
        gap: 20px;
    }

    .aprw-quality-band h2 {
        font-size: 30px !important;
    }

    .aprw-quality-stats {
        gap: 8px;
    }

    .aprw-quality-stats > div {
        min-height: 92px;
        padding: 10px 8px;
    }

    .aprw-quality-stats strong {
        font-size: 25px;
    }

    .aprw-related {
        margin-top: 40px;
    }

    .aprw-section-heading {
        gap: 10px;
        margin-bottom: 15px;
    }

    .aprw-section-heading h2 {
        font-size: 31px !important;
    }

    .aprw-related-image {
        min-height: 170px;
    }

    .aprw-related-bottom {
        flex-wrap: wrap;
    }

    .aprw-bottom-cta {
        margin-top: 38px;
        padding: 22px 17px;
        border-radius: 18px;
        gap: 18px;
    }

    .aprw-bottom-cta h2 {
        font-size: 25px !important;
    }
}

@media (max-width: 479px) {
    .aprw-single-shell {
        width: calc(100% - 20px);
    }

    .aprw-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .aprw-view-product {
        width: 100%;
    }

    .aprw-main-image-wrap {
        min-height: 285px;
        padding: 18px;
    }

    .aprw-main-image {
        max-width: 84%;
        max-height: 230px;
    }

    .aprw-product-title {
        font-size: clamp(32px, 11.5vw, 40px) !important;
    }

    .aprw-cart-box form.cart,
    .aprw-cart-box .woocommerce-variation-add-to-cart {
        display: grid;
        grid-template-columns: 1fr;
    }

    .aprw-cart-box .quantity,
    .aprw-cart-box .single_add_to_cart_button,
    .aprw-cart-box .button.alt {
        width: 100% !important;
        max-width: none !important;
    }

    .aprw-quality-stats {
        grid-template-columns: 1fr 1fr;
    }

    .aprw-quality-stats > div {
        min-width: 0;
    }
}

@media (max-width: 359px) {
    .aprw-single-shell {
        width: calc(100% - 16px);
    }

    .aprw-main-image-wrap {
        min-height: 255px;
        padding: 14px;
    }

    .aprw-product-title {
        font-size: 31px !important;
    }

    .aprw-quality-stats {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FINAL MOBILE CATALOG FIX - 2 COLUMNS + SCROLLABLE FILTERS
   ========================================================= */
@media (max-width: 767px) {
    .aprw-shop {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

    .aprw-shop-toolbar {
        grid-template-columns: 1fr !important;
        gap: 12px;
        width: 100%;
        margin-bottom: 18px;
    }

    .aprw-search-wrap,
    .aprw-sort-wrap {
        width: 100%;
        min-width: 0;
    }

    .aprw-search,
    .aprw-sort {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 52px;
        border-radius: 14px !important;
    }

    /* Filter pills: horizontal scroll with visible scrollbar */
    .aprw-filter-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center;
        gap: 9px !important;
        width: calc(100% + 0px);
        max-width: 100%;
        min-width: 0;
        margin: 0 0 22px !important;
        padding: 0 2px 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scrollbar-width: thin !important;
        scrollbar-color: #9aa9bb #edf2f7 !important;
    }

    .aprw-filter-row::-webkit-scrollbar {
        display: block !important;
        height: 5px !important;
    }

    .aprw-filter-row::-webkit-scrollbar-track {
        background: #edf2f7;
        border-radius: 999px;
    }

    .aprw-filter-row::-webkit-scrollbar-thumb {
        background: #9aa9bb;
        border-radius: 999px;
    }

    .aprw-filter {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: max-content !important;
        min-height: 40px;
        padding: 0 15px !important;
        white-space: nowrap !important;
        font-size: 12px !important;
    }

    .aprw-meta-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        width: 100%;
        margin-bottom: 18px;
        font-size: 12px;
        line-height: 1.45;
    }

    /* TWO PRODUCT COLUMNS ON MOBILE */
    .aprw-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .aprw-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 14px;
    }

    .aprw-card-media {
        min-height: 150px !important;
        height: 150px;
        padding: 12px 10px !important;
    }

    .aprw-card-media img {
        width: auto !important;
        height: 100px !important;
        max-width: 88% !important;
        max-height: 100px !important;
        object-fit: contain;
    }

    .aprw-sale-badge {
        left: 8px;
        top: 8px;
        padding: 5px 7px;
        font-size: 8px;
    }

    .aprw-card-body {
        min-height: 235px;
        padding: 13px 11px 12px !important;
    }

    .aprw-card-category {
        margin-bottom: 6px;
        font-size: 8px;
        line-height: 1.2;
    }

    .aprw-card-title {
        margin: 0 0 8px !important;
        font-size: 16px !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere;
    }

    .aprw-card-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        min-height: 48px;
        margin: 0 0 12px;
        font-size: 10.5px;
        line-height: 1.5;
    }

    .aprw-card-bottom {
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        justify-content: flex-end;
        gap: 9px;
        margin-top: auto;
        padding-top: 11px;
    }

    .aprw-card-price {
        width: 100%;
        font-size: 18px;
        line-height: 1;
        white-space: normal;
    }

    .aprw-card-price del {
        font-size: 9px;
    }

    .aprw-view-product {
        width: 100%;
        min-width: 0;
        min-height: 34px;
        padding: 0 8px;
        font-size: 9px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    /* Prevent theme/container rules from creating page-level horizontal scroll */
    .aprw-shop,
    .aprw-shop-toolbar,
    .aprw-filter-row,
    .aprw-meta-row,
    .aprw-grid,
    .aprw-card,
    .aprw-card-body,
    .aprw-card-bottom {
        box-sizing: border-box;
    }
}

@media (max-width: 420px) {
    .aprw-grid {
        gap: 8px !important;
    }

    .aprw-card-media {
        min-height: 138px !important;
        height: 138px;
        padding: 10px 8px !important;
    }

    .aprw-card-media img {
        height: 92px !important;
        max-height: 92px !important;
    }

    .aprw-card-body {
        min-height: 228px;
        padding: 12px 9px 10px !important;
    }

    .aprw-card-title {
        font-size: 15px !important;
    }

    .aprw-card-description {
        font-size: 10px;
        min-height: 45px;
    }

    .aprw-card-price {
        font-size: 17px;
    }

    .aprw-filter {
        padding: 0 14px !important;
        font-size: 11.5px !important;
    }
}

@media (max-width: 350px) {
    .aprw-grid {
        gap: 7px !important;
    }

    .aprw-card-media {
        min-height: 125px !important;
        height: 125px;
    }

    .aprw-card-media img {
        height: 84px !important;
        max-height: 84px !important;
    }

    .aprw-card-title {
        font-size: 14px !important;
    }

    .aprw-card-description {
        font-size: 9.5px;
        -webkit-line-clamp: 2;
        min-height: 30px;
    }

    .aprw-card-body {
        min-height: 205px;
    }

    .aprw-card-price {
        font-size: 16px;
    }

    .aprw-view-product {
        font-size: 8.5px;
    }
}

/* =========================================================
   FINAL MOBILE POLISH v1.0.3
   Compact 2-column cards + guaranteed horizontal filter scroll
   ========================================================= */
@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .aprw-shop {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 12px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    .aprw-shop-toolbar {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 10px !important;
        margin: 0 0 14px !important;
    }

    .aprw-search-wrap,
    .aprw-sort-wrap,
    .aprw-search,
    .aprw-sort {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .aprw-search,
    .aprw-sort {
        min-height: 48px !important;
        border-radius: 13px !important;
        font-size: 14px !important;
    }

    .aprw-search {
        padding-left: 44px !important;
    }

    /* Filter tabs: one line, guaranteed swipe/scroll on mobile */
    .aprw-filter-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 18px !important;
        padding: 0 0 10px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-x: contain !important;
        touch-action: pan-x !important;
        scrollbar-width: thin !important;
        scrollbar-color: #9eacbd #edf2f7 !important;
    }

    .aprw-filter-row::-webkit-scrollbar {
        display: block !important;
        height: 5px !important;
    }

    .aprw-filter-row::-webkit-scrollbar-track {
        background: #edf2f7 !important;
        border-radius: 999px !important;
    }

    .aprw-filter-row::-webkit-scrollbar-thumb {
        background: #9eacbd !important;
        border-radius: 999px !important;
    }

    .aprw-filter {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 104px !important;
        max-width: none !important;
        min-height: 39px !important;
        padding: 0 14px !important;
        white-space: nowrap !important;
        font-size: 11.5px !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    .aprw-meta-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px !important;
        width: 100% !important;
        margin: 0 0 14px !important;
        font-size: 11.5px !important;
        line-height: 1.4 !important;
    }

    /* True compact 2-column product grid */
    .aprw-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .aprw-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .aprw-card:hover {
        transform: none !important;
    }

    .aprw-card-media {
        flex: 0 0 auto !important;
        width: 100% !important;
        min-height: 118px !important;
        height: 118px !important;
        padding: 10px 8px !important;
    }

    .aprw-card-media img {
        width: auto !important;
        height: 76px !important;
        max-height: 76px !important;
        max-width: 82% !important;
        object-fit: contain !important;
    }

    .aprw-sale-badge {
        left: 7px !important;
        top: 7px !important;
        padding: 4px 6px !important;
        font-size: 7.5px !important;
    }

    .aprw-card-body {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        min-height: 0 !important;
        padding: 11px 9px 9px !important;
    }

    .aprw-card-category {
        margin: 0 0 5px !important;
        font-size: 7.5px !important;
        line-height: 1.2 !important;
    }

    .aprw-card-title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        min-height: 29px !important;
        margin: 0 0 6px !important;
        font-size: 14px !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere !important;
    }

    .aprw-card-title a {
        display: block !important;
    }

    .aprw-card-description {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        min-height: 30px !important;
        max-height: 30px !important;
        margin: 0 0 8px !important;
        font-size: 9.5px !important;
        line-height: 1.55 !important;
    }

    .aprw-card-bottom {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-end !important;
        gap: 7px !important;
        width: 100% !important;
        margin-top: auto !important;
        padding-top: 9px !important;
    }

    .aprw-card-price {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
        line-height: 1.05 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .aprw-card-price del {
        font-size: 8px !important;
        margin-left: 2px !important;
    }

    .aprw-view-product {
        display: flex !important;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 31px !important;
        padding: 0 6px !important;
        border-radius: 999px !important;
        font-size: 8px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    .aprw-shop,
    .aprw-shop-toolbar,
    .aprw-filter-row,
    .aprw-meta-row,
    .aprw-grid,
    .aprw-card,
    .aprw-card-media,
    .aprw-card-body,
    .aprw-card-bottom {
        box-sizing: border-box !important;
    }
}

@media (max-width: 430px) {
    .aprw-shop {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .aprw-filter {
        min-width: 108px !important;
        padding: 0 13px !important;
        font-size: 11px !important;
    }

    .aprw-grid {
        gap: 8px !important;
    }

    .aprw-card-media {
        min-height: 108px !important;
        height: 108px !important;
    }

    .aprw-card-media img {
        height: 70px !important;
        max-height: 70px !important;
    }

    .aprw-card-body {
        padding: 10px 8px 8px !important;
    }

    .aprw-card-title {
        min-height: 27px !important;
        font-size: 13px !important;
    }

    .aprw-card-description {
        min-height: 28px !important;
        max-height: 28px !important;
        font-size: 9px !important;
    }

    .aprw-card-price {
        font-size: 15px !important;
    }

    .aprw-view-product {
        min-height: 29px !important;
        font-size: 7.5px !important;
    }
}

@media (max-width: 360px) {
    .aprw-shop {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .aprw-grid {
        gap: 7px !important;
    }

    .aprw-card-media {
        min-height: 98px !important;
        height: 98px !important;
    }

    .aprw-card-media img {
        height: 62px !important;
        max-height: 62px !important;
    }

    .aprw-card-title {
        font-size: 12px !important;
    }

    .aprw-card-description {
        -webkit-line-clamp: 2 !important;
        font-size: 8.5px !important;
    }

    .aprw-card-price {
        font-size: 14px !important;
    }
}
