/**
 * KASETIDEA Market - Main Stylesheet
 * @package Kasetidea_Market
 */

:root {
    --primary: #16A34A;
    --primary-hover: #15803D;
    --primary-light: #22C55E;
    --primary-bg: #F0FDF4;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-gray: #F3F4F6;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --danger: #EF4444;
    --warning: #F59E0B;
    --blue: #3B82F6;
    --line-green: #06C755;
    --radius: 12px;
    --radius-sm: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Sarabun', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-dark); background: var(--bg-gray); }
h1, h2, h3, h4, h5, h6 { font-family: 'Prompt', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif; font-weight: 600; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Twemoji - consistent emoji display */
img.ksm-emoji {
    display: inline-block;
    height: 1.2em;
    width: 1.2em;
    margin: 0 0.05em 0 0.1em;
    vertical-align: -0.15em;
}
.ksm-dashboard-nav-item img.ksm-emoji,
.ksm-btn img.ksm-emoji,
.ksm-stat-icon img.ksm-emoji,
.ksm-card-header img.ksm-emoji,
h1 img.ksm-emoji,
h2 img.ksm-emoji,
h3 img.ksm-emoji {
    height: 1em;
    width: 1em;
    vertical-align: -0.1em;
}

.ksm-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ksm-main { min-height: calc(100vh - 200px); }
.ksm-page-layout { max-width: 1200px; margin: 0 auto; padding: 0 20px 48px; display: grid; grid-template-columns: 260px 1fr; gap: 24px; }

/* Header */
.ksm-header { background: var(--bg-white); padding: 12px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.ksm-header-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.ksm-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ksm-logo-icon { font-size: 28px; }
.ksm-logo-text { font-family: 'Prompt', sans-serif; font-weight: 700; font-size: 18px; color: var(--primary); }
.ksm-logo-text span { color: var(--text-dark); font-weight: 400; }
.ksm-search-box { flex: 1; max-width: 500px; display: flex; background: var(--bg-gray); border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; transition: all 0.3s; }
.ksm-search-box:focus-within { border-color: var(--primary); background: var(--bg-white); }
.ksm-search-input { flex: 1; padding: 10px 16px; border: none; background: transparent; outline: none; }
.ksm-search-btn { padding: 10px 16px; background: var(--primary); border: none; cursor: pointer; font-size: 16px; color: white; }
.ksm-header-nav { display: flex; align-items: center; gap: 8px; }

/* Mobile Post Button */
.ksm-mobile-post-btn {
    display: none;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobile Search Bar */
.ksm-mobile-search-bar {
    display: none;
    background: var(--bg-white);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}

.ksm-mobile-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-gray);
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
}

.ksm-mobile-search-icon {
    font-size: 16px;
    opacity: 0.6;
}

.ksm-mobile-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: var(--text-dark);
}

.ksm-mobile-search-input::placeholder {
    color: var(--text-gray);
}
.ksm-nav-link { padding: 8px 16px; color: var(--text-gray); font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); transition: all 0.3s; }
.ksm-nav-link:hover { color: var(--primary); background: var(--primary-bg); }
.ksm-mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; background: none; border: none; cursor: pointer; }
.ksm-mobile-menu-toggle span { width: 24px; height: 2px; background: var(--text-dark); }

