/* =========================================
   LDA Custom CSS - LolliDollyArt
   Child theme override (replaces Additional CSS)
   ========================================= */

/* =========================================
   1. PRICING & TITLE
   ========================================= */
span.wcpa_price_outer {
    font-size: larger;
    color: #356060;
}

p.price del,
p.price del .woocommerce-Price-amount {
    font-size: 18px !important;
    color: #888 !important;
}

p.price ins,
p.price ins .woocommerce-Price-amount {
    font-size: 25px !important;
    font-weight: bold !important;
    color: #356060 !important;
}

/* Product title responsive */
h1.product_title.entry-title {
    font-size: 30px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    padding-right: 0px !important;
}

@media only screen and (max-width: 767px) {
    h1.product_title.entry-title {
        font-size: 20px !important;
    }
}

/* =========================================
   2. WCPA FORM
   ========================================= */
.wcpa_form_outer {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}

.wcpa_wrap .wcpa_image .wcpa_image_label {
    margin: 0;
    display: block;
    text-align: center;
}

/* WCPA image option boxes - rounded corners */
.wcpa_wrap .wcpa_image .wcpa_img_wrap {
    border-radius: 8px;
    overflow: hidden;
}

/* WCPA selected outline - rounded to match */
.wcpa_wrap .wcpa_selection_outline input:checked ~ .wcpa_img_wrap {
    border-radius: 8px;
}

/* WCPA size/text button options - rounded */
.wcpa_wrap .wcpa_check_ui_button .wcpa_checkbox label,
.wcpa_wrap .wcpa_check_ui_button .wcpa_radio label {
    border-radius: 8px !important;
}

/* =========================================
   3. CART LAYOUT (Quantity 70px + Add to Cart)
   ========================================= */
form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px;
    margin-bottom: 0 !important;
    width: 100%;
}

/* Separator line */
form.cart::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin-bottom: 15px;
}

/* Quantity box fixed 70px */
form.cart .quantity {
    flex: 0 0 70px !important;
    width: 70px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

form.cart .quantity input.qty {
    width: 100% !important;
    text-align: center;
    padding: 0 !important;
}

/* Add to Cart button */
button.single_add_to_cart_button {
    width: auto !important;
    flex-grow: 1 !important;
    max-width: initial !important;
    font-size: 18px !important;
    font-weight: bold;
    padding: 0 15px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px !important;
}

.single_add_to_cart_button {
    max-width: initial;
}

/* Shopping bag icon */
button.single_add_to_cart_button::before {
    content: "\f290";
    font-family: "FontAwesome";
    font-size: 20px;
}

/* =========================================
   4. CHECKOUT & MOBILE
   ========================================= */
#place_order {
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 15px 20px !important;
}

.shop_table .product-name {
    padding: 0;
    width: 70%;
}

.woocommerce-checkout-review-order .product-total {
    width: 100%;
}

.nasa-in-mobile .product-info .cart {
    gap: 0;
}

/* Hide reCAPTCHA container */
#ppcp-recaptcha-v2-container {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

