/* ============================================================
   iPretty Wholesale - Frontend Stylesheet
   Design System: Rose/Pink primary, warm neutrals
   ============================================================ */

:root {
    --primary: #C4506A;
    --primary-light: #F8E8EC;
    --primary-dark: #A03D55;
    --accent: #E8B4B8;
    --gold: #C5A55A;
    --text: #1A1A1A;
    --text-light: #666;
    --text-muted: #999;
    --bg: #FFFFFF;
    --bg-gray: #F8F8F8;
    --bg-pink: #FFF5F7;
    --border: #E8E8E8;
    --success: #2ECC71;
    --warning: #F39C12;
    --danger: #E74C3C;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
    --transition: all 0.2s ease;
    --font: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 24px; border-radius: var(--radius); font-weight: 500; font-size: 14px; cursor: pointer; border: none; transition: var(--transition); text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 16px; opacity: 0.5; }
.btn-icon:hover { opacity: 1; }

/* --- Top Bar --- */
.top-bar { background: var(--bg-pink); text-align: center; padding: 8px; font-size: 13px; color: var(--text-light); }

/* --- Header --- */
.header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 20px; padding: 12px 20px; }
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo-text { font-size: 24px; font-weight: 700; letter-spacing: 3px; color: var(--text); }
.logo-sub { font-size: 10px; letter-spacing: 4px; color: var(--primary); }
.header-search { flex: 1; }
.search-form { display: flex; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.search-category { border: none; padding: 10px 12px; background: var(--bg-gray); font-size: 13px; border-right: 1px solid var(--border); }
.search-input { flex: 1; border: none; padding: 10px 16px; font-size: 14px; outline: none; }
.search-btn { background: var(--primary); border: none; color: #fff; padding: 10px 16px; cursor: pointer; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-btn { background: none; border: none; font-size: 13px; cursor: pointer; color: var(--text); padding: 6px 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; line-height: 1.2; }
.header-caret { display: inline-flex; align-items: center; font-size: 30px; line-height: 1; transform: translateY(1px); }
.language-btn { max-width: 145px; }
.cart-btn { position: relative; }
.cart-btn.is-empty { display: none; }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--primary); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* --- Dropdowns --- */
.header-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 150px; z-index: 200; padding: 4px 0; }
.dropdown-menu a { display: block; padding: 8px 16px; font-size: 13px; color: var(--text); }
.dropdown-menu a:hover { background: var(--bg-gray); }
.header-dropdown:hover .dropdown-menu { display: block; }

/* --- Category Nav --- */
.category-nav { border-bottom: 1px solid var(--border); }
.nav-links { display: flex; gap: 4px; overflow-x: auto; }
.nav-link { padding: 12px 16px; font-size: 14px; white-space: nowrap; color: var(--text); font-weight: 500; }
.nav-link:hover { color: var(--primary); border-bottom: 2px solid var(--primary); }
.nav-highlight { color: var(--primary) !important; font-weight: 600; }