/* Categories Bar */
.ksm-categories-bar { background: var(--bg-white); border-bottom: 1px solid var(--border); overflow-x: auto; }
.ksm-categories-bar::-webkit-scrollbar { display: none; }
.ksm-categories-bar-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; gap: 4px; }
body.home .ksm-categories-bar { display: none; }
.ksm-cat-link { padding: 12px 16px; color: var(--text-gray); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.3s; }
.ksm-cat-link:hover, .ksm-cat-link.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Buttons */
.ksm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s; border: none; }
.ksm-btn-primary { background: var(--primary); color: white; }
.ksm-btn-primary:hover { background: var(--primary-hover); }
.ksm-btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.ksm-btn-outline:hover { background: var(--primary); color: white; }
.ksm-btn-white { background: white; color: var(--primary); }
.ksm-btn-gray { background: var(--bg-gray); color: var(--text-dark); }
.ksm-btn-line { background: #06C755; color: white; }
.ksm-btn-tel { background: var(--blue); color: white; }
.ksm-btn-danger { background: var(--danger); color: white; }
.ksm-btn-facebook { background: #1877F2; color: white; }
.ksm-btn-shopee { background: #EE4D2D; color: white; }
.ksm-btn-lazada { background: #0F146D; color: white; }
.ksm-btn-tiktok { background: #000000; color: white; }
.ksm-btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: rgba(255,255,255,0.2); border-radius: 4px; font-weight: bold; font-size: 14px; margin-right: 8px; flex-shrink: 0; }
.ksm-btn-sm .ksm-btn-icon { width: 18px; height: 18px; font-size: 12px; margin-right: 6px; }
.ksm-btn svg { vertical-align: middle; margin-right: 4px; flex-shrink: 0; }
.ksm-btn-lg { padding: 14px 28px; font-size: 16px; }
.ksm-btn-sm { padding: 6px 12px; font-size: 13px; }
.ksm-btn-block { width: 100%; }
.ksm-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Hero */
.ksm-hero { background: linear-gradient(135deg, var(--primary), var(--primary-hover)); padding: 48px 0; color: white; }
.ksm-hero-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.ksm-hero-text h1 { font-size: 36px; margin-bottom: 12px; }
.ksm-hero-text p { font-size: 18px; opacity: 0.9; margin-bottom: 24px; }
.ksm-hero-stats { display: flex; gap: 32px; }
.ksm-hero-stat { text-align: center; }
.ksm-hero-stat-number { font-family: 'Prompt', sans-serif; font-size: 32px; font-weight: 700; }
.ksm-hero-stat-label { font-size: 14px; opacity: 0.9; }

/* Hero Subtitle */
.ksm-hero-subtitle { font-size: 0.85em; font-weight: 400; }

/* Intro Section */
.ksm-section-intro { padding: 30px 0; background: #fff; }
.ksm-intro-text { max-width: 900px; margin: 0 auto; text-align: center; }
.ksm-intro-text p { font-size: 16px; line-height: 1.8; color: #555; margin: 0; }
.ksm-intro-text strong { color: #2e7d32; }

/* Sections */
.ksm-section { padding: 32px 0; }
.ksm-section-white { background: var(--bg-white); }
.ksm-section-cta { background: var(--primary-bg); }
.ksm-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ksm-section-title { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.ksm-section-link { color: var(--primary); font-size: 14px; font-weight: 500; }
.ksm-results-count { font-weight: 400; font-size: 14px; color: var(--text-gray); }

/* Categories Grid */
.ksm-categories-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ksm-category-card { background: var(--bg-white); border-radius: var(--radius); padding: 16px 8px; text-align: center; transition: all 0.3s; box-shadow: var(--shadow); }
.ksm-category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ksm-category-icon { font-size: 32px; margin-bottom: 8px; }
.ksm-category-name { font-size: 13px; font-weight: 500; }
.ksm-category-count { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* Popular Products Grid */
.ksm-popular-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 16px; 
    overflow: hidden;
}
.ksm-popular-card { 
    background: var(--bg-white); 
    border-radius: var(--radius); 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    text-decoration: none; 
    color: inherit; 
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: all 0.3s ease;
}
.ksm-popular-card:hover { 
    transform: translateY(-4px); 
    box-shadow: var(--shadow-lg); 
}
.ksm-popular-image { 
    position: relative; 
    padding-top: 100%; 
    overflow: hidden; 
    background: var(--bg-gray);
    flex-shrink: 0;
}
.ksm-popular-image img { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease;
}
.ksm-popular-card:hover .ksm-popular-image img {
    transform: scale(1.05);
}
.ksm-popular-image .ksm-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: var(--bg-gray);
}
.ksm-rank-badge { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    width: 26px; 
    height: 26px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 11px; 
    font-weight: 700; 
    color: #fff; 
    z-index: 2; 
}
.ksm-rank-1 { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4); }
.ksm-rank-2 { background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%); box-shadow: 0 2px 8px rgba(107, 114, 128, 0.4); }
.ksm-rank-3 { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); box-shadow: 0 2px 8px rgba(180, 83, 9, 0.4); }
.ksm-rank-default { background: var(--primary); }
.ksm-views-badge { 
    position: absolute; 
    bottom: 8px; 
    right: 8px; 
    background: rgba(0,0,0,0.7); 
    color: #fff; 
    padding: 3px 8px; 
    border-radius: 6px; 
    font-size: 11px; 
}
.ksm-hot-badge { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); 
    color: #fff; 
    padding: 3px 8px; 
    border-radius: 6px; 
    font-size: 10px; 
    font-weight: 600; 
}
.ksm-popular-info { 
    padding: 12px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ksm-popular-vendor { 
    font-size: 11px; 
    color: var(--primary); 
    margin-bottom: 4px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.ksm-popular-title { 
    font-size: 13px; 
    font-weight: 500; 
    color: var(--text-dark); 
    margin-bottom: 8px; 
    line-height: 1.4; 
    min-height: 2.8em;
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    word-break: break-word; 
    overflow-wrap: break-word; 
}
.ksm-popular-price { 
    font-size: 15px; 
    font-weight: 700; 
    color: var(--primary); 
    white-space: nowrap;
    margin-top: auto;
}
.ksm-popular-meta { 
    font-size: 11px; 
    color: var(--text-light); 
    margin-top: 4px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* Products Grid */
.ksm-products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ksm-products-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ksm-product-card { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; box-shadow: var(--shadow); }
.ksm-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ksm-product-image { position: relative; height: 160px; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ksm-product-image > img:not(.ksm-emoji) { width: 100%; height: 100%; object-fit: cover; }
.ksm-product-image-placeholder { font-size: 56px; }
.ksm-product-badge { position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; background: var(--danger); color: white; }
.ksm-badge-new { background: var(--primary); }
.ksm-product-save { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
.ksm-product-save .heart-icon { width: 14px; height: 14px; color: #999; transition: all 0.2s ease; }
.ksm-product-save:hover .heart-icon { color: #e74c3c; }
.ksm-product-save.saved .heart-icon { fill: #e74c3c; color: #e74c3c; }
.ksm-product-images-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.6); color: white; padding: 4px 8px; border-radius: 4px; font-size: 11px; }
.ksm-product-info { padding: 12px; overflow: hidden; }
.ksm-product-vendor { display: block; font-size: 11px; color: var(--primary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ksm-product-name { display: block; font-size: 13px; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 36px; word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; }
.ksm-product-price { font-family: 'Prompt', sans-serif; font-size: 18px; font-weight: 600; color: var(--primary); }
.ksm-product-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-light); margin-top: 6px; flex-wrap: wrap; overflow: hidden; }

/* Vendors Grid */
.ksm-vendors-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ksm-vendor-card { background: var(--bg-white); border-radius: var(--radius); padding: 20px; text-align: center; transition: all 0.3s; box-shadow: var(--shadow); }
.ksm-vendor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ksm-vendor-avatar { width: 64px; height: 64px; background: var(--primary-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 12px; overflow: hidden; }
.ksm-vendor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ksm-vendor-name { font-weight: 600; margin-bottom: 4px; }
.ksm-vendor-location { font-size: 13px; color: var(--text-gray); margin-bottom: 8px; }
.ksm-vendor-stats { font-size: 12px; color: var(--text-light); }
.ksm-vendor-stats span { color: var(--warning); }

/* Features */
.ksm-features { background: var(--primary-bg); padding: 32px 0; }
.ksm-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ksm-feature-card { text-align: center; }
.ksm-feature-icon { font-size: 36px; margin-bottom: 12px; }
.ksm-feature-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ksm-feature-desc { font-size: 13px; color: var(--text-gray); }

/* Sidebar */
.ksm-sidebar { display: flex; flex-direction: column; gap: 16px; }
.ksm-sidebar-widget { background: var(--bg-white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.ksm-sidebar-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.ksm-filter-item { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; }
.ksm-filter-item:hover { background: var(--bg-gray); }
.ksm-filter-item.active { color: var(--primary); background: var(--primary-bg); }
.ksm-filter-item input { display: none; }
.ksm-filter-radio { width: 18px; height: 18px; border: 2px solid #d1d5db; border-radius: 50%; flex-shrink: 0; position: relative; transition: all 0.2s; }
.ksm-filter-item input:checked ~ .ksm-filter-radio { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px white; }
.ksm-filter-count { margin-left: auto; font-size: 12px; color: var(--text-light); }

/* Product Detail */
.ksm-product-detail { max-width: 1200px; margin: 0 auto; padding: 0 20px 48px; }
.ksm-product-detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; }
.ksm-product-gallery { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ksm-product-main-image { height: 400px; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; }
.ksm-product-main-image img { width: 100%; height: 100%; object-fit: contain; }
.ksm-product-image-placeholder-lg { font-size: 150px; }
.ksm-product-thumbnails { padding: 12px; display: flex; gap: 8px; overflow-x: auto; }
.ksm-product-thumb { width: 72px; height: 72px; background: var(--bg-gray); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.ksm-product-thumb.active { border-color: var(--primary); }
.ksm-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ksm-product-description { background: var(--bg-white); border-radius: var(--radius); padding: 24px; margin-top: 16px; box-shadow: var(--shadow); }
.ksm-product-description h2 { font-size: 16px; margin-bottom: 16px; }
.ksm-product-content { color: var(--text-gray); line-height: 1.8; }
.ksm-product-sidebar { display: flex; flex-direction: column; gap: 16px; }
.ksm-product-price-box { background: var(--bg-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.ksm-product-detail-price { font-family: 'Prompt', sans-serif; font-size: 32px; font-weight: 700; color: var(--primary); }
.ksm-product-detail-title { font-size: 18px; font-weight: 500; margin: 12px 0; line-height: 1.4; }
.ksm-product-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; font-size: 13px; color: var(--text-gray); }
.ksm-contact-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ksm-vendor-box { background: var(--bg-white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ksm-vendor-box-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ksm-vendor-box-avatar { width: 56px; height: 56px; background: var(--primary-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; flex-shrink: 0; }
.ksm-vendor-box-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ksm-vendor-box-name { font-weight: 600; font-size: 16px; }
.ksm-vendor-box-meta { font-size: 13px; color: var(--text-gray); }
.ksm-vendor-box-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 12px; text-align: center; }
.ksm-vendor-box-stat-value { font-weight: 600; font-size: 16px; }
.ksm-vendor-box-stat-label { font-size: 11px; color: var(--text-gray); }
.ksm-info-box { background: #FEF3C7; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: #92400E; display: flex; align-items: flex-start; gap: 8px; }

/* Share Buttons */
.ksm-share-box { background: var(--bg-white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-top: 16px; }
.ksm-share-box .ksm-section-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.ksm-share-buttons { display: flex; gap: 10px; }
.ksm-share-btn { width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.ksm-share-btn:hover { transform: scale(1.1); }
.ksm-share-facebook { background: #1877F2; color: white; }
.ksm-share-line { background: #00B900; color: white; }
.ksm-share-twitter { background: #000; color: white; }
.ksm-share-copy { background: var(--bg-gray); color: var(--text-dark); }
.ksm-share-copy:hover { background: var(--primary); color: white; }

/* Breadcrumb */
.ksm-breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-gray); }
.ksm-breadcrumb a { color: var(--text-gray); }
.ksm-breadcrumb a:hover { color: var(--primary); }
.ksm-breadcrumb span { margin: 0 8px; }

/* Forms */
.ksm-post-form-page { max-width: 800px; margin: 0 auto; padding: 24px 20px 48px; }
.ksm-post-form { background: var(--bg-white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.ksm-post-form h1 { font-size: 24px; margin-bottom: 8px; text-align: center; }
.ksm-post-form-subtitle { text-align: center; color: var(--text-gray); margin-bottom: 32px; }
.ksm-form-group { margin-bottom: 20px; }
.ksm-form-label { display: flex; align-items: center; gap: 6px; font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.ksm-form-label svg { flex-shrink: 0; }
.ksm-form-label .required { color: var(--danger); }
.ksm-form-hint { font-size: 12px; color: var(--text-gray); margin-top: 6px; display: block; }
.ksm-form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; transition: all 0.3s; }

/* Password Toggle */
.ksm-password-wrapper { position: relative; }
.ksm-password-wrapper .ksm-form-input { padding-right: 50px; }
.ksm-password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px; opacity: 0.6; transition: opacity 0.2s; }
.ksm-password-toggle:hover { opacity: 1; }
.ksm-form-input:focus { border-color: var(--primary); outline: none; }
.ksm-form-input.ksm-input-error { border-color: #ef4444; background-color: #fef2f2; }
.ksm-form-input.ksm-input-error:focus { border-color: #ef4444; }
.ksm-form-textarea { min-height: 150px; resize: vertical; }
.ksm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ksm-form-terms { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-gray); }
.ksm-form-terms a { color: var(--primary); }
.ksm-image-upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 32px; text-align: center; cursor: pointer; transition: all 0.3s; }
.ksm-image-upload-area:hover { border-color: var(--primary); background: var(--primary-bg); }
.ksm-image-upload-icon { font-size: 48px; margin-bottom: 12px; }
.ksm-image-upload-text { color: var(--text-gray); font-size: 14px; }
.ksm-image-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ksm-preview-item { position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; }
.ksm-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.ksm-preview-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: var(--danger); color: white; border: none; border-radius: 50%; cursor: pointer; font-size: 12px; }
.ksm-contact-section { background: var(--bg-gray); border-radius: var(--radius-sm); padding: 20px; }
.ksm-contact-section-title { font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.ksm-contact-option { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ksm-contact-option:last-child { margin-bottom: 0; }
.ksm-contact-option-label { min-width: 110px; font-size: 14px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ksm-contact-option-input { flex: 1; }

/* Platform Links (Shopee, Lazada, TikTok) */
.ksm-platform-links { display: flex; flex-direction: column; gap: 16px; }
.ksm-platform-item { display: flex; align-items: center; gap: 16px; }
.ksm-platform-label { display: flex; align-items: center; gap: 10px; min-width: 130px; flex-shrink: 0; font-size: 14px; font-weight: 500; color: var(--text-dark); }
.ksm-platform-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #fff; border-radius: 6px; font-size: 14px; font-weight: bold; flex-shrink: 0; }
.ksm-platform-item .ksm-form-input { flex: 1; }
@media (max-width: 600px) {
    .ksm-platform-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ksm-platform-label { min-width: auto; }
    .ksm-platform-item .ksm-form-input { width: 100%; }
}

/* Modal */
.ksm-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.ksm-modal-overlay.active { display: flex; }
.ksm-modal { background: var(--bg-white); border-radius: var(--radius); padding: 32px; max-width: 400px; width: 100%; text-align: center; position: relative; }
.ksm-modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: var(--bg-gray); border: none; border-radius: 50%; cursor: pointer; font-size: 20px; }
.ksm-modal-icon { font-size: 48px; margin-bottom: 16px; }
.ksm-modal-title { font-size: 20px; margin-bottom: 8px; }
.ksm-modal-subtitle { color: var(--text-gray); margin-bottom: 24px; }
.ksm-modal-buttons { display: flex; flex-direction: column; gap: 12px; }
.ksm-modal-note { margin-top: 16px; padding: 12px; background: var(--bg-gray); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-gray); }

/* Footer */
.ksm-footer { background: #111827; color: #9CA3AF; padding: 48px 0 24px; margin-top: 48px; }
.ksm-footer-content { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ksm-footer-brand .ksm-logo-text { color: white; }
.ksm-footer-brand .ksm-logo-text span { color: #9CA3AF; }
.ksm-footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.8; }
.ksm-footer-contact { margin-top: 16px; }
.ksm-footer-contact a { display: inline-block; color: #9CA3AF; font-size: 14px; transition: color 0.2s; }
.ksm-footer-contact a:hover { color: var(--primary-light); }
.ksm-footer-title { font-size: 14px; font-weight: 600; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.ksm-footer-links ul { list-style: none; padding: 0; margin: 0; }
.ksm-footer-links ul li { margin-bottom: 10px; }
.ksm-footer-links a { color: #9CA3AF; font-size: 14px; transition: color 0.2s; }
.ksm-footer-links a:hover { color: var(--primary-light); }
.ksm-footer-bottom { max-width: 1200px; margin: 32px auto 0; padding: 24px 20px 0; border-top: 1px solid #374151; text-align: center; font-size: 13px; }

/* Toast */
.ksm-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text-dark); color: white; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 14px; z-index: 1001; opacity: 0; transition: all 0.3s; }
.ksm-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.ksm-toast.success { background: var(--primary); }
.ksm-toast.error { background: var(--danger); }

/* Loading */
.ksm-loading { text-align: center; padding: 40px; }
.ksm-spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* No Results */
.ksm-no-results { text-align: center; padding: 48px 20px; grid-column: 1 / -1; }
.ksm-no-results-icon { font-size: 64px; margin-bottom: 16px; }
.ksm-no-results h3 { font-size: 20px; margin-bottom: 8px; }
.ksm-no-results p { color: var(--text-gray); margin-bottom: 24px; }

/* Load More */
.ksm-load-more-wrapper { text-align: center; margin-top: 32px; }
.ksm-sort-select { padding: 8px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; background: var(--bg-white); cursor: pointer; }

/* Mobile Menu */
/* Mobile Menu - Card Style */
.ksm-mobile-menu { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    z-index: 200; 
    transform: translateX(100%); 
    transition: transform 0.3s ease; 
    overflow-y: auto; 
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    padding-bottom: 100px;
}
.ksm-mobile-menu.active { transform: translateX(0); }
.ksm-mobile-menu-content { 
    max-width: 420px; 
    margin: 0 auto; 
    padding-bottom: 80px;
}
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* MM Header */
.ksm-mm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ksm-mm-title {
    font-family: 'Prompt', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}
.ksm-mm-close {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ksm-mm-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

/* User Card - Logged In */
.ksm-mm-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 2px solid #86efac;
    text-decoration: none;
    transition: all 0.2s;
}
.ksm-mm-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}
.ksm-mm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.ksm-mm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ksm-mm-user-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 2px;
}
.ksm-mm-user-info p {
    font-size: 12px;
    color: #16a34a;
}

/* Guest Card */
.ksm-mm-guest-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 2px solid #cbd5e1;
}
.ksm-mm-guest-icon {
    width: 48px;
    height: 48px;
    background: #9ca3af;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}
.ksm-mm-guest-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 2px;
}
.ksm-mm-guest-info p {
    font-size: 12px;
    color: #6b7280;
}

/* Search Box */
.ksm-mm-search {
    display: flex;
    background: white;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}
.ksm-mm-search input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 15px;
    background: transparent;
    outline: none;
    min-width: 0;
}
.ksm-mm-search button {
    padding: 10px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.ksm-mm-search button:hover {
    background: var(--primary-dark);
}

/* Quick Actions */
.ksm-mm-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.ksm-mm-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    background: white;
    border-radius: 14px;
    text-decoration: none;
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
    transition: all 0.2s;
}
.ksm-mm-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary);
}
.ksm-mm-action-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.ksm-mm-action span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}
.ksm-mm-action.highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #fbbf24;
}
.ksm-mm-action.highlight .ksm-mm-action-icon {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* Categories */
.ksm-mm-categories {
    background: white;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #f3f4f6;
}
.ksm-mm-section-title {
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
}
.ksm-mm-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.ksm-mm-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    background: #f8fafc;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    transition: all 0.2s;
}
.ksm-mm-cat-item:hover {
    background: #f0fdf4;
    color: var(--primary);
}
.ksm-mm-cat-icon {
    font-size: 17px;
}

/* Post Button */
.ksm-mm-post-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    transition: all 0.2s;
    margin-bottom: 10px;
}
.ksm-mm-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    color: white;
}

/* Logout Link */
.ksm-mm-logout {
    display: block;
    text-align: center;
    padding: 12px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}
.ksm-mm-logout:hover {
    color: #ef4444;
}

/* Auth Buttons (Guest) */
.ksm-mm-auth-buttons {
    display: flex;
    gap: 10px;
}
.ksm-mm-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.ksm-mm-auth-btn.primary {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
.ksm-mm-auth-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    color: white;
}
.ksm-mm-auth-btn.secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.ksm-mm-auth-btn.secondary:hover {
    background: #f0fdf4;
}

/* Auth Pages */
.ksm-auth-page { min-height: calc(100vh - 300px); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.ksm-auth-box { background: var(--bg-white); border-radius: var(--radius); padding: 40px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.ksm-auth-header { text-align: center; margin-bottom: 32px; }
.ksm-auth-header .ksm-logo { justify-content: center; margin-bottom: 24px; }
.ksm-auth-header h1 { font-size: 24px; margin-bottom: 8px; }
.ksm-auth-header p { color: var(--text-gray); font-size: 14px; }
.ksm-auth-form .ksm-form-group { margin-bottom: 20px; }
.ksm-form-row-inline { display: flex; justify-content: space-between; align-items: center; }
.ksm-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.ksm-checkbox-label input { width: 16px; height: 16px; }
.ksm-forgot-link { color: var(--primary); font-size: 14px; }
.ksm-form-error { background: #FEE2E2; color: #DC2626; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.ksm-form-success { background: #D1FAE5; color: #059669; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.ksm-auth-footer { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.ksm-auth-footer p { color: var(--text-gray); font-size: 14px; }
.ksm-auth-footer a { color: var(--primary); font-weight: 600; }

/* Contact Section Box */
.ksm-contact-section-box { background: var(--bg-white); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.ksm-contact-buttons { display: flex; flex-direction: column; gap: 10px; }
.ksm-platform-buttons { display: flex; flex-direction: column; gap: 10px; }
.ksm-social-buttons { display: flex; gap: 12px; justify-content: center; }
.ksm-social-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s; background: var(--bg-gray); color: var(--text-gray); }
.ksm-social-btn:hover { transform: scale(1.1); color: white; }
.ksm-social-btn svg { width: 24px; height: 24px; }
.ksm-social-facebook:hover { background: #1877F2; }
.ksm-social-tiktok:hover { background: #000000; }
.ksm-social-youtube:hover { background: #FF0000; }
.ksm-social-shopee:hover { background: #EE4D2D; }
.ksm-social-lazada:hover { background: #0F146D; }

/* Location Info */
.ksm-location-info { font-size: 14px; color: #555; }
.ksm-location-province { font-size: 15px; margin-bottom: 5px; }
.ksm-location-address { line-height: 1.5; }
.ksm-btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.ksm-btn-outline:hover { background: var(--primary); color: #fff; }

/* Map Actions */
.ksm-map-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ksm-selected-location { font-size: 13px; }
.ksm-shop-map { z-index: 1; }

/* AI Helper */
.ksm-ai-helper { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ksm-btn-ai { 
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
    color: #fff; 
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
.ksm-btn-ai:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.ksm-btn-ai:disabled { 
    opacity: 0.7; 
    cursor: not-allowed;
    transform: none;
}
.ksm-ai-hint { font-size: 12px; color: #888; }

/* Product Specs */
.ksm-product-specs { 
    margin-top: 15px; 
    padding: 12px; 
    background: #f8f9fa; 
    border-radius: 8px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.ksm-spec-item { display: flex; align-items: center; gap: 5px; }
.ksm-spec-label { font-size: 14px; color: #666; }
.ksm-spec-value { font-size: 14px; font-weight: 600; color: #333; }
.ksm-no-contact { color: var(--text-gray); font-size: 14px; text-align: center; padding: 12px; }

/* Dashboard */
.ksm-dashboard { padding: 24px 0 48px; }
.ksm-dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 16px; background: var(--bg-white); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.ksm-dashboard-welcome h1 { font-size: 24px; margin-bottom: 4px; }
.ksm-dashboard-welcome p { color: var(--text-gray); }
.ksm-dashboard-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.ksm-btn-logout { color: var(--text-gray); border-color: var(--border); }
.ksm-btn-logout:hover { color: var(--danger); border-color: var(--danger); background: #FEF2F2; }

/* Stats Cards */
.ksm-dashboard-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.ksm-stat-card { background: var(--bg-white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; transition: transform 0.2s, box-shadow 0.2s; }
.ksm-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ksm-stat-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.ksm-stat-info { flex: 1; }
.ksm-stat-value { font-size: 24px; font-weight: 700; color: var(--text-dark); line-height: 1.2; }
.ksm-stat-label { font-size: 13px; color: var(--text-gray); }

/* Dashboard Nav */
.ksm-dashboard-nav { 
    display: flex; 
    flex-wrap: wrap;
    gap: 12px; 
    margin-bottom: 24px; 
}
.ksm-dashboard-nav-item { 
    padding: 12px 20px; 
    background: var(--bg-white); 
    border-radius: 50px;
    font-size: 14px; 
    font-weight: 500; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.3s; 
    text-align: center;
    white-space: nowrap;
    color: var(--text-gray);
}
.ksm-dashboard-nav-item:hover { 
    background: var(--primary-bg); 
    color: var(--primary); 
    border-color: var(--primary-bg);
}
.ksm-dashboard-nav-item.active { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}
.ksm-dashboard-content { background: var(--bg-white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* My Products List */
.ksm-my-products-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ksm-my-product-item { background: var(--bg-gray); border-radius: var(--radius); padding: 16px; display: flex; gap: 16px; transition: all 0.2s; }
.ksm-my-product-item:hover { background: var(--primary-bg); }
.ksm-my-product-image { width: 100px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: #ddd; }
.ksm-my-product-image img { width: 100%; height: 100%; object-fit: cover; }
.ksm-my-product-image .ksm-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; background: var(--bg-white); }
.ksm-my-product-info { flex: 1; min-width: 0; }
.ksm-my-product-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.ksm-my-product-title a { color: var(--text-dark); }
.ksm-my-product-title a:hover { color: var(--primary); }
.ksm-my-product-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.ksm-my-product-price { font-weight: 700; color: var(--primary); }
.ksm-my-product-status { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.ksm-status-publish { background: #dcfce7; color: #166534; }
.ksm-status-pending { background: #fef3c7; color: #92400e; }
.ksm-status-draft { background: #e5e7eb; color: #374151; }
.ksm-my-product-views, .ksm-my-product-date { color: var(--text-gray); }
.ksm-my-product-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; flex-shrink: 0; width: 130px; }
.ksm-my-product-actions .ksm-btn { padding: 6px 10px; font-size: 12px; text-align: center; white-space: nowrap; }
.ksm-btn-danger { background: var(--danger); color: white; border: none; }
.ksm-btn-danger:hover { background: #dc2626; }

.ksm-profile-form-wrapper { max-width: 700px; }
.ksm-profile-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.ksm-profile-section:last-of-type { border-bottom: none; }
.ksm-profile-section-title { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ksm-profile-section-title svg { flex-shrink: 0; }
.ksm-sidebar-section-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text-dark); display: flex; align-items: center; gap: 6px; }
.ksm-sidebar-section-title svg { flex-shrink: 0; }
.ksm-avatar-upload { display: flex; align-items: center; gap: 20px; }
.ksm-avatar-preview { width: 100px; height: 100px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ksm-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.ksm-avatar-placeholder { font-size: 48px; }

/* Vendor Profile - New Design */
.ksm-vendor-cover {
    height: 180px;
    background: linear-gradient(135deg, #16A34A 0%, #22c55e 50%, #86efac 100%);
    position: relative;
}
.ksm-vendor-cover-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
}

.ksm-vendor-profile-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding-bottom: 24px;
}

.ksm-vendor-profile-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 24px;
}

.ksm-vendor-profile-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.ksm-vendor-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.ksm-vendor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    overflow: hidden;
    border: 4px solid var(--bg-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ksm-vendor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ksm-vendor-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid var(--bg-white);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ksm-vendor-badge.ksm-badge-verified {
    background: var(--primary);
    color: white;
}

.ksm-vendor-badge.ksm-badge-new {
    background: #f59e0b;
    color: white;
    font-size: 16px;
}

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

.ksm-vendor-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: 'Prompt', sans-serif;
}

.ksm-vendor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.ksm-vendor-verified {
    margin-top: 8px;
}

.ksm-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.ksm-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Mini Badge for Product Card & Single Product */
.ksm-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

.ksm-mini-badge.ksm-mini-verified {
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.ksm-mini-badge.ksm-mini-new {
    background: #f59e0b;
    color: white;
    font-size: 10px;
}

/* Status Badge for Single Product */
.ksm-vendor-box-status {
    margin: 4px 0;
}

.ksm-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.ksm-status-badge.ksm-status-verified {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: var(--primary);
}

.ksm-status-badge.ksm-status-new {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
}

/* Report Button */
.ksm-vendor-report-link {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.ksm-report-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.ksm-report-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Modal */
.ksm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.ksm-modal.active {
    display: flex;
}

.ksm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ksm-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ksm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ksm-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.ksm-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-gray);
    padding: 4px 8px;
}

.ksm-modal-close:hover {
    color: var(--text-dark);
}

.ksm-modal-body {
    padding: 20px;
}

.ksm-report-shop-name {
    background: var(--bg-gray);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.ksm-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

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

.ksm-radio-item input[type="radio"] {
    accent-color: var(--primary);
}

.ksm-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ksm-form-actions .ksm-btn {
    flex: 1;
}

.ksm-btn-danger {
    background: #dc2626;
    color: white;
}

.ksm-btn-danger:hover {
    background: #b91c1c;
}

/* Report Modal - Enhanced */
.ksm-report-modal {
    max-width: 440px;
}

.ksm-report-modal form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.ksm-report-shop-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #bbf7d0;
}

.ksm-report-shop-icon {
    font-size: 24px;
}

.ksm-report-shop-text {
    font-weight: 600;
    font-size: 16px;
    color: #166534;
}

.ksm-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.ksm-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.ksm-radio-card:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.ksm-radio-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.ksm-radio-card input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.ksm-radio-card-content {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.ksm-form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.ksm-form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.ksm-form-textarea::placeholder {
    color: #9ca3af;
}

.ksm-report-modal .ksm-form-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.ksm-report-modal .ksm-form-group {
    margin-bottom: 20px;
}

.ksm-report-modal .ksm-form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.ksm-report-modal .required {
    color: #dc2626;
}

.ksm-report-modal .ksm-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Report Modal - Mobile Bottom Sheet */
@media (max-width: 768px) {
    /* Bottom sheet style for modal */
    .ksm-modal.ksm-modal-bottom-sheet {
        align-items: flex-end;
        justify-content: stretch;
    }
    
    .ksm-modal-bottom-sheet .ksm-report-modal {
        position: relative;
        width: 100%;
        max-width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    
    .ksm-modal-bottom-sheet .ksm-modal-header {
        padding: 12px 20px 14px;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }
    
    .ksm-modal-bottom-sheet .ksm-modal-header::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
        margin-bottom: 10px;
    }
    
    .ksm-modal-bottom-sheet .ksm-modal-header h3 {
        font-size: 15px;
        text-align: center;
        order: 1;
    }
    
    .ksm-modal-bottom-sheet .ksm-modal-close {
        position: absolute;
        right: 12px;
        top: 12px;
        font-size: 16px;
        padding: 4px;
    }
    
    .ksm-modal-bottom-sheet .ksm-modal-body {
        padding: 14px 16px;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    
    .ksm-modal-bottom-sheet .ksm-report-shop-badge {
        padding: 10px 12px;
        margin-bottom: 12px;
        gap: 8px;
        border-radius: 8px;
    }
    
    .ksm-modal-bottom-sheet .ksm-report-shop-icon {
        font-size: 18px;
    }
    
    .ksm-modal-bottom-sheet .ksm-report-shop-text {
        font-size: 13px;
    }
    
    .ksm-modal-bottom-sheet .ksm-radio-group {
        gap: 5px;
    }
    
    .ksm-modal-bottom-sheet .ksm-radio-card {
        padding: 9px 10px;
        gap: 8px;
        border-radius: 6px;
        border-width: 1px;
    }
    
    .ksm-modal-bottom-sheet .ksm-radio-card input[type="radio"] {
        width: 16px;
        height: 16px;
    }
    
    .ksm-modal-bottom-sheet .ksm-radio-card-content {
        font-size: 12px;
    }
    
    .ksm-modal-bottom-sheet .ksm-form-group {
        margin-bottom: 12px;
    }
    
    .ksm-modal-bottom-sheet .ksm-form-label {
        font-size: 12px;
        text-align: center;
        margin-bottom: 6px;
    }
    
    .ksm-modal-bottom-sheet .ksm-form-textarea {
        padding: 10px;
        min-height: 50px;
        font-size: 12px;
        border-radius: 8px;
        border-width: 1px;
    }
    
    .ksm-modal-bottom-sheet .ksm-form-hint {
        font-size: 10px;
        text-align: center;
        margin-top: 4px;
    }
    
    .ksm-modal-bottom-sheet .ksm-form-actions {
        margin: 0;
        padding: 12px 16px;
        padding-bottom: calc(70px + env(safe-area-inset-bottom, 0));
        border-top: 1px solid var(--border);
        background: var(--bg-white);
        flex-shrink: 0;
        gap: 10px;
    }
    
    .ksm-modal-bottom-sheet .ksm-form-actions .ksm-btn {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* Shipping Options */
.ksm-shipping-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ksm-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.ksm-checkbox-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.ksm-checkbox-item input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.ksm-checkbox-item input[type="checkbox"]:checked + .ksm-checkbox-icon + .ksm-checkbox-label {
    color: var(--primary);
    font-weight: 600;
}

.ksm-checkbox-icon {
    font-size: 18px;
}

.ksm-checkbox-label {
    font-size: 14px;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .ksm-shipping-options {
        grid-template-columns: 1fr;
    }
}

/* Shipping Info in Single Product */
.ksm-shipping-info {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: 16px;
}

.ksm-shipping-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 15px;
}

.ksm-shipping-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ksm-shipping-tag {
    display: inline-block;
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
}

.ksm-shipping-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed #bbf7d0;
}

.ksm-shipping-cost-label {
    color: var(--text-gray);
    font-size: 14px;
}

.ksm-shipping-cost-value {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
}

/* Vendor Box Desktop/Mobile Toggle */
.ksm-vendor-box-mobile {
    display: none;
}

.ksm-vendor-box-desktop {
    display: block;
}

@media (max-width: 768px) {
    .ksm-vendor-box-mobile {
        display: block;
        margin-top: 20px;
    }
    
    .ksm-vendor-box-desktop {
        display: none;
    }
}

.ksm-vendor-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
}

.ksm-vendor-stat-box {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
}

.ksm-vendor-stat-box .ksm-stat-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.ksm-vendor-stat-box .ksm-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.ksm-vendor-stat-box .ksm-stat-text {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

.ksm-vendor-contact-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ksm-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.ksm-contact-btn.ksm-btn-line {
    background: #06C755;
    color: white;
}
.ksm-contact-btn.ksm-btn-line:hover {
    background: #05b34c;
    transform: translateY(-2px);
}

.ksm-contact-btn.ksm-btn-messenger {
    background: #0084FF;
    color: white;
}
.ksm-contact-btn.ksm-btn-messenger:hover {
    background: #0073e6;
    transform: translateY(-2px);
}

.ksm-contact-btn.ksm-btn-phone {
    background: var(--primary);
    color: white;
}
.ksm-contact-btn.ksm-btn-phone:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.ksm-no-contact-text {
    color: var(--text-gray);
    font-size: 14px;
}
.ksm-vendor-about { background: var(--bg-white); border-radius: var(--radius); padding: 24px; margin: 24px 0; box-shadow: var(--shadow); }
.ksm-vendor-about h3 { font-size: 16px; margin-bottom: 12px; }
.ksm-vendor-about p { color: var(--text-gray); line-height: 1.8; }
.ksm-vendor-products { padding: 24px 0 48px; }
.ksm-vendor-channels { display: flex; gap: 24px; margin: 24px 0; flex-wrap: wrap; }
.ksm-vendor-channel-section { background: var(--bg-white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); flex: 1; min-width: 250px; }
.ksm-vendor-channel-section h4 { font-size: 14px; margin-bottom: 12px; }
.ksm-channel-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.ksm-empty-state { text-align: center; padding: 80px 20px; }
.ksm-empty-icon { font-size: 64px; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 1024px) {
    .ksm-products-grid, .ksm-products-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .ksm-categories-grid { grid-template-columns: repeat(5, 1fr); }
    .ksm-popular-grid { grid-template-columns: repeat(3, 1fr); }
    .ksm-vendors-grid { grid-template-columns: repeat(2, 1fr); }
    .ksm-page-layout { grid-template-columns: 1fr; }
    .ksm-sidebar { display: none; }
    .ksm-product-detail-grid { grid-template-columns: 1fr; }
    .ksm-footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .ksm-footer-brand { grid-column: span 2; text-align: center; }
    .ksm-footer-brand .ksm-logo { justify-content: center; }
    .ksm-dashboard-stats { grid-template-columns: repeat(2, 1fr); }
    .ksm-my-products-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ksm-header-nav { display: none; }
    .ksm-mobile-menu-toggle { display: flex; }
    .ksm-mobile-post-btn { display: block; }
    .ksm-mobile-search-bar { display: block; }
    .ksm-products-grid, .ksm-products-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ksm-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ksm-popular-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ksm-popular-info { padding: 10px; }
    .ksm-popular-title { font-size: 12px; min-height: 2.8em; }
    .ksm-popular-price { font-size: 13px; }
    .ksm-popular-vendor { font-size: 10px; }
    .ksm-popular-meta { font-size: 10px; }
    .ksm-rank-badge { width: 22px; height: 22px; font-size: 10px; }
    .ksm-hero-content { flex-direction: column; text-align: center; }
    .ksm-hero-text h1 { font-size: 28px; }
    .ksm-features-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* My Products - Compact Mobile */
    .ksm-my-products-list { gap: 12px; }
    .ksm-my-product-item { 
        padding: 12px; 
        gap: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .ksm-my-product-image { 
        width: 80px; 
        height: 80px; 
        flex-shrink: 0;
    }
    .ksm-my-product-info { 
        flex: 1; 
        min-width: calc(100% - 92px);
    }
    .ksm-my-product-title { 
        font-size: 14px; 
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: auto;
    }
    .ksm-my-product-meta { 
        font-size: 12px; 
        gap: 6px;
    }
    .ksm-my-product-actions { 
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }
    .ksm-my-product-actions .ksm-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .ksm-form-row { grid-template-columns: 1fr; }
    .ksm-footer-content { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .ksm-footer-brand { grid-column: span 1; }
    .ksm-footer-brand .ksm-logo { justify-content: center; }
    .ksm-footer-links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
    .ksm-footer-links ul li { margin-bottom: 0; }
    
    /* เพิ่ม padding ให้ไม่ชิดจอ */
    .ksm-container { padding: 0 16px; }
    .ksm-page-layout { padding: 0 16px 48px; }
    
    /* Dashboard Stats - 2x2 Grid */
    .ksm-dashboard-stats { 
        grid-template-columns: 1fr 1fr; 
        gap: 12px;
    }
    .ksm-stat-card {
        padding: 14px;
        gap: 12px;
    }
    .ksm-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .ksm-stat-value {
        font-size: 22px;
    }
    .ksm-stat-label {
        font-size: 12px;
    }
    
    .ksm-dashboard-nav { 
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 16px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .ksm-dashboard-nav::-webkit-scrollbar {
        display: none;
    }
    .ksm-dashboard-nav-item {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 50px;
    }
    
    .ksm-dashboard-actions {
        gap: 12px;
    }
    
    /* Vendor Profile Mobile */
    .ksm-vendor-cover { height: 120px; }
    .ksm-vendor-profile-top { flex-direction: column; align-items: center; text-align: center; }
    .ksm-vendor-avatar { width: 80px; height: 80px; font-size: 40px; }
    .ksm-vendor-name { font-size: 20px; }
    .ksm-vendor-meta { justify-content: center; }
    .ksm-vendor-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ksm-contact-btn { flex: 1 1 calc(50% - 6px); min-width: auto; padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
    .ksm-search-box { display: none; }
    
    /* เพิ่ม padding ให้ไม่ชิดจอ */
    .ksm-container { padding: 0 16px; }
    .ksm-page-layout { padding: 0 16px 48px; }
    .ksm-header-content { padding: 0 12px; }
    .ksm-categories-bar-content { padding: 0 12px; }
    
    .ksm-products-grid, .ksm-products-grid-4 { gap: 12px; }
    .ksm-product-image { height: 140px; }
    .ksm-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .ksm-vendors-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .ksm-vendor-card { padding: 14px 10px; }
    .ksm-vendor-avatar { width: 56px; height: 56px; font-size: 28px; margin-bottom: 8px; }
    .ksm-vendor-name { font-size: 13px; }
    .ksm-vendor-location { font-size: 11px; }
    .ksm-vendor-stats { font-size: 11px; }
    .ksm-product-main-image { height: 300px; }
    
    /* Dashboard Header - Mobile */
    .ksm-dashboard-header {
        padding: 16px;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .ksm-dashboard-welcome h1 {
        font-size: 18px;
    }
    .ksm-dashboard-welcome p {
        font-size: 13px;
    }
    .ksm-dashboard-actions {
        justify-content: center;
        gap: 12px;
        width: 100%;
    }
    .ksm-dashboard-actions .ksm-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Dashboard Stats - Compact 2x2 Grid */
    .ksm-dashboard-stats { 
        grid-template-columns: 1fr 1fr; 
        gap: 10px;
        margin-bottom: 16px;
    }
    .ksm-stat-card {
        padding: 12px;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    .ksm-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 10px;
    }
    .ksm-stat-value {
        font-size: 20px;
    }
    .ksm-stat-label {
        font-size: 11px;
    }
    
    /* Dashboard Nav - Horizontal Scroll */
    .ksm-dashboard-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        margin: 0 -16px 16px;
        padding: 0 16px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ksm-dashboard-nav::-webkit-scrollbar {
        display: none;
    }
    .ksm-dashboard-nav-item {
        flex: 0 0 auto;
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 50px;
    }
    
    /* Dashboard Actions - เพิ่ม gap */
    .ksm-dashboard-actions {
        gap: 10px;
        width: 100%;
    }
    .ksm-dashboard-actions .ksm-btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
        min-width: 0;
    }
}

/* Mobile Bottom Navigation */
.ksm-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 6px 0 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

@media screen and (max-width: 768px) {
    .ksm-bottom-nav {
        display: flex !important;
    }
    .ksm-main {
        padding-bottom: 80px !important;
    }
    .ksm-footer {
        padding-bottom: 90px !important;
    }
}

.ksm-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 10px;
    gap: 2px;
    transition: all 0.2s;
    padding: 4px 0;
}

.ksm-bottom-nav-item:hover,
.ksm-bottom-nav-item.active {
    color: var(--primary);
}

.ksm-bottom-nav-item.active .ksm-bottom-nav-icon {
    transform: scale(1.1);
}

.ksm-bottom-nav-icon {
    font-size: 24px;
    line-height: 1;
}

.ksm-bottom-nav-label {
    font-weight: 500;
    white-space: nowrap;
}

/* Center button (ลงขาย) - เด่นแบบ TikTok */
.ksm-bottom-nav-center {
    position: relative;
    flex: 1.2;
}

.ksm-bottom-nav-plus {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin-top: -28px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid var(--bg-white);
}

.ksm-bottom-nav-center:hover .ksm-bottom-nav-plus,
.ksm-bottom-nav-center:active .ksm-bottom-nav-plus {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}

.ksm-bottom-nav-center .ksm-bottom-nav-label {
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}

/* Badge สำหรับ notification */
.ksm-bottom-nav-badge {
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(12px);
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ========================================
   Product Detail V2 (Lazada Style)
   ======================================== */

/* Desktop Layout - ลด gap, ฝั่งซ้ายกว้างขึ้น */
.ksm-product-detail-v2 {
    max-width: 1200px;
    margin: 0 auto;
}

.ksm-product-detail-v2 .ksm-desktop-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 16px;
    padding: 20px;
}

.ksm-product-detail-v2 .ksm-product-left-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ksm-product-detail-v2 .ksm-product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mobile Layout - Hidden on Desktop */
.ksm-product-mobile-layout {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
}

/* Gallery V2 */
.ksm-product-detail-v2 .ksm-product-gallery {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow);
}

/* รูปภาพหลัก - อัตราส่วน 1:1 */
.ksm-product-detail-v2 .ksm-product-main-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-gray);
}

.ksm-product-detail-v2 .ksm-product-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop ถ้าสูงเกิน */
}

.ksm-product-detail-v2 .ksm-product-image-placeholder-lg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    background: var(--bg-gray);
}

/* Thumbnails - อัตราส่วน 1:1 */
.ksm-product-detail-v2 .ksm-product-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ksm-product-detail-v2 .ksm-product-thumb,
.ksm-product-detail-v2 .ksm-product-thumb-mobile {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-gray);
}

.ksm-product-detail-v2 .ksm-product-thumb:hover,
.ksm-product-detail-v2 .ksm-product-thumb-mobile:hover {
    border-color: var(--primary-light);
}

.ksm-product-detail-v2 .ksm-product-thumb.active,
.ksm-product-detail-v2 .ksm-product-thumb-mobile.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.ksm-product-detail-v2 .ksm-product-thumb img,
.ksm-product-detail-v2 .ksm-product-thumb-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop ถ้าไม่เป็น 1:1 */
}

/* Vendor Box V2 */
.ksm-vendor-box-v2 {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

.ksm-vendor-box-v2 .ksm-vendor-box-header {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.ksm-vendor-box-v2 .ksm-vendor-box-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
    flex-shrink: 0;
}

.ksm-vendor-box-v2 .ksm-vendor-box-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ksm-vendor-box-v2 .ksm-vendor-box-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
}

.ksm-vendor-box-v2 .ksm-vendor-box-status {
    margin-top: 2px;
}

.ksm-vendor-box-v2 .ksm-vendor-box-meta {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.ksm-vendor-box-v2 .ksm-vendor-box-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.ksm-vendor-box-v2 .ksm-vendor-box-stat-value {
    font-weight: 700;
    color: var(--text-dark);
}

.ksm-vendor-box-v2 .ksm-vendor-box-stat-label {
    font-size: 11px;
    color: var(--text-gray);
}

.ksm-vendor-box-v2 .ksm-vendor-box-actions {
    display: flex;
    gap: 10px;
}

.ksm-vendor-box-v2 .ksm-vendor-box-actions .ksm-btn {
    flex: 1;
}

/* Tabs */
.ksm-product-tabs {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ksm-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}

.ksm-tab-btn {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.ksm-tab-btn:hover {
    background: var(--bg-gray);
}

.ksm-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.ksm-tabs-content {
    padding: 20px;
}

.ksm-tab-pane {
    display: none;
}

.ksm-tab-pane.active {
    display: block;
}

/* Specs Table */
.ksm-specs-table {
    width: 100%;
    font-size: 14px;
}

.ksm-specs-table tr {
    border-bottom: 1px solid var(--border-light);
}

.ksm-specs-table td {
    padding: 10px 0;
}

.ksm-specs-table td:first-child {
    color: var(--text-gray);
    width: 40%;
}

.ksm-specs-table td:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* Price Box V2 */
.ksm-product-detail-v2 .ksm-product-price-box {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* Info Row */
.ksm-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
}

.ksm-info-label {
    color: var(--text-gray);
}

.ksm-info-value {
    color: var(--text-dark);
    font-weight: 500;
}

.ksm-text-primary {
    color: var(--primary) !important;
}

/* Sections in Price Box */
.ksm-shipping-section,
.ksm-platform-section,
.ksm-contact-section,
.ksm-location-section {
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
}

.ksm-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Shipping Tags */
.ksm-shipping-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ksm-shipping-tag {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Platform Buttons */
.ksm-platform-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Contact Buttons */
.ksm-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ksm-contact-buttons-mobile {
    display: flex;
    gap: 8px;
}

.ksm-contact-buttons-mobile .ksm-btn {
    flex: 1;
}

/* Mobile Section Box */
.ksm-mobile-section-box {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
}

/* Shipping Cost Mobile */
.ksm-shipping-cost-mobile {
    margin-top: 10px;
    font-size: 14px;
}

.ksm-shipping-cost-mobile strong {
    color: var(--primary);
}

/* Products Grid Small */
.ksm-products-grid-sm {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

/* No Products */
.ksm-no-products {
    text-align: center;
    color: var(--text-gray);
    padding: 20px;
}

/* ==================== RESPONSIVE ==================== */

@media screen and (max-width: 1100px) {
    .ksm-product-detail-v2 .ksm-desktop-layout {
        grid-template-columns: 1fr 380px;
        gap: 16px;
    }
}

@media screen and (max-width: 950px) {
    .ksm-product-detail-v2 .ksm-desktop-layout {
        grid-template-columns: 1fr 350px;
        gap: 12px;
    }
}

@media screen and (max-width: 768px) {
    /* Hide Desktop, Show Mobile */
    .ksm-product-detail-v2 .ksm-desktop-layout {
        display: none !important;
    }
    
    .ksm-product-mobile-layout {
        display: flex !important;
    }
    
    /* Mobile Gallery */
    .ksm-product-mobile-layout .ksm-product-gallery {
        background: var(--bg-white);
        border-radius: 12px;
        padding: 12px;
        box-shadow: var(--shadow);
    }
    
    .ksm-product-mobile-layout .ksm-product-main-image {
        position: relative;
        width: 100%;
        padding-bottom: 100%; /* 1:1 */
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 10px;
        background: var(--bg-gray);
    }
    
    .ksm-product-mobile-layout .ksm-product-main-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Mobile Thumbnail Size */
    .ksm-product-detail-v2 .ksm-product-thumb-mobile {
        width: 60px;
        height: 60px;
    }
    
    /* Mobile Price */
    .ksm-mobile-section-box .ksm-product-detail-price {
        font-size: 28px;
    }
    
    .ksm-mobile-section-box .ksm-product-detail-title {
        font-size: 16px;
    }
    
    .ksm-mobile-section-box .ksm-product-detail-meta {
        font-size: 12px;
    }
    
    /* Mobile Vendor Box */
    .ksm-product-mobile-layout .ksm-vendor-box-v2 .ksm-vendor-box-avatar {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .ksm-product-mobile-layout .ksm-vendor-box-v2 .ksm-vendor-box-name {
        font-size: 14px;
    }
    
    /* Mobile Tabs */
    .ksm-product-mobile-layout .ksm-tab-btn {
        font-size: 12px;
        padding: 10px;
    }
    
    .ksm-product-mobile-layout .ksm-tabs-content {
        padding: 15px;
    }
    
    /* Mobile Info Box */
    .ksm-product-mobile-layout .ksm-info-box {
        font-size: 12px;
    }
    
    /* Products Grid Small Mobile */
    .ksm-products-grid-sm {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* =============================================================================
   STATIC PAGES (Contact, About, Terms, Privacy)
============================================================================= */
.ksm-static-page { padding: 40px 0 80px; }
.ksm-static-content { max-width: 900px; margin: 0 auto; }
.ksm-static-content h1 { font-size: 32px; margin-bottom: 24px; color: var(--primary); }
.ksm-static-content h2 { font-size: 22px; margin: 32px 0 16px; color: var(--text-dark); }
.ksm-static-content p { margin-bottom: 16px; line-height: 1.8; color: var(--text-gray); }
.ksm-static-content ul { margin: 16px 0 24px 24px; }
.ksm-static-content ul li { margin-bottom: 8px; line-height: 1.7; color: var(--text-gray); }
.ksm-lead { font-size: 18px; color: var(--text-dark) !important; }
.ksm-legal-updated { font-size: 13px; color: var(--text-light); margin-bottom: 32px; }
.ksm-legal-content h2 { padding-bottom: 8px; border-bottom: 2px solid var(--border); }

/* Contact Page */
.ksm-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; margin-top: 32px; }
.ksm-contact-info h2, .ksm-contact-form-wrapper h2 { margin-top: 0; }
.ksm-contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.ksm-contact-icon { font-size: 24px; }
.ksm-contact-item a { color: var(--primary); }
.ksm-contact-form { margin-top: 24px; }
.ksm-contact-form .ksm-form-group { margin-bottom: 16px; }

/* About Page */
.ksm-about-hero { background: var(--primary-bg); padding: 32px; border-radius: var(--radius); margin-bottom: 40px; }
.ksm-about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.ksm-about-stat { background: var(--bg-white); padding: 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.ksm-about-stat-number { font-size: 36px; font-weight: 700; color: var(--primary); }
.ksm-about-stat-label { font-size: 14px; color: var(--text-gray); }
.ksm-about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 0; }
.ksm-about-feature { background: var(--bg-white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.ksm-about-feature-icon { font-size: 36px; margin-bottom: 12px; }
.ksm-about-feature h3 { font-size: 18px; margin-bottom: 8px; }
.ksm-about-feature p { font-size: 14px; margin: 0; }
.ksm-how-it-works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 24px 0; }
.ksm-step { background: var(--primary-bg); padding: 24px; border-radius: var(--radius); }
.ksm-step-number { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.ksm-step h3 { font-size: 18px; margin-bottom: 8px; }
.ksm-step p { font-size: 14px; margin: 0; }
.ksm-about-cta { text-align: center; padding: 48px; background: var(--bg-gray); border-radius: var(--radius); margin-top: 48px; }
.ksm-about-cta h2 { margin-top: 0; }
.ksm-about-cta-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 24px; }

@media (max-width: 768px) {
    .ksm-contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .ksm-about-stats { grid-template-columns: 1fr; }
    .ksm-about-features, .ksm-how-it-works { grid-template-columns: 1fr; }
    .ksm-about-cta-buttons { flex-direction: column; }
    .ksm-static-content h1 { font-size: 24px; }
}

/* Input with Button */
.ksm-input-with-btn {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.ksm-input-with-btn .ksm-form-input {
    flex: 1;
    min-width: 0;
}
.ksm-input-with-btn .ksm-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* OTP Input Row */
.ksm-otp-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ksm-otp-input-row input {
    flex-shrink: 0;
}

/* Required asterisk */
.required {
    color: #dc3545;
    font-weight: bold;
}

@media (max-width: 480px) {
    .ksm-input-with-btn {
        flex-direction: column;
    }
    .ksm-otp-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ksm-otp-input-row input {
        max-width: 100% !important;
    }
}

/* Input Error Styling */
.ksm-input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
    animation: shake 0.4s ease-in-out;
}
.ksm-input-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}
.ksm-field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff5f5;
    border-radius: 6px;
    border-left: 3px solid #dc3545;
    animation: slideDown 0.3s ease-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth scroll for error focus */
.ksm-form-input:focus {
    transition: all 0.3s ease;
}


/* ============================================
   MY PROFILE PAGE - PREMIUM DESIGN v1.3
   Beautiful Modern UI with Depth & Motion
   ============================================ */

/* ============================================
   ENHANCED CSS VARIABLES
   ============================================ */
:root {
    /* Primary Gradients */
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%);
    --gradient-primary-dark: linear-gradient(135deg, #047857 0%, #059669 100%);
    --gradient-hero: linear-gradient(135deg, #064E3B 0%, #059669 50%, #10B981 100%);
    
    /* Accent Gradients */
    --gradient-gold: linear-gradient(135deg, #D97706 0%, #F59E0B 50%, #FBBF24 100%);
    --gradient-blue: linear-gradient(135deg, #0369A1 0%, #0EA5E9 100%);
    --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%);
    --gradient-rose: linear-gradient(135deg, #E11D48 0%, #FB7185 100%);
    
    /* Glass Effects */
    --glass-white: rgba(255, 255, 255, 0.85);
    --glass-white-light: rgba(255, 255, 255, 0.6);
    --glass-dark: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    
    /* Enhanced Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow-green: 0 10px 40px rgba(16, 185, 129, 0.25);
    --shadow-glow-gold: 0 10px 40px rgba(245, 158, 11, 0.25);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    
    /* Border Radius */
    --radius-xl: 24px;
    --radius-2xl: 32px;
    
    /* Transitions */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DASHBOARD BACKGROUND
   ============================================ */
.ksm-dashboard {
    background: 
        radial-gradient(ellipse 80% 50% at 20% -20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 10%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #f8fdfb 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 24px 0 60px;
    position: relative;
    overflow-x: hidden;
}

/* Floating Decorative Elements */
.ksm-dashboard::before,
.ksm-dashboard::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ksm-dashboard::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    animation: floatSlow 20s ease-in-out infinite;
}
.ksm-dashboard::after {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -80px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    animation: floatSlow 25s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.05); }
}

/* ============================================
   DASHBOARD HEADER - PREMIUM GLASS CARD
   ============================================ */
.ksm-dashboard-header {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 32px 40px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease-smooth);
}
.ksm-dashboard-header:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* Gradient Accent Line */
.ksm-dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* Decorative Pattern */
.ksm-dashboard-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.ksm-dashboard-welcome h1 {
    font-family: 'Kanit', 'Prompt', sans-serif;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    position: relative;
}
.ksm-dashboard-welcome p {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 400;
}

/* Action Buttons */
.ksm-dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.ksm-dashboard-actions .ksm-btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: var(--shadow-glow-green);
    transition: all 0.3s var(--ease-spring);
}
.ksm-dashboard-actions .ksm-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.35);
}
.ksm-dashboard-actions .ksm-btn-logout {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-gray);
}
.ksm-dashboard-actions .ksm-btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

/* ============================================
   NAVIGATION - PILL STYLE
   ============================================ */
.ksm-dashboard-nav {
    display: flex;
    gap: 8px;
    padding: 8px;
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.ksm-dashboard-nav-item {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    color: var(--text-gray);
    background: transparent;
    transition: all 0.3s var(--ease-spring);
    position: relative;
    overflow: hidden;
}
.ksm-dashboard-nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}
.ksm-dashboard-nav-item:hover {
    color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
}
.ksm-dashboard-nav-item.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow-green);
}
.ksm-dashboard-nav-item.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

/* ============================================
   DASHBOARD CONTENT AREA
   ============================================ */
.ksm-dashboard-content {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
}

/* ============================================
   PROFILE FORM WRAPPER
   ============================================ */
.ksm-profile-form-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

/* ============================================
   PROFILE SECTIONS - FLOATING CARDS
   ============================================ */
.ksm-profile-section {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
}
.ksm-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ksm-profile-section:hover {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(16, 185, 129, 0.08);
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.1);
}
.ksm-profile-section:hover::before {
    opacity: 1;
}

/* Section Title */
.ksm-profile-section-title {
    font-family: 'Kanit', 'Prompt', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.ksm-profile-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s var(--ease-spring);
}
.ksm-profile-section:hover .ksm-profile-section-title::after {
    width: 80px;
}

/* ============================================
   AVATAR UPLOAD - PREMIUM STYLE
   ============================================ */
.ksm-avatar-upload {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    border-radius: var(--radius-xl);
    border: 2px dashed rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
}
.ksm-avatar-upload::before {
    content: '📷';
    position: absolute;
    right: 20px;
    bottom: 10px;
    font-size: 60px;
    opacity: 0.1;
    transition: all 0.3s ease;
}
.ksm-avatar-upload:hover {
    border-color: var(--primary);
    border-style: solid;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    transform: scale(1.01);
}
.ksm-avatar-upload:hover::before {
    opacity: 0.15;
    transform: scale(1.1) rotate(5deg);
}

.ksm-avatar-preview {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 8px 30px rgba(16, 185, 129, 0.2),
        0 0 0 5px white,
        0 0 0 7px rgba(16, 185, 129, 0.2);
    transition: all 0.4s var(--ease-spring);
    position: relative;
}
.ksm-avatar-preview::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ksm-avatar-preview:hover {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 
        0 15px 40px rgba(16, 185, 129, 0.3),
        0 0 0 5px white,
        0 0 0 8px rgba(16, 185, 129, 0.3);
}
.ksm-avatar-preview:hover::before {
    opacity: 1;
}
.ksm-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ksm-avatar-preview:hover img {
    transform: scale(1.1);
}
.ksm-avatar-placeholder {
    font-size: 64px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.ksm-avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ksm-avatar-actions .ksm-btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-spring);
}
.ksm-avatar-actions .ksm-btn:hover {
    transform: translateX(5px);
}

/* ============================================
   FORM ELEMENTS - MODERN STYLE
   ============================================ */
.ksm-profile-section .ksm-form-group {
    margin-bottom: 24px;
}
.ksm-profile-section .ksm-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.ksm-profile-section .ksm-form-label .required {
    color: var(--danger);
    font-weight: 700;
}

.ksm-profile-section .ksm-form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-smooth);
    box-shadow: var(--shadow-inset);
}
.ksm-profile-section .ksm-form-input:hover {
    background: #f1f5f9;
}
.ksm-profile-section .ksm-form-input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 
        0 0 0 4px rgba(16, 185, 129, 0.1),
        var(--shadow-soft);
    outline: none;
}
.ksm-profile-section .ksm-form-input[readonly] {
    background: #f3f4f6;
    color: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.8;
}

.ksm-profile-section .ksm-form-hint {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form Row */
.ksm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Input with Button */
.ksm-input-with-btn {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.ksm-input-with-btn .ksm-form-input {
    flex: 1;
    min-width: 200px;
}
.ksm-input-with-btn .ksm-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 14px 20px;
}

/* ============================================
   OTP SECTIONS - ATTENTION STYLE
   ============================================ */
#emailOtpForm,
#phoneOtpSection,
#emailOtpSection {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fbbf24;
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    animation: slideDownBounce 0.4s var(--ease-spring);
}
#emailOtpForm::before,
#phoneOtpSection::before,
#emailOtpSection::before {
    content: '🔐';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    opacity: 0.15;
}

.ksm-otp-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.ksm-otp-input-row input {
    font-family: 'IBM Plex Sans Thai', monospace;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 12px;
    text-align: center;
    padding: 16px 20px;
    background: white;
    border: 2px solid #fbbf24;
    max-width: 180px;
}
.ksm-otp-input-row input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

@keyframes slideDownBounce {
    0% { opacity: 0; transform: translateY(-20px); }
    60% { transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   VERIFICATION BOXES
   ============================================ */
.ksm-verification-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 2px solid #f59e0b !important;
    border-radius: var(--radius-xl) !important;
    padding: 28px !important;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow-gold);
    position: relative;
    overflow: hidden;
}
.ksm-verification-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.ksm-verification-box h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    margin-bottom: 20px;
}

.ksm-verification-checklist {
    display: grid;
    gap: 12px;
}
.ksm-verify-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease-smooth);
    border: 1px solid transparent;
}
.ksm-verify-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-soft);
}
.ksm-verify-item span:first-child {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Verification Complete */
.ksm-verification-complete {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border: 2px solid #22c55e !important;
    border-radius: var(--radius-xl) !important;
    padding: 24px 28px !important;
    box-shadow: var(--shadow-glow-green);
    animation: successPulse 2s ease infinite;
}
@keyframes successPulse {
    0%, 100% { box-shadow: 0 10px 40px rgba(34, 197, 94, 0.2); }
    50% { box-shadow: 0 10px 50px rgba(34, 197, 94, 0.35); }
}

/* Welcome Box */
.ksm-welcome-box {
    background: var(--gradient-hero) !important;
    border-radius: var(--radius-xl) !important;
    padding: 32px !important;
    position: relative;
    overflow: hidden;
}
.ksm-welcome-box::before {
    content: '🌾';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 100px;
    opacity: 0.2;
    animation: wave 3s ease-in-out infinite;
}
@keyframes wave {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-50%) rotate(10deg); }
}
.ksm-welcome-box h2 {
    font-family: 'Kanit', sans-serif;
    font-size: 24px;
    margin-bottom: 8px;
}

/* ============================================
   PASSWORD SECTION
   ============================================ */
#passwordChangeForm {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 28px;
    border-radius: var(--radius-xl);
    margin-top: 20px;
    border: 1px solid var(--border);
    animation: slideDownBounce 0.4s var(--ease-spring);
}

.ksm-password-wrapper {
    position: relative;
}
.ksm-password-wrapper .ksm-form-input {
    padding-right: 55px;
}
.ksm-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.5;
}
.ksm-password-toggle:hover {
    opacity: 1;
    background: var(--primary-bg);
    transform: translateY(-50%) scale(1.1);
}

#passwordStrength {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
}
#passwordStrength.weak { color: #ef4444; }
#passwordStrength.medium { color: #f59e0b; }
#passwordStrength.strong { color: #22c55e; }

/* ============================================
   MAP SECTION
   ============================================ */
#locationMap {
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-inset);
}
.ksm-map-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ksm-map-actions .ksm-btn {
    flex: 1;
    min-width: 150px;
    justify-content: center;
}
.ksm-selected-location {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    border: 1px solid #22c55e !important;
    border-radius: var(--radius) !important;
    padding: 14px 18px !important;
    font-weight: 500;
    animation: slideDownBounce 0.3s ease;
}

/* ============================================
   SAVE BUTTON - PREMIUM CTA
   ============================================ */
#saveProfileBtn {
    width: 100%;
    padding: 20px 40px;
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow-green);
    transition: all 0.4s var(--ease-spring);
    margin-top: 16px;
}
#saveProfileBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}
#saveProfileBtn::after {
    content: '✨';
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
}
#saveProfileBtn:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.4);
}
#saveProfileBtn:hover::before {
    left: 100%;
}
#saveProfileBtn:hover::after {
    opacity: 1;
    right: 25px;
}
#saveProfileBtn:active {
    transform: translateY(-2px) scale(0.99);
}

/* Loading State */
#saveProfileBtn.loading {
    pointer-events: none;
    color: transparent;
}
#saveProfileBtn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    opacity: 1;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   FORM SUCCESS / ERROR MESSAGES
   ============================================ */
.ksm-form-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
    color: #b91c1c;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    animation: shake 0.5s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ksm-form-error::before {
    content: '⚠️';
    font-size: 18px;
}

.ksm-form-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-left: 4px solid #22c55e;
    color: #166534;
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    animation: slideDownBounce 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ksm-form-success::before {
    content: '✅';
    font-size: 18px;
}

/* Input Error State */
.ksm-input-error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    animation: shake 0.5s ease;
}
.ksm-field-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideDownBounce 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

/* ============================================
   BUTTONS ENHANCEMENT
   ============================================ */
.ksm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-family: 'IBM Plex Sans Thai', 'Sarabun', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    border: 2px solid transparent;
    text-decoration: none;
}
.ksm-btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.ksm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}
.ksm-btn-outline {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border);
}
.ksm-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}
.ksm-btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}
.ksm-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .ksm-dashboard {
        padding: 16px 0 40px;
    }
    .ksm-dashboard-header {
        padding: 24px 20px;
        border-radius: var(--radius-xl);
        flex-direction: column;
        text-align: center;
    }
    .ksm-dashboard-welcome h1 {
        font-size: 22px;
    }
    .ksm-dashboard-actions {
        width: 100%;
        justify-content: center;
    }
    .ksm-dashboard-nav {
        padding: 6px;
        border-radius: var(--radius);
    }
    .ksm-dashboard-nav-item {
        padding: 12px 16px;
        font-size: 13px;
        min-width: auto;
    }
    .ksm-dashboard-content {
        padding: 24px 16px;
        border-radius: var(--radius-xl);
    }
    .ksm-profile-section {
        padding: 24px 20px;
        border-radius: var(--radius);
    }
    .ksm-profile-section-title {
        font-size: 16px;
    }
    .ksm-avatar-upload {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .ksm-avatar-preview {
        width: 110px;
        height: 110px;
    }
    .ksm-avatar-actions {
        flex-direction: row;
        justify-content: center;
    }
    .ksm-form-row {
        grid-template-columns: 1fr;
    }
    .ksm-input-with-btn {
        flex-direction: column;
        align-items: stretch;
    }
    .ksm-input-with-btn .ksm-form-input {
        min-width: 100%;
    }
    .ksm-otp-input-row {
        flex-direction: column;
    }
    .ksm-otp-input-row input {
        width: 100%;
        max-width: none;
    }
    .ksm-map-actions {
        flex-direction: column;
    }
    #saveProfileBtn {
        padding: 18px 24px;
        font-size: 16px;
        border-radius: var(--radius);
    }
    .ksm-welcome-box::before {
        font-size: 60px;
        right: 10px;
        opacity: 0.15;
    }
}

@media (max-width: 480px) {
    .ksm-dashboard-header {
        padding: 20px 16px;
    }
    .ksm-dashboard-welcome h1 {
        font-size: 20px;
    }
    .ksm-profile-section {
        padding: 20px 16px;
    }
    .ksm-avatar-preview {
        width: 100px;
        height: 100px;
    }
    .ksm-avatar-placeholder {
        font-size: 48px;
    }
    .ksm-verification-box {
        padding: 20px !important;
    }
    .ksm-verify-item {
        padding: 12px 14px;
        gap: 12px;
    }
    .ksm-verify-item span:first-child {
        font-size: 24px;
    }
}

/* ============================================
   ACCESSIBILITY & REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible */
.ksm-btn:focus-visible,
.ksm-form-input:focus-visible,
.ksm-dashboard-nav-item:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .ksm-dashboard-nav,
    .ksm-dashboard-actions,
    #saveProfileBtn,
    .ksm-avatar-actions,
    .ksm-map-actions {
        display: none !important;
    }
    .ksm-dashboard {
        background: white;
    }
    .ksm-profile-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =============================================================================
   FILTER ENHANCEMENTS - v1.4.2
   ============================================================================= */

/* Active Filter Tags */
.ksm-active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid #bbf7d0;
}

.ksm-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.ksm-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    color: #166534;
    border: 1px solid #86efac;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    animation: tagSlideIn 0.3s ease;
}

.ksm-filter-tag-icon {
    font-size: 14px;
}

.ksm-filter-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #fee2e2;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    color: #dc2626;
    transition: all 0.2s;
    border: none;
    padding: 0;
    line-height: 1;
}

.ksm-filter-tag-remove:hover {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

.ksm-clear-all-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ksm-clear-all-btn:hover {
    background: #fee2e2;
    border-color: #fecaca;
    color: #dc2626;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Skeleton Loading */
.ksm-skeleton {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: var(--radius);
}

.ksm-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: skeletonShimmer 1.5s infinite;
}

@keyframes skeletonShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ksm-skeleton-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ksm-skeleton-image {
    width: 100%;
    height: 180px;
    background: #e5e7eb;
}

.ksm-skeleton-content {
    padding: 16px;
}

.ksm-skeleton-line {
    height: 14px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 10px;
}

.ksm-skeleton-line.short { width: 60%; }
.ksm-skeleton-line.medium { width: 80%; }
.ksm-skeleton-line.price { width: 40%; height: 20px; margin-top: 12px; }

/* Product Card Animations */
.ksm-product-card {
    animation: productFadeIn 0.4s ease;
}

@keyframes productFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for grid items */
.ksm-products-grid .ksm-product-card:nth-child(1) { animation-delay: 0.05s; }
.ksm-products-grid .ksm-product-card:nth-child(2) { animation-delay: 0.1s; }
.ksm-products-grid .ksm-product-card:nth-child(3) { animation-delay: 0.15s; }
.ksm-products-grid .ksm-product-card:nth-child(4) { animation-delay: 0.2s; }
.ksm-products-grid .ksm-product-card:nth-child(5) { animation-delay: 0.25s; }
.ksm-products-grid .ksm-product-card:nth-child(6) { animation-delay: 0.3s; }
.ksm-products-grid .ksm-product-card:nth-child(7) { animation-delay: 0.35s; }
.ksm-products-grid .ksm-product-card:nth-child(8) { animation-delay: 0.4s; }

/* Mobile Active Filters */
@media (max-width: 768px) {
    .ksm-active-filters {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .ksm-filter-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .ksm-clear-all-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ksm-skeleton-image {
        height: 140px;
    }
}

/* =============================================================================
   MOBILE FILTER BUTTON & BOTTOM SHEET - v1.4.3
   ============================================================================= */

/* Mobile Filter Button - Hidden on desktop */
.ksm-mobile-filter-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 100;
    padding: 12px 20px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: white;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.5);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    align-items: center;
    gap: 6px;
}

.ksm-mobile-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
}

