/*
Theme Name: Askka Child
Theme URI:
Description: Child theme for Askka theme
Author:
Author URI:
Template: askka
Version: 1.0.0
Text Domain: askka-child
*/

/* ==========================================================================
   MANTINE-STYLE VARIABLE PRODUCT UI
   ========================================================================== */

/* Rounded Buttons */
button,
input[type="button"],
input[type="submit"],
.button,
.btn,
a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.add_to_cart_button,
.ajax_add_to_cart,
.product_type_simple,
.product_type_variable {
    border-radius: 8px !important;
}

/* ==========================================================================
   VARIATIONS TABLE - Radio Button Style
   ========================================================================== */

/* Hide default select dropdown styling */
.variations {
    width: 100%;
    border-collapse: collapse;
}

.variations tr {
    display: block;
    border-top: 1px solid #efefef;
    padding-block: 1.5rem;
}

.variations tr:first-child {
    border-top: none;
}

.variations td.label {
    display: block;
    width: 100%;
    padding: 0 0 0.75rem 0;
}

.variations td.label label {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.variations td.value {
    display: block;
    width: 100%;
    padding: 0;
}

/* Style the select dropdown to look like radio group container */
.variations select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.variations select:hover {
    border-color: #ccc;
}

.variations select:focus {
    outline: none;
    border-color: #1a1a1a;
}

/* Reset variations link */
.reset_variations {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.reset_variations:hover {
    color: #1a1a1a;
}

/* ==========================================================================
   VARIATION PRICE & DESCRIPTION
   ========================================================================== */

.woocommerce-variation {
    padding: 1rem 0;
}

.woocommerce-variation-price {
    margin-bottom: 0.5rem;
}

.woocommerce-variation-price .price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.woocommerce-variation-description {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==========================================================================
   QUANTITY DISTRIBUTOR - Mantine Checkbox Style
   ========================================================================== */

.qodef-quantity-distributor-wrapper {
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-top: 1px solid #efefef;
    padding-block: 1.5rem !important;
}

.qodef-step-title {
    font-weight: 600 !important;
    font-size: 1rem !important;
    margin: 0 0 0.25rem 0 !important;
    color: #1a1a1a;
}

.qodef-distribution-info {
    font-size: 0.875rem !important;
    color: #868e96 !important;
    margin-bottom: 1rem !important;
}

/* Variant items list */
.qodef-variant-distribution {
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

/* Individual variant item - Checkbox row style */
.qodef-variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.qodef-variant-info {
    flex: 1;
}

.qodef-variant-name {
    font-weight: 400 !important;
    font-size: 1rem;
    color: #1a1a1a;
}

/* Variant controls - Plus/Minus buttons */
.qodef-variant-controls {
    display: flex;
    align-items: center;
    gap: 0 !important;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.qodef-variant-btn {
    width: 36px !important;
    height: 36px !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    cursor: pointer;
    font-size: 1rem !important;
    line-height: 1;
    color: #1a1a1a;
    transition: background-color 0.15s ease;
}

.qodef-variant-btn:hover:not(:disabled) {
    background: #f8f9fa !important;
    border-color: transparent !important;
}

.qodef-variant-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.qodef-variant-qty-input {
    width: 48px !important;
    text-align: center !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    font-size: 1rem !important;
    font-weight: 500;
    background: transparent !important;
    color: #1a1a1a;
}

/* Remove number input spinners */
.qodef-variant-qty-input::-webkit-outer-spin-button,
.qodef-variant-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qodef-variant-qty-input[type=number] {
    -moz-appearance: textfield;
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.qodef-distribution-progress {
    margin-top: 1.5rem !important;
}

.qodef-progress-bar {
    height: 6px !important;
    background: #e9ecef !important;
    border-radius: 3px !important;
    overflow: hidden;
}

.qodef-progress-fill {
    height: 100%;
    background: #1a1a1a !important;
    border-radius: 3px !important;
    transition: width 0.3s ease;
}

.qodef-progress-fill.qodef--complete {
    background: #2e7d32 !important;
}

.qodef-progress-text {
    margin-top: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #868e96 !important;
    text-align: left !important;
}

/* ==========================================================================
   ERROR MESSAGES
   ========================================================================== */

.qodef-distributor-error {
    padding: 0.75rem 1rem !important;
    background: #fff5f5 !important;
    color: #c92a2a !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    font-size: 0.875rem !important;
    border: 1px solid #ffc9c9;
}

/* ==========================================================================
   QUANTITY SELECTOR (Main product quantity)
   ========================================================================== */

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.quantity .qty {
    width: 48px;
    text-align: center;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    -moz-appearance: textfield;
}

.quantity .qty::-webkit-outer-spin-button,
.quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   ADD TO CART BUTTON
   ========================================================================== */

.single_add_to_cart_button {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.single_add_to_cart_button:hover {
    background-color: #333 !important;
}

.single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled {
    background-color: #e9ecef !important;
    color: #868e96 !important;
    cursor: not-allowed;
}

/* ==========================================================================
   VARIATIONS FORM LAYOUT
   ========================================================================== */

.variations_form .variations_button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #efefef;
    margin-top: 0;
}

/* ==========================================================================
   WOOCOMMERCE BLOCKS BUTTONS
   ========================================================================== */

.wc-block-cart__submit-button,
.wc-block-components-button.contained {
    display: inline-block !important;
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-button.contained:hover {
    background-color: #333 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.wc-block-components-button__text {
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
}

/* Also style checkout block buttons */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.wp-element-button {
    background-color: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease;
}

.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.wp-element-button:hover {
    background-color: #333 !important;
    color: #fff !important;
}

/* ==========================================================================
   PASSWORD SHOW/HIDE TOGGLE
   ========================================================================== */

.askka-password-field {
    position: relative !important;
}

.askka-password-toggle {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    color: #868e96 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    transition: color 0.2s ease;
}

.askka-password-toggle:hover {
    color: #1a1a1a !important;
    background: none !important;
}

.askka-password-field input[type="password"],
.askka-password-field input[type="text"] {
    padding-right: 44px !important;
}

/* ==========================================================================
   MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .variations_form .variations_button {
        flex-direction: column;
        align-items: stretch;
    }

    .variations_form .variations_button .quantity {
        justify-content: center;
        width: 100%;
    }

    .single_add_to_cart_button {
        width: 100%;
    }
}