/**
 * Wishlist Collaborative - Front Office CSS
 * Sprint 2
 */

/* ==========================================================================
   Hide native PS wishlist module elements (blockwishlist)
   ========================================================================== */
.wishlist-button-add,
.wishlist-button-product,
.block-wishlist,
#wishlist_button,
.wishlist-add-to {
    display: none !important;
}

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    --wc-primary: #2fb5d2;
    --wc-primary-dark: #1e96b0;
    --wc-success: #4cbb6c;
    --wc-warning: #f0ad4e;
    --wc-danger: #e74c3c;
    --wc-info: #5bc0de;
    --wc-gray-light: #f5f5f5;
    --wc-gray: #999;
    --wc-border: #e5e5e5;
    --wc-radius: 6px;
    --wc-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Back Link
   ========================================================================== */
.wishlist-collab-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--wc-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}
.wishlist-collab-back:hover {
    color: var(--wc-primary);
    text-decoration: none;
}
.wishlist-collab-back i {
    font-size: 18px;
}

/* ==========================================================================
   List Page
   ========================================================================== */
.wishlist-collab-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.wishlist-collab-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--wc-gray);
}

.wishlist-collab-empty i {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.wishlist-collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.wishlist-collab-card {
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    box-shadow: var(--wc-shadow);
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: #fff;
}

.wishlist-collab-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Card badges (PrestaShop themes may not include Bootstrap badge styles) */
.wishlist-collab-card .badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}

.wishlist-collab-card .badge-success { background: var(--wc-success); }
.wishlist-collab-card .badge-secondary { background: #6c757d; }
.wishlist-collab-card .badge-info { background: var(--wc-info); }
.wishlist-collab-card .badge-danger { background: var(--wc-danger); }
.wishlist-collab-card .badge-warning { background: var(--wc-warning); color: #333; }

.wishlist-collab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--wc-border);
}

.wishlist-collab-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.wishlist-collab-card-body {
    padding: 16px;
}

.wishlist-collab-card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.wishlist-collab-progress {
    margin-top: 12px;
}

.wishlist-collab-progress .progress {
    display: flex;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    background: var(--wc-gray-light);
    overflow: hidden;
}

.wishlist-collab-progress .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    background: linear-gradient(90deg, var(--wc-primary), var(--wc-success));
    border-radius: 4px;
    transition: width 0.4s;
}

.wishlist-collab-progress small {
    color: var(--wc-gray);
    font-size: 0.8rem;
}

.wishlist-collab-expiration {
    margin-top: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wishlist-collab-expiration i {
    font-size: 16px;
}

.wishlist-collab-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--wc-border);
    background: var(--wc-gray-light);
}

/* Demo card (tour onboarding) */
.wc-tour-demo-card {
    opacity: 0.85;
    border-style: dashed;
}

/* ==========================================================================
   Create / Edit Form
   ========================================================================== */
.wishlist-collab-form {
    max-width: 700px;
}

.wishlist-collab-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--wc-border);
}

/* ==========================================================================
   Edit Page
   ========================================================================== */
.wishlist-collab-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--wc-gray-light);
    border-radius: var(--wc-radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wishlist-collab-tabs {
    margin-bottom: 20px;
}

.wishlist-collab-empty-products {
    text-align: center;
    padding: 40px 20px;
    color: var(--wc-gray);
}

.wishlist-collab-empty-products i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* Global badge styles (PS themes may not include Bootstrap) */
.wishlist-collab-edit .badge,
.wishlist-collab-status-bar .badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}

.wishlist-collab-edit .badge-success,
.wishlist-collab-status-bar .badge-success { background: var(--wc-success); }
.wishlist-collab-edit .badge-secondary,
.wishlist-collab-status-bar .badge-secondary { background: #6c757d; }
.wishlist-collab-edit .badge-info,
.wishlist-collab-status-bar .badge-info { background: var(--wc-info); }
.wishlist-collab-edit .badge-warning,
.wishlist-collab-status-bar .badge-warning { background: var(--wc-warning); color: #333; }
.wishlist-collab-edit .badge-danger,
.wishlist-collab-status-bar .badge-danger { background: var(--wc-danger); }

/* Product List (Sortable) */
.wishlist-collab-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wishlist-collab-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    background: #fff;
    transition: box-shadow 0.2s;
}

.wishlist-collab-product-item:hover {
    box-shadow: var(--wc-shadow);
}

.wishlist-collab-product-item.sortable-ghost {
    opacity: 0.4;
    background: var(--wc-gray-light);
}

.wishlist-collab-product-item.sortable-chosen {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.wishlist-collab-product-drag {
    cursor: grab;
    color: var(--wc-gray);
    flex-shrink: 0;
}

.wishlist-collab-product-drag:active {
    cursor: grabbing;
}

.wishlist-collab-product-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--wc-border);
}