.ksm-mobile-filter-btn:active {
    transform: scale(0.95);
}

.ksm-mobile-filter-icon {
    font-size: 16px;
}

.ksm-mobile-filter-count {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Filter Overlay */
.ksm-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.ksm-filter-overlay.active {
    display: block;
    opacity: 1;
}

/* Filter Bottom Sheet */
.ksm-filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.ksm-filter-sheet.active {
    transform: translateY(0);
}

.ksm-filter-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.ksm-filter-sheet-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.ksm-filter-sheet-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.ksm-filter-sheet-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.ksm-filter-sheet-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.ksm-filter-sheet-section {
    margin-bottom: 24px;
}

.ksm-filter-sheet-section:last-child {
    margin-bottom: 0;
}

.ksm-filter-sheet-section h4 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

/* Filter Chips */
.ksm-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ksm-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.ksm-filter-chip input {
    display: none;
}

.ksm-filter-chip:hover {
    background: #e5e7eb;
}

.ksm-filter-chip.active,
.ksm-filter-chip:has(input:checked) {
    background: #dcfce7;
    border-color: var(--primary);
    color: var(--primary-dark);
    font-weight: 500;
}

/* Filter Sheet Footer */
.ksm-filter-sheet-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 90px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.ksm-filter-sheet-footer .ksm-btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
}

