/* Product compare page — brand-aligned */

.compare-page {
    padding: 48px 0 72px;
    background: linear-gradient(180deg, #fff6f2 0%, #ffffff 40%);
    min-height: 60vh;
}

.compare-page__header {
    margin-bottom: 28px;
}

.compare-page__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.compare-page__title {
    margin: 0 0 8px;
    font-family: "Mulish", sans-serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    color: #111;
}

.compare-page__header #breadcrumb {
    margin: 0;
    padding: 0;
}

.compare-page__header #breadcrumb p {
    margin: 0;
}

.compare-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.compare-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-family: "Mulish", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.compare-page__btn--ghost {
    background: #fff;
    border: 1px solid rgba(69, 51, 38, 0.22);
    color: #453326;
}

.compare-page__btn--ghost:hover {
    background: #fff6f2;
    border-color: #453326;
    color: #453326;
}

.compare-page__btn--solid {
    background: #453326;
    border: 1px solid #453326;
    color: #fff;
}

.compare-page__btn--solid:hover {
    background: #2f2319;
    border-color: #2f2319;
    color: #fff;
}

/* Empty */
.compare-page__empty {
    max-width: 420px;
    margin: 48px auto 0;
    padding: 40px 28px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(69, 51, 38, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(69, 51, 38, 0.06);
}

.compare-page__empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff6f2;
    color: #453326;
    font-size: 24px;
}

.compare-page__empty-text {
    margin: 0 0 22px;
    font-family: "Mulish", sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(17, 17, 17, 0.72);
}

/* Table */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid rgba(69, 51, 38, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(69, 51, 38, 0.05);
}

.compare-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    table-layout: fixed;
}

.compare-table th,
.compare-table td {
    vertical-align: top;
    padding: 16px 18px;
    border-bottom: 1px solid #ebe4dc;
    font-family: "Mulish", sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #222;
}

.compare-table tbody th {
    width: 180px;
    background: #fff6f2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #453326;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
}

.compare-table__corner {
    width: 180px;
    background: #fff6f2;
    border-bottom: 1px solid #ebe4dc;
    position: sticky;
    left: 0;
    z-index: 3;
    vertical-align: bottom !important;
}

.compare-table__corner-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(69, 51, 38, 0.55);
}

.compare-table__product {
    background: #fff;
    text-align: left;
}

.compare-table tbody tr:nth-child(even) td {
    background: #faf8f6;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table__price {
    font-weight: 700;
    color: #453326;
    white-space: nowrap;
}

.compare-table__feature {
    display: block;
}

.compare-table__feature + .compare-table__feature {
    margin-top: 4px;
}

/* Product card in header */
.compare-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 8px;
    padding-right: 28px;
}

.compare-card__remove {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(69, 51, 38, 0.18);
    border-radius: 50%;
    background: #fff;
    color: #453326;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.compare-card__remove:hover {
    background: #fff6f2;
    border-color: #453326;
}

.compare-card__media {
    display: block;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #ebe4dc;
    border-radius: 10px;
    background: #fff6f2;
}

.compare-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-card__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    text-decoration: none;
}

.compare-card__name:hover {
    color: #453326;
}

.compare-card__price {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #453326;
}

.compare-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 8px;
    background: #453326;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.compare-card__cta:hover {
    background: #2f2319;
    color: #fff;
}

@media (max-width: 767px) {
    .compare-page {
        padding: 28px 0 48px;
    }

    .compare-page__heading {
        align-items: flex-start;
    }

    .compare-page__actions {
        width: 100%;
    }

    .compare-page__btn {
        flex: 1 1 auto;
    }

    .compare-table th,
    .compare-table td {
        padding: 12px 14px;
    }

    .compare-table tbody th,
    .compare-table__corner {
        width: 120px;
    }

    .compare-card__media {
        max-width: 140px;
    }
}
