/* ============================================
   WISHLIST, COMPARE & MY ACCOUNT STYLES
   ============================================ */

/* ---- Toast Notification ---- */
.themox-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #fff;
    color: #333;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid var(--wca-button, #d0011b);
}
.themox-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.themox-toast .toast-icon { width: 24px; height: 24px; flex-shrink: 0; }
.themox-toast .toast-link {
    color: var(--wca-button, #d0011b);
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}
.themox-toast .toast-link:hover { text-decoration: underline; }

/* ---- Badge Bump ---- */
.ff-badge.bump { animation: ffBadgeBump 0.35s ease; }
@keyframes ffBadgeBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ---- Product Card Actions ---- */
.themox-product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
li.product:hover .themox-product-actions,
.product-card:hover .themox-product-actions,
.ff-shop-card:hover .themox-product-actions { opacity: 1; transform: translateX(0); }

.themox-product-actions button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    padding: 0;
}
.themox-product-actions button:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}
.themox-product-actions .themox-wishlist-btn:hover,
.themox-product-actions .themox-wishlist-btn.active {
    color: var(--wishlist-active, #ff1744);
    background: rgba(255, 23, 68, 0.08);
}
.themox-product-actions .themox-compare-btn:hover,
.themox-product-actions .themox-compare-btn.active {
    color: var(--compare-active, #1565c0);
    background: rgba(21, 101, 192, 0.08);
}
.themox-product-actions .themox-wishlist-btn.active svg {
    fill: var(--wishlist-active, #ff1744);
    stroke: var(--wishlist-active, #ff1744);
}
.themox-product-actions .themox-compare-btn.active svg { stroke: var(--compare-active, #1565c0); }

@keyframes heartPulse {
    0% { transform: scale(1); } 25% { transform: scale(1.3); }
    50% { transform: scale(1); } 75% { transform: scale(1.15); } 100% { transform: scale(1); }
}
.themox-wishlist-btn.pulse svg { animation: heartPulse 0.5s ease; }

/* ---- Single Product Actions ---- */
.themox-single-product-actions { display: flex; gap: 15px; margin-top: 15px; flex-wrap: wrap; }
.themox-sp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px;
    border: 2px solid #e0e0e0; background: transparent;
    cursor: pointer; font-size: 14px; font-weight: 500;
    color: var(--wca-text, #333); transition: all 0.3s ease;
}
.themox-sp-btn:hover { border-color: var(--wca-button, #d0011b); color: var(--wca-button, #d0011b); }
.themox-sp-btn.themox-wishlist-btn.active {
    border-color: var(--wishlist-active, #ff1744);
    color: var(--wishlist-active, #ff1744);
    background: rgba(255, 23, 68, 0.05);
}
.themox-sp-btn.themox-compare-btn.active {
    border-color: var(--compare-active, #1565c0);
    color: var(--compare-active, #1565c0);
    background: rgba(21, 101, 192, 0.05);
}

/* ============================================
   DRAWER ITEMS (inside header.php drawers)
   ============================================ */
.ff-wca-drawer-items { padding: 0; }
.ff-wca-item {
    display: flex; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    align-items: flex-start;
}
.ff-wca-item:last-child { border-bottom: none; }
.ff-wca-item-img {
    flex-shrink: 0; width: 70px; height: 70px;
    border-radius: 8px; overflow: hidden;
}
.ff-wca-item-img img {
    width: 70px !important; height: 70px !important;
    object-fit: cover; border-radius: 8px;
}
.ff-wca-item-info { flex: 1; min-width: 0; padding-right: 24px; }
.ff-wca-item-name {
    font-size: 14px; font-weight: 600;
    color: #0f172a; text-decoration: none;
    display: block; margin-bottom: 4px; line-height: 1.3;
}
.ff-wca-item-name:hover { color: var(--wca-button, #d0011b); }
.ff-wca-item-price {
    font-size: 15px; font-weight: 700;
    color: var(--wca-button, #d0011b);
    margin-bottom: 6px;
}
.ff-wca-item-price del { font-size: 12px; color: #999; font-weight: 400; }
.ff-wca-item-price ins { text-decoration: none; }
.ff-wca-item-cart {
    display: inline-block;
    padding: 5px 12px;
    background: var(--wca-button, #d0011b);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 20px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}
.ff-wca-item-cart:hover { opacity: 0.85; }
.ff-wca-item-remove {
    position: absolute; top: 10px; right: 0;
    background: none; border: none;
    font-size: 22px; color: #999;
    cursor: pointer; line-height: 1;
    padding: 0 4px; transition: 0.3s;
}
.ff-wca-item-remove:hover {
    color: var(--wca-remove, #ff5252);
    transform: scale(1.2);
}
.ff-wca-drawer-footer { padding: 20px 0 10px; text-align: center; }
.ff-wca-drawer-footer .ff-drawer-btn {
    display: inline-block; width: 100%;
    text-align: center; padding: 14px 24px;
}

/* ============================================
   WISHLIST PAGE
   ============================================ */
.themox-wishlist-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.themox-wishlist-header { margin-bottom: 30px; }
.themox-wishlist-header h2 {
    font-size: 28px; font-weight: 700;
    color: var(--wca-text, #333); margin: 0;
}
.themox-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.themox-wishlist-card {
    background: var(--wca-card-bg, #fff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}
.themox-wishlist-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.themox-wishlist-card .themox-remove-wishlist {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%; border: none;
    background: rgba(255,255,255,0.95);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    color: var(--wca-remove, #ff5252);
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
}
.themox-wishlist-card .themox-remove-wishlist:hover {
    background: var(--wca-remove, #ff5252);
    color: #fff;
    transform: rotate(90deg);
}
.wishlist-card-image { width: 100%; aspect-ratio: 1/1; overflow: hidden; }
.wishlist-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.themox-wishlist-card:hover .wishlist-card-image img { transform: scale(1.05); }
.wishlist-card-info { padding: 20px; }
.wishlist-card-info h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.wishlist-card-info h3 a {
    color: var(--wca-text, #333); text-decoration: none;
    transition: color 0.3s ease;
}
.wishlist-card-info h3 a:hover { color: var(--wca-button, #d0011b); }
.wishlist-card-price {
    font-size: 18px; font-weight: 700;
    color: var(--wca-button, #d0011b);
    margin-bottom: 8px;
}
.wishlist-card-price del { font-size: 14px; color: #999; font-weight: 400; }
.wishlist-card-price ins { text-decoration: none; }
.wishlist-card-stock .in-stock {
    color: #4caf50; font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
}
.wishlist-card-stock .in-stock::before { content: '●'; font-size: 8px; }
.wishlist-card-stock .out-of-stock {
    color: var(--wca-remove, #ff5252);
    font-size: 13px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
}
.wishlist-card-stock .out-of-stock::before { content: '●'; font-size: 8px; }
.wishlist-card-actions { margin-top: 15px; }

/* ---- Buttons ---- */
.themox-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px;
    background: var(--wca-button, #d0011b);
    color: #fff !important;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none !important;
    transition: all 0.3s ease;
    width: 100%; justify-content: center;
}
.themox-btn-primary:hover {
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(208, 1, 27, 0.3);
}
.themox-btn-disabled {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; background: #e0e0e0; color: #999;
    border-radius: 10px; font-size: 14px; font-weight: 600;
    width: 100%; cursor: not-allowed;
}

/* ============================================
   COMPARE PAGE
   ============================================ */
.themox-compare-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.themox-compare-header { margin-bottom: 30px; }
.themox-compare-header h2 {
    font-size: 28px; font-weight: 700;
    color: var(--wca-text, #333); margin: 0;
}
.themox-compare-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.themox-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--wca-card-bg, #fff);
    min-width: 600px;
}
.themox-compare-table thead th {
    padding: 25px 20px;
    text-align: center;
    vertical-align: top;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}
.themox-compare-table thead th.compare-label-col {
    width: 160px; min-width: 160px;
    text-align: left; font-size: 14px;
    color: #999; font-weight: 500;
}
.themox-compare-table thead .compare-product-col { min-width: 200px; }
.themox-compare-table thead .compare-product-col img {
    width: 120px; height: 120px;
    object-fit: cover; border-radius: 12px;
    margin-bottom: 10px;
}
.themox-compare-table thead .compare-product-col h3 {
    font-size: 14px; font-weight: 600; margin: 0;
}
.themox-compare-table thead .compare-product-col h3 a {
    color: var(--wca-text, #333); text-decoration: none;
}
.themox-compare-table thead .compare-product-col h3 a:hover { color: var(--wca-button, #d0011b); }
.themox-remove-compare {
    position: absolute; top: 8px; right: 8px;
    width: 28px; height: 28px;
    border-radius: 50%; border: none;
    background: #f5f5f5; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--wca-remove, #ff5252);
    font-size: 18px; line-height: 1;
    transition: all 0.3s ease;
}
.themox-remove-compare:hover {
    background: var(--wca-remove, #ff5252);
    color: #fff; transform: rotate(90deg);
}
.themox-compare-table tbody tr {
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}
.themox-compare-table tbody tr:hover { background: #fafafa; }
.themox-compare-table tbody tr:last-child { border-bottom: none; }
.themox-compare-table td {
    padding: 16px 20px;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    color: var(--wca-text, #333);
}
.themox-compare-table td.compare-label {
    text-align: left; font-weight: 600;
    color: #666; background: #fafafa;
}
.compare-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--wca-button, #d0011b) !important;
}
.compare-price del { font-size: 13px !important; color: #999 !important; font-weight: 400 !important; }
.compare-price ins { text-decoration: none !important; }
.compare-desc { font-size: 13px !important; color: #666 !important; line-height: 1.5; }
.no-rating { color: #ccc; font-size: 13px; }
.in-stock { color: #4caf50; font-weight: 600; font-size: 13px; }
.out-of-stock { color: var(--wca-remove, #ff5252); font-weight: 600; font-size: 13px; }

/* ============================================
   EMPTY STATE
   ============================================ */
.themox-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--wca-card-bg, #fff);
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.themox-empty-state .empty-icon { margin-bottom: 25px; opacity: 0.6; }
.themox-empty-state h2 {
    font-size: 24px; font-weight: 700;
    color: var(--wca-text, #333); margin: 0 0 10px;
}
.themox-empty-state p { font-size: 16px; color: #888; margin: 0 0 30px; }
.themox-empty-state .themox-btn-primary { display: inline-flex; width: auto; }

/* ============================================
   MY ACCOUNT PAGE
   ============================================ */
.woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.woocommerce-MyAccount-navigation {
    background: var(--wca-card-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    width: 280px;
    float: left;
    margin-right: 30px;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none; margin: 0; padding: 0;
}
.woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid #f5f5f5; }
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation ul li a {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 24px;
    color: var(--wca-text, #333);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.woocommerce-MyAccount-navigation ul li a::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: transparent;
    border-radius: 0 4px 4px 0;
    transition: background 0.3s ease;
}
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #fafafa; color: var(--account-accent, #d0011b);
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--account-accent, #d0011b);
    font-weight: 600;
    background: rgba(208, 1, 27, 0.04);
}
.woocommerce-MyAccount-navigation ul li.is-active a::before {
    background: var(--account-accent, #d0011b);
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard a::after { content: '📊'; margin-left: auto; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--orders a::after { content: '📦'; margin-left: auto; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--downloads a::after { content: '📥'; margin-left: auto; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-address a::after { content: '📍'; margin-left: auto; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--edit-account a::after { content: '👤'; margin-left: auto; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a::after { content: '🚪'; margin-left: auto; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--wishlist a::after { content: '❤️'; margin-left: auto; }

.woocommerce-MyAccount-content {
    overflow: hidden;
    background: var(--wca-card-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 30px;
    min-height: 400px;
}
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: var(--wca-text, #333); font-weight: 700;
}
.woocommerce-MyAccount-content > p:first-child {
    font-size: 16px; line-height: 1.7; color: #666;
    padding: 20px; background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--account-accent, #d0011b);
}
.woocommerce-MyAccount-content table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
}
.woocommerce-MyAccount-content table th {
    background: #f8f9fa; padding: 14px 16px;
    text-align: left; font-weight: 600;
    font-size: 13px; text-transform: uppercase;
    letter-spacing: 0.5px; color: #666;
    border-bottom: 2px solid #eee;
}
.woocommerce-MyAccount-content table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px; color: var(--wca-text, #333);
}
.woocommerce-MyAccount-content table tr:hover td { background: #fafafa; }
.woocommerce-MyAccount-content .woocommerce-button,
.woocommerce-MyAccount-content .button {
    display: inline-flex; align-items: center;
    padding: 10px 20px;
    background: var(--account-accent, #d0011b);
    color: #fff !important;
    border: none; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    cursor: pointer; text-decoration: none !important;
    transition: all 0.3s ease;
}
.woocommerce-MyAccount-content .woocommerce-button:hover,
.woocommerce-MyAccount-content .button:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    color: var(--wca-text, #333);
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: var(--account-accent, #d0011b);
    box-shadow: 0 0 0 3px rgba(208, 1, 27, 0.1);
}

/* Login/Register */
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--wca-card-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 40px;
    max-width: 480px;
    margin: 40px auto;
}
.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    text-align: center;
    color: var(--wca-text, #333);
    font-size: 24px; font-weight: 700;
    margin-bottom: 30px;
}
.woocommerce-form-login .woocommerce-form-row,
.woocommerce-form-register .woocommerce-form-row { margin-bottom: 20px; }
.woocommerce-form-login .woocommerce-button,
.woocommerce-form-register .woocommerce-button {
    width: 100%; justify-content: center;
    padding: 14px; font-size: 16px;
    border-radius: 10px;
}
.woocommerce-LostPassword a {
    color: var(--account-accent, #d0011b);
    text-decoration: none; font-size: 14px;
}
.woocommerce-LostPassword a:hover { text-decoration: underline; }

.u-columns {
    display: flex; gap: 30px;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px;
}
.u-columns .u-column1,
.u-columns .u-column2 { flex: 1; }
.u-columns .woocommerce-form-login,
.u-columns .woocommerce-form-register { max-width: 100%; margin: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .themox-wishlist-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .themox-wishlist-card .wishlist-card-info { padding: 12px; }
    .themox-wishlist-card .wishlist-card-info h3 { font-size: 14px; }
    .themox-compare-table-wrapper { border-radius: 12px; }
    .woocommerce-MyAccount-navigation {
        width: 100%; float: none;
        margin-right: 0; margin-bottom: 20px;
    }
    .woocommerce-MyAccount-navigation ul {
        display: flex; overflow-x: auto; gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    .woocommerce-MyAccount-navigation ul li {
        border-bottom: none;
        border-right: 1px solid #f5f5f5;
        flex-shrink: 0;
    }
    .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 18px;
        font-size: 13px;
        white-space: nowrap;
    }
    .woocommerce-MyAccount-navigation ul li a::before { display: none; }
    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-bottom: 3px solid var(--account-accent, #d0011b);
    }
    .woocommerce-MyAccount-content { padding: 20px; }
    .u-columns { flex-direction: column; }
    .woocommerce-form-login,
    .woocommerce-form-register { padding: 25px; }
    .themox-single-product-actions { flex-direction: column; }
    .themox-sp-btn { width: 100%; justify-content: center; }
    .themox-empty-state { padding: 50px 20px; }
    .themox-product-actions { opacity: 1; transform: translateX(0); }
}

@media (max-width: 480px) {
    .themox-wishlist-grid { grid-template-columns: 1fr; }
    .themox-wishlist-card { display: flex; flex-direction: row; }
    .themox-wishlist-card .wishlist-card-image {
        width: 120px; min-width: 120px;
        aspect-ratio: auto; height: auto;
    }
    .themox-wishlist-card .wishlist-card-info {
        flex: 1;
        display: flex; flex-direction: column;
        justify-content: center;
    }
}