/**
 * Awin Price Compare – Public Styles
 * Modernes, sachliches Design – passt sich Theme-Farben an
 */

.apc-search-wrapper {
    --apc-bg: #ffffff;
    --apc-bg-soft: #f8fafc;
    --apc-border: #e5e7eb;
    --apc-border-strong: #cbd5e1;
    --apc-text: #0f172a;
    --apc-text-soft: #64748b;
    --apc-primary: #1e40af;
    --apc-primary-hover: #1e3a8a;
    --apc-success: #059669;
    --apc-danger: #dc2626;
    --apc-radius: 8px;
    --apc-shadow: 0 1px 3px rgba(0,0,0,.06);
    --apc-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    color: var(--apc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 1.5rem 0;
}

/* === Search Form === */
.apc-search-form {
    background: var(--apc-bg-soft);
    border: 1px solid var(--apc-border);
    border-radius: var(--apc-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.apc-search-bar {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
}
.apc-search-bar input[type="search"] {
    flex: 1;
    padding: .65rem .9rem;
    border: 1px solid var(--apc-border-strong);
    border-radius: var(--apc-radius);
    font-size: 1rem;
    background: #fff;
}
.apc-search-bar input[type="search"]:focus {
    outline: 2px solid var(--apc-primary);
    outline-offset: 2px;
    border-color: var(--apc-primary);
}
.apc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.apc-filters select,
.apc-filters input {
    padding: .5rem .65rem;
    border: 1px solid var(--apc-border-strong);
    border-radius: var(--apc-radius);
    font-size: .875rem;
    background: #fff;
    min-width: 120px;
}
.apc-filters input[type="number"] {
    max-width: 100px;
}

/* === Buttons === */
.apc-btn {
    display: inline-block;
    padding: .55rem 1rem;
    border: 1px solid var(--apc-border-strong);
    background: #fff;
    color: var(--apc-text);
    border-radius: var(--apc-radius);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
    line-height: 1.2;
}
.apc-btn:hover {
    background: var(--apc-bg-soft);
    border-color: var(--apc-text-soft);
}
.apc-btn-primary {
    background: var(--apc-primary);
    color: #fff;
    border-color: var(--apc-primary);
}
.apc-btn-primary:hover {
    background: var(--apc-primary-hover);
    border-color: var(--apc-primary-hover);
    color: #fff;
}

/* === Results Meta === */
.apc-results-meta {
    color: var(--apc-text-soft);
    font-size: .875rem;
    margin-bottom: 1rem;
}

/* === Product Grid === */
.apc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0;
}

.apc-product-card {
    background: var(--apc-bg, #fff);
    border: 1px solid var(--apc-border, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.apc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.apc-product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.apc-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.apc-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.apc-discount-badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: #dc2626;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .5rem;
    border-radius: 4px;
}
.apc-product-body {
    padding: .9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.apc-product-brand {
    font-size: .7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.apc-product-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.apc-product-merchant {
    font-size: .8rem;
    color: #64748b;
}
.apc-product-price-row {
    margin-top: auto;
    padding-top: .5rem;
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}
.apc-product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.apc-product-rrp {
    font-size: .85rem;
    text-decoration: line-through;
    color: #94a3b8;
}

/* Versand-Info auf Karte */
.apc-product-shipping {
    font-size: .8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-top: .2rem;
}
.apc-product-shipping.apc-shipping-free {
    color: #059669;
    font-weight: 600;
}
.apc-icon-truck {
    flex-shrink: 0;
}
.apc-product-total {
    font-size: .8rem;
    color: #475569;
    margin-top: .1rem;
}
.apc-product-total strong {
    color: #0f172a;
    font-weight: 600;
}
.apc-product-delivery-time {
    font-size: .75rem;
    color: #94a3b8;
    margin-top: .1rem;
}

/* Filter-Checkbox */
.apc-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .875rem;
    color: var(--apc-text);
    padding: 0 .25rem;
    cursor: pointer;
    user-select: none;
}
.apc-filter-checkbox input {
    margin: 0;
    cursor: pointer;
}

.apc-cta {
    color: #1e40af;
    font-size: .85rem;
    font-weight: 600;
    margin-top: .25rem;
}

/* === Compare List (Idealo-Style) === */
.apc-compare-list {
    margin: 1.5rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

.apc-offer-row {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1rem 1.25rem;
    position: relative;
}
.apc-offer-row:first-child {
    border-top: 1px solid #e5e7eb;
}

.apc-cheapest-banner {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: .75rem;
    line-height: 1.2;
}

.apc-offer-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.apc-offer-grid {
    display: grid;
    grid-template-columns: 180px 1fr 110px 180px 200px;
    gap: 1.25rem;
    align-items: center;
}

/* Spalte 1: Logo + Bewertung */
.apc-offer-merchant {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-start;
}
.apc-merchant-logo {
    width: 130px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.apc-merchant-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.apc-merchant-logo-text {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    background: #f3f4f6;
    padding: .5rem .75rem;
    border-radius: 4px;
    width: auto;
    height: auto;
}

/* Sterne-Bewertung */
.apc-merchant-rating {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
}
.apc-stars {
    position: relative;
    display: inline-block;
    font-size: .95rem;
    line-height: 1;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
}
.apc-stars-bg {
    color: #d1d5db;
}
.apc-stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    color: #2563eb;
    overflow: hidden;
    white-space: nowrap;
}
.apc-rating-count {
    color: #6b7280;
    font-size: .8rem;
}

/* Spalte 2: Lieferzeit, Rückgabe */
.apc-offer-info {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .9rem;
    color: #374151;
}
.apc-info-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    line-height: 1.3;
}
.apc-icon-truck {
    color: #16a34a;
    flex-shrink: 0;
}
.apc-icon-box {
    color: #16a34a;
    flex-shrink: 0;
}

/* Spalte 3: Shop-Info-Button */
.apc-offer-shopinfo {
    text-align: center;
}
.apc-shopinfo-btn {
    background: none;
    border: none;
    padding: .25rem;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    color: #6b7280;
    font-size: .8rem;
    font-family: inherit;
}
.apc-shopinfo-btn:hover {
    color: #2563eb;
}
.apc-icon-info {
    color: #2563eb;
}

/* Shop-Info Popup */
.apc-shopinfo-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    padding: 1rem 1.25rem;
    min-width: 240px;
    max-width: 320px;
    z-index: 100;
    margin-top: .5rem;
    text-align: left;
}
.apc-shopinfo-popup::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}
.apc-shopinfo-popup h4 {
    margin: 0 0 .65rem 0;
    font-size: .95rem;
    font-weight: 600;
    color: #1f2937;
    padding-right: 1.5rem;
}
.apc-shopinfo-popup dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem .75rem;
    font-size: .85rem;
}
.apc-shopinfo-popup dt {
    color: #6b7280;
    font-weight: 500;
}
.apc-shopinfo-popup dd {
    margin: 0;
    color: #1f2937;
}
.apc-shopinfo-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
}
.apc-shopinfo-close:hover {
    color: #1f2937;
}

/* Spalte 4: Preis */
.apc-offer-price {
    text-align: right;
    line-height: 1.35;
}
.apc-price-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
}
.apc-price-main sup {
    font-size: .7rem;
    font-weight: 400;
}
.apc-price-shipping {
    font-size: .82rem;
    color: #6b7280;
    margin-top: .15rem;
}
.apc-price-total {
    font-size: .9rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: .15rem;
}

