/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/
/* Parent stylesheet should be loaded from functions.php not using @import */

/* ============================================================
   WOOCOMMERCE PRODUCT PAGE — CUSTOM REDESIGN
   OceanWP Child Theme
   ============================================================ */

/* --- Product Title --- */
.single-product .product_title.entry-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a18;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* --- Price --- */
.single-product .summary .price {
    font-size: 24px !important;
    font-weight: 700;
    color: #27ae60 !important;
    margin-bottom: 20px !important;
    display: block;
}
.single-product .summary .price del {
    font-size: 15px;
    color: #aaa !important;
    font-weight: 400;
    margin-right: 6px;
}
.single-product .summary .price ins {
    text-decoration: none;
    color: #27ae60 !important;
}

/* --- Variations form: hide native select, show pills via JS --- */
.variations_form .variations {
    width: 100% !important;
    border: none !important;
    margin-bottom: 0 !important;
}
.variations_form .variations tr,
.variations_form .variations td,
.variations_form .variations th {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    vertical-align: top;
}
.variations_form .variations th.label {
    display: none !important;
}
.variations_form .variations td.value {
    width: 100% !important;
    padding-bottom: 16px !important;
}

/* Hide the native select — JS pills replace it */
.variations_form .variations td.value select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Hide default "clear" link */
.variations_form .reset_variations {
    display: none !important;
}

/* --- Package label above pills --- */
.wc-pills-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

/* --- Pill buttons wrapper --- */
.wc-variation-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* --- Individual pill --- */
.wc-variation-pill {
    padding: 9px 18px;
    border: 1.5px solid #e0e0d8;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    background: #fafaf8;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1;
}
.wc-variation-pill:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fff5f5;
}
.wc-variation-pill.selected {
    border-color: #c0392b;
    background: #c0392b;
    color: #fff;
}
.wc-variation-pill.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Quantity + Add to Cart row --- */
.woocommerce div.product form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
    margin-top: 0 !important;
}

/* --- Quantity box --- */
.woocommerce div.product form.cart .quantity {
    display: flex !important;
    align-items: center !important;
    border: 1.5px solid #e0e0d8 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fafaf8 !important;
    flex-shrink: 0;
}
.woocommerce div.product form.cart .quantity input.qty {
    width: 48px !important;
    height: 48px !important;
    border: none !important;
    border-left: 1.5px solid #e0e0d8 !important;
    border-right: 1.5px solid #e0e0d8 !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 0 !important;
    -moz-appearance: textfield !important;
}
.woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce div.product form.cart .quantity .minus,
.woocommerce div.product form.cart .quantity .plus {
    width: 42px !important;
    height: 48px !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #555 !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.1s;
}
.woocommerce div.product form.cart .quantity .minus:hover,
.woocommerce div.product form.cart .quantity .plus:hover {
    background: #f0f0eb !important;
}

/* --- Add to Cart button --- */
.woocommerce div.product form.cart .single_add_to_cart_button {
    background: #c0392b !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 28px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    flex: 1 !important;
    transition: background 0.15s, transform 0.1s !important;
    box-shadow: none !important;
    line-height: 1 !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #a93226 !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button:active {
    transform: scale(0.98) !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button.loading {
    opacity: 0.7 !important;
}
.woocommerce div.product form.cart .single_add_to_cart_button.added {
    background: #27ae60 !important;
}

/* --- Variation price update area --- */
.woocommerce-variation-price {
    margin-bottom: 12px;
}
.woocommerce-variation-price .price {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
}

/* --- Stock notice --- */
.woocommerce-variation-availability .stock {
    font-size: 13px;
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 8px;
}