/* Show mobile filter button on mobile */
@media (max-width: 768px) {
    .ksm-mobile-filter-btn {
        display: flex;
    }
    
    /* Hide desktop sidebar on mobile */
    .ksm-sidebar {
        display: none;
    }
    
    /* Full width content on mobile */
    .ksm-page-layout {
        display: block;
    }
    
    .ksm-main-content {
        width: 100%;
    }
}

/* =============================================================================
   FAQ SECTION STYLES
   ============================================================================= */

.ksm-section-faq {
    background: #f8fafc;
    padding: 50px 0;
}

.ksm-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.ksm-faq-item {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.ksm-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ksm-faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
}

.ksm-faq-question:hover {
    background: #f1f5f9;
}

.ksm-faq-question span:first-child {
    flex: 1;
}

.ksm-faq-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 50%;
    transition: transform 0.3s, background 0.2s;
    flex-shrink: 0;
}

.ksm-faq-item.active .ksm-faq-icon {
    transform: rotate(45deg);
    background: #16a34a;
    color: #fff;
}

.ksm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.25s ease;
    opacity: 0;
}

.ksm-faq-item.active .ksm-faq-answer {
    opacity: 1;
}

.ksm-faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #64748b;
}

.ksm-faq-answer strong {
    color: #16a34a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ksm-section-faq {
        padding: 40px 0;
    }
    
    .ksm-faq-question {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .ksm-faq-answer p {
        padding: 0 18px 16px;
        font-size: 13px;
    }
    
    .ksm-faq-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
}

