/* Explain: Styles for UI components, including comparison button and bar. */
.btn-brand,
.btn-accent,
.btn-ghost,
.btn-ghost-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
}

.btn-brand {
    background: var(--primary-color);
    color: #fff;
}

.btn-brand:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent-color);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: #fff;
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost-white {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-color), #3b8ee0);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.service-card p {
    margin-top: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.link-arrow {
    margin-top: auto;
    padding-top: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.link-arrow i {
    transition: transform 0.25s ease;
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.badge-cat {
    align-self: flex-start;
    display: inline-block;
    background: var(--surface-alt);
    color: var(--primary-hover);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.ref-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.ref-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ref-card:hover img {
    transform: scale(1.06);
}

.ref-caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.5rem 1.25rem 1.1rem;
    background: linear-gradient(to top, rgba(9, 26, 52, 0.92), rgba(9, 26, 52, 0));
    color: #fff;
}

.ref-caption h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.ref-caption p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.2rem;
}

.ref-tag {
    display: inline-block;
    margin-bottom: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.filter-btn {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.check-item i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
}

.lang-btn {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.is-active {
    background: var(--primary-color);
    color: #fff;
    opacity: 1;
}

.faq-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-trigger:hover {
    color: var(--primary-color);
}

.faq-chevron {
    flex: none;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

.faq-panel {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.nav-drop {
    position: relative;
}

.nav-drop-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-drop-trigger:hover,
.nav-drop-trigger:focus-visible {
    background: var(--surface-alt);
    color: var(--primary-color);
}

.nav-drop-trigger i {
    transition: transform 0.3s ease;
}

.nav-drop:hover .nav-drop-trigger,
.nav-drop.is-open .nav-drop-trigger {
    background: var(--surface-alt);
    color: var(--primary-color);
}

.nav-drop:hover .nav-drop-trigger i,
.nav-drop.is-open .nav-drop-trigger i {
    transform: rotate(180deg);
}

.nav-drop-panel {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    display: none;
    padding-top: 0.6rem;
    z-index: 60;
}

.nav-drop:hover .nav-drop-panel,
.nav-drop.is-open .nav-drop-panel {
    display: block;
}

.nav-drop-list {
    min-width: 12.5rem;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.nav-drop-link {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-drop-link:hover,
.nav-drop-link:focus-visible {
    background: var(--surface-alt);
    color: var(--primary-color);
}

.ref-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ref-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.ref-slider .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ref-caption {
    z-index: 11;
}

.ref-slider .swiper-pagination {
    bottom: auto;
    top: 0.85rem;
}

.ref-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.65;
}

.ref-slider .swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
}

.ref-slider .swiper-button-prev,
.ref-slider .swiper-button-next {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(9, 26, 52, 0.55);
    color: #fff;
    transition: background-color 0.25s ease;
}

.ref-slider .swiper-button-prev:hover,
.ref-slider .swiper-button-next:hover {
    background: rgba(9, 26, 52, 0.85);
}

.ref-slider .swiper-button-prev::after,
.ref-slider .swiper-button-next::after {
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-brand:disabled,
.btn-accent:disabled,
.btn-ghost:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.selector-hidden {
    display: none !important;
}

.selector-step {
    display: none;
}

.selector-step.is-active {
    display: block;
}

.selector-panel {
    display: none;
}

.selector-panel.is-visible {
    display: block;
}

.selector-loading {
    display: none;
}

.selector-loading.is-visible {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 0;
    text-align: center;
}

.selector-option {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.selector-option i {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.selector-option:hover {
    border-color: var(--primary-color);
}

.selector-option.is-selected {
    border-color: var(--primary-color);
    background: var(--surface-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.selector-reason {
    margin-top: 0.75rem;
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--primary-color);
    background: var(--surface-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.selector-summary-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.925rem;
}

.selector-summary-item:last-child {
    border-bottom: 0;
}

.package-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.package-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.package-card.is-featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.badge-featured {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.pkg-features ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pkg-features li {
    position: relative;
    padding-left: 1.55rem;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.55;
}

.pkg-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.pkg-features p {
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
}

.chat-widget {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 70;
    font-family: var(--font-body);
}

.chat-widget.is-lifted {
    bottom: 7.5rem;
}

.chat-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.25s ease;
}

.chat-toggle:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.chat-widget.is-open .chat-toggle {
    display: none;
}

.chat-panel {
    display: none;
    flex-direction: column;
    width: min(92vw, 23.5rem);
    max-height: min(78vh, 34rem);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.chat-widget.is-open .chat-panel {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #3b8ee0);
    color: #fff;
}

.chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.05rem;
}

.chat-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.chat-subtitle {
    margin-top: 0.1rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
}

.chat-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.7rem;
    overflow-y: auto;
    padding: 1rem;
    background: var(--surface-color);
}

.chat-msg {
    display: flex;
}

.chat-msg.from-user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 86%;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-msg.from-bot .chat-bubble {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-bottom-left-radius: 4px;
}

.chat-msg.from-user .chat-bubble {
    background: var(--primary-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble.is-typing {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.chat-bubble.is-typing span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--text-muted);
    animation: chatBlink 1.2s infinite ease-in-out;
}

.chat-bubble.is-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-bubble.is-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatBlink {
    0%, 80%, 100% { opacity: 0.3; }
    40% { opacity: 1; }
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.6rem 1rem 0;
    background: var(--surface-color);
}

.chat-suggestions:empty {
    display: none;
}

.chat-chip {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.chat-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-send:hover {
    background: var(--primary-hover);
}

.chat-send:disabled,
.chat-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-footer {
    padding: 0 1rem 1rem;
    background: #fff;
}

.chat-quote-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.chat-quote-link:hover {
    background: var(--accent-hover);
}

.price-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.price-table-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.price-table-head .service-icon {
    margin-bottom: 0;
    flex: none;
}

.price-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.price-row {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.price-row:last-child {
    border-bottom: 0;
}

.price-name {
    min-width: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.price-row-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.price-value {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--surface-alt);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-hover);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.price-cta {
    flex: none;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .price-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem 1.5rem;
    }

    .price-row-end {
        flex: none;
        justify-content: flex-end;
        gap: 1rem;
    }

    .price-name {
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    .chat-panel {
        width: calc(100vw - 1.5rem);
        max-height: 72vh;
    }
}

.notice-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(9, 26, 52, 0.78);
}

.notice-overlay.is-hidden {
    display: none;
}

.notice-box {
    width: 100%;
    max-width: 34rem;
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    padding: 2rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.notice-title {
    margin-top: 1rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
}

.notice-text {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.7;
}

.notice-accept {
    margin-top: 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .notice-accept {
        width: auto;
    }
}

body.notice-locked [data-price-lock] {
    filter: blur(7px);
    opacity: 0.55;
    user-select: none;
    pointer-events: none;
}

body:not(.is-logged-in) .req-login {
    display: none !important;
}

.cart-count {
    display: none;
    position: absolute;
    top: -0.4rem;
    inset-inline-end: -0.4rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.cart-count.is-on {
    display: inline-flex;
}

.cart-toast {
    position: fixed;
    top: 5.5rem;
    left: 50%;
    z-index: 95;
    max-width: min(92vw, 26rem);
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-md);
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cart-item-media {
    width: 5rem;
    height: 5rem;
    flex: none;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--surface-color);
}

.cart-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-item-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.cart-item-price {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    overflow: hidden;
}

.cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: #fff;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-qty-btn:hover {
    background: var(--surface-alt);
    color: var(--primary-color);
}

.cart-qty-value {
    min-width: 2.25rem;
    padding: 0 0.3rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
}

.cart-remove {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-remove:hover {
    color: var(--accent-color);
}

.cart-item-total {
    flex: none;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cart-item {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item-media {
        width: 100%;
        height: 10rem;
    }

    .cart-item-body {
        width: 100%;
    }

    .cart-item-name {
        font-size: 1.05rem;
    }

    .cart-item-controls {
        align-items: center;
        justify-content: space-between;
    }

    .cart-item-total {
        width: 100%;
        text-align: right;
        font-size: 1.05rem;
    }
}

.cart-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-total-row[hidden] {
    display: none;
}

.cart-total-row:last-child {
    border-bottom: 0;
}

.cart-total-grand {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 2px solid var(--border-color);
    border-bottom: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-color);
}

.cart-total-grand span:last-child {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.cart-summary-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.cart-summary-card::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.cart-summary-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.order-status {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.order-status-error {
    color: var(--accent-color);
    font-weight: 600;
}

.compare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.compare-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.compare-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -10px 30px rgba(16, 28, 48, 0.12);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}

.compare-bar.is-visible {
    transform: translateY(0);
}

.compare-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    max-width: 1200px;
    margin-inline: auto;
    padding: 0.75rem 1rem;
}

.compare-bar-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
}

.compare-bar-count i {
    color: var(--primary-color);
}

.compare-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.compare-bar-actions .btn-accent,
.compare-bar-clear {
    padding: 0.6rem 1.15rem;
    font-size: 0.85rem;
}

.compare-bar-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-bar-clear:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.has-compare-bar {
    padding-bottom: 5.5rem;
}

.chat-widget.is-compare-lifted {
    bottom: 5.5rem;
}

.compare-scroll {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.compare-table {
    width: 100%;
    min-width: 40rem;
    border-collapse: separate;
    border-spacing: 0;
}

.compare-table th,
.compare-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
}

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

.compare-corner,
.compare-label {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 8.5rem;
    text-align: left;
    background: #fff;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.compare-head {
    position: relative;
    min-width: 10rem;
    padding-top: 1.4rem;
}

.compare-img {
    width: 6.5rem;
    height: 6.5rem;
    margin: 0 auto 0.6rem;
    object-fit: contain;
}

.compare-name {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.compare-remove {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-remove:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.compare-price {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: var(--surface-alt);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-hover);
    white-space: nowrap;
}

.compare-cell-action {
    padding-top: 1.1rem;
}