.pc-compare-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .35rem;
width: 34px;
height: 34px;
border: 1px solid #dbe4f0;
border-radius: 50%;
background: rgba(255, 255, 255, .96);
color: #57534e;
box-shadow: 0 2px 8px rgba(15, 39, 68, .08);
cursor: pointer;
transition: background .15s, color .15s, border-color .15s, transform .15s;
font-size: .9rem;
padding: 0;
z-index: 3;
}
.pc-compare-btn:hover {
color: var(--primary);
border-color: #fdba74;
background: #fff7ed;
}
.pc-compare-btn.is-active {
color: #fff;
background: var(--primary);
border-color: var(--primary);
}
.pc-compare-btn--labeled,
.pdp-compare-btn,
.pdp-quick-actions .pc-compare-btn {
position: static;
width: auto;
height: auto;
min-height: 34px;
border-radius: 999px;
padding: .45rem .85rem;
font-size: .78rem;
font-weight: 700;
}
.pc-media .pc-compare-btn {
position: absolute;
top: 8px;
left: 8px;
}
.pc-card--strip .pc-compare-btn {
top: 6px;
left: 6px;
width: 30px;
height: 30px;
font-size: .82rem;
}
.compare-bar {
position: fixed;
left: 0;
right: 0;
bottom: calc(64px + env(safe-area-inset-bottom, 0px));
z-index: 1040;
transform: translateY(110%);
opacity: 0;
pointer-events: none;
transition: transform .25s ease, opacity .25s ease;
}
@media (min-width: 992px) {
.compare-bar {
bottom: 0;
padding-bottom: env(safe-area-inset-bottom, 0px);
}
}
.compare-bar.is-visible {
transform: translateY(0);
opacity: 1;
pointer-events: auto;
}
.compare-bar-inner {
display: grid;
grid-template-columns: auto 1fr auto;
gap: .75rem;
align-items: center;
padding: .65rem .85rem;
background: rgba(255, 255, 255, .98);
border-top: 1px solid #ececec;
box-shadow: 0 -8px 28px rgba(15, 23, 42, .12);
backdrop-filter: blur(8px);
}
.compare-bar-head {
display: flex;
flex-direction: column;
gap: .15rem;
min-width: 92px;
}
.compare-bar-title {
font-size: .82rem;
font-weight: 800;
color: var(--dark);
display: inline-flex;
align-items: center;
gap: .35rem;
}
.compare-bar-count {
font-size: .72rem;
color: var(--gray);
}
.compare-bar-items {
display: flex;
gap: .55rem;
overflow-x: auto;
min-width: 0;
scrollbar-width: none;
}
.compare-bar-items::-webkit-scrollbar { display: none; }
.compare-bar-item {
position: relative;
flex: 0 0 118px;
min-width: 0;
}
.compare-bar-item-link {
display: flex;
flex-direction: column;
align-items: center;
gap: .25rem;
text-decoration: none;
color: inherit;
padding: .35rem .25rem;
border: 1px solid #ececec;
border-radius: 10px;
background: #fff;
min-height: 92px;
}
.compare-bar-item-link img {
width: 52px;
height: 52px;
object-fit: contain;
}
.compare-bar-item-name {
font-size: .62rem;
font-weight: 700;
line-height: 1.35;
text-align: center;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.compare-bar-remove-form {
position: absolute;
top: 2px;
left: 2px;
margin: 0;
}
.compare-bar-remove {
width: 22px;
height: 22px;
border: none;
border-radius: 50%;
background: rgba(28, 25, 23, .72);
color: #fff;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: .72rem;
cursor: pointer;
}
.compare-bar-empty {
margin: 0;
font-size: .78rem;
color: var(--gray);
white-space: nowrap;
}
.compare-bar-actions {
display: flex;
align-items: center;
gap: .45rem;
flex-shrink: 0;
}
.compare-bar-go-btn.is-disabled {
opacity: .45;
pointer-events: none;
}
.compare-toast {
position: fixed;
bottom: calc(150px + env(safe-area-inset-bottom, 0px));
left: 50%;
transform: translateX(-50%) translateY(12px);
z-index: 1050;
background: rgba(28, 25, 23, .92);
color: #fff;
padding: .55rem .9rem;
border-radius: 999px;
font-size: .82rem;
font-weight: 700;
opacity: 0;
pointer-events: none;
transition: opacity .2s, transform .2s;
}
.compare-toast.is-visible {
opacity: 1;
transform: translateX(-50%) translateY(0);
}
@media (min-width: 992px) {
.compare-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
.header-compare-btn {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 42px;
height: 42px;
border-radius: 12px;
border: 1px solid #dbe4f0;
background: #fff;
color: var(--dark);
text-decoration: none;
transition: background .15s, color .15s, border-color .15s;
}
.header-compare-btn:hover {
color: var(--primary);
border-color: #fdba74;
background: #fff7ed;
}
.header-compare-badge {
position: absolute;
top: -4px;
left: -4px;
min-width: 18px;
height: 18px;
padding: 0 4px;
border-radius: 999px;
background: var(--primary);
color: #fff;
font-size: .62rem;
font-weight: 800;
display: inline-flex;
align-items: center;
justify-content: center;
}
.header-compare-badge.is-empty { display: none; }
.compare-page-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.25rem;
}
.compare-page-title {
font-size: 1.35rem;
font-weight: 800;
margin: 0 0 .25rem;
}
.compare-page-sub {
margin: 0;
color: var(--gray);
font-size: .88rem;
}
.compare-table-wrap {
overflow-x: auto;
border: 1px solid #ececec;
border-radius: 14px;
background: #fff;
}
.compare-table {
width: 100%;
min-width: 720px;
border-collapse: collapse;
}
.compare-table th,
.compare-table td {
padding: .85rem .75rem;
border-bottom: 1px solid #f1f5f9;
vertical-align: top;
text-align: center;
}
.compare-table-label-col,
.compare-table-label {
width: 160px;
text-align: right;
background: #fafafa;
font-size: .82rem;
font-weight: 800;
color: #44403c;
position: sticky;
right: 0;
}
.compare-table-product-col {
min-width: 180px;
}
.compare-product-head {
display: flex;
flex-direction: column;
align-items: center;
gap: .45rem;
}
.compare-product-image img {
width: 96px;
height: 96px;
object-fit: contain;
}
.compare-product-name {
font-size: .84rem;
font-weight: 700;
color: var(--dark);
text-decoration: none;
line-height: 1.45;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.compare-product-price {
font-size: .92rem;
font-weight: 800;
}
.compare-empty {
text-align: center;
padding: 3rem 1rem;
border: 1px dashed #d6d3d1;
border-radius: 14px;
background: #fff;
}
.compare-empty i {
font-size: 2rem;
color: var(--primary);
margin-bottom: .75rem;
display: block;
}
@media (max-width: 767px) {
.compare-bar-inner {
grid-template-columns: 1fr;
gap: .55rem;
}
.compare-bar-actions {
justify-content: space-between;
}
.compare-bar-actions .btn {
flex: 1;
}
}
