:root {
    --amp-primary: #2563eb;
    --amp-primary-dark: #1d4ed8;
    --amp-dark: #111827;
    --amp-muted: #6b7280;
    --amp-light: #f8fafc;
    --amp-border: #e5e7eb;
    --amp-warning: #f59e0b;
}

body {
    background: var(--amp-light);
    color: var(--amp-dark);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    max-width: 100%;
}

.navbar-brand {
    color: var(--amp-primary) !important;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 600;
}

.btn-primary {
    background: var(--amp-primary);
    border-color: var(--amp-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--amp-primary-dark);
    border-color: var(--amp-primary-dark);
}

.hero-section {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .16), transparent 34rem),
        linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.hero-card {
    border-radius: 1.25rem;
}

.page-hero,
.product-detail-hero {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .1), transparent 28rem),
        #ffffff;
}

.section-eyebrow {
    color: var(--amp-primary);
    display: inline-block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.feature-list li {
    padding: .5rem 0;
    border-bottom: 1px solid #eef2f7;
}

.feature-list li:last-child {
    border-bottom: 0;
}

.feature-list li::before,
.check-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: .5rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: .8rem;
    font-weight: 700;
    flex: 0 0 1.25rem;
}

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    align-items: flex-start;
    display: flex;
    padding: .45rem 0;
}

.product-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, .12) !important;
}

.product-card-image {
    background: #eef2ff;
    height: 210px;
    overflow: hidden;
}

.product-card-image img {
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.product-card:hover .product-card-image img {
    transform: scale(1.04);
}

.product-card-title {
    line-height: 1.35;
    min-height: 2.7rem;
}

.rating-stars {
    color: var(--amp-warning);
    font-size: .95rem;
    letter-spacing: .04em;
}

.rating-number {
    color: var(--amp-muted);
    font-size: .85rem;
    font-weight: 700;
}

.category-tile {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 .85rem 2rem rgba(15, 23, 42, .1) !important;
}

.category-tile img {
    background: #eef2ff;
    height: 145px;
    object-fit: cover;
    width: 100%;
}

.filter-panel {
    top: 5.5rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tag-cloud .badge {
    color: var(--amp-dark) !important;
    font-size: .78rem;
    padding: .45rem .65rem;
}

.product-main-image {
    border-radius: 1.2rem;
}

.product-main-image img {
    background: #eef2ff;
    height: 460px;
    object-fit: cover;
    width: 100%;
}

.gallery-thumb img {
    height: 110px;
    object-fit: cover;
    width: 100%;
}

.buy-box {
    border-radius: 1rem;
}

.product-sidebar {
    top: 5.5rem;
}

.content-card {
    border-radius: 1rem;
}

.content-body {
    color: #374151;
    font-size: 1.03rem;
    line-height: 1.75;
}

.content-body p:last-child {
    margin-bottom: 0;
}

.content-body h2,
.content-body h3,
.content-body h4 {
    color: var(--amp-dark);
    font-weight: 800;
    margin-top: 1.5rem;
}

.feature-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    padding-left: 0;
}

.feature-grid li {
    background: #f8fafc;
    border: 1px solid var(--amp-border);
    border-radius: .85rem;
    padding: .85rem 1rem;
}

.empty-state {
    border-radius: 1rem;
}

.newsletter-section {
    background: linear-gradient(180deg, rgba(37, 99, 235, .04), rgba(37, 99, 235, .1));
}

.footer-links a {
    color: rgba(255,255,255,.55);
    display: inline-block;
    padding: .16rem 0;
    text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
    color: #ffffff !important;
}

.breadcrumb a {
    text-decoration: none;
}

@media (max-width: 991.98px) {
    .product-main-image img {
        height: 360px;
    }

    .filter-panel,
    .product-sidebar {
        position: static !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section .btn-lg {
        display: block;
        margin: .5rem 0 0 !important;
        width: 100%;
    }

    .product-card-image {
        height: 230px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Phase 5 content modules */
.page-hero { background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%); }
.content-card-img { height: 210px; object-fit: cover; }
.content-hero-img { max-height: 460px; object-fit: cover; }
.content-body { font-size: 1.05rem; line-height: 1.8; }
.content-body h2 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.content-body h3 { margin-top: 1.5rem; margin-bottom: .75rem; font-weight: 700; }
.content-body img { max-width: 100%; height: auto; border-radius: 1rem; }
.review-cta-card { top: 6rem; }
.filter-card { top: 6rem; }
.comparison-table th, .comparison-table td { vertical-align: middle; }
.comparison-admin-row { background: #fbfcff; }
.object-fit-cover { object-fit: cover; }

/* Phase 6 banner and newsletter improvements */
.ad-slot {
    text-align: center;
}
.ad-label {
    display: block;
    font-size: 0.72rem;
    color: #8a94a6;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .35rem;
}
.ad-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.ad-banner-728x90 {
    width: 728px;
    max-height: 90px;
    object-fit: cover;
}
.ad-banner-300x250 {
    width: 300px;
    max-height: 250px;
    object-fit: cover;
}
.ad-banner-336x280 {
    width: 336px;
    max-height: 280px;
    object-fit: cover;
}
.admin-thumb {
    width: 88px;
    height: 52px;
    object-fit: cover;
    border-radius: .5rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}
.newsletter-form .form-control {
    min-height: 44px;
}