/* Spalte 5: CTA-Button */
.apc-offer-cta {
    display: flex;
    justify-content: flex-end;
}
.apc-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: #16a34a;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
    min-width: 180px;
    line-height: 1;
    border: none;
}
.apc-cta-button:hover {
    background: #15803d;
    color: #fff;
    text-decoration: none;
}
.apc-cta-button:active {
    transform: scale(.98);
}
.apc-cta-button svg {
    flex-shrink: 0;
}

/* Highlight für günstigsten Anbieter (subtil – Banner reicht) */
.apc-offer-cheapest {
    background: #f0fdf4;
}

/* Disclaimer */
.apc-compare-list .apc-compare-disclaimer {
    margin-top: 1rem;
    font-size: .75rem;
    color: #9ca3af;
    text-align: left;
    line-height: 1.5;
}

/* === Responsive === */
@media (max-width: 900px) {
    .apc-offer-grid {
        grid-template-columns: 140px 1fr 1fr;
        grid-template-areas:
            "merchant info  shopinfo"
            "merchant price price"
            "cta      cta   cta";
        gap: .75rem 1rem;
        row-gap: 1rem;
    }
    .apc-offer-merchant   { grid-area: merchant; }
    .apc-offer-info       { grid-area: info; }
    .apc-offer-shopinfo   { grid-area: shopinfo; text-align: right; }
    .apc-offer-price      { grid-area: price; }
    .apc-offer-cta        { grid-area: cta; }
    .apc-cta-button {
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 560px) {
    .apc-offer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "merchant shopinfo"
            "info     info"
            "price    price"
            "cta      cta";
    }
    .apc-offer-price {
        text-align: left;
    }
    .apc-merchant-logo {
        width: 110px;
        height: 36px;
    }
    .apc-price-main {
        font-size: 1.25rem;
    }
}

