/* === Walmart Brand Variables === */
:root {
    --wm-blue: #0071CE;
    --wm-blue-hover: #005BA1;
    --wm-dark-blue: #004F9A;
    --wm-yellow: #FFC220;
    --wm-dark: #2E2F32;
    --wm-gray: #74767B;
    --wm-light-gray: #F2F2F2;
    --wm-border: #E0E0E0;
    --wm-font: "Bogle", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--wm-font);
    background: #fff;
}

/* === Test Banner === */
.test-banner {
    background: #FFD700;
    color: #333;
    text-align: center;
    padding: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

/* === Walmart Header === */
.wm-header {
    background: var(--wm-blue);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wm-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wm-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wm-header__logo img {
    height: 36px;
}

.wm-header__logo span {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.wm-header__search {
    flex: 1;
    max-width: 520px;
    margin: 0 24px;
}

.wm-header__search input {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
}

.wm-header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wm-header__cart {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    position: relative;
}

.wm-header__cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--wm-yellow);
    color: var(--wm-dark);
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* === Walmart Buttons === */
.btn-wm {
    display: inline-block;
    padding: 14px 32px;
    background: var(--wm-blue);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    width: 100%;
}

.btn-wm:hover {
    background: var(--wm-blue-hover);
}

.btn-wm--secondary {
    background: #fff;
    color: var(--wm-blue);
    border: 2px solid var(--wm-blue);
}

.btn-wm--secondary:hover {
    background: #f0f7ff;
}

/* === Progress Bar === */
.wm-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    gap: 0;
    margin-bottom: 24px;
}

.wm-progress__step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--wm-gray);
}

.wm-progress__step.active {
    color: var(--wm-blue);
    font-weight: 700;
}

.wm-progress__step.completed {
    color: #4CAF50;
}

.wm-progress__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--wm-border);
    color: var(--wm-gray);
}

.wm-progress__step.active .wm-progress__number {
    background: var(--wm-blue);
    color: #fff;
    border-color: var(--wm-blue);
}

.wm-progress__step.completed .wm-progress__number {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.wm-progress__line {
    width: 60px;
    height: 2px;
    background: var(--wm-border);
    margin: 0 12px;
}

.wm-progress__line.completed {
    background: #4CAF50;
}

/* === Walmart Product Page === */
.wm-product {
    display: flex;
    gap: 40px;
    padding: 32px 0;
}

.wm-product__image {
    flex: 0 0 440px;
    background: var(--wm-light-gray);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
}

.wm-product__details {
    flex: 1;
}

.wm-product__brand {
    font-size: 12px;
    color: var(--wm-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.wm-product__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--wm-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.wm-product__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.wm-product__price {
    font-size: 36px;
    font-weight: 700;
    color: var(--wm-dark);
    margin-bottom: 4px;
}

.wm-product__price-note {
    font-size: 13px;
    color: var(--wm-gray);
    margin-bottom: 24px;
}

/* Fulfillment */
.wm-fulfillment {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
}

.wm-fulfillment__option {
    flex: 1;
    padding: 16px;
    border: 2px solid var(--wm-border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: border-color 0.2s;
}

.wm-fulfillment__option.active {
    border-color: var(--wm-blue);
    background: #f0f7ff;
}

.wm-fulfillment__option-label {
    display: block;
    font-size: 13px;
    color: var(--wm-gray);
    margin-top: 4px;
    font-weight: 400;
}

.wm-product__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin-bottom: 24px;
}

.wm-product__features {
    padding-top: 24px;
    border-top: 1px solid var(--wm-border);
}

.wm-product__features h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.wm-product__features ul {
    padding-left: 20px;
}

.wm-product__features li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--wm-gray);
}

/* === Walmart Cart === */
.wm-cart {
    padding: 24px 0;
}

.wm-cart__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wm-cart__count {
    font-size: 14px;
    color: var(--wm-gray);
    margin-bottom: 24px;
}

.wm-cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--wm-border);
}

.wm-cart-item__image {
    width: 120px;
    height: 120px;
    background: var(--wm-light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wm-cart-item__info {
    flex: 1;
}

.wm-cart-item__name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.wm-cart-item__fulfillment {
    font-size: 13px;
    color: #4CAF50;
    margin-bottom: 12px;
}

.wm-cart-item__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wm-cart-item__remove {
    background: none;
    border: none;
    color: var(--wm-blue);
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

.wm-cart-item__price {
    font-size: 18px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* Summary sidebar */
.wm-summary {
    background: var(--wm-light-gray);
    border-radius: 12px;
    padding: 24px;
}

.wm-summary__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.wm-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.wm-summary__row--total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid var(--wm-border);
    margin-top: 12px;
}

.wm-summary__cta {
    margin-top: 20px;
}

/* === Checkout Form === */
.wm-checkout-form {
    max-width: 600px;
}

.wm-checkout-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Delivery speed options */
.wm-delivery-options {
    margin: 20px 0;
}

.wm-delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--wm-border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.wm-delivery-option.selected {
    border-color: var(--wm-blue);
}

.wm-delivery-option input[type="radio"] {
    accent-color: var(--wm-blue);
}

.wm-delivery-option__details {
    flex: 1;
}

.wm-delivery-option__price {
    font-weight: 700;
}

/* === Walmart Confirmation === */
.wm-confirmation {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.wm-confirmation__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--wm-dark);
}

.wm-confirmation__order-id {
    font-size: 16px;
    color: var(--wm-gray);
    margin-bottom: 24px;
}

.wm-confirmation__details {
    background: var(--wm-light-gray);
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    margin-bottom: 32px;
}

.wm-confirmation__detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.wm-confirmation__detail-row:not(:last-child) {
    border-bottom: 1px solid var(--wm-border);
}