.wishlist-collab-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-collab-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wc-gray-light);
    color: var(--wc-gray);
}

.wishlist-collab-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wishlist-collab-product-name {
    display: block;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wishlist-collab-product-name:hover {
    color: var(--wc-primary);
}

.wishlist-collab-product-info small {
    font-size: 0.8rem;
}

.wishlist-collab-product-price {
    font-weight: 700;
    color: var(--wc-primary-dark);
    font-size: 0.95rem;
}

.wishlist-collab-product-priority {
    flex-shrink: 0;
}

.wishlist-collab-product-priority select {
    width: auto;
    min-width: 130px;
    height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Hauteur uniforme colonne droite (select, quantity, badge, btn) */
.wishlist-collab-product-item .wishlist-collab-product-priority select,
.wishlist-collab-product-item .wishlist-collab-product-actions input[type="number"] {
    height: 34px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.wishlist-collab-product-item .wishlist-collab-product-status .badge,
.wishlist-collab-product-item .wishlist-collab-product-actions .btn {
    height: 34px;
    display: inline-flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.wishlist-collab-product-status {
    flex-shrink: 0;
}

.wishlist-collab-product-actions {
    flex-shrink: 0;
}

/* ==========================================================================
   View Page (Public)
   ========================================================================== */
.wishlist-collab-view-header {
    margin-bottom: 30px;
}

.wishlist-collab-beneficiary {
    font-size: 1.1rem;
    color: var(--wc-gray);
}

.wishlist-collab-description {
    margin-top: 12px;
    font-style: italic;
    color: #555;
}

.wishlist-collab-view-progress {
    margin: 20px 0;
}

.wishlist-collab-view-progress .progress {
    display: flex;
    height: 12px;
    border-radius: 6px;
    background: var(--wc-gray-light);
    overflow: hidden;
}

.wishlist-collab-view-progress .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    background: linear-gradient(90deg, var(--wc-primary), var(--wc-success));
    border-radius: 6px;
    transition: width 0.4s;
}

.wishlist-collab-view-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--wc-gray);
}

.wishlist-collab-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.9rem;
}

/* Products Grid (Public View) */
.wishlist-collab-view-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wishlist-collab-view-product {
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.wishlist-collab-view-product:hover {
    box-shadow: var(--wc-shadow);
}

.wishlist-collab-product-unavailable {
    opacity: 0.6;
}

.wishlist-collab-view-product-image {
    position: relative;
    height: 200px;
    background: var(--wc-gray-light);
}

.wishlist-collab-view-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-collab-priority-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.priority-high {
    background: var(--wc-danger);
}

.priority-medium {
    background: var(--wc-warning);
}

.priority-low {
    background: var(--wc-info);
}

/* Priority badge — inline variant for contribute page */
.wc-priority-inline {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    vertical-align: middle;
    margin-left: 6px;
    font-size: 0.7rem;
}

.wishlist-collab-view-product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-collab-view-product-info h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    /* Clamp to 2 lines — same height across all cards */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    line-height: 1.3;
}

.wishlist-collab-view-product-info h4 a {
    color: #333;
    text-decoration: none;
}

.wishlist-collab-view-product-info h4 a:hover {
    color: var(--wc-primary);
}

.wishlist-collab-product-combination {
    display: block;
    min-height: 1.3em;
    line-height: 1.3;
    margin-bottom: 6px;
    font-size: 0.82rem;
}

.wishlist-collab-view-product-info .wc-product-price-line {
    margin-top: auto;
}

.wishlist-collab-view-product-status {
    padding: 8px 12px;
    border-top: 1px solid var(--wc-border);
    text-align: center;
    margin-top: auto;
}

/* View page badges (product status) */
.wishlist-collab-view-product-status .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
    color: #fff;
}

.wishlist-collab-view-product-status .badge i {
    font-size: 14px;
}

.wishlist-collab-view-product-status .badge-success { background: var(--wc-success); }
.wishlist-collab-view-product-status .badge-info { background: var(--wc-info); }
.wishlist-collab-view-product-status .badge-warning { background: var(--wc-warning); color: #333; }
.wishlist-collab-view-product-status .badge-secondary { background: #6c757d; }

/* Alert (Bootstrap not always styled in PS themes) */
.wishlist-collab-view .alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--wc-radius);
    margin-top: 16px;
    font-weight: 500;
}

.wishlist-collab-view .alert i {
    font-size: 20px;
}