/* === Compare Table (alte, kompakte Variante) === */
.apc-compare-wrapper {
    margin: 1.5rem 0;
    overflow-x: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.apc-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.apc-compare-table th,
.apc-compare-table td {
    padding: .9rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}
.apc-compare-table thead {
    background: #f8fafc;
}
.apc-compare-table th {
    font-weight: 600;
    color: #475569;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.apc-compare-table tbody tr:last-child td {
    border-bottom: none;
}
.apc-compare-table tbody tr:hover {
    background: #f8fafc;
}
.apc-row-cheapest {
    background: rgba(5, 150, 105, .04);
}
.apc-row-cheapest:hover {
    background: rgba(5, 150, 105, .08) !important;
}
.apc-badge-best {
    display: inline-block;
    margin-left: .5rem;
    padding: .15rem .5rem;
    background: #059669;
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.apc-cell-product {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.apc-compare-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
    flex-shrink: 0;
}
.apc-cell-price strong {
    font-size: 1.05rem;
    color: #0f172a;
}
.apc-row-cheapest .apc-cell-price strong {
    color: #059669;
}
.apc-cell-total {
    font-size: 1rem;
    white-space: nowrap;
}
.apc-cell-total strong {
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 700;
}
.apc-row-cheapest .apc-cell-total strong {
    color: #059669;
}
.apc-cell-shipping {
    font-size: .9rem;
}
.apc-shipping-free-badge {
    display: inline-block;
    padding: .2rem .55rem;
    background: #d1fae5;
    color: #047857;
    font-weight: 600;
    font-size: .8rem;
    border-radius: 4px;
}
.apc-shipping-threshold {
    font-size: .7rem;
    color: #94a3b8;
    margin-top: .15rem;
}
.apc-merchant-delivery {
    font-size: .75rem;
    color: #94a3b8;
    margin-top: .25rem;
    font-weight: normal;
}
.apc-cell-cta .apc-btn-primary {
    background: #1e40af;
    color: #fff;
    border-color: #1e40af;
    padding: .5rem .9rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: .85rem;
}
.apc-cell-cta .apc-btn-primary:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
}
.apc-compare-disclaimer {
    margin-top: .75rem;
    font-size: .75rem;
    color: #94a3b8;
    text-align: right;
}

/* === Pagination === */
.apc-pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: .25rem;
    flex-wrap: wrap;
}
.apc-pagination a,
.apc-pagination span {
    display: inline-block;
    padding: .5rem .85rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #0f172a;
    text-decoration: none;
    font-size: .9rem;
    min-width: 2.5rem;
    text-align: center;
}
.apc-pagination a:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.apc-page-current {
    background: #1e40af;
    color: #fff !important;
    border-color: #1e40af !important;
    font-weight: 600;
}

