/*
Theme Name: Restan Child
Theme URI: https://wp.validthemes.net/restan/
Author: Validthemes
Author URI: https://themeforest.net/user/validthemes/portfolio
Description: Restan - Fast Food and Restaurant WordPress Theme
Version: 1.1
Template: restan
Text Domain: restan-child
*/

/* --- 1. TOP SECTION & IMAGE RESET --- */
.validtheme-shop-single-area.default-padding {
    padding: 0 !important;
    background: #ffffff !important;
}

.product-details, 
.product-details .row, 
.product-thumb, 
.product-thumb .item-box {
    margin-top: 0 !important;
    padding-top: 0 !important;
    --bs-gutter-y: 0 !important;
}

.product-details .product-thumb .product-item {
    padding: 0 !important;
    background: #ffffff !important;
    border: none !important;
}

.product-details .product-thumb .product-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* --- 2. UNIVERSAL RADIO BUTTONS (Vertical Layout) --- */
/* Title (Select Spice/Odor) Styling */
.variations tr {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    border: none !important;
    margin-bottom: 20px !important;
}

.variations td.label {
    padding: 0 0 10px 0 !important;
    display: block !important;
    font-weight: 700 !important;
    color: #000 !important;
    font-size: 18px !important;
}

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

/* Radio Container: Ek ke neeche ek (Vertical) */
.thwvsf-rad-li {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    align-items: flex-start !important;
}

/* Alignment: Circle ko Left par force karna */
.thwvsf-rad-li label.th-label-radio {
    display: flex !important;
    flex-direction: row-reverse !important; 
    justify-content: flex-end !important;   
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    position: relative !important;
    margin: 0 !important;
}

/* Custom Circle (Checkmark) Base Style */
.thwvsf-rad-li .checkmark {
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #054122 !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    display: inline-block !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

/* Selected State: Fill Green with White Center Dot */
.thwvsf-rad-li .th-label-radio input[type="radio"]:checked ~ .checkmark {
    background-color: #054122 !important;
    background-image: none !important;
}

.thwvsf-rad-li .th-label-radio input[type="radio"]:checked ~ .checkmark::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 8px !important;
    height: 8px !important;
    background-color: #ffffff !important;
    border-radius: 50% !important;
}

/* Cleanup: Hide Tooltips & Original Inputs */
.thwvsf-rad-li input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.thwvsf-rad-li .thwvsf-tooltip, .thwvsf-rad-li .th-radio-name::after {
    display: none !important;
}

/* --- 3. BUTTONS & QUANTITY (Universal Green) --- */
.woocommerce div.product .single_add_to_cart_button,
.single_variation_wrap button[type="submit"],
.product-purchase-list button[type="submit"],
.btn.btn-theme.secondary {
    background-color: #054122 !important;
    color: #ffffff !important;
    border: none !important;
    margin-top: 10px !important;
    transition: all 0.3s ease !important;
}

.woocommerce div.product .single_add_to_cart_button:hover,
.single_variation_wrap button[type="submit"]:hover,
.btn.btn-theme.secondary:hover {
    background-color: #032b17 !important;
}

/* Quantity Box Pill Shape */
.woocommerce div.product .quantity {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #f1f5f2 !important; 
    border-radius: 50px !important;
    padding: 5px 12px !important;
    height: 50px !important;
}

.woocommerce div.product .quantity .minus, 
.woocommerce div.product .quantity .plus {
    background: transparent !important;
    color: #054122 !important;
    font-size: 22px !important;
    font-weight: bold !important;
    border: none !important;
}

.woocommerce div.product .quantity input.qty {
    background: transparent !important;
    border: none !important;
    width: 40px !important;
    text-align: center !important;
    font-weight: bold !important;
    color: #054122 !important;
}

/* Layout: Qty & Button side-by-side */
.woocommerce div.product form.cart {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 25px !important;
}

/* --- 4. TYPOGRAPHY & RESPONSIVE --- */
.single-product-contents .product-title {
    margin-top: 0 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
}

.price .amount {
    color: #054122 !important;
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    .woocommerce div.product form.cart {
        flex-wrap: nowrap !important;
    }
}




/* --- 2. PRODUCT IMAGE TOP CORNERS ROUND KARNA --- */

/* Main image container ko target karna */
.woocommerce-product-gallery__image,
.validtheme-shop-single-area .product-thumb img {
    border-radius: 20px 20px 0 0 !important; /* Top-Left, Top-Right round, baqi straight */
    overflow: hidden !important; /* Taake image corners se bahar na nikle */
}

/* Agar koi border pehle se laga ho toh usay rounding ke mutabiq adjust karna */
.product-details .product-thumb .product-item {
    border-radius: 20px 20px 0 0 !important;
    border: none !important; /* Border ko safai ke liye khatam kar dia */
}



/* --- RADIO BUTTONS ALIGNMENT WITH TITLE --- */

.thwvsf-rad-li {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 10px 0 !important;
    align-items: flex-start !important;
    /* Title (Select Spice) ke bilkul neechay lanay ke liye margin reset */
    margin-left: 0 !important; 
    padding-left: 0 !important;
}

/* Label ki padding bhi zero kar dein taake circle shuru mein aaye */
.thwvsf-rad-li label.th-label-radio {
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-content: flex-start !important; /* Circle ko bilkul start mein rakhay ga */
}