/* =============================================================================
   PRODUCT FAQ SECTION STYLES
   ============================================================================= */

.ksm-product-faq-section {
    background: #f8fafc;
    padding: 40px 0;
    margin: 30px 0;
}

.ksm-product-faq-section .ksm-section-title {
    text-align: center;
    margin-bottom: 24px;
}

.ksm-product-faq-section .ksm-faq-list {
    margin: 0 auto;
}

.ksm-product-faq-section .ksm-faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ksm-product-faq-section .ksm-faq-question {
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ksm-product-faq-section .ksm-faq-question:hover {
    background: #f1f5f9;
}

.ksm-product-faq-section .ksm-faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 50%;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.ksm-product-faq-section .ksm-faq-item.active .ksm-faq-icon {
    transform: rotate(45deg);
    background: #16a34a;
    color: #fff;
}

.ksm-product-faq-section .ksm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.25s ease;
    opacity: 0;
}

.ksm-product-faq-section .ksm-faq-item.active .ksm-faq-answer {
    opacity: 1;
}

.ksm-product-faq-section .ksm-faq-answer p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

/* =============================================================================
   VENDOR DASHBOARD STYLES
   ============================================================================= */

/* Shop Info Card */
.ksm-dashboard-shop-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.ksm-shop-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    border: 3px solid #16a34a;
}