/* === Categories list === */
.apc-categories-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1rem 0;
}
.apc-categories-list a {
    display: inline-block;
    padding: .4rem .85rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    text-decoration: none;
    color: #0f172a;
    font-size: .875rem;
    transition: all .15s ease;
}
.apc-categories-list a:hover {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}

/* === No Results === */
.apc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

/* === Responsive === */
@media (max-width: 640px) {
    .apc-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: .75rem;
    }
    .apc-search-bar {
        flex-direction: column;
    }
    .apc-filters {
        flex-direction: column;
    }
    .apc-filters select,
    .apc-filters input {
        width: 100%;
    }
    .apc-compare-table th,
    .apc-compare-table td {
        padding: .6rem .5rem;
        font-size: .85rem;
    }
    .apc-cell-product {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }
}

/* ===========================================================
   Master-Produkte: Top-Products-Kacheln & Single-Master-Seite
   =========================================================== */

/* Top-Products Section */
.apc-top-products {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.apc-top-products-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 1.25rem 0;
}
.apc-master-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* Master-Kachel */
.apc-master-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.apc-master-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    border-color: #2563eb;
}
.apc-master-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.apc-master-card-image {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}
.apc-master-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.apc-master-card-image-empty {
    color: #cbd5e1;
}
.apc-master-card-body {
    padding: .9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1;
}
.apc-master-card-brand {
    font-size: .7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.apc-master-card-title {
    font-size: .95rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.apc-master-card-price {
    margin-top: .35rem;
    color: #1f2937;
    font-size: .9rem;
}
.apc-master-card-price strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}
.apc-master-card-count {
    color: #6b7280;
    font-size: .8rem;
    margin-top: .15rem;
}

/* === Single Master Page === */
.apc-master-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
    padding: 1.5rem 0;
}
.apc-master-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.apc-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: .85rem;
    color: #6b7280;
}
.apc-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.apc-breadcrumb a:hover {
    text-decoration: underline;
}
.apc-breadcrumb-sep {
    margin: 0 .5rem;
    color: #cbd5e1;
}

.apc-master-header {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}
.apc-master-image {
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.5rem;
}
.apc-master-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.apc-image-placeholder {
    color: #cbd5e1;
}

.apc-master-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.apc-master-brand {
    font-size: .8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
}
.apc-master-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}
.apc-master-variant-active {
    display: inline-block;
    padding: .35rem .85rem;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    width: fit-content;
}

.apc-master-summary {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}
.apc-master-min-price {
    font-size: 1rem;
    color: #1f2937;
}
.apc-master-min-price strong {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-left: .25rem;
}
.apc-master-offer-count {
    color: #6b7280;
    font-size: .9rem;
}

.apc-master-description {
    color: #4b5563;
    line-height: 1.6;
    font-size: .95rem;
}
.apc-master-description p {
    margin: 0 0 .75rem 0;
}

/* Variant Switcher */
.apc-variant-switcher {
    margin-top: .5rem;
}
.apc-variant-switcher-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 .75rem 0;
}
.apc-variant-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .65rem;
}
.apc-variant-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: .65rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .1s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.apc-variant-card:hover {
    border-color: #2563eb;
}
.apc-variant-card.is-active {
    border-color: #2563eb;
    background: #eff6ff;
}
.apc-variant-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 4px;
}
.apc-variant-card-label {
    font-size: .8rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}
.apc-variant-card-price {
    font-size: .75rem;
    color: #6b7280;
}
.apc-variant-card-price strong {
    font-size: .9rem;
    color: #0f172a;
    font-weight: 700;
    display: block;
}

/* Offers Section */
.apc-master-offers {
    margin-top: 2rem;
}
.apc-master-offers-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1.25rem 0;
}

/* Mobile */
@media (max-width: 900px) {
    .apc-master-header {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    .apc-master-image {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    .apc-master-title {
        font-size: 1.4rem;
    }
    .apc-master-min-price strong {
        font-size: 1.35rem;
    }
}
@media (max-width: 560px) {
    .apc-master-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem;
    }
    .apc-variant-cards {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .apc-master-summary {
        flex-direction: column;
        gap: .35rem;
        align-items: flex-start;
    }
}
