/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background: #f5f5f5;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* === Utility Classes === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === Form Defaults === */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #666;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* === Landing Page === */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.landing-header {
    text-align: center;
    margin-bottom: 48px;
}

.landing-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.landing-header p {
    font-size: 18px;
    color: #666;
}

.retailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    max-width: 1100px;
    width: 100%;
}

.retailer-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.retailer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.retailer-card__logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retailer-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.retailer-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.retailer-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.retailer-card__cta {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

.retailer-card--target h2 { color: #CC0000; }
.retailer-card--target .retailer-card__cta { background: #CC0000; }

.retailer-card--walmart h2 { color: #0071CE; }
.retailer-card--walmart .retailer-card__cta { background: #0071CE; }

.retailer-card--amazon h2 { color: #131921; }
.retailer-card--amazon .retailer-card__cta { background: #131921; }

.retailer-card--mpp h2 { color: #635BFF; }
.retailer-card--mpp .retailer-card__cta { background: #635BFF; }

.retailer-card--teststore h2 { color: #1a1a2e; }
.retailer-card--teststore .retailer-card__cta { background: #1a1a2e; }

/* === Shared Page Layout (used by retailer pages) === */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.page-content--narrow {
    max-width: 800px;
}

/* Two-column layout: main + sidebar */
.layout-split {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.layout-split__main {
    flex: 1;
    min-width: 0;
}

.layout-split__sidebar {
    width: 340px;
    flex-shrink: 0;
}

/* === Price formatting === */
.price {
    font-weight: 700;
}

.price-large {
    font-size: 28px;
}

/* === Star ratings === */
.stars {
    display: inline-flex;
    gap: 2px;
    color: #FFA41C;
    font-size: 16px;
}

.stars .star-empty {
    color: #ccc;
}

.rating-count {
    color: #007185;
    font-size: 14px;
    margin-left: 8px;
}

/* === Quantity selector === */
.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.qty-selector button {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector button:hover {
    background: #e0e0e0;
}

.qty-selector span {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* === Confirmation page shared === */
.confirmation-check {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.confirmation-check svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* === Responsive === */
@media (max-width: 768px) {
    .retailer-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .layout-split {
        flex-direction: column;
    }

    .layout-split__sidebar {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
