.apc-compare {
    --apc-bg: #111;
    --apc-panel: #181818;
    --apc-panel-2: #202020;
    --apc-border: rgba(255, 255, 255, 0.14);
    --apc-text: #fff;
    --apc-muted: rgba(255, 255, 255, 0.68);
    --apc-red: #e52421;
    background: var(--apc-bg);
    color: var(--apc-text);
    border-radius: 18px;
    padding: clamp(22px, 4vw, 44px);
    margin: 30px 0;
    overflow: hidden;
}

.apc-compare *,
.apc-compare *::before,
.apc-compare *::after {
    box-sizing: border-box;
}

.apc-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.apc-header h2 {
    margin: 0 0 10px;
    color: var(--apc-text);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.04;
}

.apc-header p {
    margin: 0;
    color: var(--apc-muted);
    max-width: 720px;
}

.apc-eyebrow {
    display: inline-flex;
    color: var(--apc-red) !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 10px !important;
}

.apc-share-button,
.apc-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--apc-red);
    color: #fff !important;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.18s ease;
    white-space: nowrap;
}

.apc-share-button:hover,
.apc-add-to-cart:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.apc-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 20px;
}

.apc-select-label {
    display: grid;
    gap: 8px;
    color: var(--apc-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.apc-select-label select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--apc-border);
    border-radius: 12px;
    background: var(--apc-panel);
    color: var(--apc-text);
    padding: 0 14px;
    font-size: 15px;
}

.apc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    color: var(--apc-muted);
    cursor: pointer;
}

.apc-toggle input {
    accent-color: var(--apc-red);
}

.apc-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 14px 0 28px;
}

.apc-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    background: linear-gradient(180deg, var(--apc-panel-2), var(--apc-panel));
    border: 1px solid var(--apc-border);
    border-radius: 18px;
    padding: 18px;
}

.apc-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 0.75;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
}

.apc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.apc-product-card h3 {
    margin: 0 0 12px;
    color: var(--apc-text);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.15;
}

.apc-product-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.apc-price {
    color: var(--apc-text);
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 10px;
}

.apc-stock-wrap {
    margin: 0 0 14px;
}

.apc-stock {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.apc-stock-in {
    background: rgba(64, 192, 87, 0.15);
    color: #8ce99a;
}

.apc-stock-out {
    background: rgba(255, 255, 255, 0.08);
    color: var(--apc-muted);
}

.apc-cart-wrap {
    margin-top: auto;
}

.apc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--apc-border);
    border-radius: 18px;
    background: var(--apc-panel);
}

.apc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 720px;
}

.apc-table th,
.apc-table td {
    border-bottom: 1px solid var(--apc-border);
    border-right: 1px solid var(--apc-border);
    padding: 16px 18px;
    vertical-align: top;
    color: var(--apc-text);
    text-align: left;
}

.apc-table th:last-child,
.apc-table td:last-child {
    border-right: 0;
}

.apc-table tr:last-child th,
.apc-table tr:last-child td {
    border-bottom: 0;
}

.apc-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #151515;
    font-size: 14px;
}

.apc-table tbody th {
    width: 230px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--apc-muted);
    font-weight: 800;
}

.apc-table tbody td {
    min-width: 190px;
}

.apc-muted,
.apc-empty,
.apc-status {
    color: var(--apc-muted);
}

.apc-empty {
    padding: 22px;
}

.apc-status {
    min-height: 22px;
    margin: 14px 0 0;
    font-size: 14px;
}

.apc-notice {
    border: 1px solid rgba(229, 36, 33, 0.25);
    background: rgba(229, 36, 33, 0.08);
    color: inherit;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

@media (max-width: 900px) {
    .apc-header {
        display: grid;
    }

    .apc-controls,
    .apc-products {
        grid-template-columns: 1fr;
    }

    .apc-share-button {
        width: 100%;
    }

    .apc-table {
        min-width: 640px;
    }
}

.apc-footnote {
    margin: 12px 18px 16px;
    color: var(--apc-muted);
    font-size: 13px;
    line-height: 1.4;
}

.apc-price-tax-suffix {
    font-size: 0.95em;
    font-weight: inherit;
    color: inherit;
    white-space: nowrap;
}
