/* ===========================================
   買取ダッシュ - ユーザー向けスタイル
   スマホ最優先（375px基準）・4列グリッド
   =========================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
}

main.container {
    flex: 1;
    padding-top: 8px;
    padding-bottom: 32px;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header --- */
.site-header {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}

.site-nav {
    display: flex;
    gap: 16px;
}

.nav-cart {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-cart-icon {
    flex-shrink: 0;
}

.nav-cart:hover {
    text-decoration: none;
    opacity: 0.9;
}

.cart-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    min-width: 18px;
    text-align: center;
}

/* --- Footer --- */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 20px 0;
    font-size: 12px;
    text-align: center;
    margin-top: auto;
}

.footer-info {
    margin-bottom: 8px;
}

.footer-company {
    font-weight: 600;
    color: #fff;
}

.footer-license {
    margin-top: 4px;
}

.footer-copyright {
    color: #999;
    margin-top: 8px;
}

.footer-legal-note {
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

.footer-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 12px auto;
    max-width: 400px;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-sep {
    color: #555;
    margin: 0 8px;
}

/* --- LINE CTA Section --- */
.line-cta-section {
    margin: 24px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.line-cta-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.line-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #06c755;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    width: 100%;
    max-width: 360px;
}

.line-cta-btn:hover {
    background: #05b04c;
}

.line-icon-svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* --- Legal Page --- */
.legal-page {
    padding: 20px 0;
}

.legal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a3a6b;
}

.legal-body {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    min-height: 200px;
    line-height: 1.8;
    color: #444;
}

.legal-body h2 {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a6b;
    margin-top: 28px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-body h3 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-top: 16px;
    margin-bottom: 8px;
}

.legal-body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.legal-body li {
    margin-bottom: 4px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.legal-table th,
.legal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    width: 30%;
    font-weight: 600;
    color: #333;
    background: #f9fafb;
}

.legal-important {
    background: #fef3c7;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 20px;
    font-weight: 600;
    color: #92400e;
}

.legal-back {
    margin-top: 16px;
}

.legal-back a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.legal-back a:hover {
    text-decoration: underline;
}

/* --- Search Bar (Top) --- */
.search-bar {
    margin: 8px 0 12px;
}

.search-form-inline {
    display: flex;
    gap: 6px;
}

.search-input-full {
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    -webkit-appearance: none;
}

.search-input-full:focus {
    border-color: #2563eb;
}

.search-submit-btn {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: #1d4ed8;
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    -webkit-appearance: none;
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 24px;
}

.filter-clear {
    font-size: 12px;
    color: #dc2626;
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 4px;
}

.filter-clear:hover {
    text-decoration: underline;
}

/* --- Section Title --- */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
    background: #1a3a6b;
    padding: 10px 16px;
    border-radius: 4px;
}

.results-info {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-bottom: 12px;
}

/* --- Card Grid (4列 SP) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.card-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.card-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.card-image-wrap {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-no-image {
    color: #999;
    font-size: 10px;
}

.card-name-label {
    text-align: center;
    padding: 4px 2px 0;
    font-size: 10px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-price-label {
    text-align: center;
    padding: 2px 2px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price-lines {
    padding: 2px 2px 4px;
}

.card-price-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 2px;
    line-height: 1.4;
}

.price-type {
    font-size: 8px;
    color: #666;
    flex-shrink: 0;
}

.price-val {
    font-size: 9px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-na {
    font-size: 8px;
    color: #999;
}

/* --- Cart Toast --- */
.cart-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(40, 40, 40, 0.92);
    color: #fff;
    padding: 24px 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    z-index: 10000;
    transition: opacity 0.4s;
    white-space: nowrap;
}

.cart-toast svg {
    color: #4ade80;
}

.cart-toast.fade-out {
    opacity: 0;
}

/* --- Pagination --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 13px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.pagination .current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination .dots {
    border: none;
    color: #999;
}

/* --- No Results --- */
.no-results {
    text-align: center;
    padding: 48px 16px;
}

.no-results-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 12px;
}

.no-results-sub {
    color: #666;
    margin-bottom: 16px;
    font-size: 13px;
}

.no-results-line {
    display: inline-block;
    padding: 10px 24px;
    background: #06c755;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}

.no-results-line:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* --- Inline Cart (売却リスト) --- */
.inline-cart-section {
    margin-top: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 12px;
}

.inline-cart-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    background: #1a3a6b;
    padding: 10px 16px;
    border-radius: 4px;
}

.inline-cart-table {
    width: 100%;
}

.inline-cart-header {
    display: grid;
    grid-template-columns: 1fr 80px 70px 40px;
    gap: 4px;
    padding: 6px 0;
    border-bottom: 2px solid #eee;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.inline-cart-row {
    display: grid;
    grid-template-columns: 1fr 80px 70px 40px;
    gap: 4px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    font-size: 13px;
}

.inline-cart-row .col-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.inline-cart-row .col-name small {
    color: #888;
    font-size: 11px;
}

