/*
Theme Name: Divi Child
Theme URI: https://redmenclothing.com/
Description: Child theme for Divi customisations
Author: Your Name
Template: Divi
Version: 1.0.0
*/

/*
Theme Name: YourTheme Child
Template: yourtheme
Description: Child theme for customizations (cart + quantity + plus/minus)
Version: 1.0
*/

/* ========== IMPORT PARENT STYLES ========== */
@import url("../yourtheme/style.css");

/* ===========================
   CUSTOM CSS
   =========================== */

/* Paste your cleaned CSS below this line */

/*CART---------------*/
/* =========================
   Quantity + Add To Cart
   Tight layout & styling
========================= */

/* Remove vertical gap around cart section */
.et_pb_db_atc form.cart {
    margin: 0 !important;
    padding: 0 !important;
}

/* Keep quantity + button aligned nicely */
.et_pb_db_atc .quantity,
.et_pb_db_atc .single_add_to_cart_button {
    vertical-align: middle !important;
    margin: 0 !important;
}

/* Quantity box styling */
.et_pb_db_atc .quantity input.qty {
    height: 40px !important;
    border: 1px solid #ccc !important;
    padding: 5px !important;
    margin-right: 5px !important; /* space between qty & button */
}

/* Add To Cart button styling */
.et_pb_db_atc .single_add_to_cart_button {
    background: #32cd32 !important;   /* change to your colour */
    color: #000 !important;
    border: 1px solid #ccc !important;
    height: 40px !important;
    padding: 0 20px !important;
}

/* CART CHECKING */
.variations_form .quantity {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    margin-right: 10px;
    /* background: yellow !important; */  /* testing color hidden */
}

.variations_form .single_add_to_cart_button {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    padding: 0 15px;
    /* background: blue !important; */ /* testing color hidden */
    color: white;
}

/* Hide default number arrows */
.variations_form .quantity input::-webkit-outer-spin-button,
.variations_form .quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.variations_form .quantity input[type=number] {
    -moz-appearance: textfield;
}

/* Wrapper for plus/minus buttons */
.quantity-wrapper {
    display: inline-flex;
    align-items: center;
}

/* Style for plus/minus buttons */
.quantity-wrapper button {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    color: #333;
    font-weight: bold;
    cursor: pointer;
}

/* Style for quantity input field */
.quantity-wrapper input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    height: 28px;
    margin: 0 2px;
}