:root {
    --primary-mov: #912A7F;
    --primary-dark: #6e1f61;
    --secondary: #EEE5E9;
    --text-dark: #2d2d2d;
    --text-light: #777777;
    --bg-texture: #f9f7f8;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    --border-soft: #ede7f0;
}



/* ── CHECKOUT PAGE ── */
.woocommerce-checkout-page,
body.woocommerce-checkout {
    background: var(--bg-texture);
}

.co-form {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
    padding-top: 64px;
    font-family: var(--font-body);
    color: var(--text-dark);
}

/* ── LAYOUT ── */
.co-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
    align-items: start;
}

/* ── SECTION ── */
.co-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-soft);
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.co-section--sticky {
    position: sticky;
    top: 32px;
}

.co-section__title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 30px;
    letter-spacing: -0.5px;
    text-transform: none;
}

.co-section__title em {
    font-style: italic;
    color: var(--primary-mov);
}

/* ── BILLING FIELDS ── */
.co-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* câmpuri full width */
.co-fields-grid .form-row-wide,
.co-fields-grid #billing_address_1_field,
.co-fields-grid #billing_email_field,
.woocommerce-checkout .form-row-wide {
    grid-column: 1 / -1;
}

.woocommerce-checkout .form-row { margin-bottom: 20px; }

.woocommerce-checkout .form-row label {
    font-family: var(--font-heading) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--text-light) !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100% !important;
    background: #fdfdfd !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    font-size: 14px !important;
    color: var(--text-dark) !important;
    font-family: var(--font-body) !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    height: auto !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary-mov) !important;
    background: var(--white) !important;
    box-shadow: 0 4px 15px rgba(145, 42, 127, 0.05) !important;
}

.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
    color: #ccc !important;
}

/* ── HIDE COUPON & ADDITIONAL FIELDS ── */
.woocommerce-form-coupon-toggle,
.checkout_coupon,
.woocommerce-additional-fields {
    display: none !important;
}

/* ── PAYMENT ── */
#payment {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

#payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    border: none !important;
}

#payment ul.payment_methods li {
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 20px !important;
    background: var(--white) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
}

#payment ul.payment_methods li:hover {
    border-color: rgba(145, 42, 127, 0.3);
}

#payment ul.payment_methods li:has(input:checked) {
    border-color: var(--primary-mov) !important;
    background: #faf8fb !important; /* Nuanta subtila mov */
}

#payment ul.payment_methods li label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    cursor: pointer !important;
    font-family: var(--font-body) !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

#payment ul.payment_methods input[type="radio"] {
    accent-color: var(--primary-mov) !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
}

.payment_box {
    background: transparent !important;
    border: none !important;
    padding: 12px 0 0 34px !important;
    font-size: 13px !important;
    color: var(--text-light) !important;
    font-family: var(--font-body) !important;
    line-height: 1.6 !important;
}

.payment_box p { margin: 0 !important; }

/* ── PLACE ORDER BUTTON ── */
#payment .place-order {
    padding: 0 !important;
    margin-top: 30px !important;
    background: transparent !important;
}

#place_order {
    width: 100% !important;
    background: var(--primary-mov) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 18px 32px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-family: var(--font-heading) !important;
    transition: all 0.3s ease !important;
}

#place_order:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(145, 42, 127, 0.15) !important;
}

/* terms */
.woocommerce-terms-and-conditions-wrapper {
    font-size: 12px !important;
    color: var(--text-light) !important;
    margin-bottom: 20px !important;
    font-family: var(--font-body) !important;
    line-height: 1.6;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: var(--primary-mov) !important;
    font-weight: 600;
    text-decoration: none;
}

/* ── ORDER REVIEW ── */
.co-order-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
}

.co-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.co-order-item__img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--bg-texture);
}

.co-order-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.co-order-item__qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-mov);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(145, 42, 127, 0.3);
}

.co-order-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.co-order-item__name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
}

.co-order-item__meta {
    font-size: 12px;
    color: var(--text-light);
}

.co-order-item__price {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-mov);
    white-space: nowrap;
}

/* Totale */
.co-order-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.co-order-total-row__label {
    font-size: 13px;
    color: var(--text-light);
}

.co-order-total-row__value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.co-order-total-row--total {
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
    margin-top: 6px;
}

.co-order-total-row--total .co-order-total-row__label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.co-order-total-row--total .co-order-total-row__value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-mov);
}

/* ── VALIDATION ERRORS ── */
.woocommerce-error,
.woocommerce-message {
    border-radius: 12px !important;
    border-left: none !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    margin-bottom: 24px !important;
    list-style: none !important;
}

.woocommerce-error {
    background: #fff5f5 !important;
    color: #E84855 !important;
    border: 1px solid #ffebeb !important;
    padding: 16px 20px !important;
}

.woocommerce-NoticeGroup {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    left: -9999px !important;
}

.co-order-item {
    position: relative;
}
.co-order-item__remove {
    border: none;
    background: transparent;
    color: #b8a4ac;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.co-order-item__remove:hover {
    color: #7a2848;
}
.co-order-item__remove.is-removing {
    opacity: 0.4;
    pointer-events: none;
}

.co-order-item { position: relative; padding-right: 80px; }
   .co-order-item__remove { position: absolute; right: 0; top: 50%; transform: translateY(-50%); /* + restul */ }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .co-form { padding: 40px 20px; }
    .co-layout { grid-template-columns: 1fr; }
    .co-section--sticky { position: static; }
}

@media (max-width: 600px) {
    .co-form { padding: 30px 16px; }
    .co-section { padding: 26px 20px; }
    .co-fields-grid { grid-template-columns: 1fr; }
}