.inline-cart-row .col-price {
    font-weight: 700;
    color: #dc2626;
    font-size: 12px;
}

.inline-cart-row .col-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
}

.qty-btn-sm {
    width: 22px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn-sm:hover {
    background: #f3f4f6;
}

.clear-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 2px;
}

.clear-btn:hover {
    color: #ef4444;
}

.inline-cart-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

.inline-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 4px;
    font-size: 14px;
    font-weight: 700;
}

.inline-cart-total .total-price {
    color: #dc2626;
    font-size: 18px;
}

/* --- Apply Button --- */
.apply-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #dc2626;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.apply-btn:hover {
    background: #b91c1c;
}

.apply-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* --- Repeater Section --- */
.repeater-section {
    margin-bottom: 24px;
}

.repeater-toggle-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1a3a6b;
    background: #e8f0fe;
    border: 2px solid #1a3a6b;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
}

.repeater-toggle-btn:hover {
    background: #d0e2fd;
}

.repeater-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 2px;
}

.repeater-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.otp-send-btn {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.otp-send-btn:hover {
    background: #1d4ed8;
}

.otp-send-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.repeater-fallback {
    font-size: 13px;
    color: #b45309;
    background: #fef3c7;
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 10px;
}

.repeater-note {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 1;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 16px;
}

.modal-image-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.modal-image {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 4px;
}

.modal-card-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.modal-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.modal-meta span:empty {
    display: none;
}

.modal-price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.modal-price-table th,
.modal-price-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.modal-price-table th {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    width: 35%;
}

.modal-price-table td.price-value {
    font-size: 17px;
    font-weight: 700;
    color: #dc2626;
}

.modal-price-table td.price-undefined {
    font-size: 13px;
    color: #999;
}

.price-consult {
    font-size: 11px;
    color: #dc2626;
    font-weight: 600;
    margin-left: 6px;
}

.modal-condition-select {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.condition-btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #333;
    cursor: pointer;
    text-align: center;
}

.condition-btn.selected {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.condition-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.add-cart-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.add-cart-btn:hover {
    background: #1d4ed8;
}

.add-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.line-negotiate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #06c755;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.line-negotiate-btn:hover {
    background: #05b04c;
}

.modal-msg {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}

/* --- Alert Message --- */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fefce8;
    color: #854d0e;
    border: 1px solid #fde68a;
}

/* --- Filter / Search (検索結果・リピーター共通) --- */
.filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.filter-btn:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.filter-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.search-input {
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    -webkit-appearance: none;
}

.search-input:focus {
    border-color: #2563eb;
}

.search-btn {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.search-btn:hover {
    background: #1d4ed8;
}

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

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

.form-label .required {
    color: #dc2626;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: #2563eb;
}

/* --- Cart Page (後方互換) --- */
.cart-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.cart-empty {
    text-align: center;
    padding: 48px 16px;
    color: #999;
    font-size: 15px;
}

.cart-empty a {
    display: inline-block;
    margin-top: 12px;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.cart-item-image {
    width: 60px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    background: #f9f9f9;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.cart-item-condition {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.cart-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #dc2626;
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f3f4f6;
}

.qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-remove {
    margin-left: auto;
    align-self: flex-start;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.remove-btn:hover {
    color: #ef4444;
}

.cart-summary {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.cart-summary-row.total {
    border-top: 2px solid #eee;
    margin-top: 8px;
    padding-top: 12px;
}

.cart-total-label {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

.cart-total-price {
    font-size: 20px;
    font-weight: 700;
    color: #dc2626;
}

.cart-submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #16a34a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.cart-submit-btn:hover {
    background: #15803d;
    text-decoration: none;
}

/* --- Responsive: Tablet (768px+) --- */
@media (min-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .card-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }

    .card-price-label {
        font-size: 12px;
    }

    .price-type {
        font-size: 9px;
    }

    .price-val {
        font-size: 10px;
    }

    .price-na {
        font-size: 9px;
    }

    .section-title {
        font-size: 20px;
    }

    .modal-content {
        max-width: 560px;
    }

    .modal-body {
        display: flex;
        gap: 20px;
        padding: 24px;
    }

    .modal-image-wrap {
        flex-shrink: 0;
        width: 200px;
        margin-bottom: 0;
    }

    .modal-info {
        flex: 1;
    }

    .inline-cart-header {
        grid-template-columns: 1fr 100px 80px 50px;
    }

    .inline-cart-row {
        grid-template-columns: 1fr 100px 80px 50px;
    }
}

/* --- Responsive: Desktop (1024px+) --- */
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 12px;
    }

    .card-price-label {
        font-size: 13px;
        padding: 6px 4px 8px;
    }

    .price-type {
        font-size: 10px;
    }

    .price-val {
        font-size: 11px;
    }

    .price-na {
        font-size: 10px;
    }

    .modal-content {
        max-width: 640px;
    }
}