.wishlist-collab-view .alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Contributors */
.wishlist-collab-view-contributors {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--wc-border);
}

.wishlist-collab-view-contributors h3 {
    margin-bottom: 16px;
}

.wishlist-collab-contributor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--wc-gray-light);
}

.wishlist-collab-contributor-name {
    font-weight: 600;
    flex: 1;
}

.wishlist-collab-contributor-amount {
    color: var(--wc-primary-dark);
    font-weight: 600;
}

.wishlist-collab-contributor-date {
    color: var(--wc-gray);
    font-size: 0.85rem;
}

/* Share section */
.wishlist-collab-view-share {
    margin-top: 30px;
    padding: 20px;
    background: var(--wc-gray-light);
    border-radius: var(--wc-radius);
}

.wishlist-collab-view-share h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.wishlist-collab-share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* ==========================================================================
   Product Button Hook (Fiche produit)
   ========================================================================== */
.wishlist-collab-product-btn {
    display: none !important; /* Masqué temporairement — bouton panier fiche produit */
    margin: 8px 0;
    position: relative;
}

.wishlist-collab-dropdown {
    position: relative;
    display: inline-block;
}

.wishlist-collab-toggle i {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

.wishlist-collab-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 250px;
    background: #fff;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 4px 0;
}

.wishlist-collab-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s;
}

.wishlist-collab-dropdown-item:hover {
    background: var(--wc-gray-light);
    color: var(--wc-primary);
}

.wishlist-collab-dropdown-item i {
    font-size: 18px;
    margin-right: 6px;
}

.wishlist-collab-dropdown hr {
    margin: 4px 0;
    border-color: var(--wc-border);
}

/* Product listing icon (heart overlay) */
.wishlist-collab-list-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.wishlist-collab-list-icon:hover {
    color: var(--wc-primary);
    background: #fff;
    transform: scale(1.1);
}
.wishlist-collab-list-icon.added {
    color: #e91e63;
}
.wishlist-collab-list-icon i {
    font-size: 18px;
}

/* Product cover overlay heart — larger than listing thumbnail */
.product-cover .wishlist-collab-list-icon {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
}
.product-cover .wishlist-collab-list-icon i {
    font-size: 24px;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.wishlist-collab-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-collab-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.wishlist-collab-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--wc-radius);
    width: 90%;
    max-width: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.wishlist-collab-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--wc-border);
}

.wishlist-collab-modal-header h4 {
    margin: 0;
}

.wishlist-collab-modal-body {
    padding: 20px;
}

.wishlist-collab-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--wc-border);
}

/* ==========================================================================
   Not Found
   ========================================================================== */
.wishlist-collab-not-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--wc-gray);
}

.wishlist-collab-not-found i {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

/* ==========================================================================
   Contribute Page
   ========================================================================== */
.wishlist-collab-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 16px 0;
}

.wishlist-collab-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wc-gray);
}

.wishlist-collab-step.active {
    color: var(--wc-primary);
    font-weight: 600;
}

.wishlist-collab-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    font-size: 0.85rem;
}

.wishlist-collab-step.active .step-number {
    background: var(--wc-primary);
    color: #fff;
    border-color: var(--wc-primary);
}

.wishlist-collab-step-separator {
    width: 40px;
    height: 2px;
    background: var(--wc-border);
}

.wishlist-collab-contribute-intro {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.wishlist-collab-contribute-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.wishlist-collab-contribute-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    transition: border-color 0.2s;
}

.wishlist-collab-contribute-product:hover {
    border-color: var(--wc-primary);
}

.wishlist-collab-contribute-product-check {
    flex-shrink: 0;
}

.wishlist-collab-contribute-product-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.wishlist-collab-contribute-product-image {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.wishlist-collab-contribute-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-collab-contribute-product-info {
    flex: 1;
    min-width: 0;
}

.wishlist-collab-contribute-product-info h4 {
    margin: 0 0 4px;
    font-size: 0.95rem;
}

.wishlist-collab-contribute-product-info h4 a {
    color: #333;
    text-decoration: none;
}

.wishlist-collab-contribute-product-status {
    flex-shrink: 0;
    text-align: right;
}

.wishlist-collab-timer {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wc-warning);
    margin-top: 4px;
}

.wishlist-collab-contribute-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--wc-gray-light);
    border-radius: var(--wc-radius);
    margin-top: 20px;
}

.wishlist-collab-contribute-total {
    font-size: 1.1rem;
}

.wishlist-collab-contribute-total span {
    font-weight: 700;
    color: var(--wc-primary-dark);
    font-size: 1.3rem;
}

