/*
Theme Name: MR.KIM Premium Clone (by SMR)
Description: Exact Next.js UI, Dual Sliders, Multi-page Routing, Pagination
Version: Final
*/

:root {
    --background: #09090b; --foreground: #fafafa; --muted: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1); --primary: #ffffff; --accent: #1f2937;
    --gradient-start: #9333ea; --gradient-end: #2563eb;
}
body.light-mode {
    --background: #ffffff; --foreground: #09090b; --muted: #71717a;
    --border: rgba(0, 0, 0, 0.1); --primary: #000000; --accent: #f4f4f5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--background); color: var(--foreground); font-family: 'Segoe UI', system-ui, sans-serif; transition: 0.3s; }
a { text-decoration: none; color: inherit; }

/* NAV */
.mrkim-nav { position: sticky; top: 0; z-index: 50; width: 100%; border-bottom: 1px solid var(--border); background: rgba(9, 9, 11, 0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 0 20px; }
body.light-mode .mrkim-nav { background: rgba(255, 255, 255, 0.8); }
.nav-container { max-width: 1280px; margin: 0 auto; display: flex; height: 64px; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: bold; }
.text-gradient { background: linear-gradient(to right, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: none; background: transparent; color: var(--foreground); cursor: pointer; transition: 0.2s; }
.icon-btn:hover { background: var(--accent); }
.admin-btn { border: 1px solid var(--border); background: transparent; color: var(--foreground); padding: 0 16px; height: 36px; border-radius: 6px; font-size: 0.875rem; cursor: pointer; transition: 0.2s; }
.admin-btn:hover { background: var(--accent); }

/* HERO */
.hero-section { text-align: center; margin: 48px 0; position: relative; }
.hero-title { font-size: 2.5rem; font-weight: bold; background: linear-gradient(to right, var(--primary), rgba(255,255,255,0.7)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.light-mode .hero-title { background: linear-gradient(to right, #000, rgba(0,0,0,0.7)); -webkit-background-clip: text; }
.hero-underline { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--foreground), rgba(255,255,255,0.5)); }

/* SLIDER */
.slider-wrapper { max-width: 1280px; margin: 40px auto; padding: 0 20px; }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.slider-title { font-size: 1.5rem; font-weight: bold; background: linear-gradient(to right, var(--gradient-start), var(--gradient-end)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.slider-nav { display: flex; gap: 10px; }
.slider-btn { border: 1px solid var(--border); background: var(--background); color: var(--foreground); width: 40px; height: 40px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.slider-btn:hover { background: var(--accent); }
.slider-container { display: flex; overflow-x: auto; gap: 16px; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding-bottom: 15px; scrollbar-width: none; }
.slider-container::-webkit-scrollbar { display: none; }
.slider-item { flex: 0 0 192px; scroll-snap-align: start; background: var(--background); border: 2px solid transparent; border-radius: 12px; overflow: hidden; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.slider-item:hover { border-color: rgba(147, 51, 234, 0.3); transform: translateY(-3px); box-shadow: 0 10px 15px rgba(0,0,0,0.2); }
.slider-img-box { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.slider-img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.slider-item:hover .slider-img-box img { transform: scale(1.05); }
.slider-info { padding: 16px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; }

/* BIG CATEGORY CARDS */
.category-wrapper { max-width: 1280px; margin: 48px auto; padding: 20px; border: 2px solid rgba(255,255,255,0.05); border-radius: 16px; background: linear-gradient(to bottom right, var(--background), rgba(255,255,255,0.02)); }
body.light-mode .category-wrapper { border-color: rgba(0,0,0,0.05); background: linear-gradient(to bottom right, #fff, #f9f9f9); }
.cat-title { font-size: 1.5rem; font-weight: bold; color: var(--primary); margin-bottom: 20px; }
.cat-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cat-card { position: relative; width: 280px; height: 190px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5); transition: 0.3s; display: block; }
.cat-card:hover { transform: scale(1.05); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.7); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.cat-label-wrap { position: absolute; bottom: 12px; width: 100%; display: flex; justify-content: center; }
.cat-label { background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); padding: 4px 12px; border-radius: 6px; color: rgba(255,255,255,0.9); font-weight: 500; }

/* CATALOG PAGE SPECIFIC */
.catalog-header { max-width: 1280px; margin: 40px auto 20px auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.catalog-title { font-size: 2rem; font-weight: bold; }
.level-select { width: 100%; max-width: 200px; padding: 10px 15px; border: 1px solid var(--border); background: var(--background); color: var(--foreground); border-radius: 8px; font-size: 0.9rem; appearance: none; cursor: pointer; outline: none; }
.grid-layout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1280px; margin: 0 auto; padding: 20px; }
.item-card { background: transparent; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; transition: 0.2s; display: flex; flex-direction: column; }
.item-card:hover { border-color: var(--gradient-start); transform: translateY(-3px); }
.item-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.item-details { padding: 16px; }
.item-price { color: #22c55e; font-weight: bold; font-size: 1.1rem; margin-top: 8px; }

/* EXACT PAGINATION */
.wp-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.wp-pagination a, .wp-pagination span { padding: 4px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--foreground); transition: 0.2s; background: transparent; font-size: 0.9rem; }
.wp-pagination .current { background: var(--primary); color: var(--background); font-weight: bold; border-color: var(--primary); }
.wp-pagination a:hover { background: var(--accent); }

/* FOOTER & MODAL */
.mrkim-footer { text-align: center; padding: 30px 20px; color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--border); margin-top: 60px; }
.mrkim-footer span { font-weight: bold; color: var(--primary); }
.detail-wrapper { max-width: 900px; margin: 40px auto; padding: 20px; }
.back-link { color: var(--muted); display: inline-block; margin-bottom: 20px; transition: 0.2s; }
.back-link:hover { color: var(--foreground); }
.detail-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,0.02); }
body.light-mode .detail-card { background: #fff; }
.detail-img { width: 100%; max-height: 500px; object-fit: cover; }
.detail-body { padding: 30px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: rgba(0,0,0,0.2); padding: 20px; border-radius: 12px; margin-bottom: 30px; }
body.light-mode .info-grid { background: #f4f4f5; }
.btn-primary { background: linear-gradient(to right, var(--gradient-start), var(--gradient-end)); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; transition: 0.2s; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 999; justify-content: center; align-items: center; }
.modal-content { background: var(--background); border: 1px solid var(--border); padding: 30px; border-radius: 16px; width: 90%; max-width: 400px; text-align: center; position: relative; }
.close-btn { position: absolute; top: 10px; right: 15px; font-size: 1.5rem; cursor: pointer; }
.social-btn { display: block; width: 100%; padding: 12px; border-radius: 8px; font-weight: bold; color: #fff; margin-bottom: 10px; }

@media (max-width: 768px) {
    .grid-layout { grid-template-columns: repeat(2, 1fr); padding: 10px; }
    .hero-title { font-size: 1.8rem; }
    .nav-actions .hide-mobile { display: none; }
}