.ksm-shop-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ksm-shop-card-avatar .ksm-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: #f0fdf4;
}

.ksm-shop-card-info {
    flex: 1;
}

.ksm-shop-card-name {
    font-size: 22px;
    font-weight: 700;
    color: #166534;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ksm-verified-badge {
    font-size: 18px;
}

.ksm-shop-card-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #4b5563;
}

.ksm-shop-card-status {
    flex-shrink: 0;
}

.ksm-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.ksm-status-pill.ksm-status-success {
    background: #16a34a;
    color: #fff;
}

.ksm-status-pill.ksm-status-warning {
    background: #f59e0b;
    color: #fff;
}

/* Dashboard Stats Grid - 4 columns */
.ksm-dashboard-stats.ksm-dashboard-stats-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ksm-stat-card.ksm-stat-primary {
    border-left: 4px solid #3b82f6;
}

.ksm-stat-card.ksm-stat-success {
    border-left: 4px solid #16a34a;
}

.ksm-stat-card.ksm-stat-warning {
    border-left: 4px solid #f59e0b;
}

.ksm-stat-card.ksm-stat-info {
    border-left: 4px solid #8b5cf6;
}

/* Dashboard Grid Layout */
.ksm-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.ksm-dashboard-col-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ksm-dashboard-col-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Dashboard Cards */
.ksm-dashboard-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ksm-dashboard-card.ksm-card-warning {
    border: 2px solid #fbbf24;
}