/* --- Alerts --- */
.alert { padding: 12px 0; font-size: 14px; }
.alert-success { background: #E8F5E9; color: #2E7D32; }
.alert-error { background: #FFEBEE; color: #C62828; }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--bg-pink) 0%, #FFF0F3 100%); padding: 60px 0; }
.hero-inner { display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.hero-text p { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }
.hero-features { display: flex; gap: 20px; margin-bottom: 32px; font-size: 13px; color: var(--text-light); }
.hero-buttons { display: flex; gap: 12px; }
.hero-image { flex: 1; text-align: right; }

/* --- Sections --- */
.section { padding: 48px 0; }
.section-gray { background: var(--bg-gray); }
.section-pink { background: var(--bg-pink); }
.section-title { font-size: 24px; font-weight: 600; text-align: center; margin-bottom: 32px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.view-all { font-size: 14px; color: var(--primary); font-weight: 500; }

/* --- Product Grid --- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card-image { position: relative; padding: 16px; background: var(--bg-gray); text-align: center; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.product-card-image img { max-height: 160px; object-fit: contain; }
.product-placeholder { font-size: 60px; opacity: 0.3; }
.btn-wishlist { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.9); border: none; cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 50%; }
.badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-bestseller { background: var(--primary); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-stock { background: #E8F5E9; color: #2E7D32; }
.product-card-info { padding: 16px; }
.product-card-name { font-size: 14px; font-weight: 500; color: var(--text); display: block; margin-bottom: 8px; line-height: 1.4; }
.product-card-price { font-size: 16px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.product-card-moq { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.btn-add-quote { width: 100%; justify-content: center; border: 1.5px solid var(--primary); background: transparent; color: var(--primary); }
.btn-add-quote:hover { background: var(--primary); color: #fff; }

/* --- Category Grid --- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; text-align: center; }
.category-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); color: var(--text); }
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.category-card img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 8px; }

/* --- Brand Strip --- */
.brand-strip { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.brand-logo-card { padding: 16px 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.brand-logo-card img { height: 30px; object-fit: contain; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.brand-card { text-align: center; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); transition: var(--transition); color: var(--text); }
.brand-card:hover { border-color: var(--primary); }
.brand-new { position: relative; }
.brand-directory { display: grid; gap: 24px; }
.brand-directory-group h3 { font-size: 18px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.brand-directory-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 18px; }
.brand-directory-list a { display: block; padding: 8px 0; color: var(--text); }
.brand-directory-list a:hover { color: var(--primary); }
.brand-directory-count { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.brand-directory-list small { color: var(--text-muted); font-size: 12px; white-space: nowrap; }

/* --- Steps --- */
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.step { text-align: center; padding: 24px; max-width: 200px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step-arrow { font-size: 24px; color: var(--accent); }

/* --- Page Layout (Sidebar + Main) --- */
.page-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 32px 0; }
.sidebar { font-size: 14px; }
.filter-group { margin-bottom: 24px; }
.filter-group h4 { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.filter-group label { display: block; padding: 4px 0; cursor: pointer; }
.brand-filter-form label { display: flex; align-items: center; gap: 8px; line-height: 1.4; }
.brand-filter-form input[type="checkbox"] { flex: 0 0 auto; }
.brand-filter-form .filter-list { max-height: none; overflow-y: visible; }
.mobile-brand-filter { display: none; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.mobile-brand-filter summary { padding: 10px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.mobile-brand-filter .brand-filter-form { padding: 0 12px 12px; }
.filter-search { width: 100%; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 8px; font-size: 13px; }
.filter-list { max-height: 200px; overflow-y: auto; }
.price-range { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.price-range input { width: 80px; padding: 6px; border: 1px solid var(--border); border-radius: 4px; }
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 14px; color: var(--text-light); }
.sort-select { padding: 6px 12px; border: 1px solid var(--border); border-radius: 4px; }
.pagination-wrap { margin-top: 32px; text-align: center; }

/* --- Product Detail --- */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0 48px; }
.product-detail-image { background: var(--bg-gray); border-radius: var(--radius); padding: 24px; text-align: center; }
.product-detail-image img { max-height: 400px; object-fit: contain; }
.product-placeholder-lg { font-size: 120px; opacity: 0.2; }
.product-detail-info h1 { font-size: 24px; margin-bottom: 8px; }
.product-brand { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.product-desc { font-size: 14px; color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }
.price-block { background: var(--bg-gray); padding: 20px; border-radius: var(--radius); margin-bottom: 24px; }
.price-label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.price-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.price-unit { font-size: 14px; color: var(--text-light); }
.product-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; font-size: 13px; }
.product-specs strong { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 2px; }
.stock-in_stock { color: var(--success); }
.stock-low_stock { color: var(--warning); }
.stock-out_of_stock { color: var(--danger); }
.volume-pricing { margin-bottom: 24px; }
.volume-pricing h3 { font-size: 14px; margin-bottom: 8px; }
.table-sm { width: 100%; font-size: 13px; border-collapse: collapse; }
.table-sm th, .table-sm td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.add-to-quote-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.qty-input label { display: block; font-size: 13px; margin-bottom: 4px; }
.qty-input input { width: 100px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 16px; text-align: center; }
.trust-badges { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); }
.shipping-terms { margin: 40px 0; padding: 24px; background: var(--bg-gray); border-radius: var(--radius); }
.shipping-terms h2 { font-size: 20px; margin-bottom: 14px; }
.shipping-terms p { margin-bottom: 10px; font-size: 14px; line-height: 1.75; color: var(--text-light); }
.shipping-terms p:last-child { margin-bottom: 0; }

/* --- Product Tabs --- */
.product-tabs { margin: 40px 0; }
.tab-headers { display: flex; border-bottom: 2px solid var(--border); gap: 4px; }
.tab-btn { padding: 12px 24px; border: none; background: none; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; padding: 24px 0; font-size: 14px; line-height: 1.8; }
.tab-content.active { display: block; }

/* --- RFQ Cart --- */
.rfq-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 24px 0 48px; }
.rfq-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.rfq-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rfq-table th { text-align: left; padding: 10px; border-bottom: 2px solid var(--border); font-weight: 500; }
.rfq-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.product-cell { display: flex; align-items: center; gap: 12px; }
.thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 4px; }
.qty-sm { width: 70px; padding: 6px; border: 1px solid var(--border); border-radius: 4px; text-align: center; }
.notes-input { width: 100%; padding: 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 12px; }
.price-cell { font-weight: 600; color: var(--primary); white-space: nowrap; }
.empty-state { text-align: center; padding: 60px; color: var(--text-muted); }
.summary-card { background: var(--bg-gray); padding: 24px; border-radius: var(--radius); margin-bottom: 24px; }
.summary-card h3 { margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.summary-row.total { border-top: 2px solid var(--border); font-weight: 700; font-size: 16px; margin-top: 8px; padding-top: 12px; }
.summary-note { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.rfq-form { display: flex; flex-direction: column; gap: 12px; }
.rfq-form input, .rfq-form select, .rfq-form textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); }
.rfq-form h3 { margin-top: 12px; }

/* --- RFQ Modal --- */
body.rfq-modal-open { overflow: hidden; }
.rfq-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 24px; }
.rfq-modal.active { display: flex; }
.rfq-modal-backdrop { position: absolute; inset: 0; background: rgba(26,26,26,.48); }
.rfq-modal-dialog { position: relative; z-index: 1; width: min(980px, 100%); max-height: min(820px, calc(100vh - 48px)); overflow: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; }
.rfq-modal-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: none; background: var(--bg-gray); border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; color: var(--text-light); }
.rfq-modal-step { display: none; }
.rfq-modal-step.active { display: block; }
.rfq-modal-header { margin-bottom: 22px; }
.rfq-modal-header span { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.rfq-modal-header h2, .rfq-submitted h2 { font-size: 24px; line-height: 1.25; }
.rfq-product-inquiry { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.rfq-product-image { min-height: 220px; display: flex; align-items: center; justify-content: center; background: var(--bg-gray); border-radius: var(--radius); padding: 18px; }
.rfq-product-image img { max-height: 190px; object-fit: contain; }
.rfq-product-details h3 { margin-bottom: 16px; font-size: 18px; line-height: 1.35; }
.rfq-product-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.rfq-product-details dt { color: var(--text-muted); font-size: 12px; font-weight: 700; }
.rfq-product-details dd { margin-top: 2px; font-size: 14px; }
.rfq-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-light); }
.rfq-field input, .rfq-field select, .rfq-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); color: var(--text); background: #fff; }
.rfq-modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.rfq-contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; }
.rfq-modal-form { display: grid; gap: 12px; }
.rfq-modal-products { background: var(--bg-gray); border-radius: var(--radius); padding: 18px; }
.rfq-modal-products h3 { margin-bottom: 14px; font-size: 16px; }
.rfq-modal-item { position: relative; display: grid; grid-template-columns: 64px 1fr 28px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rfq-modal-item:last-child { border-bottom: none; }
.rfq-modal-item-image { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; overflow: hidden; }
.rfq-modal-item-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rfq-item-placeholder { color: var(--text-muted); font-size: 22px; }
.rfq-modal-item-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rfq-modal-item-info strong { font-size: 13px; line-height: 1.35; }
.rfq-modal-item-info span, .rfq-modal-item-info label { color: var(--text-light); font-size: 12px; }
.rfq-modal-item-info input { width: 88px; margin-top: 4px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; }
.rfq-remove-item { align-self: start; color: var(--danger); opacity: .75; }
.rfq-modal-summary { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.rfq-modal-summary[hidden] { display: none; }
.rfq-modal-summary div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-light); font-size: 13px; }
.rfq-modal-summary strong { display: flex; flex-direction: column; gap: 2px; color: var(--text); text-align: right; }
.rfq-modal-summary small { color: var(--text-muted); font-size: 11px; font-weight: 500; }
.rfq-mov-warning { margin-top: 12px; color: var(--danger); font-size: 12px; line-height: 1.5; }
.rfq-empty-state, .rfq-submitted { text-align: center; padding: 44px 20px; }
.rfq-empty-state h3 { margin-bottom: 8px; font-size: 20px; }
.rfq-empty-state p, .rfq-submitted p { max-width: 540px; margin: 0 auto 22px; color: var(--text-light); font-size: 14px; line-height: 1.7; }
.btn.is-loading { opacity: .65; pointer-events: none; }

/* --- Page Hero --- */
.page-hero { padding: 40px 0; }
.page-hero h1 { font-size: 32px; margin-bottom: 8px; }
.page-hero p { color: var(--text-light); }
.alpha-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 32px; }
.alpha-btn { padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text); }
.alpha-btn.active, .alpha-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* --- Customer Portal --- */
.portal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; padding: 32px 0; min-height: 600px; }
.portal-sidebar { border-right: 1px solid var(--border); padding-right: 24px; }
.portal-user { text-align: center; margin-bottom: 24px; }
.user-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 12px; }
.tier-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.tier-badge.vip { background: #FFF3E0; color: #E65100; }
.tier-badge.gold { background: #FFF8E1; color: #FF8F00; }
.tier-badge.silver { background: #F5F5F5; color: #616161; }
.portal-nav a, .portal-nav button { display: block; width: 100%; padding: 10px 16px; font: inherit; font-size: 14px; text-align: left; color: var(--text); background: transparent; border: 0; border-radius: var(--radius); margin-bottom: 2px; cursor: pointer; }
.portal-nav a.active, .portal-nav a:hover, .portal-nav button:hover { background: var(--primary-light); color: var(--primary); }
.portal-main h1 { font-size: 24px; margin-bottom: 8px; }

/* --- Stats Grid --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.stat-num { font-size: 28px; font-weight: 700; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.stat-card a { font-size: 13px; color: var(--primary); }

/* --- Dashboard Grid --- */
.dashboard-grid { display: grid; gap: 24px; margin-bottom: 24px; }
.dashboard-grid.two-col { grid-template-columns: 1fr 1fr; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h3 { font-size: 16px; }
.card-header a { font-size: 13px; color: var(--primary); }

/* --- Tables --- */
.table-compact { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-compact th { text-align: left; padding: 8px 12px; border-bottom: 2px solid var(--border); font-weight: 500; color: var(--text-muted); }
.table-compact td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.status-draft { background: #F5F5F5; color: #757575; }
.status-sent { background: #E3F2FD; color: #1565C0; }
.status-negotiating { background: #FFF3E0; color: #E65100; }
.status-confirmed { background: #E8F5E9; color: #2E7D32; }
.status-pending { background: #FFF3E0; color: #E65100; }
.status-paid { background: #E8F5E9; color: #2E7D32; }
.status-packed { background: #E3F2FD; color: #1565C0; }
.status-shipped { background: #EDE7F6; color: #4527A0; }
.status-delivered { background: #E8F5E9; color: #2E7D32; }
.status-expired { background: #FFEBEE; color: #C62828; }
.status-cancelled { background: #FFEBEE; color: #C62828; }
.status-new { background: var(--primary-light); color: var(--primary); }
.status-replied { background: #E8F5E9; color: #2E7D32; }
.status-active { background: #E8F5E9; color: #2E7D32; }
.status-inactive { background: #F5F5F5; color: #757575; }
.quote-contact-info { margin-top: 32px; }
.quote-contact-info h2 { font-size: 24px; margin-bottom: 14px; }
.quote-contact-info dl { display: grid; gap: 12px; font-size: 13px; }
.quote-contact-info dt { display: inline; font-weight: 600; color: var(--text); }
.quote-contact-info dd { display: inline; margin: 0; color: var(--text); white-space: pre-line; }
.quote-contact-info dd::after { content: ""; display: block; }

/* --- Auth --- */
.auth-container { display: flex; justify-content: center; padding: 60px 0; }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 520px; }
.auth-card h1 { margin-bottom: 24px; }
.auth-notice { border: 1px solid #d8e2f0; background: #f6f9fd; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 20px; font-size: 13px; color: var(--text); }
.auth-notice p { margin: 0; }
.auth-notice p + p { margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.contact-number-row { display: grid; grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.1fr); gap: 10px; }
.checkbox-label { font-size: 13px; cursor: pointer; margin-bottom: 16px; display: block; }
.auth-link { text-align: center; font-size: 14px; margin-top: 20px; }

/* --- Timeline --- */
.timeline-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.catalog-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }

/* --- Footer --- */
.footer-features { background: var(--bg-gray); padding: 24px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; font-size: 13px; }
.feature-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.footer-main { padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; }
.footer-col a, .footer-col p { display: block; font-size: 13px; color: var(--text-light); margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; text-align: center; font-size: 12px; color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; gap: 12px; }
    .header-actions { flex: 1 1 220px; justify-content: flex-end; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
    .header-btn { padding: 5px 6px; }
    .header-search { order: 3; flex-basis: 100%; }
    .hero-inner { flex-direction: column; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .mobile-brand-filter { display: block; }
    .product-detail { grid-template-columns: 1fr; }
    .rfq-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-layout { grid-template-columns: 1fr; }
    .contact-number-row { grid-template-columns: 1fr; }
    .features-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
}

/* ============================================================
   Category Nav — 点击展开式 mega menu（横スクロール廃止）
   既存の .nav-links / .dropdown-menu:hover を上書きする想定で末尾に追記
   ============================================================ */

/* 横スクロールをやめ、折り返し可能に */
.category-nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    overflow: visible;            /* 旧 overflow-x:auto を打ち消す */
    align-items: center;
}

.category-nav .nav-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.header-dropdown { position: relative; }

/* 旧来の hover 展開を無効化（点击式に統一） */
.header-dropdown:hover .dropdown-menu { display: none; }

/* 点击で開くパネル共通 */
.dropdown-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    padding: 20px 24px;
}
.header-dropdown.open .dropdown-panel { display: block; }

.nav-toggle .caret { font-size: 11px; transition: transform .15s; display: inline-block; }
.header-dropdown.open .nav-toggle .caret { transform: rotate(180deg); }
.header-dropdown.open .nav-toggle { color: var(--primary); }

/* --- All Products: 多列グリッド --- */
.mega-menu { width: min(960px, 92vw); }
.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 28px;
}
.mega-col-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.mega-col-title:hover { color: var(--primary); }
.mega-sublist { list-style: none; margin: 0; padding: 0; }
.mega-sublist li { margin: 0; }
.mega-sublist a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: var(--text-light, #555);
}
.mega-sublist a:hover { color: var(--primary); }

/* --- All Brands: 名前リストを複数列に --- */
.brand-menu { width: min(720px, 92vw); }
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.brand-grid a {
    display: block;
    padding: 5px 0;
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brand-grid a:hover { color: var(--primary); }
.brand-menu-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.brand-menu-footer a { font-size: 13px; font-weight: 600; color: var(--primary); }

/* ============================================================
   モバイル対応（〜768px）：パネルを全幅・1列に
   ============================================================ */
@media (max-width: 768px) {
    .category-nav .nav-links { gap: 0; }
    .header-dropdown { position: static; }       /* パネルを画面幅基準に */

    .dropdown-panel {
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 14px 16px;
    }
    .mega-menu, .brand-menu { width: 100%; }

    .mega-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .brand-grid { grid-template-columns: 1fr 1fr; max-height: 50vh; }

    .category-nav .nav-link { padding: 11px 12px; }
}

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

/* header 的语言/货币下拉也改为点击展开（与导航统一） */
.header-dropdown.open .dropdown-menu { display: block; }
.header-dropdown .header-btn { cursor: pointer; }
/* All Products 面板 - 下段の平置きカテゴリ */
.mega-flat {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.mega-flat-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    padding: 4px 0;
    white-space: nowrap;
}

.mega-flat-link:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .mega-flat {
        gap: 6px 14px;
    }
}

/* 下段平置きカテゴリ — 上段の mega-col-title と見た目を揃える */
.mega-flat {
    gap: 14px 24px;
}

.mega-flat-link {
    font-size: 14px;
    /* 上段タイトルと同じ */
    font-weight: 600;
    color: var(--text);
    /* 赤ではなく上段と同じ濃色 */
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    /* 下線 */
}

.mega-flat-link:hover {
    color: var(--primary);
}

/* 分页箭头 SVG 尺寸约束（Laravel 默认分页修复） */
.pagination-wrap svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
}

/* ============================================================
   Home v2 — editorial B2B landing sections
   ============================================================ */
.home-page {
    background: #fff;
    color: #111;
}

.home-page .container {
    max-width: 1220px;
}

.home-section {
    padding: 56px 0;
}

.home-section-tight {
    padding: 44px 0;
}

.home-section-banner {
    padding: 34px 0;
}

.home-section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 28px;
}

.home-section-title-left {
    text-align: left;
}

.home-eyebrow {
    margin: 0 0 8px;
    color: #777;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.home-split-hero {
    grid-template-columns: .95fr 1.05fr;
}

.home-hero {
    padding: 48px 0;
    background: #fbe7ec;
}

.home-copy h1,
.home-copy h2 {
    margin: 0;
    color: #111;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.home-copy h1 {
    max-width: 560px;
    font-size: 46px;
}

.home-copy h2 {
    max-width: 520px;
    font-size: 34px;
}

.home-copy p {
    max-width: 520px;
    margin: 18px 0 24px;
    color: #555;
    font-size: 15px;
    line-height: 1.75;
}

.home-copy-centered {
    text-align: center;
    justify-self: center;
}

.home-copy-centered h2,
.home-copy-centered p {
    margin-left: auto;
    margin-right: auto;
}

.home-checks,
.home-mini-list {
    list-style: none;
    margin: 22px 0 28px;
    padding: 0;
}

.home-checks li,
.home-mini-list li {
    position: relative;
    margin: 8px 0;
    padding-left: 24px;
    color: #333;
    font-size: 14px;
}

.home-checks li::before,
.home-mini-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #111;
    font-weight: 800;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 10px 22px;
    border-radius: 5px;
    border: 1px solid #111;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.home-btn-dark,
.home-btn-dark:hover {
    background: #111;
    color: #fff;
}

.home-btn-light {
    background: #fff;
    color: #111;
}

.home-btn-light:hover {
    background: #f5f5f5;
    color: #111;
}

.home-center {
    margin-top: 24px;
    text-align: center;
}

.home-visual {
    min-height: 330px;
    border-radius: 0;
    background: #f7f7f7;
    overflow: hidden;
    position: relative;
}

.home-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,.32), rgba(255,255,255,0));
}

.home-visual-hero {
    min-height: 360px;
    background:
        radial-gradient(circle at 72% 28%, rgba(255,255,255,.95) 0 9%, transparent 10%),
        radial-gradient(circle at 60% 66%, rgba(255,255,255,.9) 0 12%, transparent 13%),
        linear-gradient(135deg, #f4d2d9, #fff7f4 60%, #e7d4c9);
}

.home-product-orbit {
    position: absolute;
    inset: 34px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: end;
}

.home-product-orbit span {
    display: flex;
    min-height: 140px;
    align-items: end;
    justify-content: center;
    padding: 16px 10px;
    border-radius: 16px 16px 8px 8px;
    background: rgba(255,255,255,.78);
    color: #9b3d55;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(90,40,50,.14);
}

.home-product-orbit span:nth-child(2) {
    min-height: 220px;
    color: #111;
}

.home-product-orbit span:nth-child(3) {
    min-height: 175px;
}

.home-visual-fino {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, #fff 0 21%, transparent 22%),
        linear-gradient(180deg, #edf0f4, #fff);
}

.home-visual-fino span {
    color: #ca2852;
    font-size: 54px;
    font-weight: 900;
    letter-spacing: .02em;
    font-style: italic;
}

.home-visual-catalog,
.home-visual-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,0)),
        #f9dfe7;
}

.home-visual-catalog span,
.home-visual-trust span {
    color: #c4506a;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
}

.home-visual-trust {
    background:
        radial-gradient(circle at 72% 64%, rgba(255,255,255,.85) 0 13%, transparent 14%),
        #fde4ec;
}

.home-tile-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.home-logo-tile,
.home-category-tile,
.home-product-tile,
.home-blog-card,
.home-faq-item {
    color: #111;
}

.home-logo-tile:hover,
.home-category-tile:hover,
.home-product-tile:hover,
.home-blog-card:hover {
    color: #111;
}

.home-logo-image,
.home-category-image,
.home-product-image,
.home-blog-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
}

.home-logo-image {
    aspect-ratio: 1.38;
    border-radius: 8px;
}

.home-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
}

.home-logo-image span {
    color: #c4506a;
    font-size: 20px;
    font-weight: 900;
}

.home-logo-tile strong,
.home-category-tile strong {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
}

.home-category-image {
    aspect-ratio: 1.15;
    border-radius: 8px;
    background: linear-gradient(135deg, #eee, #fafafa);
}

.home-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-category-image span {
    color: #999;
    font-size: 36px;
    font-weight: 900;
}

.home-testimonials {
    background: #fff;
    text-align: center;
}

.home-stars,
.testimonial-stars {
    color: #cf3158;
    font-size: 13px;
    letter-spacing: .08em;
}

.home-stars span {
    color: #777;
    letter-spacing: 0;
}

.testimonial-frame {
    position: relative;
    max-width: 900px;
    margin: 24px auto 0;
    padding: 0 54px;
}

.testimonial-card {
    display: none;
    min-height: 210px;
    padding: 34px 52px;
    background: #f7f7f7;
    color: #333;
}

.testimonial-card.active {
    display: block;
}

.testimonial-quote {
    color: #777;
    font-size: 42px;
    line-height: 1;
}

.testimonial-card p {
    max-width: 620px;
    margin: 0 auto 18px;
    font-size: 14px;
    line-height: 1.75;
}

.testimonial-card strong,
.testimonial-card a {
    display: block;
    margin-top: 7px;
    font-size: 12px;
}

.testimonial-card a {
    color: #111;
    text-decoration: underline;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #111;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.testimonial-arrow:first-child {
    left: 0;
}

.testimonial-arrow:last-child {
    right: 0;
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px 18px;
}

.home-product-image {
    aspect-ratio: 1;
    background: #f8f8f8;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}

.home-product-image span {
    color: #bbb;
    font-size: 42px;
    font-weight: 900;
}

.home-product-tile strong {
    display: block;
    min-height: 38px;
    margin-top: 8px;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.home-product-tile small {
    display: block;
    margin-top: 3px;
    color: #777;
    font-size: 11px;
}

.home-wide-banner {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8dce5, #fff);
}

.home-wide-banner span {
    font-size: 34px;
    font-weight: 900;
    color: #111;
}

.home-shipping-banner,
.home-contact-cta {
    min-height: 330px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image:
        var(--home-image, none),
        linear-gradient(135deg, #d8c99f, #527c8b 48%, #26333d);
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

.home-shipping-banner > div,
.home-contact-cta > div {
    width: min(520px, 88%);
    padding: 26px 34px;
    background: #fff;
}

.home-shipping-banner h2,
.home-contact-cta h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.home-shipping-banner p,
.home-contact-cta p {
    margin: 0 0 16px;
    color: #666;
    font-size: 13px;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-blog-image {
    aspect-ratio: 1.55;
    margin-bottom: 14px;
}

.home-blog-image-1 { background: linear-gradient(135deg, #f2d5dd, #f8f0ed); }
.home-blog-image-2 { background: linear-gradient(135deg, #dfeadf, #f5e3cf); }
.home-blog-image-3 { background: linear-gradient(135deg, #f8d6df, #d8ecef); }

.home-blog-card h3 {
    margin: 0 0 8px;
    color: #111;
    font-size: 17px;
    line-height: 1.28;
}

.home-blog-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

.home-faq-wrap {
    max-width: 900px;
}

.home-faq-list {
    border-top: 1px solid #e8e8e8;
}

.home-faq-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 4px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 13px;
}

.home-faq-item b {
    color: #888;
}

.home-contact-cta {
    background:
        radial-gradient(circle at 6% 18%, rgba(255,255,255,.3) 0 8%, transparent 9%),
        radial-gradient(circle at 90% 78%, rgba(255,255,255,.25) 0 10%, transparent 11%),
        linear-gradient(135deg, #75cde0, #d7f5fb);
}

.home-subscribe {
    padding: 22px 0 8px;
    background: #fff;
}

.home-subscribe-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.home-subscribe-form {
    width: min(520px, 100%);
}

.home-subscribe-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 13px;
}

.home-subscribe-control {
    display: flex;
    border-bottom: 1px solid #999;
}

.home-subscribe-control input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 13px;
}

.home-subscribe-control button {
    width: 34px;
    border: none;
    background: transparent;
    color: #111;
    cursor: pointer;
    font-size: 18px;
}

.home-socials {
    display: flex;
    gap: 10px;
}

.home-socials a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #111;
    border-radius: 50%;
    color: #111;
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .home-copy h1 { font-size: 38px; }
    .home-copy h2 { font-size: 30px; }
    .home-tile-grid,
    .home-products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .home-section,
    .home-section-tight { padding: 38px 0; }
    .home-hero { padding: 34px 0; }
    .home-split,
    .home-split-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .home-copy h1 { font-size: 34px; }
    .home-copy h2 { font-size: 28px; }
    .home-copy-centered { text-align: left; justify-self: stretch; }
    .home-copy-centered h2,
    .home-copy-centered p { margin-left: 0; margin-right: 0; }
    .home-visual { min-height: 250px; }
    .home-tile-grid,
    .home-products-grid,
    .home-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-frame { padding: 0 32px; }
    .testimonial-card { padding: 28px 24px; }
    .home-section-title,
    .home-section-title-left { text-align: left; }
    .home-subscribe-inner {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .home-actions { flex-direction: column; align-items: stretch; }
    .home-btn { width: 100%; }
    .home-tile-grid,
    .home-products-grid,
    .home-blog-grid { grid-template-columns: 1fr; }
    .home-product-orbit { grid-template-columns: 1fr; inset: 22px; }
    .home-product-orbit span,
    .home-product-orbit span:nth-child(2),
    .home-product-orbit span:nth-child(3) { min-height: 62px; }
    .home-wide-banner span { font-size: 26px; text-align: center; }
    .home-shipping-banner > div,
    .home-contact-cta > div { padding: 22px; }
}

/* Home image fit fix: product artwork should not be cropped. */
.home-visual,
.home-wide-image {
    background-size: contain, cover !important;
    background-position: left top !important;
    background-color: #fff;
}

.home-visual-hero {
    background-color: #fbe7ec;
}

.home-visual::after,
.home-wide-image::after {
    content: "" !important;
    display: none !important;
}

.home-shipping-banner,
.home-contact-cta {
    background-size: contain, cover !important;
}

/* Home image frame fix: use real image ratio instead of fixed background crop. */
.home-image-frame {
    min-height: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

.home-image-frame::after {
    display: none !important;
    content: "" !important;
}

.home-image-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.home-visual-fino img,
.home-visual-catalog img,
.home-visual-trust img,
.home-wide-image img {
    background: #fff;
}

/* Homepage brand logo size only */
.home-brand-grid .home-logo-image img {
    padding: 0 !important;
    transform: scale(1.45);
    transform-origin: center center;
}

/* Global floating WhatsApp contact button. */
.floating-whatsapp {
    position: fixed !important;
    right: 22px !important;
    bottom: 22px !important;
    z-index: 99999 !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    display: block !important;
    background: transparent !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .38) !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.floating-whatsapp img {
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    transform: translate(-6px, -6px);
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(37, 211, 102, .45);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        right: 16px !important;
        bottom: 16px !important;
        width: 54px !important;
        height: 54px !important;
    }

    .floating-whatsapp img {
        width: 66px !important;
        height: 66px !important;
        max-width: none !important;
        max-height: none !important;
        transform: translate(-6px, -6px);
    }
}

.site-footer {
    background: #fff;
    border-top: 1px solid var(--border, #e8e8e8);
}

.footer-trust {
    padding: 38px 0 34px;
    border-bottom: 1px solid var(--border, #e8e8e8);
}

.footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    text-align: center;
}

.footer-trust-item span {
    display: block;
    font-size: 38px;
    line-height: 1;
    margin-bottom: 14px;
}

.footer-trust-item strong {
    display: block;
    margin-bottom: 10px;
    color: #111;
    font-size: 17px;
}

.footer-trust-item p {
    max-width: 210px;
    margin: 0 auto;
    color: #555;
    font-size: 14px;
    line-height: 1.55;
}

.footer-stats {
    padding: 26px 0;
    border-bottom: 1px solid var(--border, #e8e8e8);
}

.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-stats-grid div {
    text-align: center;
}

.footer-stats-grid strong {
    display: block;
    color: #147333;
    font-size: 28px;
    line-height: 1.1;
}

.footer-stats-grid span {
    display: block;
    margin-top: 6px;
    color: #444;
    font-size: 13px;
}

.site-footer .footer-main {
    padding: 42px 0 44px;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .8fr .8fr 1.1fr;
    gap: 44px;
}

.site-footer .footer-col h4 {
    margin: 0 0 18px;
    color: #111;
    font-size: 16px;
}

.site-footer .footer-col a,
.site-footer .footer-col p {
    display: block;
    margin: 0 0 12px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.footer-subscribe {
    margin-top: 30px;
    max-width: 420px;
}

.footer-subscribe label {
    display: block;
    margin-bottom: 12px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
}

.footer-subscribe div {
    display: flex;
    border: 1px solid #999;
    border-radius: 4px;
    overflow: hidden;
}

.footer-subscribe input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 14px 16px;
    outline: none;
    font-size: 14px;
}

.footer-subscribe button {
    width: 48px;
    border: none;
    background: #fff;
    color: #111;
    font-size: 22px;
    cursor: pointer;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border: 1px solid #111;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111;
    font-size: 11px;
    font-weight: 800;
}

.site-footer .footer-bottom {
    padding: 22px 0;
    border-top: 1px solid var(--border, #e8e8e8);
    color: #666;
    font-size: 12px;
}

.footer-bottom-inner {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-bottom-inner a {
    margin: 0 8px;
    color: #666;
}

@media (max-width: 900px) {
    .footer-trust-grid,
    .footer-stats-grid,
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .footer-trust-grid,
    .footer-stats-grid,
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-trust-item {
        text-align: left;
    }

    .footer-trust-item p {
        margin-left: 0;
    }

    .footer-stats-grid div {
        text-align: left;
    }
}

.site-footer {
    background: #fff !important;
    border-top: 1px solid var(--border, #e8e8e8) !important;
}

.site-footer .container {
    max-width: 1220px !important;
    margin: 0 auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

.footer-trust {
    padding: 42px 0 38px !important;
    border-bottom: 1px solid var(--border, #e8e8e8) !important;
}

.footer-trust-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 32px !important;
    text-align: center !important;
}

.footer-trust-item span {
    display: block !important;
    font-size: 42px !important;
    line-height: 1 !important;
    margin-bottom: 16px !important;
}

.footer-trust-item strong {
    display: block !important;
    margin-bottom: 10px !important;
    color: #111 !important;
    font-size: 18px !important;
    line-height: 1.25 !important;
}

.footer-trust-item p {
    max-width: 220px !important;
    margin: 0 auto !important;
    color: #555 !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.footer-stats {
    padding: 28px 0 !important;
    border-bottom: 1px solid var(--border, #e8e8e8) !important;
}

.footer-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

.footer-stats-grid div {
    text-align: center !important;
}

.footer-stats-grid strong {
    display: block !important;
    color: #147333 !important;
    font-size: 30px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
}

.footer-stats-grid span {
    display: block !important;
    margin-top: 6px !important;
    color: #444 !important;
    font-size: 14px !important;
}

.site-footer .footer-main {
    padding: 44px 0 48px !important;
}

.site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1.35fr .8fr .8fr 1.1fr !important;
    gap: 52px !important;
    align-items: start !important;
}

.site-footer .footer-col h4 {
    margin: 0 0 18px !important;
    color: #111 !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
}

.site-footer .footer-col a,
.site-footer .footer-col p {
    display: block !important;
    margin: 0 0 12px !important;
    color: #444 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.footer-subscribe {
    margin-top: 32px !important;
    max-width: 420px !important;
}

.footer-subscribe label {
    display: block !important;
    margin-bottom: 12px !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.footer-subscribe div {
    display: flex !important;
    min-height: 48px !important;
    border: 1px solid #999 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

.footer-subscribe input {
    flex: 1 !important;
    min-width: 0 !important;
    border: none !important;
    padding: 14px 16px !important;
    outline: none !important;
    font-size: 14px !important;
}

.footer-subscribe button {
    width: 52px !important;
    border: none !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 22px !important;
    cursor: pointer !important;
}

.footer-socials {
    display: flex !important;
    gap: 18px !important;
    margin-top: 66px !important;
    align-items: center !important;
}

.footer-socials a {
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #111 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    opacity: .9 !important;
}

.footer-socials a:hover {
    opacity: 1 !important;
    color: var(--primary, #C4506A) !important;
}

.footer-socials svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.footer-socials a[aria-label="Facebook"] svg {
    width: 28px !important;
    height: 28px !important;
    fill: currentColor !important;
    stroke: none !important;
}

.footer-socials a[aria-label="Facebook"] svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
    stroke: none !important;
}

.site-footer .footer-bottom {
    padding: 22px 0 !important;
    border-top: 1px solid var(--border, #e8e8e8) !important;
    color: #666 !important;
    font-size: 12px !important;
    text-align: center !important;
}

.footer-bottom-inner {
    display: flex !important;
    justify-content: center !important;
    gap: 18px !important;
    flex-wrap: wrap !important;
    text-align: center !important;
}

.footer-bottom-inner a {
    margin: 0 8px !important;
    color: #666 !important;
    text-decoration: none !important;
}

@media (max-width: 900px) {

    .footer-trust-grid,
    .footer-stats-grid,
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {

    .footer-trust-grid,
    .footer-stats-grid,
    .site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .footer-trust-item {
        text-align: left !important;
    }

    .footer-trust-item p {
        margin-left: 0 !important;
    }

    .footer-stats-grid div {
        text-align: left !important;
    }
}

/* ============================================================
   Header Search — フォーカスサジェスト + 検索結果ページ
   front.css の末尾に追記。既存ルールは変更しない。
   配色は既存トークン（--primary 等）を使用。
   ============================================================ */

/* --- 検索フォーム本体（左の category select 廃止に伴う調整） --- */
.header-search { position: relative; }
.search-form { align-items: center; transition: border-color .15s ease, box-shadow .15s ease; }
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.search-clear {
    border: none; background: none; cursor: pointer; font-size: 20px; line-height: 1;
    color: var(--text-muted); padding: 0 6px; align-self: center;
}
.search-clear:hover { color: var(--text); }

/* --- サジェストパネル --- */
.search-suggest {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 300;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 20px 22px;
    max-height: min(72vh, 640px); overflow-y: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest-title {
    font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    color: var(--primary); margin-bottom: 12px;
}
.search-suggest-group { margin-bottom: 18px; }
.search-suggest-group:last-child { margin-bottom: 0; }

/* チップ（Popular Categories / Top Brands） */
.search-suggest-top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 18px; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chip {
    display: inline-block; border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 14px; font-size: 13px; color: var(--text); background: #fff; line-height: 1.3;
    transition: var(--transition);
}
.search-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Featured Products（3列グリッド） */
.search-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.search-product-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; transition: background .15s ease; }
.search-product-row:hover { background: var(--bg-gray); }
.search-product-thumb {
    flex: 0 0 46px; width: 46px; height: 46px; border-radius: 8px; background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.search-product-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.search-product-noimg { font-size: 20px; opacity: .6; }
.search-product-meta { min-width: 0; display: flex; flex-direction: column; }
.search-product-name { font-size: 13px; color: var(--text); line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-product-brand { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* --- 入力中レイアウト（Suggestions 左 / Products 右） --- */
.suggest-cols { display: grid; grid-template-columns: minmax(170px, 230px) 1fr; gap: 28px; }
.suggest-list { display: flex; flex-direction: column; }
.suggest-link {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 11px 4px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text);
}
.suggest-link:last-child { border-bottom: none; }
.suggest-link:hover { color: var(--primary); }
.suggest-link-chev { color: var(--text-muted); font-size: 18px; }

.suggest-products { display: flex; flex-direction: column; }
.suggest-prow { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 10px; transition: background .15s ease; }
.suggest-prow:hover { background: var(--bg-gray); }
.suggest-prow-thumb {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 8px; background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.suggest-prow-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.suggest-prow-meta { flex: 1 1 auto; min-width: 0; }
.suggest-prow-name { display: block; font-size: 14px; color: var(--text); line-height: 1.35; }
.suggest-prow-brand { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.suggest-prow-price { flex: 0 0 auto; text-align: right; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.suggest-prow-price small { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); }

.suggest-empty { font-size: 13px; color: var(--text-muted); padding: 10px 4px; }
.search-loading { font-size: 13px; color: var(--text-muted); padding: 8px 4px; }

/* 底部 "Search for q" */
.search-suggest-all {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 14px; padding: 14px; border-top: 1px solid var(--border);
    font-size: 15px; font-weight: 600; color: var(--primary);
}
.search-suggest-all:hover { color: var(--primary-dark); }
.search-suggest-all .sa-arrow { transition: transform .15s ease; }
.search-suggest-all:hover .sa-arrow { transform: translateX(3px); }

/* --- 検索結果ランディングページ --- */
.search-hero { text-align: center; padding: 28px 0 18px; }
.search-hero .breadcrumb { text-align: left; }
.search-hero h1 { font-size: 28px; margin: 6px 0 8px; }
.search-hero .search-term { color: var(--primary); }
.search-hero > p { color: var(--text-light); font-size: 14px; margin-bottom: 14px; }
.search-form-inline { max-width: 640px; margin: 0 auto; }
.search-section { margin: 18px 0 28px; }
.search-section-title { font-size: 16px; margin: 0; }
.search-section .list-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search-result-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }

/* --- モバイル適配 --- */
@media (max-width: 768px) {
    /* header-search はモバイルで全幅（既存 .header-search { order:3; flex-basis:100% }） */
    .search-suggest { padding: 16px; border-radius: 12px; max-height: 75vh; }
    .search-suggest-top { grid-template-columns: 1fr; gap: 14px; }
    .search-product-grid { grid-template-columns: 1fr; }
    .suggest-cols { grid-template-columns: 1fr; gap: 16px; }
    .suggest-col-left { order: 2; }
    .suggest-col-right { order: 1; }
    .search-hero h1 { font-size: 22px; }
}

.suggest-prow-price-line { display: block; font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.search-product-price-line { display: block; font-size: 13px; font-weight: 600; color: var(--primary); margin-top: 2px; }