form.cart + .ns-begin-wrap,
form.cart + .ns-begin-wrap.nasa-crazy-box {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile fixed Add to Cart bar */
.ns_btn-fixed .single_add_to_cart_button {
    font-size: 18px !important;
    font-weight: bold !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =========================================
   5. ICON OVERRIDE (stroke-based, match trust badges)
   ========================================= */

/* Estimated Delivery — replace fill icon with stroke truck */
.nasa-est-delivery > svg {
    display: none !important;
}
.nasa-est-delivery::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23356060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='3' width='15' height='13'/%3E%3Cpolygon points='16 8 20 8 23 11 23 16 16 16 16 8'/%3E%3Ccircle cx='5.5' cy='18.5' r='2.5'/%3E%3Ccircle cx='18.5' cy='18.5' r='2.5'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Share — replace fill icon with stroke share */
.nasa-single-share .nasa-share-label > svg {
    display: none !important;
}
.nasa-single-share .nasa-share-label::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    flex-shrink: 0;
    vertical-align: middle;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cline x1='8.59' y1='13.51' x2='15.42' y2='17.49'/%3E%3Cline x1='15.41' y1='6.51' x2='8.59' y2='10.49'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Static group button offset */
.nasa-static-group-btn {
    transform: translateY(-75px);
}

/* =========================================
   6. PRODUCT TABS CONTENT
   ========================================= */

/* ── Wrapper ── */
.lda-tab-wrap {
    width: 100%;
    padding: 10px 0;
    color: #1a1a1a;
}

/* ── Description tab (per-product content) ── */
.lda-description-content {
    width: 100%;
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

.lda-description-content h2,
.lda-description-content h3,
.lda-description-content h4 {
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.lda-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ── Header (badge + title + desc) ── */
.lda-tab-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.lda-tab-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    background: #f0f6f6;
    color: #385f5e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.lda-tab-title {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    line-height: 1.2;
}

.lda-accent {
    color: #385f5e;
}

.lda-tab-desc {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    max-width: 720px;
    margin: 0 auto;
}

/* ── Section title ── */
.lda-section {
    margin-bottom: 48px;
}

.lda-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ── Features grid (2 cols) ── */
.lda-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 8px;
}

.lda-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lda-feature-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f9fdfd;
    border: 1.5px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.lda-feature-card:hover .lda-feature-icon {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.lda-feature-icon i {
    font-size: 22px;
    color: #2c4e4c;
}

.lda-feature-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.lda-feature-text {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    max-width: 240px;
}

/* ── Timing box ── */
.lda-timing-box {
    background: #fcfdfd;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.lda-timing-left,
.lda-timing-right {
    flex: 1;
}

.lda-timing-divider {
    width: 2px;
    align-self: stretch;
    background: #f3f4f6;
}

.lda-timing-heading {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.lda-timing-item {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    padding-left: 0;
}

.lda-timing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #faa419;
    margin-top: 7px;
    flex-shrink: 0;
}

.lda-timing-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.lda-timing-item-text {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.lda-quote-box {
    background: #fff;
    border: 1px solid #e6eaea;
    border-left: 3px solid #385f5e;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.lda-quote-box p {
    color: #525f66;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ── Steps (Customization Process) ── */
.lda-steps-container {
    position: relative;
    width: 100%;
    padding-bottom: 24px;
}

.lda-steps-line {
    display: none;
}

.lda-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.lda-step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.lda-step-card:hover {
    transform: translateY(-8px);
}

.lda-step-number {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #f9a01b;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
    z-index: 2;
}

.lda-step-icon-circle {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #f9fdfd;
    border: 1.5px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.lda-step-card:hover .lda-step-icon-circle {
    transform: scale(1.1) rotate(5deg);
    background: #385f5e;
    border-color: transparent;
}

.lda-step-icon-circle i {
    font-size: 22px;
    color: #2c4e4c;
    transition: all 0.4s ease;
}

.lda-step-card:hover .lda-step-icon-circle i {
    color: #fff;
    transform: scale(1.1);
}

.lda-step-title {
    font-size: 15.5px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lda-step-text {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    max-width: 170px;
}

/* Desktop dashed line */
@media (min-width: 1024px) {
    .lda-steps-line {
        display: block;
        position: absolute;
        top: 37px;
        left: 10%;
        right: 10%;
        height: 0;
        border-top: 2px dashed #e5e7eb;
        z-index: 0;
    }
}

/* ── Shipping grid (2 cols) ── */
.lda-shipping-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 8px;
}

.lda-shipping-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lda-shipping-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.lda-shipping-col-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lda-shipping-col-title {
    font-size: 17px;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
}

.lda-delivery-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.lda-delivery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

.lda-delivery-card-title {
    color: #2c4e4c;
    font-weight: 700;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.lda-delivery-card-text {
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.6;
}

/* Policy items */
.lda-policy-item {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.lda-policy-icon {
    min-width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafa;
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c4e4c;
    margin-top: 2px;
    flex-shrink: 0;
}

.lda-policy-icon i {
    font-size: 12px;
}

.lda-policy-title {
    color: #1f2937;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.lda-policy-text {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.lda-policy-link {
    color: #385f5e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.lda-policy-link:hover {
    text-decoration: underline;
}

/* ── FAQs ── */
.lda-faq-list {
    width: 100%;
    padding-bottom: 24px;
}

.lda-faq-item {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow 0.3s ease;
}

.lda-faq-item[open] {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.lda-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: color 0.2s ease;
}

.lda-faq-question:hover {
    color: #385f5e;
}

.lda-faq-chevron {
    color: #385f5e;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.lda-faq-item[open] .lda-faq-chevron {
    transform: rotate(180deg);
}

.lda-faq-answer {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    padding: 0 24px 20px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .lda-tab-title {
        font-size: 24px;
    }

    .lda-features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lda-timing-box {
        flex-direction: column;
        padding: 20px;
        gap: 24px;
    }

    .lda-timing-divider {
        width: 100%;
        height: 1px;
    }

    .lda-steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
    }

    .lda-shipping-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .lda-faq-question {
        font-size: 14px;
        padding: 14px 16px;
    }

    .lda-faq-answer {
        padding: 0 16px 16px;
        font-size: 13px;
    }
}

/* =========================================
   7. REVIEWS STANDALONE (above tabs)
   ========================================= */
.lda-reviews-standalone {
    width: 100%;
    clear: both;
    margin-top: 20px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .lda-reviews-standalone {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 5px;
    }

    /* More gap between quantity and Add to Cart */
    form.cart {
        gap: 12px !important;
    }

    /* Estimated Delivery spacing from Add to Cart */
    .nasa-est-delivery {
        margin-top: 12px !important;
    }

    /* Remove extra spacing below product info area */
    .nasa-layout-modern-3 .focus-info {
        padding-bottom: 0 !important;
        margin-bottom: 10px !important;
    }

    /* Reduce whitespace between Share and Reviews */
    .nasa-single-share {
        margin-bottom: 0 !important;
        padding-bottom: 5px !important;
    }
    .nasa-single-hr {
        margin: 8px 0 !important;
    }

    /* Review action buttons: prevent text overflow */
    #reviews.lda-reviews .lda-action-btn {
        white-space: normal !important;
        font-size: 12px !important;
        padding: 10px 10px !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }
}
