/* ============================================================================
   APPAREL SELECTION COMPONENTS
   Shared styles for apparel selection UI (colors, sizes, gender, quantity)
   Used by: gobik.php, store/index.php, and other apparel pages
   ============================================================================ */

/* --------------------------------------------------------------------------
   Color Selection Swatches - Circular color buttons
   -------------------------------------------------------------------------- */
.color-swatches {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.color-label {
    font-size: 13px;
    font-weight: normal;
}

.color-btn {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    background: none;
}

.color-btn:hover {
    border-color: #fde231;
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #fde231;
    box-shadow: 0 0 10px rgba(253, 226, 49, 0.5);
}

/* Specific color backgrounds */
.color-btn[data-color="White"] {
    background: #ffffff;
}

.color-btn[data-color="Pink"] {
    background: #f8bbce;
}

.color-btn[data-color="Hakone"] {
    background: #8ea7ab;
}

.color-btn[data-color="Black"] {
    background: #000000;
}

.color-btn[data-color="Blue"] {
    background: #343f4e;
}

/* --------------------------------------------------------------------------
   Size Selection Swatches - Connected rectangular buttons
   -------------------------------------------------------------------------- */
.size-swatches {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.size-btn {
    padding: 8px 2px;
    width: 16.66%;
    flex: 0 0 16.66%;
    background: rgba(0, 0, 0, 0.05);
    color: #151515;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-right: none;
    border-radius: 0;
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    transition: all 0.3s;
    text-align: center;
    box-sizing: border-box;
}

.size-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.size-btn:last-child {
    border-radius: 0 6px 6px 0;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.size-btn:hover {
    background: rgba(253, 226, 49, 0.3);
    border-color: #fde231;
    transform: translateY(-2px);
}

.size-btn.active {
    background: #fde231;
    color: #000;
    border-color: #fde231;
    box-shadow: 0 0 10px rgba(253, 226, 49, 0.5);
}

/* --------------------------------------------------------------------------
   Gender Selection - Rounded rectangular buttons
   -------------------------------------------------------------------------- */
.gender-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.gender-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.05);
    color: #151515;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s;
    text-align: center;
}

.gender-btn:hover {
    background: rgba(253, 226, 49, 0.3);
    border-color: #fde231;
    transform: translateY(-2px);
}

.gender-btn.active {
    background: #fde231;
    color: #000;
    border-color: #fde231;
    box-shadow: 0 0 10px rgba(253, 226, 49, 0.5);
}

/* --------------------------------------------------------------------------
   Quantity Input
   -------------------------------------------------------------------------- */
.quantity-input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: #fff;
    color: #151515;
    margin: 5px 0;
    width: 80px;
}

/* --------------------------------------------------------------------------
   Add to Cart Button
   -------------------------------------------------------------------------- */
.add-to-cart-btn {
    background: #fde231;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #000;
    color: #fde231;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Option Container Layout
   -------------------------------------------------------------------------- */
.apparel-option-container {
    margin: 20px 0;
}

.option-section {
    margin-bottom: 20px;
}

.option-section label {
    display: block;
    color: #151515;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Quantity section - label and input on same line */
.option-section:has(.quantity-input) {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-section:has(.quantity-input) label {
    display: inline;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Responsive: Center swatches on mobile
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {

    .color-swatches,
    .size-swatches,
    .gender-swatches {
        justify-content: center;
    }
}

/* ============================================================================
   END APPAREL SELECTION COMPONENTS
   ============================================================================ */