/**
 * Product Features Styles - ComfortInnerwear
 * Matching reference website design
 */

/* ==========================================
   PRODUCT CARD HOVER ACTIONS
   ========================================== */
.product-card-loved,
.product-card-wrapper {
    position: relative;
}

.product-image-link,
.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-actions-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 5;
}

.product-card-loved:hover .product-actions-overlay,
.product-card-wrapper:hover .product-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-action-btn:hover {
    background: #febd69;
    border-color: #febd69;
    color: #ffffff;
    transform: scale(1.1);
}

.product-action-btn.active {
    background: #febd69;
    border-color: #febd69;
    color: #ffffff;
}

.product-action-btn i {
    font-size: 16px;
}

/* ==========================================
   RECENT PURCHASE NOTIFICATION
   ========================================== */
.recent-purchase-notification {
    position: fixed;
    bottom: 100px;
    left: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px 20px;
    max-width: 350px;
    z-index: 9998;
    transform: translateX(-400px);
    transition: transform 0.3s ease;
}

.recent-purchase-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-icon {
    width: 40px;
    height: 40px;
    background: #febd69;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    color: #ffffff;
    font-size: 18px;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    display: block;
    color: #333;
    font-size: 13px;
    margin-bottom: 4px;
}

.notification-text p {
    color: #666;
    font-size: 14px;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.notification-text small {
    color: #999;
    font-size: 12px;
}

.notification-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #4caf50;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-top: 6px;
    cursor: default;
}

.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #333;
}

/* ==========================================
   MODALS (WISHLIST & QUICK VIEW)
   ========================================== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-modal.show {
    display: flex;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.product-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-modal-close:hover {
    background: #febd69;
    color: #ffffff;
}

/* ==========================================
   WISHLIST MODAL
   ========================================== */
.wishlist-modal-content {
    max-width: 700px;
}

.product-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.product-modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.wishlist-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

.wishlist-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.wishlist-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: #febd69;
}

.wishlist-item-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 5px 0;
}

.wishlist-item-info small {
    color: #999;
    font-size: 12px;
}

.wishlist-item-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff5252;
    color: #ffffff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s;
}

.wishlist-item-remove:hover {
    transform: scale(1.1);
}

.btn-add-to-cart-wishlist {
    background: #febd69;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-add-to-cart-wishlist:hover {
    background: #e89610;
}

.product-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.btn-wishlist-page,
.btn-continue-shopping {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-wishlist-page {
    background: #febd69;
    color: #ffffff;
    border: none;
}

.btn-wishlist-page:hover {
    background: #e89610;
}

.btn-continue-shopping {
    background: #ffffff;
    color: #febd69;
    border: 2px solid #febd69;
}

.btn-continue-shopping:hover {
    background: #febd69;
    color: #ffffff;
}

/* ==========================================
   QUICK VIEW MODAL
   ========================================== */
.quickview-modal-content {
    max-width: 900px;
    width: 95%;
}

.quickview-modal-body {
    display: flex;
    gap: 30px;
    padding: 30px;
}

.quickview-gallery {
    flex: 1;
    position: relative;
}

.quickview-image-container {
    width: 100%;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.quickview-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quickview-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #febd69;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(254, 189, 105, 0.4);
}

.quickview-arrow:hover {
    background: #e89610;
    transform: translateY(-50%) scale(1.1);
}

.quickview-arrow-left {
    left: 10px;
}

.quickview-arrow-right {
    right: 10px;
}

.quickview-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.quickview-dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.quickview-dot.active {
    background: #febd69;
    transform: scale(1.3);
}

.quickview-details {
    flex: 1;
}

.quickview-details h2 {
    margin: 0 0 15px 0;
    font-size: 22px;
    color: #333;
}

.quickview-price {
    margin-bottom: 15px;
}

.quickview-old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 16px;
}

.quickview-current-price {
    font-size: 24px;
    font-weight: bold;
    color: #febd69;
}

.quickview-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quickview-quantity {
    margin-bottom: 20px;
}

.quickview-quantity label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.quickview-qty-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.quickview-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-quickview-cart,
.btn-quickview-buy {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-quickview-cart {
    background: #febd69;
    color: #ffffff;
}

.btn-quickview-cart:hover {
    background: #e89610;
}

.btn-quickview-buy {
    background: #0b2baa;
    color: #ffffff;
}

.btn-quickview-buy:hover {
    background: #091f7f;
}

.quickview-meta p {
    margin: 8px 0;
    color: #666;
}

.quickview-meta a {
    color: #febd69;
    text-decoration: none;
}

.quickview-meta a:hover {
    text-decoration: underline;
}

/* ==========================================
   COMPARE DRAWER - Bottom Bar Style
   ========================================== */
.compare-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(44, 44, 44, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999 !important;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
    padding: 12px 20px;
}

.compare-drawer.has-items {
    display: block;
    transform: translateY(0);
}

.compare-drawer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.compare-drawer-items-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

.compare-drawer-items {
    display: flex;
    gap: 15px;
    flex: 1;
    overflow-x: auto;
    padding: 5px;
}

.compare-drawer-items::-webkit-scrollbar {
    height: 6px;
}

.compare-drawer-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.compare-drawer-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.compare-drawer-item {
    flex-shrink: 0;
    width: 80px;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.compare-drawer-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
}

.compare-drawer-item p {
    font-size: 10px;
    color: #333;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compare-item-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff5252;
    color: #ffffff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-compare-action {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-btn-main {
    background: #00bcd4;
    color: #ffffff;
    border: none;
    min-width: 150px;
}

.compare-btn-main:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

.compare-btn-main i {
    font-size: 16px;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.product-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.product-toast i {
    font-size: 20px;
}

.product-toast-success {
    border-left: 4px solid #4caf50;
}

.product-toast-success i {
    color: #4caf50;
}

.product-toast-warning {
    border-left: 4px solid #ff9800;
}

.product-toast-warning i {
    color: #ff9800;
}

.product-toast-info {
    border-left: 4px solid #2196f3;
}

.product-toast-info i {
    color: #2196f3;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .quickview-modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .quickview-actions {
        flex-direction: column;
    }

    .recent-purchase-notification {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 80px;
    }

    .product-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .compare-drawer-item {
        width: 120px;
    }

    .compare-drawer-item img {
        height: 100px;
    }

    .product-toast {
        right: 10px;
        left: 10px;
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .product-action-btn {
        width: 36px;
        height: 36px;
    }

    .product-action-btn i {
        font-size: 14px;
    }

    .wishlist-item {
        flex-wrap: wrap;
    }

    .btn-add-to-cart-wishlist {
        width: 100%;
    }
}
/* Hide old product action buttons (replaced with new hover actions) */
.product-actions { display: none !important; }
.action-btn { display: none !important; }