.ksm-dashboard-card.ksm-card-tips {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
}

.ksm-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.ksm-card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.ksm-card-link {
    font-size: 13px;
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
}

.ksm-card-link:hover {
    text-decoration: underline;
}

.ksm-card-body {
    padding: 20px;
}

/* Chart Container */
.ksm-chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 16px;
}

.ksm-chart-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.ksm-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}

.ksm-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Top Products List */
.ksm-top-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ksm-top-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.2s;
}

.ksm-top-product-item:hover {
    background: #f1f5f9;
}

.ksm-top-product-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.ksm-top-product-rank.ksm-rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

.ksm-top-product-rank.ksm-rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: #fff;
}

.ksm-top-product-rank.ksm-rank-3 {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
}

.ksm-top-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e5e7eb;
}

.ksm-top-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ksm-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.ksm-top-product-info {
    flex: 1;
    min-width: 0;
}

.ksm-top-product-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.ksm-top-product-title:hover {
    color: #16a34a;
}

.ksm-top-product-meta {
    font-size: 12px;
}

.ksm-top-product-price {
    color: #16a34a;
    font-weight: 600;
}

.ksm-top-product-views {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    flex-shrink: 0;
}

.ksm-views-count {
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
}

.ksm-views-label {
    font-size: 10px;
    color: #6b7280;
}

/* Quick Actions */
.ksm-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ksm-quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.ksm-quick-action-btn:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

.ksm-qa-icon {
    font-size: 24px;
}

.ksm-qa-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* Category Stats */
.ksm-category-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ksm-category-stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ksm-category-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ksm-category-stat-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.ksm-category-stat-count {
    font-size: 12px;
    color: #6b7280;
}

.ksm-category-stat-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.ksm-category-stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #16a34a, #22c55e);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Recent Products List */
.ksm-recent-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ksm-recent-product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.ksm-recent-product-info {
    flex: 1;
    min-width: 0;
}

.ksm-recent-product-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ksm-recent-product-title:hover {
    color: #16a34a;
}

.ksm-recent-product-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

.ksm-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.ksm-status-badge.ksm-status-success {
    background: #dcfce7;
    color: #16a34a;
}

.ksm-status-badge.ksm-status-warning {
    background: #fef3c7;
    color: #d97706;
}

.ksm-status-badge.ksm-status-default {
    background: #f3f4f6;
    color: #6b7280;
}

/* Low Stock List */
.ksm-low-stock-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ksm-low-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fffbeb;
    border-radius: 8px;
}

