: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;
}

/* Artsina finishing homepage styles */
.artsina-hero {
    background:
        radial-gradient(circle at 84% 12%, rgba(37, 99, 235, .22), transparent 24rem),
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, .12), transparent 22rem),
        linear-gradient(135deg, #ffffff 0%, #eef4ff 52%, #f8fbff 100%);
    position: relative;
    overflow: hidden;
}

.artsina-hero::after {
    background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(255, 255, 255, 0));
    border: 1px solid rgba(37, 99, 235, .08);
    border-radius: 999px;
    content: "";
    height: 28rem;
    position: absolute;
    right: -11rem;
    top: -12rem;
    width: 28rem;
}

.artsina-badge {
    background: rgba(37, 99, 235, .1);
    color: var(--amp-primary);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.artsina-hero-card,
.artsina-newsletter-card,
.artsina-info-card,
.artsina-stat-card {
    border-radius: 1.25rem;
}

.artsina-hero-card {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

.artsina-stat-card {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, .12);
    box-shadow: 0 .7rem 1.5rem rgba(15, 23, 42, .06);
    padding: 1rem;
}

.artsina-stat-card strong {
    color: var(--amp-dark);
    display: block;
    font-size: 1rem;
}

.artsina-stat-card span {
    color: var(--amp-muted);
    display: block;
    font-size: .86rem;
    margin-top: .2rem;
}

.artsina-why-section {
    background: linear-gradient(180deg, #ffffff, rgba(248, 250, 252, .88));
}

.artsina-info-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.artsina-info-card:hover {
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, .1) !important;
    transform: translateY(-4px);
}

.artsina-icon {
    align-items: center;
    background: linear-gradient(135deg, var(--amp-primary), var(--amp-primary-dark));
    border-radius: 1rem;
    color: #ffffff;
    display: inline-flex;
    font-weight: 900;
    height: 2.75rem;
    justify-content: center;
    width: 2.75rem;
}

.artsina-cta-section {
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .11), transparent 24rem),
        #ffffff;
    border-bottom: 1px solid var(--amp-border);
    border-top: 1px solid var(--amp-border);
}

/* Artsina image size finishing hotfix
   Keeps product/category images visually consistent without changing uploaded files. */
.product-card-image {
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-width: 300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #eef2ff;
}