/* Confirm step */
.wishlist-collab-reservation-alert {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wishlist-collab-reservation-alert i {
    font-size: 24px;
}

.wishlist-collab-global-timer {
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}

.wishlist-collab-contribute-recap {
    margin: 20px 0;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    overflow: hidden;
}

.wishlist-collab-contribute-recap-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--wc-border);
}

.wishlist-collab-contribute-recap-item:last-child {
    border-bottom: none;
}

.wishlist-collab-contribute-recap-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--wc-gray-light);
    font-size: 1.1rem;
}

.wishlist-collab-contribute-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* "J'offre" button on view page */
.wishlist-collab-btn-offer {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.wishlist-collab-btn-offer i {
    font-size: 16px;
}

.wishlist-collab-contribute-cta {
    margin-top: 16px;
    text-align: center;
}

.wishlist-collab-contribute-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Visibility radio options (contribute step 2 & crowdfunding) */
.wc-section-label {
    display: block;
    text-align: left !important;
    font-weight: 600 !important;
    margin-bottom: 8px;
}

.wc-visibility-radios {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.wc-radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    margin-bottom: 0;
    font-weight: normal !important;
    text-align: left !important;
    background: #fff;
}

.wc-radio-option:hover {
    border-color: var(--wc-primary);
    background-color: rgba(47, 181, 210, 0.04);
}

.wc-radio-option:has(input:checked) {
    border-color: var(--wc-primary);
    background-color: rgba(47, 181, 210, 0.06);
}

.wc-radio-option input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--wc-primary);
}

.wc-radio-label {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
    text-align: left;
}

.wc-radio-label strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #232323;
}

.wc-radio-label small {
    color: var(--wc-gray);
    font-size: 0.82rem;
    margin-top: 2px;
    font-weight: 400;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.wishlist-collab-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    padding: 12px 20px;
    border-radius: var(--wc-radius);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.wishlist-collab-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.wishlist-collab-toast.toast-success {
    background: var(--wc-success);
}

.wishlist-collab-toast.toast-error {
    background: var(--wc-danger);
}

/* ==========================================================================
   Inline Field Validation (B1)
   ========================================================================== */
.wc-is-invalid {
    border-color: var(--wc-danger) !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.wc-invalid-feedback {
    display: block;
    color: var(--wc-danger);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ==========================================================================
   Substitution Page
   ========================================================================== */
.wc-substitution {
    max-width: 800px;
    margin: 0 auto;
}

.wc-card {
    background: #fff;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--wc-shadow);
}

.wc-card--centered {
    text-align: center;
    padding: 40px;
}

.wc-alert {
    padding: 12px 16px;
    border-radius: var(--wc-radius);
    margin-bottom: 16px;
}

.wc-alert--error {
    background: #fde8e8;
    color: var(--wc-danger);
    border: 1px solid #f5c6c6;
}

.wc-alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.wc-substitution__current-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wc-substitution__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid var(--wc-border);
}

.wc-substitution__form .wc-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1rem;
}

.wc-form-group {
    margin-bottom: 16px;
}

.wc-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.wc-hint {
    display: block;
    margin-top: 4px;
    color: var(--wc-gray);
    font-size: 0.85rem;
}

.wc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--wc-radius);
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s;
}

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

.wc-btn--primary:hover {
    background: var(--wc-primary-dark);
    color: #fff;
}

.wc-btn--outline {
    background: transparent;
    border-color: var(--wc-border);
    color: #333;
}

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

.wc-btn--danger {
    color: var(--wc-danger);
    border-color: var(--wc-danger);
}

.wc-btn--danger:hover {
    background: var(--wc-danger);
    color: #fff;
}

.wc-btn--sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.wc-substitution__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Search results dropdown */
.wc-search-results {
    position: absolute;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius);
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.wc-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.wc-search-result:hover {
    background: var(--wc-gray-light);
}

.wc-search-result__img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.wc-search-result__name {
    flex: 1;
    font-size: 0.9rem;
}

.wc-search-result__price {
    font-weight: 600;
    color: var(--wc-primary-dark);
    white-space: nowrap;
}

.wc-search-no-result {
    color: var(--wc-gray);
    cursor: default;
    font-style: italic;
}

.wc-substitution__selected-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--wc-gray-light);
    border-radius: var(--wc-radius);
}

.wc-substitution__selected-info > div {
    flex: 1;
}

