:root {
    /* ===== Color Palette - Airy & Intellectual ===== */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8F9FA;
    --color-bg-tertiary: #F1F3F5;
    
    --color-text-primary: #1A1A2E;
    --color-text-secondary: #4A5568;
    --color-text-muted: #718096;
    
    --color-border: #E2E8F0;
    --color-border-light: #EDF2F7;
    
    /* Brand Colors */
    --color-brand-sales: #4686C6;
    --color-brand-sales-dark: #35699E;
    --color-brand-sales-light: rgba(70, 134, 198, 0.08);
    --color-brand-theory: #F0965A;
    --color-brand-theory-light: rgba(240, 150, 90, 0.08);
    --color-brand-analysis: #10B981;
    --color-brand-analysis-light: rgba(16, 185, 129, 0.08);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-inner: inset 0 2px 4px 0 rgba(0,0,0,0.06);
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-jp: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-sans), var(--font-jp);
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
    min-height: 100vh;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    background: none;
}

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

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: var(--space-6);
}

.header-nav a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.header-nav a:hover {
    color: var(--color-brand-sales);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: var(--space-9) 0 var(--space-10);
    text-align: center;
    background: 
        radial-gradient(circle at 10% 20%, rgba(70, 134, 198, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(240, 150, 90, 0.05) 0%, transparent 40%);
    overflow: hidden;
}

/* Decorational blur blobs */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.hero::before {
    top: -200px;
    left: -200px;
    background: linear-gradient(135deg, #E6F0FF 0%, #F0F4F8 100%);
}

.hero::after {
    bottom: -200px;
    right: -200px;
    background: linear-gradient(135deg, #FFF5EB 0%, #FFF9F2 100%);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-5);
    color: var(--color-text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-9);
    line-height: 1.8;
}

/* ===== Gateway Cards ===== */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .gateway-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

.gateway-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    height: 240px;
    border-radius: var(--radius-xl);
    text-align: left;
    color: white;
    overflow: hidden;
    transition: transform var(--transition-bounce), box-shadow var(--transition-slow);
}

.gateway-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gateway-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 0;
}

.gateway-card:hover::before {
    opacity: 1;
}

/* Glassmorphism effect overlay */
.gateway-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.gateway-card--sales { background: linear-gradient(135deg, #4686C6 0%, #2D5A8A 100%); }
.gateway-card--sales::before { background: linear-gradient(135deg, #5A9AD8 0%, #3D6A9A 100%); }

.gateway-card--theory { background: linear-gradient(135deg, #F0965A 0%, #D4793D 100%); }
.gateway-card--theory::before { background: linear-gradient(135deg, #F5A86E 0%, #E08848 100%); }

.gateway-card--analysis { background: linear-gradient(135deg, #10B981 0%, #0D9668 100%); }
.gateway-card--analysis::before { background: linear-gradient(135deg, #34D399 0%, #10B981 100%); }

.gateway-card__content {
    position: relative;
    z-index: 2;
}

.gateway-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; 
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    margin-bottom: auto; /* Push to top */
    position: absolute;
    top: -140px; /* Adjust based on card height/padding */
    left: 0;
}

.gateway-card__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.gateway-card__desc {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.gateway-card__arrow {
    position: absolute;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: transform var(--transition-base), background var(--transition-base);
    z-index: 2;
}

.gateway-card:hover .gateway-card__arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.4);
}


/* ===== Section Styles ===== */
.section {
    margin-bottom: var(--space-9);
    position: relative;
    z-index: 10;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-border-light);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

.section-title__icon {
    width: 6px;
    height: 32px;
    border-radius: 3px;
}

.section-title--sales .section-title__icon { background: var(--color-brand-sales); }
.section-title--theory .section-title__icon { background: var(--color-brand-theory); }
.section-title--analysis .section-title__icon { background: var(--color-brand-analysis); }

.section-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.section-link:hover {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}


/* ===== Product Cards New Design ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .products-grid { grid-template-columns: 1fr; }
}

.product-card {
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(70, 134, 198, 0.3); /* Subtle blue tint */
}

.product-card__image {
    position: relative;
    aspect-ratio: 16 / 9; /* Wider aspect ratio */
    background: var(--color-bg-tertiary);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card__image img {
    transform: scale(1.08);
}

/* Floating Badge */
.product-card__badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: #FF4757; /* More vibrant red/pink for sale */
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.product-card__content {
    padding: var(--space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card__header {
    margin-bottom: var(--space-2);
}

.product-card__manufacturer {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-brand-sales);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.product-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em; /* Fixed height */
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
}

.product-card__shop-info {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.product-card__price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-card__price-original {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: -2px;
}

.product-card__price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
}


/* ===== Modal Interface ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-bg-primary);
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 85vh;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-bounce);
    position: relative;
}

.modal-overlay.is-active .modal-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    z-index: 10;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

/* Modal Layout */
.modal-image-col {
    background: var(--color-bg-tertiary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-col {
    padding: var(--space-7) var(--space-6);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Modal Content Styling */
.modal-badge-wrapper {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF4757;
    color: white;
    border-radius: var(--radius-xl);
    padding: var(--space-3) var(--space-4);
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    transform: rotate(-5deg);
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-5);
    color: var(--color-text-primary);
}

.modal-price-box {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.modal-price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.modal-price-original {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.modal-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: auto;
}

/* CTA Section inside modal */
.modal-actions {
    margin-top: var(--space-6);
}

.modal-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-4);
    background: var(--color-brand-sales);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-btn-primary:hover {
    background: var(--color-brand-sales-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
        height: 90vh;
        width: 95%;
    }
    
    .modal-image-col {
        height: 100%;
    }
    
    .modal-info-col {
        padding: var(--space-5);
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-price-current {
        font-size: 2rem;
    }
}


/* ===== Article Cards (Clean) ===== */
.articles-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

@media (max-width: 900px) {
    .articles-section { grid-template-columns: 1fr; }
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.article-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-slow);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.article-card__image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-tertiary);
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-card__image img { transform: scale(1.08); }

.article-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.article-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
    width: fit-content;
}

/* ===== Sales Navigation (New Design) ===== */
.sales-nav {
    margin-bottom: var(--space-6);
    background: var(--color-bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
}

/* 1. Status Bar */
.sales-nav__status {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
}

.sales-nav__stat-item {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

/* Link reset for stat items */
a.sales-nav__stat-item {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

a.sales-nav__stat-item:hover {
    opacity: 0.7;
}

.sales-nav__stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.sales-nav__stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-text-primary);
    font-feature-settings: "tnum";
}

.sales-nav__stat-value small {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 2px;
}

.sales-nav__stat-item--highlight .sales-nav__stat-value {
    color: #FF4757;
}

.sales-nav__last-update {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .sales-nav__status {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    .sales-nav__last-update {
        margin-left: 0;
    }
}

/* 2. Tabs */
.sales-nav__tabs {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    overflow-x: auto;
    padding-bottom: 4px; /* Scrollbar spacing */
    scrollbar-width: none;
}

.sales-nav__tabs::-webkit-scrollbar { display: none; }

.sales-nav__tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 8px 16px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.sales-nav__tab:hover, .sales-nav__tab.is-active {
    background: white;
    box-shadow: var(--shadow-sm);
    color: var(--color-text-primary);
    border-color: var(--color-border);
}

.sales-nav__tab-icon {
    font-size: 1.1em;
}

/* 3. Grid (Bento) */
.sales-nav__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

@media (max-width: 900px) {
    .sales-nav__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .sales-nav__grid { grid-template-columns: 1fr; }
}

.sales-nav__card {
    display: flex;
    align-items: flex-start; /* Align top */
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg-secondary); /* Slightly darker/grouped */
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-align: left;
}

.sales-nav__card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sales-nav__card-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.sales-nav__card-content {
    display: flex;
    flex-direction: column;
}

.sales-nav__card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}


/* Styling for generated icons */
.sales-nav__icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sales-nav__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sales-nav__icon-fallback {
    display: none;
    font-size: 1.2em;
    line-height: 1;
}

/* Modifier for grid icons */
.icon-wrapper--lg {
    width: 32px;
    height: 32px;
}

.icon-wrapper--lg .sales-nav__icon-fallback {
    font-size: 1.5rem;
}



.article-card__tag--theory { background: var(--color-brand-theory-light); color: var(--color-brand-theory); }
.article-card__tag--analysis { background: var(--color-brand-analysis-light); color: var(--color-brand-analysis); }

.article-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--space-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}


/* ===== Footer ===== */
.site-footer {
    margin-top: var(--space-10);
    padding: var(--space-8) 0;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
}

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

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-5);
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-text-primary);
}


/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.15s; }
.delay-3 { animation-delay: 0.2s; }
.delay-4 { animation-delay: 0.25s; }

/* Utilities */
.visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.hide-mobile {
    display: inline;
}
@media (max-width: 600px) {
    .hide-mobile { display: none; }
}

/* --- Product Card Shop Bar --- */
.product-card__shop-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.5); /* Slightly darker/transparent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 12px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-card__shop-bar:hover {
    background: rgba(40, 50, 70, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-card__shop-bar .shop-name {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.product-card__shop-bar .shop-price-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card__shop-bar .shop-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.product-card__shop-bar .external-icon {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
}

/* --- Modal Shop List --- */
.modal-shop-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.modal-shop-row:hover {
    background: rgba(40, 50, 70, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.modal-shop-row .shop-name {
    font-weight: 500;
    color: var(--color-text-primary);
    font-size: 0.95rem;
}

.modal-shop-row .shop-price-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-shop-row .shop-price {
    font-weight: 700;
    color: var(--color-brand-sales); /* Highlight price */
}

.modal-shop-row .shop-arrow {
    background: var(--color-brand-sales);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* --- Refined Shop Bar (Design Fix) --- */
.product-card__shop-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b; /* Solid dark color matching design */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: auto; /* Push to bottom */
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.product-card__shop-bar:hover {
    background: #283446;
    border-color: rgba(255, 255, 255, 0.3);
}

.product-card__shop-bar .shop-name {
    font-size: 0.85rem;
    color: #94a3b8; /* Muted text */
    font-weight: 500;
}

.product-card__shop-bar .shop-price {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-right: 4px;
}

.product-card__shop-bar .external-icon {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Fix Modal Shop List Design */
.modal-shop-row {
    background: #1e293b; /* Solid bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.modal-shop-row .shop-arrow {
    background: var(--color-brand-sales);
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
}

/* --- Light Theme Modal Shop List Fix --- */
.modal-content .modal-shop-row {
    background: #f8fafc; /* Light gray */
    border: 1px solid #e2e8f0;
    box-shadow: none;
}

.modal-content .modal-shop-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.modal-content .modal-shop-row .shop-name {
    color: #334155; /* Dark gray text */
    font-weight: 600;
}

.modal-content .modal-shop-row .shop-price {
    color: #0f172a; /* Almost black */
}

/* Keep arrow colored */
.modal-content .modal-shop-row .shop-arrow {
    background: var(--color-brand-sales);
    color: #fff;
}

/* --- Refined Shop Bar (Light Theme) --- */
.product-card__shop-bar {
    background: #f1f5f9; /* Light gray background */
    border: 1px solid #e2e8f0;
    box-shadow: none; /* Flat design as per reference */
    color: #334155;
    margin-top: 16px; /* Space from price */
}

.product-card__shop-bar:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.product-card__shop-bar .shop-name {
    color: #475569; /* Darker gray text */
}

.product-card__shop-bar .shop-price {
    color: #0f172a; /* Black price text */
}

.product-card__shop-bar .external-icon {
    color: #94a3b8;
}

/* Ensure footer layout pushes shop bar down properly */
.product-card__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Price alignment fix --- */
.product-card__price {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* --- Shop Bar layout fix (100% width, space-between) --- */
.product-card__shop-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
}

.product-card__shop-bar .shop-name {
    text-align: left;
    flex-shrink: 0;
}

.product-card__shop-bar .shop-price-container {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto; /* Push to right */
}

/* --- Section title 'by' text styling --- */
.section-title__by {
    font-size: 0.75em;
    font-weight: 400;
    color: var(--color-text-tertiary);
    margin-left: 8px;
}
