/* =============================================================================
   Anafarm – Product Page Styles
   /assets/css/product-page.css
   ============================================================================= */

/* --- Add to cart form layout -------------------------------------------- */
form.cart {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

/* --- Quantity wrapper ---------------------------------------------------- */
.quantity-wrapper {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-label {
    font-size: 16px;
    margin-right: 15px;
}

.quantity {
    display: flex !important;
    position: relative;
    margin-right: 15px;
}

/* Input */
.quantity input.qty {
    width: 60px !important;
    height: 44px !important;
    border: 1px solid #ddd !important;
    text-align: center !important;
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    -moz-appearance: textfield;
}

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

/* Chevron nav container */
.quantity-nav {
    position: relative;
    height: 44px;
    width: 40px;
    border: 1px solid #ddd;
    border-left: none;
}

.quantity-button {
    position: absolute;
    width: 100%;
    height: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-button.quantity-up {
    top: 0;
    border-bottom: 1px solid #ddd;
}

.quantity-button.quantity-down {
    bottom: 0;
}

/* Chevron icons */
.chevron-up,
.chevron-down {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-top: 2px solid #666;
}

.chevron-up   { transform: rotate(-45deg); }
.chevron-down { transform: rotate(135deg); }

/* --- Variation swatches -------------------------------------------------- */
.anafarm-swatches-wrapper {
    margin-bottom: 20px;
}

.anafarm-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.anafarm-swatch-label {
    width: 100%;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.anafarm-swatch-btn {
    flex: 1;
    padding: 10px !important;
    border: 1px solid #3b82f6 !important;
    background: #fff !important;
    color: #3b82f6 !important;
    border-radius: 5px !important;
    cursor: pointer;
    font-weight: 500 !important;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.anafarm-swatch-btn.selected,
.anafarm-swatch-btn:hover {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* Single variation wrap */
.woocommerce .single_variation_wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

/* --- Discount badge ([prikazi_popust] shortcode) ------------------------- */
.anafarm-badge {
    display: inline-block;
    vertical-align: middle;
    padding: 4px 8px;
    margin-left: 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

.anafarm-badge--discount {
    background-color: #E6F0FA;
    color: #0066CC;
}

.anafarm-badge--featured {
    background-color: #FEF3E2;
    color: #B45309;
}