/* Review: comparison */
.wc-substitution__comparison {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.wc-substitution__compare-col {
    flex: 1;
    text-align: center;
}

.wc-substitution__arrow {
    font-size: 2rem;
    color: var(--wc-primary);
}

.wc-substitution__message {
    font-style: italic;
    color: #555;
    padding: 12px 16px;
    border-left: 4px solid var(--wc-primary);
    background: var(--wc-gray-light);
    margin: 0;
}

.wc-substitution__proposer {
    color: var(--wc-gray);
    margin: 0;
}

.wc-success-icon {
    font-size: 3rem;
    color: var(--wc-success);
    margin-bottom: 16px;
}

.wc-info-icon {
    font-size: 3rem;
    color: var(--wc-danger);
    margin-bottom: 16px;
}

/* Substitute button on view page */
.wishlist-collab-btn-substitute {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.wishlist-collab-btn-substitute i {
    font-size: 14px;
}

/* ==========================================================================
   Crowdfunding Page
   ========================================================================== */
.wc-crowdfunding {
    max-width: 800px;
    margin: 0 auto;
}

.wc-crowdfunding__product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wc-crowdfunding__img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--wc-radius);
    border: 1px solid var(--wc-border);
}

.wc-crowdfunding__wishlist-name {
    color: var(--wc-gray);
    font-size: 0.9rem;
}

.wc-crowdfunding__target {
    font-size: 1.1rem;
}

/* Progress bar */
.wc-crowdfunding__progress-card {
    padding: 24px;
}

.wc-crowdfunding__progress-bar {
    height: 24px;
    background: var(--wc-gray-light);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.wc-crowdfunding__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wc-primary), var(--wc-success));
    border-radius: 12px;
    transition: width 0.6s ease;
    min-width: 2%;
}

.wc-crowdfunding__progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wc-crowdfunding__funded {
    font-weight: 700;
    color: var(--wc-primary-dark);
    font-size: 1.1rem;
}

.wc-crowdfunding__percentage {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--wc-success);
}

.wc-crowdfunding__contributors {
    color: var(--wc-gray);
}

.wc-crowdfunding__remaining {
    margin-top: 8px;
    color: var(--wc-gray);
}

/* Cart rule display */
.wc-crowdfunding__cartrule {
    border-left: 4px solid var(--wc-success);
}

.wc-crowdfunding__code {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.wc-crowdfunding__code code {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--wc-gray-light);
    padding: 8px 16px;
    border-radius: var(--wc-radius);
    letter-spacing: 1px;
}

/* Suggestions */
.wc-crowdfunding__suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.wc-crowdfunding__suggest {
    min-width: 80px;
    text-align: center;
}

.wc-crowdfunding__suggest--active {
    border-color: var(--wc-primary);
    background: rgba(47, 181, 210, 0.1);
    color: var(--wc-primary-dark);
}

/* Amount input */
.wc-crowdfunding__amount-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-crowdfunding__amount-input input {
    flex: 1;
}

.wc-crowdfunding__currency {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--wc-gray);
}

.wc-crowdfunding__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Partial funding actions */
.wc-crowdfunding__partial {
    border-left: 4px solid var(--wc-warning);
}

.wc-crowdfunding__partial-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* Contributors list */
.wc-crowdfunding__contributors-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-crowdfunding__contributor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--wc-border);
}

.wc-crowdfunding__contributor:last-child {
    border-bottom: none;
}

.wc-crowdfunding__date {
    margin-left: auto;
    color: var(--wc-gray);
    font-size: 0.85rem;
}

.wc-price {
    font-weight: 700;
    color: var(--wc-primary-dark);
}

/* Mini progress bar (inline on view page product cards) */
.wishlist-collab-view-product-funding {
    margin-top: 8px;
}

.wc-mini-progress {
    height: 8px;
    background: var(--wc-gray-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}

.wc-mini-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wc-primary), var(--wc-success));
    border-radius: 4px;
    transition: width 0.4s;
    min-width: 1%;
}

.wc-mini-progress__text {
    font-size: 0.75rem;
    color: var(--wc-gray);
}

/* ==========================================================================
   Crowdfunding v2 — new elements
   ========================================================================== */

