/* Shared variant size picker — default + premium PDP */
.pdp-footwear-variant .pdp-size-wrap .pdp-size-hint {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700, #374151);
}

.pdp-footwear-variant .pdp-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.pdp-footwear-variant .pdp-size-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-width: 3.25rem;
    min-height: 3rem;
    width: auto;
    padding: 0.625rem 1rem;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    border: 2px solid var(--gray-400, #9ca3af);
    border-radius: 0.5rem;
    color: var(--gray-900, #111827);
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pdp-footwear-variant .pdp-size-btn:hover:not(:disabled):not(.is-sold-out),
.pdp-footwear-variant .pdp-size-btn:focus-visible:not(:disabled):not(.is-sold-out) {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
    background-color: rgba(0, 0, 0, 0.02);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.pdp-footwear-variant .pdp-size-btn.is-active,
.pdp-footwear-variant .pdp-size-btn.active {
    border-color: var(--main-600, #043729);
    background-color: var(--main-600, #043729);
    color: #fff;
    box-shadow: none;
    transform: none;
}

.pdp-footwear-variant .pdp-size-btn.is-sold-out,
.pdp-footwear-variant .pdp-size-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: #9ca3af;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    text-decoration: line-through;
    box-shadow: none;
    transform: none;
}

.pdp-footwear-variant .pdp-color-swatch {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    border: 1px solid #e5e7eb;
    padding: 0;
    background: transparent;
}

.pdp-footwear-variant .pdp-color-swatch--circle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.pdp-footwear-variant .pdp-color-swatch--image {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.pdp-footwear-variant .pdp-color-swatch--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.pdp-footwear-variant .pdp-color-swatches--image {
    gap: 16px;
}

.pdp-footwear-variant .pdp-color-swatch.is-active,
.pdp-footwear-variant .pdp-color-swatch.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--main-600, #043729);
    transform: scale(1.05);
}

/* Unified Find My Size + Size Guide action row */
.pdp-size-tools__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pdp-size-tools--single .pdp-size-tools__grid {
    grid-template-columns: minmax(0, 1fr);
}

.pdp-size-tools__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.pdp-size-tools__btn i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.pdp-size-tools__btn--finder {
    background-color: var(--main-600, #043729);
    border-color: var(--main-600, #043729);
    color: #fff;
    box-shadow: 0 4px 14px rgba(4, 55, 41, 0.18);
}

.pdp-size-tools__btn--finder:hover,
.pdp-size-tools__btn--finder:focus-visible {
    background-color: var(--main-700, #032a1f);
    border-color: var(--main-700, #032a1f);
    color: #fff;
    outline: none;
    box-shadow: 0 6px 18px rgba(4, 55, 41, 0.24);
    transform: translateY(-1px);
}

.pdp-size-tools__btn--guide {
    background-color: #fff;
    border-color: #d1d5db;
    color: var(--gray-900, #111827);
}

.pdp-size-tools__btn--guide:hover,
.pdp-size-tools__btn--guide:focus-visible {
    border-color: var(--main-600, #043729);
    color: var(--main-600, #043729);
    background-color: var(--main-50, #e8f0ed);
    outline: none;
    box-shadow: 0 0 0 3px rgba(4, 55, 41, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .pdp-size-tools__btn {
        min-height: 46px;
        padding: 11px 12px;
        font-size: 0.875rem;
    }

    .pdp-footwear-variant .pdp-size-buttons .pdp-size-btn {
        min-height: 3rem;
        min-width: 3.25rem;
    }
}
