.gd-variation-box {
    margin: 24px 0 22px;
}

.gd-variation-title {
    margin-bottom: 12px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.gd-variation-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.gd-var-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    color: #444;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, opacity .2s ease;
}

.gd-var-btn:hover {
    border-color: #888;
    color: #111;
}

.gd-var-btn.active {
    padding: 8px 10px;
    border: 3px solid #111;
    background: #fff;
    color: #111;
    font-weight: 600;
}

.gd-var-btn.disabled {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.gd-color-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gd-color-btn {
    width: auto;
    min-width: 105px;
    min-height: 46px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
}

.gd-color-circle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: inline-block;
    border: 1px solid #c7c7c7;
    border-radius: 50%;
    box-sizing: border-box;
}

.gd-color-name {
    font-size: 13px;
    white-space: nowrap;
}

.gd-color-btn.active {
    padding: 6px 10px;
}

/* DESKTOP - galería producto estilo Dareels */
@media (min-width: 769px) {
    .single-product .woocommerce-product-gallery {
        width: 100% !important;
    }

    .single-product .woocommerce-product-gallery .flex-viewport {
        height: auto !important;
        overflow: visible !important;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
        width: 100% !important;
        transform: none !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
    }

    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
        width: 100% !important;
        height: auto !important;
        display: block;
        object-fit: cover;
    }

    .single-product .woocommerce-product-gallery .flex-control-thumbs,
    .single-product .woocommerce-product-gallery .flex-direction-nav,
    .single-product .woocommerce-product-gallery .gd-gallery-dots {
        display: none !important;
    }
}

/* TABLET */
@media (max-width: 900px) {
    .gd-variation-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gd-color-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gd-color-btn {
        width: 100%;
    }
}

/* MOBILE - galería producto sin miniaturas, con puntitos */
@media (max-width: 768px) {
    .single-product .woocommerce-product-gallery .flex-control-thumbs,
    .single-product .ct-product-gallery .flexy-pills,
    .single-product .ct-product-gallery [data-type="thumbs"] {
        display: none !important;
    }

    .single-product .woocommerce-product-gallery {
        position: relative;
    }

    .single-product .gd-gallery-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        margin-top: 12px;
    }

    .single-product .gd-gallery-dot {
        width: 7px;
        height: 7px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #cfcfcf;
        cursor: pointer;
    }

    .single-product .gd-gallery-dot.active {
        width: 18px;
        border-radius: 999px;
        background: #111;
    }

    .single-product .flex-direction-nav,
    .single-product .flex-direction-nav li,
    .single-product .flex-direction-nav a {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* MOBILE */
@media (max-width: 480px) {
    .gd-variation-box {
        margin: 20px 0;
    }

    .gd-variation-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .gd-variation-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .gd-var-btn {
        min-height: 48px;
        padding: 8px;
        font-size: 13px;
    }

    .gd-var-btn.active {
        padding: 6px;
    }

    .gd-color-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gd-color-btn {
        min-width: 0;
    }
}
.gd-var-btn.selected,
.gd-var-btn.active,
.gd-var-btn.is-selected {
    border: 2px solid #111 !important;
    font-weight: 600;
}