/*
 * Weekend Dawaat - WooCommerce Custom Styling
 * Mobile-first, frictionless, editorial design system
 */

/* Header & Nav styles */
.wd-site-header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(41, 37, 31, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wd-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.wd-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.wd-brand-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 24px;
    color: #29251F;
    line-height: 1.1;
    white-space: nowrap;
}

.wd-brand-subtitle {
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #706A61;
    font-weight: 500;
    white-space: nowrap;
}

.wd-header-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.wd-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #706A61;
    padding: 6px 8px;
    white-space: nowrap !important;
    text-decoration: none;
}

.wd-nav-link:hover {
    color: #29251F;
}

.wd-nav-pill-btn {
    background: #8B3A2E;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.1s ease;
    white-space: nowrap !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wd-nav-pill-btn:hover {
    background: #6F2D24;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .wd-header-inner {
        height: 64px;
        gap: 10px;
    }
    .wd-brand-title {
        font-size: 20px;
    }
    .wd-brand-subtitle {
        font-size: 10px;
    }
    .wd-header-nav {
        gap: 8px;
    }
    .wd-nav-link {
        font-size: 13px;
        padding: 4px 6px;
    }
    .wd-nav-pill-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
}

@media (max-width: 440px) {
    .wd-brand-subtitle {
        display: none;
    }
}


/* Footer styles */
.wd-site-footer {
    background: #29251F;
    color: #E9D8CD;
    padding: 60px 0 32px 0;
    margin-top: 80px;
}

.wd-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wd-footer-title {
    color: #FFFFFF;
    font-size: 26px;
    margin-bottom: 8px;
}

.wd-footer-desc {
    color: #A39B90;
    font-size: 15px;
    max-width: 480px;
    line-height: 1.5;
}

.wd-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.wd-footer-links a {
    color: #E9D8CD;
    font-size: 14px;
}

.wd-footer-links a:hover {
    color: #FFFFFF;
}

.wd-footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #706A61;
}

/* WooCommerce Container & Overrides */
.woocommerce {
    max-width: 900px;
    margin: 0 auto;
}

.woocommerce-checkout .wd-page-content,
.woocommerce-checkout .woocommerce {
    max-width: 1140px;
    margin: 0 auto;
}

/* Hide redundant titles on custom checkout */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-checkout-review-order > h3,
#order_review_heading {
    display: none !important;
}

/* Billing Details CSS Grid (No Floats) */
.woocommerce-billing-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    width: 100% !important;
    float: none !important;
    clear: both !important;
}

.woocommerce-billing-fields__field-wrapper .form-row {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

.woocommerce-billing-fields__field-wrapper .form-row-first {
    grid-column: 1;
}

.woocommerce-billing-fields__field-wrapper .form-row-last {
    grid-column: 2;
}

@media (max-width: 620px) {
    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
    .woocommerce-billing-fields__field-wrapper .form-row-first,
    .woocommerce-billing-fields__field-wrapper .form-row-last {
        grid-column: 1 / -1;
    }
}

.woocommerce form .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #29251F;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.woocommerce form .form-row label .required {
    color: #8B3A2E;
    font-weight: 700;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row input[type="text"],
.woocommerce form .form-row input[type="email"],
.woocommerce form .form-row input[type="tel"] {
    width: 100% !important;
    height: 48px;
    background: #FAFAFA;
    border: 1.5px solid rgba(41, 37, 31, 0.16);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    color: #29251F;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row input[type="text"]:focus,
.woocommerce form .form-row input[type="email"]:focus,
.woocommerce form .form-row input[type="tel"]:focus {
    background: #FFFFFF;
    border-color: #8B3A2E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 58, 46, 0.12);
}

/* Order Review / Payment Container */
#order_review {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.woocommerce-checkout-review-order-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px;
    background: #FFFFFF;
    border: 1px solid rgba(41, 37, 31, 0.1) !important;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 18px !important;
    border-top: 1px solid rgba(41, 37, 31, 0.08) !important;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table thead th {
    border-top: none !important;
    background: #F8F4ED;
    font-weight: 600;
    color: #29251F;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 16px;
    font-weight: 700;
    color: #29251F;
    background: #FAF7F2;
}

.woocommerce-checkout #payment {
    background: #FBF9F5;
    border: 1.5px solid rgba(139, 58, 46, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border-bottom: 1px solid rgba(41, 37, 31, 0.1);
    padding-bottom: 16px;
    margin-bottom: 16px;
    list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #29251F;
}

.woocommerce-checkout #payment div.payment_box {
    background: #FFFFFF;
    border: 1px solid rgba(41, 37, 31, 0.1);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #706A61;
    line-height: 1.5;
}

/* Helper note above place order button */
.wd-checkout-order-note {
    background: rgba(89, 101, 74, 0.08);
    border: 1px solid rgba(89, 101, 74, 0.22);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    font-size: 13px;
    color: #38422E;
    line-height: 1.45;
}

.wd-checkout-order-note p {
    margin: 0;
}

/* Primary Button (Place Order / Buy Now) */
.woocommerce #place_order,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: #8B3A2E !important;
    color: #FFFFFF !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em;
    padding: 16px 32px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
    width: 100% !important;
    box-shadow: 0 4px 14px rgba(139, 58, 46, 0.25);
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.woocommerce #place_order:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background: #6F2D24 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(139, 58, 46, 0.35);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
    border-top-color: #8B3A2E !important;
    background-color: #FFFFFF !important;
    border-radius: 8px;
    padding: 14px 20px !important;
    color: #29251F;
    box-shadow: 0 2px 8px rgba(41, 37, 31, 0.05);
}

