/* ===================================
   香典表書きメーカー - リニューアルUI
   ダークテーマ：紫系グラデーション
   =================================== */

/* ─── フォント読み込み ─── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

@font-face {
    font-family: 'KouzanBrush';
    src: url('../AoyagiKouzanFont2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gyosho';
    src: url('../Gyosho.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ─── CSS Variables ─── */
:root {
    --font-base: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
    --bg-main: linear-gradient(135deg, #0f0c29 0%, #1a1a3e 40%, #24243e 100%);
    --bg-white: rgba(255, 255, 255, 0.13);
    --bg-subtle: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-bg-hover: rgba(255, 255, 255, 0.10);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.45);
    --text-primary: #f5f0f0;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.45);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-border: rgba(255, 255, 255, 0.18);
    --input-focus: #7c6cf0;
    --accent: #7c6cf0;
    --accent-light: #a78bfa;
    --accent-bg: rgba(124, 108, 240, 0.12);
    --accent-border: rgba(124, 108, 240, 0.3);
    --accent-gradient: linear-gradient(135deg, #7c6cf0 0%, #a78bfa 100%);
    --radius: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

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

html {
    font-size: 17px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Site Container ─── */
.site {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── Header ─── */
.header {
    text-align: center;
    padding: 48px 0 36px;
    margin-bottom: 12px;
}

.header-inner {
    max-width: 700px;
    margin: 0 auto;
}

.header-title {
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.12em;
    line-height: 1.3;
    margin-bottom: 12px;
}

.header-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
}

.header-free {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-gradient);
    padding: 2px 12px;
    border-radius: 6px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.08em;
    -webkit-text-fill-color: #fff;
}

/* ─── 相互リンク ─── */
.crosslink {
    text-align: center;
    margin-bottom: 28px;
}

.crosslink-a {
    display: inline-block;
    color: var(--accent-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 24px;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-sm);
    background: var(--accent-bg);
    transition: all 0.3s ease;
}

.crosslink-a:hover {
    background: rgba(124, 108, 240, 0.18);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

/* ─── 広告枠 ─── */
.ad {
    margin: 24px 0;
    text-align: center;
}

/* ─── Main ─── */
.main {
    flex: 1;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

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

    .panel--preview {
        order: -1;
    }
}

/* ─── Panel (共通カード) ─── */
.panel {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.5s ease forwards;
}

.panel--form {
    animation-delay: 0.1s;
}

.panel-heading {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 14px;
}

.panel-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* ─── Tabs ─── */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.tab {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-base);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    background: rgba(255, 255, 255, 0.13);
    color: var(--text-primary);
}

/* ─── Tab Body ─── */
.tab-body {
    display: none;
}

.tab-body.active {
    display: block;
}

/* ─── Form Fields ─── */
.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 26px;
}

.field-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-req {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.field-opt {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 4px;
}

.field-input {
    width: 100%;
    padding: 16px 18px;
    font-family: var(--font-base);
    font-size: 1.1rem;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.3s ease;
}

.field-input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
    background: var(--bg-white);
}

.field-input::placeholder {
    color: var(--text-muted);
}

select.field-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 40px;
}

select.field-input option,
select.field-input optgroup {
    background: #1a1a3e;
    color: #f5f0f0;
}

.field-help {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ─── Radio Group (墨の色) ─── */
.field--radio {
    border: none;
    padding: 0;
}

.radio-row {
    display: flex;
    gap: 14px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 14px 20px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    flex: 1;
}

.radio-item:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--input-border);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-item input[type="radio"]:checked~.radio-text {
    color: var(--text-primary);
}

.radio-item input[type="radio"]:checked+.radio-box {
    background: var(--accent);
    border-color: var(--accent);
}

.radio-item input[type="radio"]:checked+.radio-box::after {
    opacity: 1;
}

.radio-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-hint {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ─── Preview Area ─── */
.preview-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    min-height: 420px;
}

