/*--------- Wishlist Interface Styles ----------*/
.custom-page-wrapper {
    background-color: var(--off-white, #f8f9fa);
    font-family: var(--font-main, 'Poppins', sans-serif);
    color: var(--text-main, #333333);
}
.custom-page-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(40px, 8vw, 100px) clamp(10px, 3vw, 30px);
    background-color: var(--pure-white, #ffffff);
    background-image: radial-gradient(circle at center, rgba(141, 110, 99, 0.03), transparent 60%);
    min-height: calc(100vh - 100px);
}
.custom-section-header {
    text-align: center;
    margin-bottom: clamp(25px, 6vw, 50px);
}
.custom-section-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--dark-coffee, #3e2723);
    font-weight: 800;
    margin-bottom: clamp(5px, 1.5vw, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.custom-text-danger { color: var(--danger, #dc3545); }
.custom-section-subtitle {
    color: var(--text-muted, #6c757d);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    margin-bottom: clamp(15px, 3vw, 20px);
}
.custom-divider {
    border: none;
    height: clamp(3px, 0.5vw, 4px);
    width: clamp(50px, 10vw, 80px);
    background-color: var(--primary-brown, #8d6e63);
    margin: 0 auto;
    border-radius: 2px;
}
.custom-table-card {
    background: var(--glass-bg, rgba(255,255,255,0.8));
    backdrop-filter: var(--backdrop-blur, blur(10px));
    -webkit-backdrop-filter: var(--backdrop-blur, blur(10px));
    border: 1px solid var(--glass-border, rgba(255,255,255,0.4));
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border-radius: var(--radius-main, 15px);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.custom-table-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08);
}
.custom-table-wrapper {
    width: 100%;
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
}
.custom-table-head {
    background-color: rgba(141, 110, 99, 0.08);
}
.custom-table-th {
    padding: clamp(12px, 3vw, 20px);
    color: var(--dark-coffee, #3e2723);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 1.2vw, 0.95rem);
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(141, 110, 99, 0.15);
    text-align: center;
}
.custom-text-left { text-align: left; padding-left: clamp(15px, 3vw, 25px); }
.custom-text-right { text-align: right; padding-right: clamp(15px, 3vw, 25px); }

.custom-table-cell {
    padding: clamp(12px, 3vw, 25px);
    border-bottom: 1px solid rgba(141, 110, 99, 0.08);
    vertical-align: middle;
    background-color: var(--pure-white, #ffffff);
    text-align: center;
    transition: background-color 0.2s ease;
}
.custom-table-row:hover .custom-table-cell {
    background-color: rgba(141, 110, 99, 0.03);
}
.custom-table-row:last-child .custom-table-cell {
    border-bottom: none;
}
.custom-product-cell {
    text-align: left !important;
}
.custom-product-info {
    display: flex;
    align-items: center;
    gap: clamp(10px, 3vw, 20px);
}
.custom-product-img {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    object-fit: cover;
    border-radius: var(--radius-small, 8px);
    border: 1px solid rgba(141, 110, 99, 0.15);
    padding: 4px;
    background-color: var(--pure-white, #ffffff);
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.custom-product-img:hover {
    transform: scale(1.1);
}
.custom-product-details {
    min-width: 0;
    width: 100%;
}
.custom-product-title {
    font-weight: 700;
    color: var(--dark-coffee, #3e2723);
    margin: 0 0 clamp(2px, 1vw, 5px) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}
.custom-product-price-base {
    color: var(--text-muted, #6c757d);
    display: block;
    font-size: clamp(0.8rem, 1.2vw, 0.9rem);
}
.custom-remove-form {
    margin: clamp(5px, 1vw, 10px) 0 0 0;
}
.custom-btn-remove {
    background: none;
    border: none;
    color: var(--danger, #dc3545);
    font-weight: 600;
    padding: 0;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}
.custom-btn-remove:hover, .custom-btn-remove:focus {
    color: #a93226;
    text-decoration: underline;
    outline: none;
}
.custom-price-cell {
    font-weight: 800;
    color: var(--success, #28a745);
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    white-space: nowrap;
}
.custom-action-form {
    margin: 0;
    display: flex;
    justify-content: flex-end;
}
.custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 3vw, 25px);
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.custom-btn-primary {
    background: linear-gradient(135deg, var(--primary-brown, #8d6e63), var(--dark-coffee, #3e2723));
    color: white;
    box-shadow: 0 4px 15px rgba(141, 110, 99, 0.2);
}
.custom-btn-primary:hover, .custom-btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(141, 110, 99, 0.3);
    background: linear-gradient(135deg, var(--primary-hover, #6d4c41), var(--medium-brown, #5d4037));
    outline: none;
}
.custom-btn-primary:active {
    transform: translateY(0);
}

/* Fluid Responsive Size Badge */
.badge.badge-secondary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #6c757d !important;
    color: var(--pure-white, #ffffff) !important;
    padding: clamp(4px, 1.5vw, 6px) clamp(8px, 2vw, 12px) !important;
    border-radius: clamp(4px, 1vw, 8px) !important;
    font-size: clamp(0.7rem, 1.5vw, 0.85rem) !important;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap !important; /* Prevents letter-by-letter wrapping */
    min-width: fit-content;
}

/* Mobile Responsive Data Table Styling */
@media (max-width: 768px) {
    .custom-table, 
    .custom-table-head, 
    .custom-table-tbody, 
    .custom-table-th, 
    .custom-table-td, 
    .custom-table-row {
        display: block;
    }
    
    .custom-table-head {
        display: none;
    }
    
    .custom-table-row {
        background-color: var(--pure-white, #ffffff);
        border: 1px solid rgba(141, 110, 99, 0.15);
        border-radius: 12px;
        margin: 10px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }
    
    .custom-table-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(141, 110, 99, 0.08);
        padding: 12px 10px;
        text-align: right;
    }
    
    .custom-table-cell:last-child {
        border-bottom: none;
        justify-content: center; /* Center the action button */
    }
    
    /* Setup labels */
    .custom-table-cell::before {
        content: attr(data-label);
        font-weight: 700;
        text-transform: uppercase;
        color: var(--text-muted, #6c757d);
        font-size: 0.8rem;
        margin-right: 15px;
        text-align: left;
    }

    /* Reset specific flex layouts inside cells for mobile */
    .custom-product-cell {
        flex-direction: column;
        align-items: flex-start;
    }
    .custom-product-cell::before {
        margin-bottom: 10px;
    }
    
    .custom-product-info {
        width: 100%;
        gap: 15px;
    }

    .custom-product-title {
        white-space: normal;
    }

    .custom-action-form {
        width: 100%;
        justify-content: center;
    }
    .custom-btn {
        width: 100%;
    }
}

/* Extreme Micro-Screens (iPhone SE etc.) */
@media (max-width: 380px) {
    .badge.badge-secondary {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
    }
    
    .custom-table-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: left;
    }
    
    .custom-table-cell::before {
        margin-right: 0;
        margin-bottom: 4px;
    }
}