/* ============================================================
   WISHLIST PAGE
   ============================================================ */
.wd-wishlist-head {
    text-align: center;
    display: flex;
    justify-content: center;
    border-bottom: none!important;
}
.wd-wishlist-head .title {
    text-transform: none;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2em;
    padding: 0.4em 1.2em;
    background: var(--bs-card-bg);
    border-radius: 50px;
}
.wd-wishlist-head .title::before {
    font-family: "compformed-icons" !important;
    content: "\f114";
    font-size: 0.85em;
    color: inherit;
    -webkit-text-fill-color: inherit;
}
.wd-action-btn.wd-style-text > .wd-wishlist-remove {
    position: relative;
    z-index: 3;
    top: 15px;
    left: 15px;
}
.wd-loop-builder-on .wd-wishlist-product-actions {
    margin-top: 0;
    margin-bottom: 0!important;
    margin-inline: 0;
}
.wd-wishlist-product-checkbox input[type="checkbox"] {
    display: none;
}

/* ============================================================
   COMPARE PAGE
   ============================================================ */
.wd-compare-actions a.wd-compare-remove-cat {
    background-color: #e01020;
    color: #fff;
}
.wd-compare-actions a.wd-compare-remove-cat:hover {
    background-color: #c60f1d;
    color: #fff;
}
.wd-compare-table .compare-basic th.compare-field::before {
    content: "Prodotto";
    font-size: 1.2rem;
    position: relative;
    top: -3px;
    text-transform: uppercase;
}
.wd-compare-select-wrap label {
    text-transform: none!important;
}
.wd-compare-table .wd-compare-remove-action {
    position: relative;
    top: 14px;
    left: 5px;
}
.wd-compare-table th {
    text-transform: none;
}

/* ── COMPARE HEADER DROPDOWN ─────────────────────────────────────────────── */

/* Dropdown container — no overflow:hidden here to preserve the ::after bridge */
.wd-dropdown-compare.wd-design-default {
    --wd-dropdown-width: 230px;
    border-radius: 16px !important;
    padding: 0 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.07) !important;
    border: none !important;
    margin-top: 10px !important;
}

/* Extend ::after bridge to match the 10px margin-top gap */
.wd-dropdown-compare::after {
    height: 10px !important;
}

/* The ul carries overflow:hidden + same border-radius so hover backgrounds are clipped flush */
.wd-dropdown-compare .wd-sub-menu {
    overflow: hidden;
    border-radius: 16px;
    padding: 0;
}

/* Remove inherited account-dropdown overrides */
.wd-dropdown-compare .wd-sub-menu li {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    transition: none !important;
}
.wd-dropdown-compare .wd-sub-menu li + li {
    border-top: 1px solid rgba(0,0,0,0.05) !important;
}

/* Link row */
.wd-dropdown-compare .wd-sub-menu li > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-gray-800);
    text-decoration: none;
    gap: 12px;
    transition: background 0.4s ease, color 0.4s ease;
    border-radius: 0 !important;
    border: none !important;
}
.wd-dropdown-compare .wd-sub-menu li > a:hover {
    background: rgba(var(--bs-primary-rgb), 0.06) !important;
    color: var(--bs-primary) !important;
    border: none !important;
}

/* Category name */
.wd-dropdown-compare .wd-sub-menu li > a > span:first-child {
    flex: 1;
}

/* Count badge */
.wd-dropdown-compare .wd-sub-menu li > a .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(var(--bs-secondary-rgb), 0.12);
    color: var(--bs-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.4s ease, color 0.4s ease;
}
.wd-dropdown-compare .wd-sub-menu li > a:hover .count {
    background: var(--bs-secondary);
    color: #fff;
}

/* Overlay that dims page content when the compare dropdown is open */
#wd-compare-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}
#wd-compare-overlay.wd-compare-overlay-visible {
    opacity: 1;
}

/* Match WoodMart's wd-close-side overlay (used by account dropdown) to the same opacity */
.wd-close-side[class*="wd-location-header"] {
    background-color: rgba(0,0,0,0.6);
}
/* ── END COMPARE HEADER DROPDOWN ─────────────────────────────────────────── */

/* ============================================================
   COMPARE NOTICE
   ============================================================ */
.wd-compare-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(var(--wd-primary-color-rgb), 0.06) 0%, rgba(var(--wd-secondary-color-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--wd-primary-color-rgb), 0.25);
    border-left: 4px solid var(--bs-primary);
    border-radius: var(--bs-border-radius-lg);
    color: var(--bs-body-color);
    padding: 18px 22px;
    margin-bottom: 28px;
}
.wd-compare-notice-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wd-compare-notice-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-dark);
    margin: 0;
}
.wd-compare-notice-text {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--bs-gray-700);
    margin: 0;
}
.wd-compare-notice-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-primary);
    text-decoration: none;
    transition: color .2s ease;
}
.wd-compare-notice-link:hover {
    color: var(--bs-secondary);
    text-decoration: underline;
}
.wd-compare-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(var(--wd-primary-color-rgb), 0.12);
    color: var(--bs-primary);
    font-size: 1.25rem;
    font-style: normal;
    margin-top: 1px;
}

/* ============================================================
   WISHLIST — RESPONSIVE COLUMNS
   ============================================================ */
.wd-wishlist-content [class*="wd-grid"] {
    --wd-col: 5 !important;
}
@media (max-width: 1200px) {
    .wd-wishlist-content [class*="wd-grid"] {
        --wd-col: 4 !important;
    }
}
@media (max-width: 1024px) {
    .wd-wishlist-content [class*="wd-grid"] {
        --wd-col: 3 !important;
    }
}
@media (max-width: 768px) {
    .wd-wishlist-content [class*="wd-grid"] {
        --wd-col: 2 !important;
    }
}
@media (max-width: 520px) {
    .wd-wishlist-content [class*="wd-grid"] {
        --wd-col: 1 !important;
    }
}