.woocommerce-error {
    border-top-color: #D32F2F !important;
    background-color: #FFFFFF !important;
    border-radius: 8px;
    padding: 14px 20px !important;
    box-shadow: 0 2px 8px rgba(41, 37, 31, 0.05);
}

/* 2-Column Enhanced Checkout Grid */
.wd-checkout-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1120px;
    margin: 16px auto 48px auto;
    align-items: start;
}

@media (min-width: 900px) {
    .wd-checkout-grid {
        grid-template-columns: 1.3fr 0.85fr;
        gap: 36px;
    }
}

.wd-checkout-card {
    background: #FFFFFF;
    border: 1px solid rgba(41, 37, 31, 0.12);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(41, 37, 31, 0.03);
}

.wd-checkout-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(41, 37, 31, 0.08);
}

.wd-step-badge {
    width: 32px;
    height: 32px;
    background: #8B3A2E;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.wd-checkout-card-header h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 22px;
    color: #29251F;
    margin: 0 0 4px 0;
}

.wd-checkout-card-header p {
    font-size: 13px;
    color: #706A61;
    margin: 0;
    line-height: 1.45;
}

.wd-checkout-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.wd-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid rgba(41, 37, 31, 0.1);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #706A61;
}

/* Sidebar Order Review Column */
.wd-checkout-sidebar {
    position: sticky;
    top: 96px;
}

.wd-checkout-summary-card {
    background: #FFFFFF;
    border: 1px solid rgba(41, 37, 31, 0.12);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 6px 24px rgba(41, 37, 31, 0.06);
}

.wd-summary-top {
    margin-bottom: 16px;
}

.wd-summary-badge {
    display: inline-block;
    background: #E9D8CD;
    color: #6F2D24;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.wd-summary-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 24px;
    color: #29251F;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.wd-summary-subtitle {
    font-size: 14px;
    color: #59654A;
    font-weight: 600;
    margin: 0;
}

.wd-summary-editions {
    background: #F8F4ED;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 18px 0;
}

.wd-editions-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #706A61;
    margin-bottom: 10px;
}

.wd-edition-pills {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.wd-edition-pill {
    font-size: 12px;
    font-weight: 600;
    color: #29251F;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wd-summary-features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0 0 18px 0;
    border-bottom: 1px solid rgba(41, 37, 31, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wd-summary-features li {
    font-size: 13px;
    color: #29251F;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.wd-feat-check {
    color: #59654A;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.wd-summary-price-box {
    background: #FAF7F2;
    border: 1.5px dashed rgba(139, 58, 46, 0.3);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.wd-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
    color: #706A61;
}

.wd-price-strikethrough {
    text-decoration: line-through;
    color: #A39B90;
    font-size: 14px;
}

.wd-price-highlight {
    margin-bottom: 8px;
}

.wd-price-highlight .wd-price-label {
    font-weight: 700;
    color: #29251F;
    font-size: 14px;
}

.wd-price-final {
    font-size: 26px;
    font-weight: 800;
    color: #8B3A2E;
    font-family: 'DM Serif Display', Georgia, serif;
}

.wd-price-badge {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #59654A;
    border-top: 1px solid rgba(41, 37, 31, 0.08);
    padding-top: 8px;
    margin-top: 4px;
}

.wd-summary-guarantee {
    display: flex;
    gap: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(41, 37, 31, 0.1);
    padding: 14px 16px;
    border-radius: 10px;
}

.wd-guarantee-icon {
    font-size: 24px;
    line-height: 1;
}

.wd-summary-guarantee strong {
    display: block;
    font-size: 13px;
    color: #29251F;
    margin-bottom: 2px;
}

.wd-summary-guarantee p {
    font-size: 12px;
    color: #706A61;
    margin: 0;
    line-height: 1.4;
}

/* Hide Phone field and Account creation elements */
#billing_phone_field,
.woocommerce-billing-fields #billing_phone_field,
.woocommerce-account-fields,
.form-row.create-account,
#createaccount,
label[for="createaccount"] {
    display: none !important;
}

/* Remove NoticeGroup checkout notices & banners */
.woocommerce-NoticeGroup,
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup-updateOrderReview {
    display: none !important;
}

