/* WC Product Color Picker — v1.7.1 */

/* ============================================================
   Wrapper
   ============================================================ */
.wccp-color-picker-wrap {
    margin: 0 0 1.25rem 0;
    padding: 0;
    border: none;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    clear: both;
    float: none;
    display: block;
}

.wccp-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

/* ============================================================
   Picker satırı
   ============================================================ */
.wccp-picker-row {
    display: flex;
    align-items: center;
    height: 52px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    cursor: pointer;
}

.wccp-picker-row:hover  { border-color: #999; }
.wccp-picker-row:focus-within { border-color: #555; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }

/* ============================================================
   Native color input — tam görünür, sol taraf
   ============================================================ */
.wccp-input {
    -webkit-appearance: none;
    appearance: none;
    width: 56px;
    min-width: 56px;
    height: 100%;
    border: none;
    border-right: 2px solid #ddd;
    padding: 4px;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
    display: block;
}

.wccp-input:focus { outline: none; }
.wccp-input::-webkit-color-swatch-wrapper { padding: 2px; }
.wccp-input::-webkit-color-swatch        { border: none; border-radius: 4px; }
.wccp-input::-moz-color-swatch           { border: none; border-radius: 4px; }

/* ============================================================
   Hex display — sağ taraf, renk arka planlı
   ============================================================ */
.wccp-hex-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 14px;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
    user-select: none;
    cursor: pointer;
    background-color: #ffffff;
    color: #111;
}

.wccp-hint {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    color: #888;
}

/* ============================================================
   Mobil
   ============================================================ */
@media (max-width: 768px) {
    .wccp-color-picker-wrap, #wccp-wrap {
        width: 100% !important;
        max-width: 100% !important;
    }
    .wccp-picker-row {
        max-width: 100% !important;
        width: 100% !important;
        height: 56px;
    }
    .wccp-input { width: 56px; min-width: 56px; }
    .wccp-hex-display { font-size: 14px; }
}

/* ============================================================
   Variable ürün: varyasyon listesi
   ============================================================ */
.wccp-variable-wrap {
    margin: 0 0 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

.wccp-variable-intro {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    font-style: italic;
}

.wccp-variation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-sizing: border-box;
}

.wccp-variation-label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    min-width: 70px;
    flex-shrink: 0;
}

.wccp-variation-picker {
    flex: 1;
}

.wccp-variation-picker .wccp-picker-row {
    max-width: 100%;
    width: 100%;
    height: 44px;
}

.wccp-variation-picker .wccp-input {
    width: 44px;
    min-width: 44px;
}

.wccp-variation-picker .wccp-hex-display {
    font-size: 13px;
    letter-spacing: 1px;
}

/* Adet */
.wccp-qty-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.wccp-qty-label {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.wccp-qty-ctrl {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    height: 38px;
}

.wccp-qty-btn {
    width: 36px;
    height: 100%;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
}

.wccp-qty-btn:hover { background: #e8e8e8; }

.wccp-qty-input {
    width: 48px;
    height: 100%;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.wccp-qty-input::-webkit-outer-spin-button,
.wccp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.wccp-add-all-btn {
    width: 100%;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .wccp-variation-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px;
    }
    .wccp-variation-label { min-width: unset; }
    .wccp-variation-picker { width: 100%; }
}