/* Header */
.wc-crowdfunding__title-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.wc-crowdfunding__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.wc-crowdfunding__name {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.wc-crowdfunding__description {
    color: var(--wc-gray);
    font-size: 0.9rem;
    margin: 4px 0;
}

.wc-crowdfunding__target--open {
    color: var(--wc-success);
    font-style: italic;
}

/* Progress — complete state */
.wc-crowdfunding__progress-fill--complete {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.wc-crowdfunding__goal-reached {
    margin-top: 12px;
}

/* Open-ended card */
.wc-crowdfunding__progress-card--open .wc-crowdfunding__progress-stats {
    justify-content: center;
    font-size: 1.1rem;
}

/* Quick percentage buttons */
.wc-crowdfunding__quick-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.wc-crowdfunding__quick-btn {
    min-width: 70px;
    text-align: center;
}

.wc-crowdfunding__quick-btn small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.wc-crowdfunding__quick-btn.wc-btn--active,
.wc-btn--active {
    background: var(--wc-primary);
    color: #fff;
    border-color: var(--wc-primary);
}

/* Amount input wrapper */
.wc-crowdfunding__amount-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
}

.wc-crowdfunding__amount-wrap input {
    flex: 1;
}

/* Partial forms (inline) */
.wc-crowdfunding__partial-form {
    display: inline-block;
}

/* Contributor name / message */
.wc-crowdfunding__contributor-name {
    flex: 1;
    font-weight: 600;
}

.wc-crowdfunding__contrib-msg {
    font-style: italic;
    color: var(--wc-gray);
    font-size: 0.85rem;
    flex-basis: 100%;
    padding-left: 4px;
}

/* Closed notice */
.wc-crowdfunding__closed-notice {
    text-align: center;
    padding: 24px;
    color: var(--wc-gray);
}

/* Hint variants */
.wc-hint--info {
    color: var(--wc-primary-dark);
}

/* view.tpl — cagnotte progress bar */
.wc-cf-progress .progress {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 8px;
}

.wc-cf-progress .progress-bar {
    border-radius: 7px;
    font-size: 0.7rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .wishlist-collab-grid {
        grid-template-columns: 1fr;
    }

    .wishlist-collab-view-products {
        grid-template-columns: 1fr;
    }

    .wishlist-collab-product-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .wishlist-collab-product-drag {
        display: none;
    }

    .wishlist-collab-product-info {
        min-width: calc(100% - 80px);
    }

    .wishlist-collab-product-priority,
    .wishlist-collab-product-status,
    .wishlist-collab-product-actions {
        margin-left: auto;
    }

    .wishlist-collab-product-priority select {
        min-width: 80px;
    }

    .wishlist-collab-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .wc-substitution__comparison {
        flex-direction: column;
    }

    .wc-substitution__arrow {
        transform: rotate(90deg);
    }

    .wc-crowdfunding__product {
        flex-direction: column;
        text-align: center;
    }

    .wc-crowdfunding__suggestions {
        justify-content: center;
    }

    .wc-crowdfunding__partial-actions {
        flex-direction: column;
    }

    .wc-substitution__actions,
    .wc-crowdfunding__actions {
        flex-direction: column;
    }

    .wc-substitution__actions .wc-btn,
    .wc-crowdfunding__actions .wc-btn {
        width: 100%;
        justify-content: center;
    }
}

/* === C2: Mode selector cards (create.tpl) === */
.wc-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.wc-mode-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
    gap: 8px;
    background: #fff;
}

.wc-mode-card input[type=radio] {
    display: none;
}

.wc-mode-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.wc-mode-card--selected {
    border-color: #007bff;
    background: #f0f6ff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.2);
}

.wc-mode-card__icon {
    font-size: 2rem;
    line-height: 1;
}

.wc-mode-card__title {
    font-weight: 700;
    font-size: 1rem;
    color: #212529;
}