.product-card-image img {
    aspect-ratio: 1 / 1;
    height: 100% !important;
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.category-tile img {
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.product-main-image img {
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

.gallery-thumb img {
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: 160px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 575.98px) {
    .product-card-image {
        max-width: 100%;
    }
}

/* Artsina hard image constraint hotfix - 2026-07-07
   This is intentionally aggressive to prevent oversized uploaded SVG/JPG/PNG from breaking the catalogue layout. */
.products-page .product-card-image,
.product-card .product-card-image,
a.product-card-image,
.artsina-product-image-box {
    width: 300px !important;
    max-width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: #eef2ff !important;
}

.products-page .product-card-image img,
.product-card .product-card-image img,
a.product-card-image > img,
.artsina-product-image-box > img {
    width: 300px !important;
    max-width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    display: block !important;
}

.product-main-image,
.product-main-image img {
    width: 300px !important;
    max-width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    object-fit: cover !important;
}

.gallery-thumb,
.gallery-thumb img {
    width: 160px !important;
    max-width: 100% !important;
    height: 160px !important;
    max-height: 160px !important;
    object-fit: cover !important;
}

/* Artsina banner + blog image fix - 2026-07-07
   Makes blog featured images compact and ensures each banner slot has a visible, controlled size. */
.blog-hero-image-300,
article .blog-hero-image-300 {
    width: 300px !important;
    max-width: 100% !important;
    height: 300px !important;
    max-height: 300px !important;
    object-fit: cover !important;
    display: inline-block !important;
}

.ad-slot {
    clear: both;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.ad-slot-sidebar {
    max-width: 300px;
}

.ad-slot-header,
.ad-slot-footer,
.ad-slot-in-article {
    max-width: 728px;
}

.ad-banner-img {
    background: #f8fafc;
    display: inline-block !important;
    object-fit: cover !important;
}

.ad-banner-728x90 {
    width: 728px !important;
    max-width: 100% !important;
    height: 90px !important;
    max-height: 90px !important;
}

.ad-banner-300x250 {
    width: 300px !important;
    max-width: 100% !important;
    height: 250px !important;
    max-height: 250px !important;
}

.ad-banner-336x280 {
    width: 336px !important;
    max-width: 100% !important;
    height: 280px !important;
    max-height: 280px !important;
}

.ad-banner-468x60 {
    width: 468px !important;
    max-width: 100% !important;
    height: 60px !important;
    max-height: 60px !important;
}

.ad-banner-responsive {
    width: 728px !important;
    max-width: 100% !important;
    max-height: 160px !important;
    height: auto !important;
}

/* Artsina banner rotation layout - 2026-07-07
   Supports rotating banner groups: two horizontal 300x250 ads in articles and vertical sidebar stacks. */
.artsina-ad-rotator {
    width: 100%;
}

.artsina-ad-rotator-grid {
    align-items: start;
    display: grid;
    gap: 16px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.artsina-ad-single .artsina-ad-rotator-grid {
    grid-template-columns: minmax(0, auto);
}

.artsina-ad-horizontal {
    max-width: 640px !important;
}

.artsina-ad-horizontal .artsina-ad-rotator-grid {
    grid-template-columns: repeat(2, minmax(0, 300px));
    max-width: 640px;
}

.artsina-ad-vertical {
    max-width: 300px !important;
}

.artsina-ad-vertical .artsina-ad-rotator-grid {
    grid-template-columns: minmax(0, 300px);
    max-width: 300px;
}

.artsina-ad-rotator-item {
    display: none;
    line-height: 0;
    text-align: center;
}

.artsina-ad-rotator-item.is-active {
    display: block;
}

.artsina-ad-link {
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    text-decoration: none;
}

.artsina-ad-vertical .ad-banner-img,
.ad-slot-sidebar .ad-banner-img,
.artsina-ad-horizontal .ad-banner-img {
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.artsina-ad-horizontal .ad-banner-300x250,
.artsina-ad-vertical .ad-banner-300x250,
.ad-slot-sidebar .ad-banner-300x250 {
    width: 300px !important;
    max-width: 100% !important;
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover !important;
}

@media (max-width: 767.98px) {
    .artsina-ad-horizontal .artsina-ad-rotator-grid {
        grid-template-columns: minmax(0, 300px);
        max-width: 300px;
    }
}


/* Artsina banner rotation V4 - 60 second rotation and inline 468x60 article ads. */
.artsina-inline-468-slot,
.ad-slot-in-article.artsina-inline-468-slot {
    max-width: 468px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.artsina-inline-468-slot .artsina-ad-rotator-grid {
    grid-template-columns: minmax(0, 468px) !important;
    max-width: 468px !important;
}

.artsina-inline-468-slot .ad-banner-468x60 {
    width: 468px !important;
    max-width: 100% !important;
    height: 60px !important;
    max-height: 60px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
}

/* Artsina PPCNesia code banner support - 2026-07-09 */
.artsina-ad-code {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.artsina-ad-code iframe {
    display: block;
    max-width: 100%;
}

.artsina-ad-code-728x90 {
    width: 728px;
    min-height: 90px;
}

.artsina-ad-code-300x250 {
    width: 300px;
    min-height: 250px;
}

.artsina-ad-code-336x280 {
    width: 336px;
    min-height: 280px;
}

.artsina-ad-code-468x60 {
    width: 468px;
    min-height: 60px;
}

.artsina-ad-code-responsive {
    width: 100%;
    min-height: 90px;
}

.admin-thumb {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
}


/* Artsina right sidebar 160x600 PPCNesia skyscraper support - 2026-07-09 */
.artsina-right-rail-wrap {
    top: 88px;
}

.artsina-right-rail-ad,
.ad-slot-sidebar.artsina-right-rail-ad {
    max-width: 160px !important;
    width: 160px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.artsina-right-rail-ad .ad-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: center;
}

.artsina-right-rail-ad .artsina-ad-rotator-grid {
    grid-template-columns: minmax(0, 160px) !important;
    max-width: 160px !important;
    width: 160px !important;
    gap: 0 !important;
}

.ad-banner-160x600,
.artsina-right-rail-ad .ad-banner-160x600 {
    width: 160px !important;
    max-width: 160px !important;
    height: 600px !important;
    max-height: 600px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.artsina-ad-code-160x600 {
    width: 160px !important;
    min-height: 600px !important;
    max-width: 160px !important;
}

.artsina-ad-code-160x600 iframe,
.artsina-right-rail-ad iframe {
    width: 160px !important;
    height: 600px !important;
    max-width: 160px !important;
}

@media (max-width: 991.98px) {
    .artsina-right-rail-wrap,
    .artsina-right-rail-ad {
        display: none !important;
    }
}