.ksm-low-stock-name {
    font-size: 13px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ksm-low-stock-count {
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
    flex-shrink: 0;
}

/* Tips List */
.ksm-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ksm-tips-list li {
    padding: 8px 0;
    font-size: 13px;
    color: #78350f;
    border-bottom: 1px dashed #fbbf24;
}

.ksm-tips-list li:last-child {
    border-bottom: none;
}

/* Empty State Small */
.ksm-empty-state.ksm-empty-state-sm {
    padding: 24px;
    text-align: center;
}

.ksm-empty-state-sm .ksm-empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.ksm-empty-state-sm p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

/* Dashboard Responsive */
@media (max-width: 1200px) {
    .ksm-dashboard-grid {
        grid-template-columns: 1fr 320px;
    }
}

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

@media (max-width: 768px) {
    .ksm-dashboard-shop-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .ksm-shop-card-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .ksm-dashboard-stats.ksm-dashboard-stats-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .ksm-stat-card {
        padding: 16px;
    }
    
    .ksm-stat-value {
        font-size: 24px;
    }
    
    .ksm-top-product-item {
        padding: 10px;
    }
    
    .ksm-top-product-views {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .ksm-dashboard-stats.ksm-dashboard-stats-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .ksm-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Label Maker Styles
   ======================================== */

.ksm-label-maker {
    padding: 24px 0 48px;
}

.ksm-label-hero {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    color: white;
    margin-bottom: 32px;
}

.ksm-label-hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: white;
}

.ksm-label-subtitle {
    opacity: 0.9;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.ksm-label-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Form Section */
.ksm-label-form-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.ksm-form-card {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.ksm-form-card:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ksm-form-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

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

.ksm-form-half {
    flex: 1;
}

.ksm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.ksm-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.ksm-label-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.ksm-label-actions .ksm-btn {
    flex: 1;
}

/* Preview Section */
.ksm-label-preview-section {
    position: sticky;
    top: 100px;
}

.ksm-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ksm-preview-header h3 {
    font-size: 16px;
    margin: 0;
}

.ksm-preview-size {
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-gray);
    padding: 4px 12px;
    border-radius: 20px;
}

.ksm-preview-container {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    justify-content: center;
    min-height: 400px;
}

.ksm-label-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Label Styles */
.ksm-label {
    width: 100mm;
    height: 150mm;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 3mm;
    font-family: 'Sarabun', sans-serif;
    font-size: 10pt;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ksm-label-header {
    text-align: center;
    padding-bottom: 2mm;
    border-bottom: 1px solid #16a34a;
    margin-bottom: 2mm;
}

.ksm-label-logo {
    font-weight: 700;
    color: #16a34a;
    font-size: 11pt;
}

.ksm-label-section {
    padding: 2mm 0;
    border-bottom: 1px dashed #ddd;
}

.ksm-label-section:last-of-type {
    border-bottom: none;
}

.ksm-label-section-title {
    font-size: 8pt;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1mm;
}

.ksm-label-section-content {
    font-size: 9pt;
    line-height: 1.4;
}

.ksm-label-name {
    font-weight: 600;
    font-size: 10pt;
    margin-bottom: 1mm;
}

.ksm-label-name-large {
    font-size: 12pt;
    color: #16a34a;
}

.ksm-label-phone,
.ksm-label-province {
    font-size: 9pt;
    color: #333;
}

.ksm-label-address {
    font-size: 9pt;
    color: #333;
    margin: 1mm 0;
}

.ksm-label-receiver {
    flex: 1;
    background: #f8f9fa;
    margin: 0 -3mm;
    padding: 2mm 3mm;
}

.ksm-label-product {
    font-size: 9pt;
}

.ksm-label-product-name {
    font-weight: 600;
    margin-bottom: 1mm;
}

.ksm-label-product-details {
    display: flex;
    justify-content: space-between;
    font-size: 9pt;
}

.ksm-label-product-note {
    font-size: 8pt;
    color: #dc2626;
    margin-top: 1mm;
}

.ksm-label-cod {
    background: #fef3c7;
    color: #92400e;
    text-align: center;
    padding: 2mm;
    margin: 2mm -3mm;
    font-weight: 600;
    font-size: 10pt;
}

.ksm-label-footer {
    text-align: right;
    font-size: 8pt;
    color: #666;
    margin-top: auto;
    padding-top: 2mm;
    border-top: 1px solid #eee;
}

.ksm-preview-tips {
    margin-top: 16px;
    padding: 12px;
    background: #fef3c7;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.ksm-preview-tips p {
    margin: 0;
}

/* SEO Content */
.ksm-label-seo-content {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--radius);
}

.ksm-label-seo-content h2 {
    text-align: center;
    margin-bottom: 32px;
}

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

.ksm-seo-item {
    text-align: center;
    padding: 20px;
}

.ksm-seo-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.ksm-seo-item p {
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .ksm-label-workspace {
        grid-template-columns: 1fr;
    }
    
    .ksm-label-preview-section {
        position: static;
    }
    
    .ksm-seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ksm-label-hero h1 {
        font-size: 22px;
    }
    
    .ksm-label-form-section {
        padding: 16px;
    }
    
    .ksm-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .ksm-label-actions {
        flex-direction: column;
    }
    
    .ksm-preview-container {
        padding: 16px;
        overflow-x: auto;
    }
    
    .ksm-label {
        transform: scale(0.85);
        transform-origin: top center;
    }
    
    .ksm-seo-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   POPULAR CATEGORIES SECTION (SEO/GEO/AIO)
   ============================================================================= */

.ksm-section-popular-cats {
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 100%);
    padding: 40px 0;
}

.ksm-section-popular-cats .ksm-section-title {
    font-size: 1.5rem;
    color: #2e7d32;
    margin-bottom: 20px;
    text-align: center;
}

.ksm-popular-cats-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ksm-popular-cats-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.ksm-popular-cats-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.ksm-popular-cats-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    line-height: 1.6;
}

.ksm-popular-cats-list li strong {
    color: #2e7d32;
}

@media (max-width: 768px) {
    .ksm-popular-cats-content {
        padding: 20px 15px;
    }
    
    .ksm-section-popular-cats .ksm-section-title {
        font-size: 1.3rem;
    }
}

/* =============================================================================
   MY PRODUCTS PAGE TABS (renamed to avoid conflict with single product tabs)
   ============================================================================= */

.ksm-my-products-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.ksm-my-products-tab {
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px 8px 0 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.ksm-my-products-tab:hover {
    background: #e9ecef;
    color: #333;
}

.ksm-my-products-tab.active {
    background: #4caf50;
    color: #fff;
    border-bottom: 2px solid #4caf50;
}

.ksm-tab-count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.ksm-my-products-tab.active .ksm-tab-count {
    background: rgba(255,255,255,0.2);
}

/* Button Colors */
.ksm-btn-warning {
    background: #ff9800;
    color: #fff;
    border: none;
}

.ksm-btn-warning:hover {
    background: #f57c00;
}

.ksm-btn-success {
    background: #4caf50;
    color: #fff;
    border: none;
}

.ksm-btn-success:hover {
    background: #388e3c;
}

/* Status Colors */
.ksm-status-trash {
    background: #ffebee !important;
    color: #c62828 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ksm-my-products-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ksm-my-products-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .ksm-my-product-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .ksm-my-product-actions .ksm-btn {
        width: 100%;
        text-align: center;
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* =============================================================================
   EMPTY STATE ICONS (CSS-based for better compatibility)
   ============================================================================= */

.ksm-empty-icon-trash,
.ksm-empty-icon-draft,
.ksm-empty-icon-all {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.ksm-empty-icon-trash {
    background: #ffebee;
    color: #c62828;
}

.ksm-empty-icon-draft {
    background: #fff3e0;
    color: #ef6c00;
}

.ksm-empty-icon-all {
    background: #e8f5e9;
    color: #2e7d32;
}

/* =============================================================================
   POPULAR CATS LINKS STYLING
   ============================================================================= */

.ksm-popular-cats-list li a {
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.2s;
}

.ksm-popular-cats-list li a:hover {
    color: #1b5e20;
    text-decoration: underline;
}

.ksm-popular-cats-list li a strong {
    color: inherit;
}

/* =============================================================================
   HOW TO BUY SECTION (AEO)
   ============================================================================= */

.ksm-section-how-to-buy {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 50px 0;
}

.ksm-section-how-to-buy .ksm-section-title {
    text-align: center;
    color: #1565c0;
    margin-bottom: 40px;
}

.ksm-how-to-buy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ksm-how-to-buy-step {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.ksm-how-to-buy-step:hover {
    transform: translateY(-5px);
}

.ksm-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #1565c0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.ksm-step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ksm-how-to-buy-step h3 {
    color: #1565c0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ksm-how-to-buy-step p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   PROVINCES SECTION (LOCAL SEO)
   ============================================================================= */

.ksm-section-provinces {
    background: #f8f9fa;
    padding: 50px 0;
}

.ksm-section-provinces .ksm-section-title {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 10px;
}

.ksm-section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.ksm-provinces-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.ksm-province-card {
    background: #fff;
    padding: 15px 12px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ksm-province-card:hover {
    border-color: #4caf50;
    background: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76,175,80,0.15);
}

.ksm-province-icon {
    font-size: 1.2rem;
}

.ksm-province-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.ksm-province-count {
    font-size: 0.75rem;
    color: #4caf50;
}

.ksm-provinces-more {
    text-align: center;
}

/* =============================================================================
   RESPONSIVE - HOW TO BUY & PROVINCES
   ============================================================================= */

@media (max-width: 992px) {
    .ksm-how-to-buy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ksm-provinces-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .ksm-how-to-buy-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .ksm-provinces-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ksm-section-how-to-buy,
    .ksm-section-provinces {
        padding: 40px 0;
    }
}

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

/* =============================================================================
   PLANT CARE TIPS SECTION (Topical Authority)
   ============================================================================= */

.ksm-section-tips {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 50px 0;
}

.ksm-section-tips .ksm-section-title {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 10px;
}

.ksm-tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.ksm-tip-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.ksm-tip-card:hover {
    transform: translateY(-5px);
}

.ksm-tip-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.ksm-tip-card h3 {
    color: #2e7d32;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.ksm-tip-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   ARTICLES SECTION (E-E-A-T)
   ============================================================================= */

.ksm-section-articles {
    background: #fff;
    padding: 50px 0;
}

.ksm-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ksm-article-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.ksm-article-card:hover {
    border-color: #4caf50;
    background: #e8f5e9;
    transform: translateX(5px);
}

.ksm-article-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.ksm-article-content {
    flex: 1;
}

.ksm-article-content h3 {
    color: #2e7d32;
    margin-bottom: 5px;
    font-size: 1rem;
}

.ksm-article-content p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
}

.ksm-article-arrow {
    color: #4caf50;
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.ksm-article-card:hover .ksm-article-arrow {
    opacity: 1;
}

/* =============================================================================
   RESPONSIVE - TIPS & ARTICLES
   ============================================================================= */

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

@media (max-width: 768px) {
    .ksm-tips-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .ksm-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .ksm-section-tips,
    .ksm-section-articles {
        padding: 40px 0;
    }
    
    .ksm-article-arrow {
        opacity: 1;
    }
}

/* =============================================================================
   SVG ICONS STYLING FOR TIPS & ARTICLES
   ============================================================================= */

/* Tips Icons */
.ksm-tip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.ksm-tip-icon svg {
    stroke-width: 1.5;
}

.ksm-tip-icon-water {
    color: #2196f3;
}

.ksm-tip-icon-sun {
    color: #ff9800;
}

.ksm-tip-icon-soil {
    color: #4caf50;
}

.ksm-tip-icon-pot {
    color: #795548;
}

/* Articles Icons */
.ksm-article-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    flex-shrink: 0;
}

.ksm-article-icon svg {
    stroke-width: 1.5;
}

.ksm-article-icon-plants {
    background: #e8f5e9;
    color: #4caf50;
}

.ksm-article-icon-veg {
    background: #e8f5e9;
    color: #43a047;
}

.ksm-article-icon-fruit {
    background: #ffebee;
    color: #e53935;
}

.ksm-article-icon-garden {
    background: #fff3e0;
    color: #ff9800;
}

/* =============================================================================
   CATEGORY PAGE SEO STYLES
   ============================================================================= */

.ksm-category-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #c8e6c9;
}

.ksm-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.ksm-category-title .ksm-category-count {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.ksm-category-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 15px 0;
}

.ksm-category-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px solid #c8e6c9;
}

.ksm-category-description p {
    margin: 0;
}

.ksm-section-title-sm {
    font-size: 1.25rem !important;
}

@media (max-width: 768px) {
    .ksm-category-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .ksm-category-title {
        font-size: 1.35rem;
    }
    
    .ksm-category-subtitle {
        font-size: 1rem;
    }
}

/* =============================================================================
   FAQ SECTION (AEO/AIO Optimization)
   ============================================================================= */

.ksm-faq-section {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.ksm-faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

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

.ksm-faq-item {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ksm-faq-item:hover {
    border-color: #4caf50;
}

.ksm-faq-item.active {
    border-color: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.ksm-faq-question {
    width: 100%;
    padding: 16px 20px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: left;
    transition: all 0.2s ease;
}

.ksm-faq-question:hover {
    background: #e8f5e9;
}

.ksm-faq-item.active .ksm-faq-question {
    background: #e8f5e9;
    color: #2e7d32;
}

.ksm-faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #4caf50;
    transition: transform 0.3s ease;
}

.ksm-faq-item.active .ksm-faq-icon {
    transform: rotate(45deg);
}

.ksm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.25s ease;
    background: #fff;
    opacity: 0;
}

.ksm-faq-item.active .ksm-faq-answer {
    opacity: 1;
}

.ksm-faq-answer p {
    margin: 0;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* =============================================================================
   TIPS SECTION
   ============================================================================= */

.ksm-tips-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #e8f5e9 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
}

.ksm-tips-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.ksm-tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ksm-tip-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ksm-tip-card .ksm-tip-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.ksm-tip-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.ksm-tip-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* =============================================================================
   PROVINCE INFO SECTION (GEO Optimization)
   ============================================================================= */

.ksm-province-info-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid #ffcc80;
}

.ksm-province-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e65100;
    margin: 0 0 15px 0;
}

.ksm-province-info-content {
    margin-bottom: 20px;
}

.ksm-province-info-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.ksm-province-info-content strong {
    color: #e65100;
}

.ksm-province-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.ksm-benefit-item {
    background: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.ksm-benefit-icon {
    font-size: 1.2rem;
}

/* =============================================================================
   RESPONSIVE FAQ & TIPS
   ============================================================================= */

@media (max-width: 768px) {
    .ksm-faq-section,
    .ksm-tips-section,
    .ksm-province-info-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .ksm-faq-title,
    .ksm-tips-title,
    .ksm-province-info-title {
        font-size: 1.25rem;
    }
    
    .ksm-faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .ksm-tips-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ksm-province-benefits {
        flex-direction: column;
    }
    
    .ksm-benefit-item {
        justify-content: center;
    }
}

/* =============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================= */

.ksm-scroll-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.ksm-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ksm-scroll-top:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.ksm-scroll-top:active {
    transform: translateY(-1px);
}

.ksm-scroll-top svg {
    width: 24px;
    height: 24px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ksm-scroll-top {
        bottom: 80px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
    
    .ksm-scroll-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Hide when mobile nav is visible - adjust if needed */
@media (max-width: 480px) {
    .ksm-scroll-top {
        bottom: 75px;
        right: 12px;
    }
}
