/* === Target Brand Variables === */
:root {
    --target-red: #CC0000;
    --target-red-hover: #A80000;
    --target-dark: #333333;
    --target-gray: #666666;
    --target-light-gray: #f7f7f7;
    --target-border: #e0e0e0;
    --target-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

/* === Target Header === */
.target-header {
    background: #fff;
    border-bottom: 1px solid var(--target-border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.target-header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.target-header__logo img {
    width: 40px;
    height: 40px;
}

.target-header__logo span {
    font-size: 22px;
    font-weight: 700;
    color: var(--target-red);
}

.target-header__search {
    flex: 1;
    max-width: 500px;
    margin: 0 32px;
    position: relative;
}

.target-header__search input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 24px;
    font-size: 14px;
}

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

.target-header__cart {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--target-dark);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.target-header__cart-icon {
    position: relative;
    font-size: 22px;
}

.target-header__cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--target-red);
    color: #fff;
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

.btn-target:hover {
    background: var(--target-red-hover);
}

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

.btn-target--secondary:hover {
    background: #fef0f0;
}

.btn-target--small {
    padding: 10px 20px;
    font-size: 14px;
}

/* === Target Product Page === */
.target-product {
    display: flex;
    gap: 48px;
    padding: 32px 0;
}

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

.target-product__details {
    flex: 1;
}

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

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

.target-product__price {
    font-size: 32px;
    font-weight: 700;
    color: var(--target-dark);
    margin-bottom: 24px;
}

/* Fulfillment toggle */
.target-fulfillment {
    margin-bottom: 24px;
}

.target-fulfillment__label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--target-dark);
}

.target-fulfillment__options {
    display: flex;
    gap: 0;
    border: 2px solid var(--target-border);
    border-radius: 8px;
    overflow: hidden;
}

.target-fulfillment__option {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-right: 1px solid var(--target-border);
    background: #fff;
    transition: background 0.2s;
}

.target-fulfillment__option:last-child {
    border-right: none;
}

.target-fulfillment__option.active {
    background: var(--target-red);
    color: #fff;
}

.target-fulfillment__option:not(.active):hover {
    background: var(--target-light-gray);
}

.target-product__qty {
    margin-bottom: 24px;
}

.target-product__qty label {
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.target-product__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

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

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

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

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

/* === Target Cart === */
.target-cart {
    padding: 24px 0;
}

.target-cart__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

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

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

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

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

.target-cart-item__sku {
    font-size: 12px;
    color: var(--target-gray);
    margin-bottom: 12px;
}

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

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

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

/* Order Summary */
.target-summary {
    background: var(--target-light-gray);
    border-radius: 8px;
    padding: 24px;
}

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

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

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

.target-summary__checkout {
    margin-top: 20px;
}

/* === Target Checkout (Accordion) === */
.target-checkout {
    padding: 24px 0;
}

.target-checkout__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

.target-accordion {
    border: 1px solid var(--target-border);
    border-radius: 8px;
    overflow: hidden;
}

.target-accordion__section {
    border-bottom: 1px solid var(--target-border);
}

.target-accordion__section:last-child {
    border-bottom: none;
}

.target-accordion__header {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    cursor: pointer;
    gap: 16px;
}

.target-accordion__number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--target-border);
    color: var(--target-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.target-accordion__section.active .target-accordion__number {
    background: var(--target-red);
    color: #fff;
}

.target-accordion__section.completed .target-accordion__number {
    background: #4CAF50;
    color: #fff;
}

.target-accordion__header-text {
    flex: 1;
}

.target-accordion__header-text h3 {
    font-size: 16px;
    font-weight: 700;
}

.target-accordion__header-text .summary {
    font-size: 13px;
    color: var(--target-gray);
    margin-top: 2px;
}

.target-accordion__edit {
    color: var(--target-red);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: none;
}

.target-accordion__section.completed .target-accordion__edit {
    display: block;
}

.target-accordion__body {
    display: none;
    padding: 0 24px 24px;
}

.target-accordion__section.active .target-accordion__body {
    display: block;
}

/* Guest checkout section */
.target-guest-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.target-guest-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid var(--target-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.target-guest-option.selected {
    border-color: var(--target-red);
}

.target-guest-option input[type="radio"] {
    accent-color: var(--target-red);
}

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

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

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

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

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

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

.target-confirmation__detail-row strong {
    color: var(--target-dark);
}
