/* Wishlist Feature Styles */

/* Wishlist Button */
.beban-wishlist-btn {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.beban-wishlist-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.beban-wishlist-btn.beban-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.beban-wishlist-container {
    position: relative;
}

/* Product Grid */
.woocommerce ul.products li.product {
    position: relative;
}

/* Wishlist Products Grid */
.beban-wishlist-products {
    margin: 20px 0;
}

.beban-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.beban-wishlist-item {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.beban-wishlist-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.beban-wishlist-image img:hover {
    transform: scale(1.05);
}

.beban-wishlist-details h4 {
    margin: 10px 0;
    font-size: 14px;
    text-align: right;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.beban-wishlist-details h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beban-wishlist-details h4 a:hover {
    color: #ef394e;
}

.beban-wishlist-price {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 2px;
    min-height: 72px;
    justify-content: space-between;

}

.beban-price-wrapper{
    display: flex;
    flex-direction: column;
    align-items: end;
}

.beban-price-wrapper del {
    color: #999;
    font-size: 13px;
    font-weight: normal;
    display: block;
    margin-bottom: 2px;
}

.beban-price-wrapper ins {
    color: #ef394e;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    display: block;
}

/* Cart Notice */
.beban-wishlist-cart-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ef394e;
    font-size: 12px;
    width: 100%;
}

.beban-wishlist-cart-notice svg {
    width: 18px;
    height: 18px;
}

.beban-wishlist-cart-notice span {
    line-height: 1.4;
}

/* Wishlist Buttons Container */
.beban-wishlist-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 16px;
}

/* Add to Cart Button */
.beban-wishlist-add-to-cart-btn {
    background: #fff !important;
    color: #EF4056 !important;
    border: 1px solid #EF4056 !important;
    flex: 2;
    height: 40px;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 6px;
}

.beban-wishlist-add-to-cart-btn:hover,
.beban-wishlist-add-to-cart-btn:focus,
.beban-wishlist-add-to-cart-btn:active {
    background: transparent !important;
}

/* Select Options Button - Same as Add to Cart Button */
.beban-wishlist-select-options-btn {
    background: #fff !important;
    color: #EF4056 !important;
    border: 1px solid #EF4056 !important;
    flex: 2;
    height: 40px;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 6px;
}

.beban-wishlist-select-options-btn:hover,
.beban-wishlist-select-options-btn:focus,
.beban-wishlist-select-options-btn:active {
    background: transparent !important;
    color: #EF4056 !important;
    text-decoration: none;
}


/* Remove Button */
.beban-wishlist-remove-btn {
    background-color: #fff !important;
    color: #81858B !important;
    flex: 1;
    height: 40px;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    gap: 6px;
    border: 1px solid #E0E0E2 !important;
}

.beban-wishlist-remove-btn:hover,
.beban-wishlist-remove-btn:focus,
.beban-wishlist-remove-btn:active {
    background: transparent !important;
}




/* Responsive Design */
@media (max-width: 768px) {
    .beban-wishlist-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .beban-wishlist-item {
        padding: 12px;
    }
    
    .beban-wishlist-image img {
        width: 100%;
    }
    
    .beban-wishlist-details h4 {
        font-size: 13px;
        height: 36px;
    }
    
    .beban-price-wrapper ins {
        font-size: 16px;
    }
    
    .beban-wishlist-cart-notice {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .beban-wishlist-cart-notice {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .beban-wishlist-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .beban-wishlist-add-to-cart-btn,
    .beban-wishlist-select-options-btn,
    .beban-wishlist-remove-btn {
        height: 44px;
        font-size: 11px;
        flex: none;
    }
}

@media (max-width: 480px) {
    .beban-wishlist-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .beban-wishlist-item {
        padding: 10px;
    }
    
    .beban-wishlist-image img {
        width: 100%;
    }
    
    .beban-wishlist-buttons {
        gap: 6px;
    }
    
    .beban-wishlist-add-to-cart-btn,
    .beban-wishlist-select-options-btn,
    .beban-wishlist-remove-btn {
        height: 40px;
        font-size: 10px;
    }
    
    .woocommerce-account .beban-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Animation for wishlist button */
@keyframes wishlistPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.beban-wishlist-btn.beban-wishlisted {
    animation: wishlistPulse 0.3s ease-in-out;
}

/* Loading state */
.beban-wishlist-btn.beban-disabled svg {
    opacity: 0.5;
}

/* Empty state styling */
.beban-wishlist-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.beban-wishlist-empty svg {
    margin-bottom: 15px;
    opacity: 0.6;
}

/* Product card hover effect */
.beban-wishlist-item:hover .beban-wishlist-image img {
    transform: scale(1.05);
}

/* Button focus states */
.beban-wishlist-btn:focus,
.beban-wishlist-remove-btn:focus {
    outline: 2px solid #ef394e;
    outline-offset: 2px;
}

/* Accessibility improvements */
.beban-wishlist-btn[aria-label] {
    position: relative;
}

.beban-wishlist-btn[aria-label]:hover::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Account Page Wishlist Styles */
.beban-wishlist-account-page {
    padding: 0;
}

.beban-wishlist-account-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 15px;
    text-align: right;
}

.beban-wishlist-account-header h2 {
    margin: 0px !important;
    text-align: right;
    color: #333;
    font-size: 20px;
    font-weight: 700;
}

.beban-wishlist-account-header p {
    color: #666;
    margin: 10px 0 0;
    text-align: right;
    font-size: 14px;
    line-height: 1.5;
}

/* Account page specific grid adjustments */
.woocommerce-account .beban-wishlist-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.woocommerce-account .beban-wishlist-item {
    padding: 16px;
}

.woocommerce-account .beban-wishlist-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.woocommerce-account .beban-wishlist-details h4 {
    font-size: 13px;
    height: 36px;
}

@media (max-width: 768px) {
    .woocommerce-account .beban-wishlist-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .woocommerce-account .beban-wishlist-item {
        padding: 10px;
    }
    
    .woocommerce-account .beban-wishlist-image img {
        width: 100%;
    }
}

/* Pagination Styles */
.beban-wishlist-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.beban-wishlist-pagination-info {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.beban-wishlist-pagination-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.beban-wishlist-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1;
}

.beban-wishlist-page-link:hover {

    border-color: #ef394e;
    color: #ef394e !important;
}

.beban-wishlist-page-link.beban-wishlist-page-current {
    background: #ef394e;
    border-color: #ef394e;
    color: #fff !important;
}

.beban-wishlist-page-link.beban-wishlist-page-current:hover {
    background: #d6333a;
    border-color: #d6333a;
    color: #fff !important;
}

.beban-wishlist-page-dots {
    color: #999;
    font-weight: 500;
    padding: 0 4px;
}

/* Responsive Pagination */
@media (max-width: 768px) {
    .beban-wishlist-pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .beban-wishlist-pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .beban-wishlist-page-link {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .beban-wishlist-pagination-info {
        font-size: 12px;
    }
    
    .beban-wishlist-page-link {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 4px;
    }
}

/* Bulk Actions Styles */
.beban-wishlist-bulk-actions {
    margin: 16px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.beban-wishlist-bulk-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Custom Wishlist Checkbox Styles */
.beban-wishlist-checkbox-wrapper {
    --s-xsmall: 0.625em;
    --s-small: 1.2em;
    --border-width: 1px;
    --c-primary: #ef394e;
    --c-primary-20-percent-opacity: rgb(239 57 78 / 20%);
    --c-primary-10-percent-opacity: rgb(239 57 78 / 10%);
    --t-base: 0.4s;
    --t-fast: 0.2s;
    --e-in: ease-in;
    --e-out: cubic-bezier(.11,.29,.18,.98);
}

.beban-wishlist-checkbox-wrapper .visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    /* Ensure it's still accessible for JavaScript */
    opacity: 0;
    pointer-events: auto;
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    gap: 8px;
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox + .beban-wishlist-checkbox {
    margin-top: var(--s-small);
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox__symbol {
    display: inline-block;
    display: flex;
    border: var(--border-width) solid var(--c-primary);
    position: relative;
    border-radius: 0.1em;
    width: 1.5em;
    height: 1.5em;
    transition: box-shadow var(--t-base) var(--e-out), background-color var(--t-base);
    box-shadow: 0 0 0 0 var(--c-primary-10-percent-opacity);
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox__symbol:after {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    width: 0.25em;
    height: 0.25em;
    background-color: var(--c-primary-20-percent-opacity);
    opacity: 0;
    border-radius: 3em;
    transform: scale(1);
    transform-origin: 50% 50%;
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox .beban-wishlist-checkbox__icon {
    width: 1em;
    height: 1em;
    margin: auto;
    fill: none;
    stroke-width: 3;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    color: var(--c-primary);
    display: inline-block;
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox .beban-wishlist-checkbox__icon path {
    transition: stroke-dashoffset var(--t-fast) var(--e-in);
    stroke-dasharray: 30px, 31px;
    stroke-dashoffset: 31px;
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox__textwrapper {
    margin: 0;
    font-weight: 500;
    color: #333;
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox__trigger:checked + .beban-wishlist-checkbox__symbol:after {
    -webkit-animation: beban-wishlist-ripple 1.5s var(--e-out);
            animation: beban-wishlist-ripple 1.5s var(--e-out);
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox__trigger:checked + .beban-wishlist-checkbox__symbol .beban-wishlist-checkbox__icon path {
    transition: stroke-dashoffset var(--t-base) var(--e-out);
    stroke-dashoffset: 0px;
}

.beban-wishlist-checkbox-wrapper .beban-wishlist-checkbox__trigger:focus + .beban-wishlist-checkbox__symbol {
    box-shadow: 0 0 0 0.25em var(--c-primary-20-percent-opacity);
}

@-webkit-keyframes beban-wishlist-ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(20);
    }
}

@keyframes beban-wishlist-ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(20);
    }
}

/* Apply custom checkbox to wishlist elements */
.beban-wishlist-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.beban-wishlist-select-all .beban-wishlist-checkbox-wrapper {
    margin: 0;
}

.beban-wishlist-bulk-remove-btn {
    background: transparent !important;
    background-color: transparent !important;
    color: #81858B !important;
    border: 1px solid #E0E0E2 !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 6px;
    display: flex !important;
    padding: 10px !important;
    height: 48px;
    border-radius: 8px !important;
}

.beban-wishlist-bulk-remove-btn:hover:not(:disabled),
.beban-wishlist-bulk-remove-btn:focus:not(:disabled),
.beban-wishlist-bulk-remove-btn:active:not(:disabled) {
    background: transparent !important;
    background-color: transparent !important;
    color: #81858B !important;
    text-decoration: none;
    border-color: #E0E0E2 !important;
}

.beban-wishlist-bulk-remove-btn:disabled {
    background: #f5f5f5;
    color: #ccc !important;
    border-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.6;
}

.beban-wishlist-selected-count {
    font-weight: 600;
}

.beban-wishlist-item {
    position: relative;
}

.beban-wishlist-item-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Ensure new checkbox structure works properly */
.beban-wishlist-item-checkbox .beban-wishlist-checkbox-wrapper {
    margin: 0;
}

.beban-wishlist-item-checkbox .checkbox {
    margin: 0;
}

.beban-wishlist-item-checkbox .checkbox__symbol {
    margin-right: 0;
}

/* Responsive Bulk Actions */
@media (max-width: 768px) {
    .beban-wishlist-bulk-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .beban-wishlist-bulk-remove-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .beban-wishlist-bulk-actions {
        padding: 10px;
    }
    
    .beban-wishlist-item-checkbox {
        top: 5px;
        right: 5px;
    }
    
    .beban-wishlist-item-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }
} 