.product-variants-switcher {
    margin: 25px 0;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.product-variants-switcher .variants-group {
    margin-bottom: 20px;
}

.product-variants-switcher .variants-group:last-child {
    margin-bottom: 0;
}

.product-variants-switcher .variants-title {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.product-variants-switcher .variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

@media (min-width: 768px) {
    .product-variants-switcher .variants-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-variants-switcher .variant-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.product-variants-switcher .variant-button:hover {
    background: #ffffff;
    border-color: #999;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-variants-switcher .variant-button.current {
    background: #db9b2e;
    border-color: #db9b2e;
    color: #ffffff;
    cursor: default;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

.product-variants-switcher .variant-button.current:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    transform: none;
    box-shadow: 0 2px 8px rgba(245,158,11,0.3);
}

@media (max-width: 767px) {
    .product-variants-switcher .variants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-variants-switcher .variant-button {
        padding: 6px;
        min-height: auto;
    }
}

/* Price & stock meta inside buttons */
.product-variants-switcher .variant-button {
    flex-direction: column;
    gap: 2px;
}

.product-variants-switcher .variant-label {
    display: block;
}

.product-variants-switcher .variant-meta {
    display: block;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.75;
    white-space: nowrap;
}

.product-variants-switcher .variant-meta * {
    font-size: 10px !important;
}

.product-variants-switcher .variant-stock--in {
    color: #3a7d44;
}

.product-variants-switcher .variant-button.current .variant-stock--in,
.product-variants-switcher .variant-button.current .variant-stock--out {
    color: rgba(255,255,255,0.8);
}

.product-variants-switcher .variant-stock--out {
    color: #b32d2e;
}

/* Image swatch variant type */
.product-variants-switcher .variants-grid--swatches {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

@media (min-width: 768px) {
    .product-variants-switcher .variants-grid--swatches {
        grid-template-columns: repeat(5, 1fr);
    }
}

.product-variants-switcher .variant-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-variants-switcher .variant-swatch img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-variants-switcher .variant-swatch__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e5e7eb;
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

.product-variants-switcher .variant-swatch__label {
    display: block;
    padding: 4px 6px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
}

.product-variants-switcher .variant-swatch:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-variants-switcher .variant-swatch.current {
    border-color: #db9b2e;
    box-shadow: 0 0 0 1px #db9b2e;
    cursor: default;
}

.product-variants-switcher .variant-swatch.current .variant-swatch__label {
    color: #db9b2e;
}

/* Dropdown variant type */
.product-variants-switcher .variants-dropdown {
    width: 100%;
    max-width: 320px;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
