/* === Amazon Brand Variables === */
:root {
    --amz-dark: #131921;
    --amz-dark2: #232F3E;
    --amz-orange: #FF9900;
    --amz-yellow: #FFD814;
    --amz-yellow-hover: #F7CA00;
    --amz-buy-orange: #FFA41C;
    --amz-buy-orange-hover: #FA8900;
    --amz-link: #007185;
    --amz-price: #B12704;
    --amz-text: #0F1111;
    --amz-gray: #565959;
    --amz-light-gray: #F5F5F5;
    --amz-border: #DDD;
    --amz-font: "Amazon Ember", Arial, sans-serif;
}

body {
    font-family: var(--amz-font);
    background: #EAEDED;
    font-size: 14px;
}

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

/* === Amazon Header === */
.amz-header {
    background: var(--amz-dark);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.amz-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.amz-header__logo {
    flex-shrink: 0;
}

.amz-header__logo img {
    height: 30px;
    filter: brightness(0) invert(1);
}

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

.amz-header__search {
    flex: 1;
    display: flex;
}

.amz-header__search input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.amz-header__search-btn {
    background: var(--amz-orange);
    border: none;
    padding: 0 14px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 18px;
}

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

.amz-header__cart {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    position: relative;
}

.amz-header__cart-count {
    position: absolute;
    top: -8px;
    left: 8px;
    color: var(--amz-orange);
    font-size: 16px;
    font-weight: 700;
}

.amz-header-nav {
    background: var(--amz-dark2);
    padding: 6px 0;
}

.amz-header-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 16px;
}

.amz-header-nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* === Amazon Buttons === */
.btn-amz-yellow {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #f7dfa5, var(--amz-yellow));
    color: var(--amz-text);
    border: 1px solid #9c7e31;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-amz-yellow:hover {
    background: linear-gradient(to bottom, #f5d78e, var(--amz-yellow-hover));
}

.btn-amz-orange {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to bottom, #ffc863, var(--amz-buy-orange));
    color: var(--amz-text);
    border: 1px solid #a57e2e;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-amz-orange:hover {
    background: linear-gradient(to bottom, #f5b04e, var(--amz-buy-orange-hover));
}

/* === Amazon Product Page === */
.amz-product {
    display: flex;
    gap: 24px;
    padding: 20px;
    background: #fff;
    margin: 16px auto;
    max-width: 1200px;
}

.amz-product__image {
    flex: 0 0 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
}

.amz-product__details {
    flex: 1;
    min-width: 0;
}

.amz-product__title {
    font-size: 22px;
    font-weight: 400;
    color: var(--amz-text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.amz-product__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--amz-border);
}

.amz-product__price-label {
    font-size: 13px;
    color: var(--amz-gray);
}

.amz-product__price {
    font-size: 28px;
    color: var(--amz-text);
    margin-bottom: 4px;
}

.amz-product__price .price-symbol {
    font-size: 14px;
    vertical-align: top;
    position: relative;
    top: 4px;
}

.amz-product__delivery {
    font-size: 14px;
    color: var(--amz-text);
    margin-bottom: 16px;
}

.amz-product__delivery strong {
    color: var(--amz-text);
}

.amz-product__features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--amz-border);
}

.amz-product__features h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

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

/* Buy Box */
.amz-buybox {
    width: 280px;
    flex-shrink: 0;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    padding: 20px;
}

.amz-buybox__price {
    font-size: 24px;
    margin-bottom: 8px;
}

.amz-buybox__delivery {
    font-size: 14px;
    margin-bottom: 12px;
}

.amz-buybox__stock {
    color: #007600;
    font-size: 18px;
    margin-bottom: 16px;
}

.amz-buybox__qty {
    margin-bottom: 12px;
}

.amz-buybox__qty label {
    font-size: 13px;
    margin-right: 8px;
}

.amz-buybox__qty select {
    padding: 4px 8px;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    font-size: 13px;
    background: #F0F2F2;
}

.amz-buybox__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amz-buybox__seller {
    font-size: 12px;
    color: var(--amz-gray);
    margin-top: 12px;
    line-height: 1.5;
}

/* === Amazon Cart === */
.amz-cart {
    background: #fff;
    padding: 24px;
    margin: 16px auto;
    max-width: 1200px;
    border-radius: 4px;
}

.amz-cart__title {
    font-size: 28px;
    font-weight: 400;
    border-bottom: 1px solid var(--amz-border);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.amz-cart__price-label {
    text-align: right;
    font-size: 13px;
    color: var(--amz-gray);
    margin-bottom: 12px;
}

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

.amz-cart-item__check {
    padding-top: 4px;
}

.amz-cart-item__check input {
    width: 18px;
    height: 18px;
}

.amz-cart-item__image {
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.amz-cart-item__name {
    font-size: 16px;
    color: var(--amz-link);
    margin-bottom: 4px;
    line-height: 1.3;
}

.amz-cart-item__stock {
    font-size: 12px;
    color: #007600;
    margin-bottom: 8px;
}

.amz-cart-item__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.amz-cart-item__controls select {
    padding: 4px 8px;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    font-size: 13px;
    background: #F0F2F2;
}

.amz-cart-item__controls a {
    color: var(--amz-link);
    cursor: pointer;
}

.amz-cart-item__controls .divider {
    color: #ccc;
}

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

/* Cart Sidebar */
.amz-cart-sidebar {
    background: #fff;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    padding: 20px;
}

.amz-cart-sidebar__subtotal {
    font-size: 18px;
    margin-bottom: 12px;
}

.amz-cart-sidebar__cta {
    margin-bottom: 8px;
}

/* === Amazon Checkout (Single Page) === */
.amz-checkout {
    background: #fff;
    padding: 24px;
    margin: 16px auto;
    max-width: 1200px;
}

.amz-checkout__title {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 24px;
}

/* Numbered sections */
.amz-section {
    border: 1px solid var(--amz-border);
    border-radius: 4px;
    margin-bottom: 16px;
}

.amz-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F0F2F2;
    border-bottom: 1px solid var(--amz-border);
    cursor: pointer;
}

.amz-section__header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.amz-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--amz-dark);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.amz-section__change {
    color: var(--amz-link);
    font-size: 14px;
    cursor: pointer;
    display: none;
}

.amz-section.completed .amz-section__change {
    display: block;
}

.amz-section__body {
    padding: 20px;
    display: none;
}

.amz-section.active .amz-section__body {
    display: block;
}

.amz-section__summary {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--amz-gray);
    display: none;
}

.amz-section.completed .amz-section__summary {
    display: block;
}

.amz-section.completed .amz-section__header {
    border-bottom: none;
}

/* Checkout sidebar */
.amz-order-summary {
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    position: sticky;
    top: 80px;
}

.amz-order-summary__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.amz-order-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.amz-order-summary__total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--amz-price);
    padding-top: 12px;
    border-top: 1px solid var(--amz-border);
    margin-top: 12px;
}

.amz-order-summary__cta {
    margin-top: 16px;
}

.amz-order-summary__legal {
    font-size: 12px;
    color: var(--amz-gray);
    margin-top: 12px;
    line-height: 1.5;
}

/* === Amazon Confirmation === */
.amz-confirmation {
    background: #fff;
    padding: 40px;
    margin: 16px auto;
    max-width: 800px;
    border-radius: 4px;
    text-align: center;
}

.amz-confirmation__title {
    font-size: 28px;
    font-weight: 400;
    color: #007600;
    margin-bottom: 8px;
}

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

.amz-confirmation__details {
    background: var(--amz-light-gray);
    border: 1px solid var(--amz-border);
    border-radius: 4px;
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}

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

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