/* Zero External Dependencies Pure CSS */
.wx-card {
    background: #ffffff;
    border: 1px solid var(--wx-secondary);
    border-radius: 6px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wx-card:hover {
    box-shadow: var(--wx-shadow-hover);
    transform: translateY(-4px);
    border-color: var(--wx-primary);
}

.wx-card-image-wrap {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.wx-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--wx-transition);
}

.wx-card:hover .wx-card-img {
    transform: scale(1.05);
}

.wx-card-sku {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--wx-secondary);
    font-weight: 700;
}

.wx-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0 10px;
    color: #222;
    min-height: 40px;
}

.wx-card-price-box {
    margin-bottom: 15px;
}

.wx-currency {
    font-size: 13px;
    font-weight: 600;
    color: var(--wx-secondary);
}

.wx-price-val {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.wx-inquiry-tag {
    font-size: 13px;
    font-weight: 700;
    color: #e65100;
    background: #fff3e0;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Button & Action Rules */
.wx-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

/* Row 1: Full-Width Add to Cart */
.wx-action-row-full {
    width: 100%;
}

.wx-btn-add-cart {
    width: 100%;
    background: var(--wx-secondary);
    color: #ffffff;
}

.wx-btn-add-cart:hover {
    background: #5d5e5b;
}

/* Row 2: Split 50/50 */
.wx-action-row-split {
    display: flex;
    gap: 8px;
    width: 100%;
}

.wx-btn-buy-now {
    flex: 1;
    background: var(--wx-primary);
    color: #1a1a1a;
}

.wx-btn-buy-now:hover {
    filter: brightness(0.92);
}

.wx-btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: #ffffff;
}

.wx-btn-whatsapp:hover {
    background: #20ba59;
}

.wx-btn-inquiry {
    width: 100%;
    background: var(--wx-secondary);
    color: #fff;
}

/* Floating Action Controls */
.wx-floating-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999999;
}

.wx-float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--wx-transition);
}

.wx-float-btn:hover {
    transform: scale(1.1);
}

.wx-float-wa {
    background: #25D366;
    color: #fff;
}

.wx-float-chat {
    background: var(--wx-primary);
    color: #000;
}

/* Inquiry Modal & Toast Architecture */
.wx-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000000;
}
.wx-modal-content {
    background: #ffffff;
    width: 90%; max-width: 480px;
    padding: 24px; border-radius: 6px;
    border-top: 5px solid var(--wx-primary);
}
.wx-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px;
}
.wx-modal-close {
    font-size: 24px; cursor: pointer; color: var(--wx-secondary);
}
.wx-form-group {
    margin-bottom: 14px;
}
.wx-form-group label {
    display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px;
}
.wx-input {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px;
    font-size: 14px; box-sizing: border-box;
}
.wx-btn-inquiry-submit {
    width: 100%; background: var(--wx-primary); color: #000; padding: 12px; font-weight: bold;
}

/* Toast Component */
.wx-toast {
    position: fixed; bottom: -80px; left: 24px;
    color: #fff; padding: 12px 20px; border-radius: 4px;
    font-size: 14px; z-index: 1000001; transition: bottom 0.3s ease;
}
.wx-toast-show {
    bottom: 24px !important;
}

/* Button Hover Rules with Customizer Variable */
.wx-btn:hover,
.wx-btn-buy-now:hover,
.wx-btn-add-cart:hover,
.wx-btn-apply:hover,
.wx-btn-place:hover {
    background-color: var(--color-hover) !important;
    border-color: var(--color-hover) !important;
}