.wc-mode-card__desc {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

@media (max-width: 576px) {
    .wc-mode-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   D3/D4 — Product button dropdown amélioré
   ============================================================ */

.wishlist-collab-dropdown--in-wishlist .wishlist-collab-toggle {
    border-color: var(--wc-color-primary, #e91e63);
    color: var(--wc-color-primary, #e91e63);
}

.wishlist-collab-dropdown--in-wishlist .wishlist-collab-toggle:hover {
    background: var(--wc-color-accent, #fce4ec);
}

.wishlist-collab-dropdown-info {
    color: #495057;
    font-size: 0.875rem;
    cursor: default;
    pointer-events: none;
}

.wishlist-collab-dropdown-info:hover {
    background: none;
    color: #495057;
}

/* D5 — Harmonisation page edit produits : hauteur uniforme colonne droite */
.wishlist-product-item .wishlist-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
}

.wishlist-product-item .wishlist-product-actions select,
.wishlist-product-item .wishlist-product-actions input[type="number"],
.wishlist-product-item .wishlist-product-actions .badge {
    height: 38px;
    line-height: 38px;
}

/* D6 — Bouton flottant wishlist */
.wishlist-collab-floating-btn {
    position: fixed;
    right: 0;
    bottom: 80px;
    z-index: 999;
    background: var(--wc-color-primary, #e91e63);
    border-radius: 24px 0 0 24px;
    box-shadow: -2px 4px 12px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-collab-floating-btn:hover {
    box-shadow: -4px 6px 16px rgba(0,0,0,0.25);
}

.wishlist-collab-floating-btn .wc-floating-link {
    display: flex;
    align-items: center;
    padding: 10px 14px 10px 16px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 6px;
}

.wishlist-collab-floating-btn .wc-floating-link:hover {
    color: #fff;
}

.wishlist-collab-floating-btn .wc-floating-link .material-icons {
    font-size: 22px;
}

@media (max-width: 768px) {
    .wishlist-collab-floating-btn {
        bottom: 60px;
    }
    .wishlist-collab-floating-btn .wc-floating-link {
        padding: 10px 12px;
    }
}

/* ======================================================================
   Wishlist multi-select panel (unified dropdown for all heart buttons)
   ====================================================================== */
.wc-wishlist-panel {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
    min-width: 200px;
    max-width: 280px;
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.4;
}

.wc-panel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background .12s;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
}

.wc-panel-item:hover { background: #f5f5f5; }

.wc-panel-item.wc-checked { color: var(--wc-color-primary, #e91e63); }

.wc-panel-item.wc-active { font-weight: 600; }

.wc-panel-item .wc-panel-check {
    font-size: 18px;
    flex-shrink: 0;
}

.wc-panel-item .wc-panel-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wc-panel-item .wc-panel-star {
    font-size: 14px;
    color: #ffc107;
    margin-left: auto;
    flex-shrink: 0;
}

.wc-panel-create-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 4px;
    transition: background .12s;
    white-space: nowrap;
}

.wc-panel-create-row:hover {
    background: #f5f5f5;
    color: var(--wc-color-primary, #e91e63);
}

.wc-panel-create-row i {
    font-size: 18px;
    flex-shrink: 0;
}

.wc-panel-create-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 12px;
    outline: none;
    min-width: 0;
}

.wc-panel-create-input:focus {
    border-color: var(--wc-color-primary, #e91e63);
}

.wc-panel-create-btn {
    background: var(--wc-color-primary, #e91e63);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
}

.wc-panel-create-btn:hover { opacity: .85; }

/* ==========================================================================
   Activation Modal — locked params
   ========================================================================== */
.wc-locked-field {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.wc-lock-icon {
    font-size: 14px;
    color: #adb5bd;
    flex-shrink: 0;
}

.wishlist-collab-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--wc-border);
}


/* Auto-share highlight on view page */
.wishlist-collab-view-share.wc-share-highlight {
    box-shadow: 0 0 0 3px var(--wc-primary, #1a7fd4);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

/* ==========================================================================
   Hero Section — Leetchi-style (view page)
   ========================================================================== */
.wc-hero {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    padding: 28px 28px 20px;
    margin-bottom: 28px;
}

.wc-hero:not(.wc-hero--cf):not(.wc-hero--completed) {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 60%);
}

.wc-hero--cf {
    background: linear-gradient(135deg, #fff9f0 0%, #fff 60%);
}

.wc-hero--completed {
    background: linear-gradient(135deg, #f0fff4 0%, #fff 60%);
}

.wc-hero__top {
    margin-bottom: 20px;
}

.wc-hero__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.wc-hero__beneficiary {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 8px;
}

.wc-hero__description {
    color: #555;
    font-size: 0.9rem;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* Progress bar */
.wc-hero__progress-wrap {
    margin-bottom: 18px;
}

.wc-hero__progress-track {
    height: 18px;
    background: #eee;
    border-radius: 9px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wc-hero__progress-fill {
    height: 100%;
    border-radius: 9px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffc945 50%, #51cf66 100%);
    background-size: 200% 100%;
    background-position: right center;
    transition: width 0.6s ease, background-position 0.6s ease;
    min-width: 4px;
}

.wc-hero__progress-fill--classic {
    background: linear-gradient(90deg, #74c0fc 0%, #4dabf7 50%, #228be6 100%);
    background-size: 200% 100%;
    background-position: right center;
}

/* Shift gradient so filled portion looks warm/complete */
.wc-hero__progress-track:has(.wc-hero__progress-fill[style*="width: 10"]) .wc-hero__progress-fill,
.wc-hero__progress-track .wc-hero__progress-fill {
    background-position: right center;
}

.wc-hero__amounts {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-hero__amount-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wc-hero__amount-block--right {
    margin-left: auto;
    text-align: right;
}

.wc-hero__amount-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.wc-hero__amount-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wc-hero__pct-badge {
    background: #f1f3f5;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
}

.wc-hero__remaining {
    margin: 10px 0 0;
    font-size: 0.9rem;
    color: #e67e22;
}

.wc-hero__remaining--classic {
    color: #4361ee;
}

.wc-hero__pct-badge--classic {
    background: linear-gradient(135deg, #e0e7ff 0%, #c5d3ff 100%);
    color: #364fc7;
}

.wc-hero__goal-reached {
    margin: 10px 0 0;
    font-size: 0.95rem;
    color: #27ae60;
    font-weight: 600;
}

/* Meta row */
.wc-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #666;
}

.wc-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wc-hero__meta-item--danger {
    color: var(--wc-danger);
}

/* CTA button */
.wc-hero__cta {
    margin-bottom: 8px;
}

.wc-btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.wc-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    text-decoration: none;
}

.wc-btn-cta--cf {
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b6b 100%);
    color: #fff;
}

.wc-btn-cta--cf:hover {
    color: #fff;
}

.wc-btn-cta--classic {
    background: linear-gradient(135deg, #5c7cfa 0%, #4dabf7 100%);
    color: #fff;
}

.wc-btn-cta--classic:hover {
    color: #fff;
}

/* Completed banner */
.wc-hero__completed-banner {
    background: linear-gradient(135deg, #d3f9d8 0%, #b2f2bb 100%);
    border-radius: 8px;
    padding: 14px 18px;
    color: #2b8a3e;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Owner action buttons inside hero */
.wc-hero__owner-actions {
    margin-top: 12px;
}

/* Product price on its own line, aligned right */
.wc-product-price-line {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.wc-product-price-line .wishlist-collab-product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Thank you contribution banner */
.wc-thank-you-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border: 1px solid #ffd54f;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    animation: wc-banner-in 0.5s ease;
}
@keyframes wc-banner-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.wc-thank-you-banner__emoji {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}
.wc-thank-you-banner strong {
    display: block;
    font-size: 1.05rem;
    color: #795548;
    margin-bottom: 4px;
}
.wc-thank-you-banner p {
    margin: 0;
    color: #5d4037;
    font-size: 0.9rem;
}

/* ===== Custom badges (order_pending, reserved-by-me) ===== */
.wc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.wc-badge--pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}
.wc-badge--mine {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    color: #00695c;
    border: 1px solid #80cbc4;
}
.wc-badge--muted {
    background: #f4f4f4;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Material Icons inline alignment helpers */
.material-icons.wc-mi     { font-size: 18px; vertical-align: middle; line-height: 1; }
.material-icons.wc-mi--sm { font-size: 14px; vertical-align: middle; line-height: 1; }
.material-icons.wc-mi--lg { font-size: 32px; vertical-align: middle; line-height: 1; }

/* Budget suggestion highlight */
.wishlist-collab-contribute-product {
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.wishlist-collab-contribute-product.wc-budget-selected {
    background-color: rgba(233, 30, 99, 0.06);
    box-shadow: inset 3px 0 0 var(--wc-primary, #e91e63);
}

/* ===== Contribute: Sort & Budget toolbar ===== */
.wc-contribute-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 24px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.wc-toolbar-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
    line-height: 32px;
}
.wc-sort-group,
.wc-budget-group {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}
.wc-sort-btn {
    padding: 4px 10px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    background: #fff;
    font-size: 0.82rem;
    cursor: pointer;
    color: #495057;
    transition: all 0.15s;
    line-height: 22px;
}
.wc-sort-btn:hover {
    border-color: var(--wc-primary);
    color: var(--wc-primary);
}
.wc-sort-btn.active {
    background: var(--wc-primary);
    border-color: var(--wc-primary);
    color: #fff;
}
.wc-budget-input-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
}
.wc-budget-input-wrap .form-control-sm {
    width: 110px;
}
#wc-budget-notice {
    font-size: 0.8rem;
    color: #dc3545;
    margin-top: 4px;
    width: 100%;
}

/* ===== Contribute: Public toggle switch ===== */
.wc-public-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}
.wc-public-toggle-text {
    flex: 1;
}
.wc-public-toggle-text strong {
    font-size: 0.95rem;
}
.wc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.wc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.wc-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ced4da;
    border-radius: 24px;
    transition: background 0.2s;
}
.wc-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.wc-switch input:checked + .wc-switch-slider {
    background: var(--wc-primary);
}
.wc-switch input:checked + .wc-switch-slider::before {
    transform: translateX(20px);
}

/* Responsive hero */
@media (max-width: 576px) {
    .wc-hero {
        padding: 20px 16px;
    }
    .wc-hero__title {
        font-size: 1.3rem;
    }
    .wc-hero__amount-value {
        font-size: 1.05rem;
    }
    .wc-btn-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
}
