@import url('https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@400;600;700&display=swap');

.amm-variation-selector {
    padding: 6px 0;
    font-family: 'Anek Bangla', 'Hind Siliguri', sans-serif !important;
}

.amm-variation-selector * {
    font-family: inherit !important;
}

.amm-attr-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.amm-variation-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    transition: all 0.2s ease;
    color: #444;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.amm-variation-btn:hover {
    border-color: #f1a13e;
    background: #fffaf0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(241, 161, 62, 0.15);
}

.amm-variation-btn.active {
    border-color: #f1a13e;
    background: #f7a632;
    color: #fff;
    box-shadow: 0 3px 10px rgba(247, 166, 50, 0.35);
    transform: translateY(-1px);
}

.amm-variation-btn.active .amm-var-price {
    color: #fff;
}

.amm-variation-btn.active::after {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
    flex-shrink: 0;
}

.amm-var-price {
    font-weight: 700;
    color: #f7a632;
    font-size: 13px;
    white-space: nowrap;
}

.amm-actions {
    margin-top: 6px;
}

.amm-add-to-cart {
    display: block;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    background: #f7a632;
    color: #fff;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(247, 166, 50, 0.3);
}

.amm-add-to-cart:hover {
    background: #e69520;
    color: #fff;
    box-shadow: 0 5px 18px rgba(247, 166, 50, 0.4);
    transform: translateY(-1px);
}

.amm-add-to-cart.amm-no-selection {
    opacity: 0.5;
    background: #bbb;
    box-shadow: none;
}

.amm-add-to-cart.loading {
    opacity: 0.7;
    pointer-events: none;
}

.amm-add-to-cart.loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: amm-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 6px;
}

@keyframes amm-spin {
    to {
        transform: rotate(360deg);
    }
}

li.product:has(.amm-variation-selector) .ast-on-card-button {
    display: none !important;
}

li.product:has(.amm-variation-selector) .astra-shop-summary-wrap > .button.product_type_variable,
li.product:has(.amm-variation-selector) .astra-shop-summary-wrap > .screen-reader-text {
    display: none !important;
}

@media (max-width: 768px) {
    .amm-variation-btn {
        font-size: 12px;
        padding: 7px 12px;
    }
}
