/* =========================================
   FRAMEISH FINAL CSS (V5)
   ========================================= */

:root {
    --fr-accent: #b150fa;
    --fr-accent-hover: #9b45db;
    --fr-dark: #191D24;
    --fr-gray: #A0AEC0;
    --fr-bg-input: #FFFFFF;
    --fr-border-color: #E2E8F0;
    --fr-radius: 50px;
    --fr-font: 'GigaSans', sans-serif;
}

/* --- 1. NEW PROGRESS BAR STYLES --- */
.fr-progress-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 50px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f7f7f7;
    position: relative;
    font-family: var(--fr-font);
}

/* The Moving Purple Line */
.fr-progress-line {
    position: absolute;
    bottom: -2px;
    height: 4px;
    background: var(--fr-accent);
    transition: all 0.3s ease;
    width: 33.33%;
}

.fr-progress-wrapper.step-cart .fr-progress-line { left: 0; }
.fr-progress-wrapper.step-checkout .fr-progress-line { left: 33.33%; }
.fr-progress-wrapper.step-confirmation .fr-progress-line { left: 66.66%; }

.fr-progress-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fr-gray);
    font-weight: 700;
    font-size: 18px;
    opacity: 0.6;
}

.fr-progress-step.active {
    color: var(--fr-dark);
    opacity: 1;
}

.fr-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E2E8F0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.fr-progress-step.active .fr-num {
    background: var(--fr-accent);
}

/* Mobile Progress */
@media (max-width: 768px) {
    .fr-progress-wrapper { gap: 15px; font-size: 14px; justify-content: space-between; }
    .fr-label { display: none; } /* Show numbers only on mobile */
    .fr-progress-step.active .fr-label { display: inline-block; } /* Show active text */
}

/* --- 2. INPUTS: PILL SHAPES & NO LABELS --- */

/* Hide Labels */
.wc-block-components-text-input label,
.wc-blocks-components-select__label {
    display: none !important;
}

/* Input Fields */
.wc-block-components-text-input input,
.wc-blocks-components-select__select {
    border: 1px solid var(--fr-border-color) !important;
    border-radius: var(--fr-radius) !important;
    padding: 18px 25px !important;
    height: auto !important;
    min-height: 54px !important;
    font-size: 16px !important;
    background: var(--fr-bg-input) !important;
    box-shadow: none !important;
    color: var(--fr-dark) !important;
}

/* Spacing */
.wc-block-components-text-input,
.wc-block-components-address-form__country {
    margin-bottom: 20px !important;
}

/* Focus State */
.wc-block-components-text-input input:focus,
.wc-blocks-components-select__select:focus {
    border-color: var(--fr-accent) !important;
    box-shadow: 0 0 0 4px rgba(177, 80, 250, 0.1) !important;
}

/* --- 3. CART PAGE --- */

/* Purple Header Bar */
.wc-block-cart-items {
    border: none !important;
}
.wc-block-cart-items thead tr th {
    background: var(--fr-accent) !important;
    color: white !important;
    padding: 20px 30px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: none !important;
}

/* Rounded Header Corners */
.wc-block-cart-items thead tr th:first-child { border-radius: 15px 0 0 15px !important; }
.wc-block-cart-items thead tr th:last-child { border-radius: 0 15px 15px 0 !important; }

/* Product Rows */
.wc-block-cart-items__row td {
    padding: 30px 20px !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: middle;
}

/* Product Name */
.wc-block-components-product-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: black !important;
    text-decoration: none !important;
}

/* Cart Totals Sidebar */
.wp-block-woocommerce-cart-totals-block {
    border: 1px solid #eee !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05) !important;
    background: white !important;
}

.wc-block-cart__totals-title {
    background: var(--fr-accent) !important;
    color: white !important;
    padding: 25px 30px !important;
    font-size: 22px !important;
    border: none !important;
}

.wp-block-woocommerce-cart-order-summary-totals-block {
    padding: 30px !important;
}

/* Coupon & Buttons */
.wp-block-woocommerce-cart-order-summary-coupon-form-block { padding: 0 30px 20px 30px !important; }
.wc-block-components-totals-coupon-link { color: var(--fr-accent) !important; text-decoration: underline; }

.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
    background: var(--fr-accent) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 20px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    width: 100%;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
    background: var(--fr-accent-hover) !important;
    transform: translateY(-2px);
}

/* --- 4. CHECKOUT PAGE --- */

/* Numbered Steps: "1 Contact Information" */
.wc-block-components-checkout-step__title {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    display: flex;
    align-items: center;
}

/* The Purple Circles */
.wc-block-components-checkout-step__title::before {
    content: "1";
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fr-accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 18px;
    font-weight: 700;
}

/* Correct Step Numbers */
#billing-fields .wc-block-components-checkout-step__title::before { content: "2"; }
#shipping-methods .wc-block-components-checkout-step__title::before { content: "3"; }
#payment-method .wc-block-components-checkout-step__title::before { content: "3"; }

/* Order Summary Box */
.wc-block-checkout__sidebar {
    background: white !important;
    border: 1px solid #eee !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05) !important;
    overflow: hidden;
}

.wc-block-components-checkout-order-summary__title {
    background: var(--fr-accent) !important;
    color: white !important;
    padding: 25px 30px !important;
    border: none !important;
}

.wc-block-components-checkout-order-summary__content {
    padding: 30px !important;
}

/* --- 5. THANK YOU PAGE --- */

.woocommerce-order-received .woocommerce-notice--success {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
}

/* Data Strip */
ul.order_details {
    display: flex;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-bottom: 40px !important;
}
ul.order_details li {
    border-right: 1px solid #eee !important;
    border-bottom: none !important;
    margin-right: 40px;
    padding-right: 40px;
    text-transform: none !important;
    font-size: 14px;
    color: var(--fr-gray);
}
ul.order_details li:last-child { border: none !important; }
ul.order_details li strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: black;
    margin-top: 5px;
}

/* Order Table */
.woocommerce-table--order-details {
    border: 1px solid #eee !important;
    border-top: none !important;
    border-radius: 0 0 20px 20px;
    margin-bottom: 50px !important;
}
.woocommerce-order-details__title {
    background: var(--fr-accent);
    color: white;
    padding: 20px 30px;
    border-radius: 20px 20px 0 0;
    margin: 0 !important;
}
.woocommerce-table--order-details thead { display: none; }
.woocommerce-table--order-details td {
    padding: 20px 30px !important;
    border-bottom: 1px solid #eee !important;
}