.preview-bg {
    max-width: 100%;
    max-height: 400px;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.preview-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 380px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.preview-caption {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

/* ─── PDF出力設定 ─── */
.output-box {
    padding: 20px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.output-title {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 14px;
}

.orient-row {
    display: flex;
    gap: 12px;
}

.orient-item {
    flex: 1;
    cursor: pointer;
}

.orient-item input[type="radio"] {
    display: none;
}

.orient-box {
    display: block;
    padding: 12px;
    text-align: center;
    background: var(--bg-white);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.orient-item input[type="radio"]:checked+.orient-box {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

.orient-box:hover {
    border-color: var(--accent);
}

.output-note {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* ─── Download Button ─── */
.btn-download {
    width: 100%;
    padding: 20px 28px;
    font-family: var(--font-base);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(192, 57, 43, 0.3);
}

.btn-download:active {
    transform: translateY(0);
}

/* ─── 位置調整タブ ─── */
.adj-intro {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.adj-group {
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 16px;
}

.adj-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-primary);
}

.adj-row {
    display: grid;
    grid-template-columns: 90px 1fr 50px;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.adj-row:last-child {
    margin-bottom: 0;
}

.adj-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.adj-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--card-border);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s ease;
}

.adj-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(192, 57, 43, 0.25);
}

.adj-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.adj-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* ─── Reset Button ─── */
.btn-reset {
    width: 100%;
    padding: 14px;
    font-family: var(--font-base);
    background: var(--bg-subtle);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-reset:hover {
    background: var(--card-border);
    color: var(--text-primary);
}

/* ═══════════════════════════════════
   コンテンツセクション（共通）
   ═══════════════════════════════════ */
.content-section {
    padding: 72px 0 48px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 18px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* ─── 使い方ステップ ─── */
.steps {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
}

.step:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.step strong {
    font-size: 1.15rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.step p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── 表書きの選び方 ─── */
.manner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.manner-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
}

.manner-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.manner-heading {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--card-border);
    color: var(--text-primary);
}

.manner-heading--buddhist {
    border-bottom-color: var(--accent);
}

.manner-heading--christian {
    border-bottom-color: #3498db;
}

.manner-heading--shinto {
    border-bottom-color: #27ae60;
}

.manner-heading--ink {
    border-bottom-color: #f39c12;
}

.manner-dl {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manner-dl dt {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
}

.manner-dl dt:first-child {
    margin-top: 0;
}

.manner-dl dd {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-left: 0;
}

.manner-dl dd em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.manner-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

/* ─── FAQ ─── */
.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq[open] {
    box-shadow: var(--card-shadow);
}

.faq-q {
    padding: 22px 28px;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 50px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq[open] .faq-q::after {
    content: '−';
}

.faq-q:hover {
    color: var(--accent);
}

.faq-a {
    padding: 0 28px 22px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ─── Footer ─── */
.footer {
    text-align: center;
    padding: 48px 0 32px;
    margin-top: auto;
    border-top: 1px solid var(--card-border);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent);
}

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

/* ─── Animations ─── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Custom Scrollbar ─── */
.tab-body::-webkit-scrollbar {
    width: 5px;
}

.tab-body::-webkit-scrollbar-track {
    background: var(--bg-subtle);
    border-radius: 3px;
}

.tab-body::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 3px;
}

.tab-body::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ═══════════════════════════════════
   レスポンシブ
   ═══════════════════════════════════ */
@media (max-width: 860px) {
    .site {
        padding: 0 16px;
    }

    .header {
        padding: 36px 0 24px;
    }

    .header-title {
        font-size: 2rem;
    }

    .panel {
        padding: 24px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .steps {
        gap: 20px;
    }

    .step {
        padding: 22px;
    }

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

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .header-title {
        font-size: 1.7rem;
        letter-spacing: 0.06em;
    }

    .header-sub {
        font-size: 0.95rem;
    }

    .panel {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .field-input {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .radio-row {
        flex-direction: column;
        gap: 10px;
    }

    .adj-row {
        grid-template-columns: 80px 1fr 40px;
    }

    .step {
        flex-direction: column;
        gap: 14px;
        padding: 20px;
    }

    .step-num {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1rem;
    }

    .faq-q {
        padding: 18px 20px;
        padding-right: 44px;
        font-size: 1rem;
    }

    .faq-a {
        padding: 0 20px 18px;
        font-size: 0.92rem;
    }

    .btn-download {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 14px;
    }

    .orient-row {
        flex-direction: column;
        gap: 8px;
    }

    .content-section {
        padding: 48px 0 32px;
    }

    .section-title {
        font-size: 1.45rem;
        margin-bottom: 32px;
    }

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

/* ═══════════════════════════════════
   Amazon商品カード
   ═══════════════════════════════════ */
.amazon-section {
    padding-top: 56px;
}

.amazon-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: -32px;
    margin-bottom: 36px;
}

.amazon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.amazon-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.amazon-card:hover {
    border-color: #ff9900;
    box-shadow: 0 4px 20px rgba(255, 153, 0, 0.12);
    transform: translateY(-2px);
}

.amazon-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
}

.amazon-info {
    flex: 1;
    min-width: 0;
}

.amazon-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.amazon-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.amazon-btn {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ff9900;
    transition: color 0.2s ease;
}

.amazon-card:hover .amazon-btn {
    color: #e68a00;
}

.amazon-disclosure {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 20px;
}

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

    .amazon-card {
        padding: 18px;
    }
}