/* =====================================================
   CRAFTMARKET — Main Stylesheet (CDN-only, no assets)
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #0f1117; color: #e5e7eb; margin: 0; line-height: 1.6; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Utility ---- */
.cm-logo { font-size: 20px; font-weight: 800; letter-spacing: -.5px; color: #fff; }
.cm-logo-accent { color: #22d3ee; }
.cm-section { padding: 80px 0; }
.cm-section-alt { background: #0d0f18; }
.cm-section-head { margin-bottom: 48px; }
.cm-section-head h2 { font-size: clamp(26px,3.5vw,42px); font-weight: 700; color: #fff; margin-bottom: 10px; letter-spacing: -.5px; }
.cm-section-head p { color: #6b7280; font-size: 16px; max-width: 520px; }
.cm-badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); border-radius: 30px; font-size: 13px; color: #22d3ee; margin-bottom: 18px; }

/* ---- Buttons ---- */
.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 26px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .25s; border: none; white-space: nowrap; text-decoration: none; }
.cm-btn-primary { background: #22d3ee; color: #000 !important; }
.cm-btn-primary:hover { background: #06b6d4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,211,238,.3); color: #000 !important; }
.cm-btn-outline { background: transparent; color: #fff !important; border: 1px solid rgba(255,255,255,.2); }
.cm-btn-outline:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.4); transform: translateY(-2px); color: #fff !important; }
.cm-btn-sm { padding: 7px 16px; font-size: 13px; }
.cm-btn-block { width: 100%; }

/* kept for backwards compat */
.btn-one { display:inline-flex;align-items:center;justify-content:center;padding:11px 26px;background:#22d3ee;color:#000!important;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer;transition:all .25s;border:none;text-decoration:none; }
.btn-one:hover { background:#06b6d4;transform:translateY(-2px); }
.btn-two { display:inline-flex;align-items:center;justify-content:center;padding:11px 26px;background:transparent;color:#fff!important;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .25s;border:1px solid rgba(255,255,255,.2);text-decoration:none; }
.btn-two:hover { background:rgba(255,255,255,.07);transform:translateY(-2px); }

/* ---- Navbar ---- */
.cm-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 68px; background: rgba(15,17,23,.96); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); transition: all .3s; }
.cm-nav-scrolled { box-shadow: 0 4px 32px rgba(0,0,0,.4); }
.cm-nav-inner { height: 68px; max-width: 1280px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 32px; }
.cm-menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.cm-menu li > a { display: block; padding: 7px 13px; color: #9ca3af; font-size: 14px; font-weight: 500; border-radius: 8px; transition: all .2s; }
.cm-menu li > a:hover, .cm-menu li.active > a { color: #22d3ee; background: rgba(34,211,238,.08); }
.cm-has-dropdown { position: relative; }
.cm-dropdown { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; background: #1a1d27; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 8px; box-shadow: 0 24px 48px rgba(0,0,0,.5); z-index: 999; }
.cm-has-dropdown:hover .cm-dropdown { display: block; }
.cm-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #9ca3af; }
.cm-dropdown a:hover { color: #22d3ee; background: rgba(34,211,238,.07); }
.cm-dropdown-sep { height: 1px; background: rgba(255,255,255,.07); margin: 6px 0; }
.cm-nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cm-cart-ico { position: relative; width: 38px; height: 38px; border-radius: 8px; border: 1px solid rgba(255,255,255,.11); display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 17px; transition: all .2s; }
.cm-cart-ico:hover { color: #22d3ee; border-color: rgba(34,211,238,.35); }
.cm-cart-dot { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; background: #22d3ee; color: #000; font-size: 10px; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cm-ava { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#22d3ee,#8b5cf6); color: #000; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-user-wrap { position: relative; }
.cm-user-trigger { background: none; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; padding: 5px 11px; display: flex; align-items: center; gap: 7px; cursor: pointer; color: #e5e7eb; font-size: 13px; font-family: inherit; transition: all .2s; }
.cm-user-trigger:hover { border-color: rgba(34,211,238,.35); }
.cm-user-drop { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 215px; background: #1a1d27; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 8px; box-shadow: 0 24px 48px rgba(0,0,0,.5); z-index: 999; }
.cm-user-wrap:hover .cm-user-drop { display: block; }
.cm-user-drop-head { padding: 8px 10px 11px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 6px; }
.cm-user-drop-head strong { display: block; font-size: 14px; color: #fff; }
.cm-user-drop-head small { color: #6b7280; font-size: 12px; }
.cm-user-drop a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #d1d5db; transition: all .15s; }
.cm-user-drop a:hover { background: rgba(255,255,255,.06); color: #fff; }
.cm-logout-link { color: #ef4444 !important; }
.cm-logout-link:hover { background: rgba(239,68,68,.08) !important; }
.cm-drop-divider { height: 1px; background: rgba(255,255,255,.07); margin: 6px 0; }
.cm-btn-ghost { padding: 7px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #e5e7eb; font-size: 13px; font-weight: 500; transition: all .2s; }
.cm-btn-ghost:hover { background: rgba(255,255,255,.07); color: #fff; }
.cm-btn-primary { padding: 7px 16px; background: #22d3ee; border-radius: 8px; color: #000 !important; font-size: 13px; font-weight: 700; transition: all .2s; }
.cm-btn-primary:hover { background: #06b6d4; }
.cm-burger { display: none; background: none; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 5px 9px; cursor: pointer; color: #e5e7eb; font-size: 20px; line-height: 1; }
.cm-mobile-nav { display: none; background: #1a1d27; border-top: 1px solid rgba(255,255,255,.07); padding: 10px 20px 16px; }
.cm-mobile-nav.open { display: block; }
.cm-mobile-nav a { display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #9ca3af; margin-bottom: 2px; }
.cm-mobile-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
@media(max-width:768px) { .cm-menu,.cm-btn-ghost,.cm-btn-primary { display:none; } .cm-burger { display:block; } .cm-nav-inner { padding:0 16px; } }

/* ---- Flash ---- */
.cm-flash { position: fixed; top: 68px; left: 0; right: 0; z-index: 9999; padding: 11px 0; transition: opacity .4s; }
.cm-flash-success { background: #22d3ee; color: #000; }
.cm-flash-error { background: #ef4444; color: #fff; }
.cm-flash-info { background: #8b5cf6; color: #fff; }

/* ---- Back to top ---- */
.cm-totop { position: fixed; bottom: 26px; right: 26px; width: 44px; height: 44px; background: #22d3ee; color: #000; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all .3s; z-index: 999; }
.cm-totop.show { opacity: 1; pointer-events: all; }
.cm-totop:hover { background: #06b6d4; transform: translateY(-3px); }

/* ---- Page Banner ---- */
.cm-page-banner { padding: 80px 0 50px; background: linear-gradient(160deg,#0f1117 60%,#0d1526 100%); border-bottom: 1px solid rgba(255,255,255,.05); }
.cm-page-banner h1 { font-size: clamp(26px,4vw,46px); font-weight: 700; color: #fff; margin-bottom: 10px; }
.breadcrumb { background: none; padding: 0; margin: 0; }
.breadcrumb-item a { color: #22d3ee; font-size: 14px; }
.breadcrumb-item.active { color: #6b7280; font-size: 14px; }
.breadcrumb-item+.breadcrumb-item::before { color: #374151; }

/* ---- Hero ---- */
.cm-hero { padding: 100px 0 80px; min-height: calc(100vh - 68px); display: flex; align-items: center; background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(34,211,238,.08) 0%, transparent 60%), #0f1117; }
.cm-hero-title { font-size: clamp(34px,5.5vw,66px); font-weight: 800; color: #fff; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 18px; }
.cm-hero-title span { background: linear-gradient(135deg,#22d3ee,#8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cm-hero-sub { font-size: 17px; color: #9ca3af; line-height: 1.75; max-width: 530px; margin-bottom: 32px; }
.cm-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.cm-hero-stats { display: flex; flex-wrap: wrap; gap: 28px; }
.cm-stat-item strong { display: block; font-size: 24px; font-weight: 700; color: #fff; }
.cm-stat-item span { font-size: 12px; color: #6b7280; text-transform: uppercase; letter-spacing: .5px; }
.cm-stat-sep { width: 1px; background: rgba(255,255,255,.1); }
.cm-hero-visual { display: flex; flex-direction: column; gap: 14px; }
.cm-hero-card { padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 16px; transition: all .3s; }
.cm-hero-card:hover { transform: translateX(8px); border-color: rgba(34,211,238,.25); }
.cm-hero-card-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cm-hero-card-text strong { display: block; font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; }
.cm-hero-card-text span { font-size: 13px; color: #6b7280; }
.cm-hc-1 { background: rgba(34,211,238,.04); } .cm-hc-1 .cm-hero-card-icon { background: rgba(34,211,238,.12); color: #22d3ee; }
.cm-hc-2 { background: rgba(139,92,246,.04); } .cm-hc-2 .cm-hero-card-icon { background: rgba(139,92,246,.12); color: #8b5cf6; }
.cm-hc-3 { background: rgba(245,158,11,.04); } .cm-hc-3 .cm-hero-card-icon { background: rgba(245,158,11,.12); color: #f59e0b; }

/* ---- Category Cards ---- */
.cm-cat-card { display: flex; align-items: center; gap: 18px; padding: 26px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; text-decoration: none; transition: all .3s; height: 100%; }
.cm-cat-card:hover { border-color: rgba(34,211,238,.3); background: rgba(34,211,238,.04); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.cm-cat-icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(34,211,238,.1); color: #22d3ee; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.cm-cat-card h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cm-cat-card p { font-size: 13px; color: #6b7280; margin-bottom: 10px; line-height: 1.55; }
.cm-cat-pill { font-size: 11px; color: #22d3ee; background: rgba(34,211,238,.1); padding: 2px 10px; border-radius: 20px; }
.cm-cat-arrow { margin-left: auto; font-size: 18px; color: #2d3149; transition: all .3s; flex-shrink: 0; }
.cm-cat-card:hover .cm-cat-arrow { color: #22d3ee; transform: translateX(4px); }

/* ---- Product Card ---- */
.cm-product-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; height: 100%; }
.cm-product-card:hover { border-color: rgba(34,211,238,.28); transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.35); }
.cm-product-thumb { position: relative; height: 200px; overflow: hidden; background: #1a1d27; }
.cm-product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cm-product-card:hover .cm-product-thumb img { transform: scale(1.05); }
.cm-product-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; }
.cm-product-card:hover .cm-product-overlay { opacity: 1; }
.cm-preview-link { padding: 9px 22px; background: #22d3ee; color: #000; border-radius: 9px; font-size: 13px; font-weight: 700; transition: all .2s; }
.cm-preview-link:hover { background: #fff; color: #000; }
.cm-badge { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.cm-badge-sale { background: #ef4444; color: #fff; }
.cm-badge-new { background: #22c55e; color: #fff; }
.cm-badge-hot { background: #f59e0b; color: #000; }
.cm-product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.cm-product-cat { font-size: 11px; color: #22d3ee; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.cm-product-title { font-size: 15px; font-weight: 600; color: #fff; margin: 7px 0 8px; line-height: 1.4; }
.cm-product-title a { color: inherit; }
.cm-product-title a:hover { color: #22d3ee; }
.cm-product-desc { font-size: 13px; color: #6b7280; line-height: 1.6; flex: 1; margin-bottom: 14px; }
.cm-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.cm-price-grp { display: flex; align-items: baseline; gap: 7px; }
.cm-price { font-size: 19px; font-weight: 700; color: #22d3ee; }
.cm-price-old { font-size: 13px; color: #4b5563; text-decoration: line-through; }
.cm-add-btn { padding: 7px 15px; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.28); color: #22d3ee; border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap; text-decoration: none; font-family: inherit; }
.cm-add-btn:hover { background: #22d3ee; color: #000; border-color: #22d3ee; }
.cm-add-btn-owned { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.28); color: #22c55e; }
.cm-add-btn-owned:hover { background: #22c55e; color: #000; border-color: #22c55e; }
.cm-add-btn-incart { background: rgba(139,92,246,.1); border-color: rgba(139,92,246,.28); color: #8b5cf6; }

/* ---- Features ---- */
.cm-feature-card { padding: 30px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; height: 100%; transition: all .3s; }
.cm-feature-card:hover { border-color: rgba(34,211,238,.2); background: rgba(34,211,238,.025); }
.cm-feature-ico { width: 50px; height: 50px; border-radius: 12px; background: rgba(34,211,238,.1); color: #22d3ee; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.cm-feature-card h4 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 9px; }
.cm-feature-card p { font-size: 14px; color: #6b7280; line-height: 1.7; margin: 0; }

/* ---- CTA Banner ---- */
.cm-cta { padding: 80px 0; }
.cm-cta-box { background: linear-gradient(135deg,rgba(34,211,238,.09),rgba(139,92,246,.09)); border: 1px solid rgba(34,211,238,.18); border-radius: 24px; padding: 64px 40px; text-align: center; }
.cm-cta-box h2 { font-size: clamp(26px,4vw,44px); font-weight: 700; color: #fff; margin-bottom: 10px; }
.cm-cta-box p { color: #9ca3af; font-size: 16px; margin-bottom: 28px; }
.cm-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---- Shop page ---- */
.cm-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.cm-search-form { display: flex; gap: 10px; flex: 1; min-width: 240px; }
.cm-search-box { flex: 1; position: relative; }
.cm-search-box i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 15px; pointer-events: none; }
.cm-search-box input { width: 100%; height: 42px; padding: 0 40px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #fff; font-size: 14px; outline: none; transition: all .2s; font-family: inherit; }
.cm-search-box input:focus { border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.03); }
.cm-search-box input::placeholder { color: #4b5563; }
.cm-sort-wrap { display: flex; align-items: center; gap: 12px; }
.cm-count { font-size: 14px; color: #6b7280; white-space: nowrap; }
.cm-select { padding: 8px 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #fff; font-size: 13px; outline: none; cursor: pointer; font-family: inherit; }
.cm-select option { background: #1a1d27; }
.cm-sidebar-widget { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.cm-sidebar-widget h5 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.cm-filter-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; border-radius: 8px; font-size: 13px; color: #9ca3af; transition: all .2s; }
.cm-filter-link:hover, .cm-filter-link.active { color: #22d3ee; background: rgba(34,211,238,.08); }
.cm-filter-num { background: rgba(255,255,255,.08); padding: 1px 8px; border-radius: 20px; font-size: 11px; }
.cm-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.cm-page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); color: #9ca3af; font-size: 14px; transition: all .2s; }
.cm-page-btn:hover, .cm-page-btn.active { background: #22d3ee; border-color: #22d3ee; color: #000; font-weight: 700; }
.cm-empty { text-align: center; padding: 60px 20px; }
.cm-empty i { font-size: 52px; color: #2d3149; display: block; margin-bottom: 18px; }
.cm-empty h4 { color: #fff; margin-bottom: 8px; }
.cm-empty p { color: #6b7280; font-size: 14px; }

/* ---- Product Detail ---- */
.cm-detail-img { border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.cm-detail-img img { width: 100%; display: block; }
.cm-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cm-tag { padding: 4px 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; font-size: 12px; color: #9ca3af; transition: all .2s; }
.cm-tag:hover { color: #22d3ee; border-color: rgba(34,211,238,.35); }
.cm-detail-title { font-size: clamp(22px,3vw,34px); font-weight: 700; color: #fff; margin: 14px 0 16px; }
.cm-stars { display: flex; align-items: center; gap: 3px; margin-bottom: 18px; flex-wrap: wrap; }
.cm-star-fill { color: #f59e0b; }
.cm-star-empty { color: #374151; }
.cm-detail-desc { font-size: 15px; color: #9ca3af; line-height: 1.8; margin-bottom: 24px; }
.cm-buy-box { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 18px; padding: 24px; margin-bottom: 20px; }
.cm-price-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.cm-price-main { font-size: 38px; font-weight: 800; color: #22d3ee; }
.cm-price-was { font-size: 18px; color: #4b5563; text-decoration: line-through; }
.cm-discount-tag { background: rgba(239,68,68,.15); color: #ef4444; padding: 3px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.cm-owned-badge { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.28); border-radius: 10px; color: #22c55e; font-size: 14px; margin-bottom: 14px; }
.cm-meta-list { display: flex; flex-direction: column; gap: 10px; }
.cm-meta-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #9ca3af; }
.cm-meta-item i { color: #22d3ee; font-size: 16px; }
.cm-review-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.cm-review-user { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cm-review-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(34,211,238,.15); color: #22d3ee; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-review-user strong { display: block; font-size: 14px; color: #fff; }
.cm-review-text { font-size: 14px; color: #9ca3af; line-height: 1.7; margin: 0; }
.cm-review-form-box { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; padding: 24px; }
.cm-review-form-box h5 { color: #fff; margin-bottom: 16px; }

/* ---- Auth ---- */
.cm-auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 90px 20px 60px; background: radial-gradient(ellipse 70% 50% at 50% 0%,rgba(34,211,238,.07),transparent), #0f1117; }
.cm-auth-card { width: 100%; max-width: 450px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: 40px; }
.cm-auth-logo { text-align: center; margin-bottom: 28px; }
.cm-auth-title { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 6px; text-align: center; }
.cm-auth-sub { font-size: 14px; color: #6b7280; text-align: center; margin-bottom: 28px; }
.cm-field { margin-bottom: 18px; }
.cm-field label { display: flex; justify-content: space-between; font-size: 13px; color: #9ca3af; font-weight: 500; margin-bottom: 8px; }
.cm-field label a { color: #22d3ee; font-size: 12px; }
.cm-input-wrap { position: relative; }
.cm-input-wrap .cm-input-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #4b5563; font-size: 15px; pointer-events: none; }
.cm-input-wrap input { width: 100%; height: 46px; padding: 0 46px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; color: #1C1A1E; font-size: 14px; outline: none; transition: all .2s; font-family: inherit; }
.cm-input-wrap input:focus { border-color: #5956E9; background: #fff; }
.cm-input-wrap input::placeholder { color: #9ca3af; }
.cm-eye { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #4b5563; font-size: 16px; }
.cm-check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.cm-check-row input { width: 15px; height: 15px; accent-color: #22d3ee; margin-top: 2px; cursor: pointer; flex-shrink: 0; }
.cm-check-row a { color: #22d3ee; }
.cm-alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
.cm-alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.28); color: #ef4444; }
.cm-alert-success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.28); color: #22c55e; }
.cm-auth-footer-txt { text-align: center; margin-top: 22px; font-size: 14px; color: #6b7280; }
.cm-auth-footer-txt a { color: #22d3ee; }
.cm-demo-hint { text-align: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #4b5563; }

/* ---- Cart ---- */
.cm-empty-cart { text-align: center; padding: 80px 20px; }
.cm-empty-cart i { font-size: 64px; color: #1f2235; display: block; margin-bottom: 18px; }
.cm-cart-item { display: flex; gap: 18px; padding: 20px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; margin-bottom: 14px; align-items: flex-start; transition: border-color .2s; }
.cm-cart-item:hover { border-color: rgba(255,255,255,.12); }
.cm-cart-thumb { width: 96px; height: 76px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #1a1d27; }
.cm-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-cart-info { flex: 1; }
.cm-cart-info h5 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.cm-cart-info h5 a { color: inherit; }
.cm-cart-info h5 a:hover { color: #22d3ee; }
.cm-cart-sub { font-size: 13px; color: #6b7280; margin-bottom: 10px; }
.cm-cart-perks { display: flex; gap: 14px; font-size: 12px; color: #4b5563; }
.cm-cart-right { text-align: right; flex-shrink: 0; }
.cm-remove-btn { background: none; border: none; color: #4b5563; cursor: pointer; font-size: 17px; padding: 3px; transition: color .2s; margin-top: 6px; }
.cm-remove-btn:hover { color: #ef4444; }
.cm-summary-box { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 26px; position: sticky; top: 86px; }
.cm-summary-box h4 { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.cm-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #9ca3af; margin-bottom: 10px; }
.cm-summary-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.cm-summary-sep { height: 1px; background: rgba(255,255,255,.07); margin: 14px 0; }
.cm-summary-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.cm-total-val { font-size: 22px; color: #22d3ee; }
.cm-secure-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #6b7280; padding: 12px; background: rgba(34,211,238,.04); border-radius: 10px; margin-bottom: 14px; }

/* ---- Checkout ---- */
.cm-checkout-box { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 30px; }
.cm-pay-opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; cursor: pointer; font-size: 14px; color: #9ca3af; transition: all .2s; margin-bottom: 10px; }
.cm-pay-opt:has(input:checked), .cm-pay-opt.active { border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.05); color: #22d3ee; }
.cm-stripe-box { padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.03); min-height: 52px; display: flex; align-items: center; }
.cm-stripe-note { font-size: 13px; color: #6b7280; }
.cm-stripe-element { padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; min-height: 48px; transition: border-color .2s; }
.cm-stripe-element:hover { border-color: #c7c7cc; }
.cm-stripe-element.StripeElement--focus { border-color: #5956E9; box-shadow: 0 0 0 3px rgba(89,86,233,.12); }
.cm-stripe-element.StripeElement--invalid { border-color: #ef4444; }
.cm-card-errors { color: #ef4444; font-size: 13px; font-weight: 600; margin-top: 8px; min-height: 20px; }
.cm-checkout-box { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 30px; }
.cm-checkout-box h4 { color: #1C1A1E; }
.cm-checkout-box label { color: #374151; font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.cm-checkout-box .cm-input-wrap input { background: #f9fafb; border: 1px solid #e5e7eb; color: #1C1A1E; }
.cm-checkout-box .cm-input-wrap input:focus { border-color: #5956E9; background: #fff; }
.cm-checkout-box .cm-input-wrap input::placeholder { color: #9ca3af; }
.cm-checkout-box .cm-input-wrap .cm-input-ico { color: #9ca3af; }
.cm-payment-opt { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid #e5e7eb; border-radius: 10px; cursor: pointer; font-size: 14px; color: #374151; transition: all .2s; margin-bottom: 10px; }
.cm-payment-opt:has(input:checked), .cm-payment-opt.active { border-color: #5956E9; background: rgba(89,86,233,.04); color: #5956E9; }
.cm-payment-opt input[type="radio"] { accent-color: #5956E9; }
.cm-secure-badge { display: flex; align-items: center; font-size: 13px; color: #6b7280; margin-top: 14px; }
.cm-checkout-summary { background: #fff; border: 1px solid #eee; border-radius: 20px; padding: 26px; position: sticky; top: 86px; }
.cm-checkout-summary h4 { color: #1C1A1E; }
.cm-summary-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.cm-summary-item img { width: 56px; height: 44px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.cm-summary-item-info { flex: 1; }
.cm-summary-item-info strong { display: block; font-size: 13px; color: #1C1A1E; margin-bottom: 2px; }
.cm-summary-item-info span { font-size: 12px; color: #6b7280; }
.cm-summary-item-price { margin-left: auto; font-size: 15px; font-weight: 600; color: #5956E9; white-space: nowrap; }
.cm-secure-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; margin-top: 14px; }
.cm-checkout-summary { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 26px; position: sticky; top: 86px; }
.cm-checkout-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.cm-checkout-item:last-of-type { border-bottom: none; }
.cm-checkout-item img { width: 56px; height: 44px; border-radius: 7px; object-fit: cover; flex-shrink: 0; }
.cm-checkout-item-info strong { display: block; font-size: 13px; color: #fff; margin-bottom: 2px; }
.cm-checkout-item-info span { font-size: 12px; color: #6b7280; }
.cm-checkout-item-price { margin-left: auto; font-size: 15px; font-weight: 600; color: #22d3ee; white-space: nowrap; }
.cm-guarantees { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: rgba(255,255,255,.025); border-radius: 12px; margin-top: 16px; font-size: 13px; color: #9ca3af; }

/* ---- Dashboard ---- */
.cm-dash-sidebar { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 24px; position: sticky; top: 86px; }
.cm-profile-head { text-align: center; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 18px; }
.cm-profile-ava { width: 62px; height: 62px; border-radius: 50%; background: linear-gradient(135deg,#22d3ee,#8b5cf6); color: #000; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.cm-profile-head h5 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.cm-profile-head small { color: #6b7280; font-size: 12px; display: block; }
.cm-dash-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 10px; color: #9ca3af; font-size: 14px; transition: all .2s; margin-bottom: 3px; }
.cm-dash-nav-link:hover, .cm-dash-nav-link.active { background: rgba(34,211,238,.1); color: #22d3ee; }
.cm-dash-nav-link.cm-nav-admin { color: #8b5cf6; }
.cm-dash-nav-link.cm-nav-admin:hover { background: rgba(139,92,246,.1); }
.cm-dash-nav-link.cm-nav-logout { color: #ef4444; margin-top: 8px; }
.cm-dash-nav-link.cm-nav-logout:hover { background: rgba(239,68,68,.1); }
.cm-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 24px; }
.cm-stat-card { background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 18px; display: flex; align-items: center; gap: 14px; }
.cm-stat-ico { width: 46px; height: 46px; border-radius: 11px; background: rgba(34,211,238,.1); color: #22d3ee; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cm-stat-card h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.cm-stat-card span { font-size: 12px; color: #6b7280; }
.cm-downloads-box { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 26px; }
.cm-dl-card { display: flex; gap: 16px; padding: 16px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; margin-bottom: 14px; align-items: flex-start; transition: border-color .2s; }
.cm-dl-card:hover { border-color: rgba(34,211,238,.18); }
.cm-dl-thumb { width: 78px; height: 62px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: #1a1d27; }
.cm-dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cm-dl-info { flex: 1; }
.cm-dl-info h5 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.cm-dl-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #4b5563; }
.cm-dl-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
@media(max-width:768px) { .cm-stats-row{grid-template-columns:1fr 1fr} .cm-dl-card{flex-wrap:wrap} .cm-dl-actions{width:100%;flex-direction:row} }

/* ---- Footer ---- */
.cm-footer { background: #0a0c12; border-top: 1px solid rgba(255,255,255,.06); padding: 64px 0 0; }
.cm-footer-top { padding-bottom: 48px; }
.cm-footer-about { font-size: 14px; color: #6b7280; line-height: 1.75; margin-bottom: 20px; }
.cm-footer-socials { display: flex; gap: 10px; }
.cm-footer-socials a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 16px; transition: all .2s; }
.cm-footer-socials a:hover { border-color: rgba(34,211,238,.35); color: #22d3ee; }
.cm-footer-heading { font-size: 12px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.cm-footer-links { display: flex; flex-direction: column; gap: 9px; }
.cm-footer-links a { font-size: 14px; color: #6b7280; transition: color .2s; }
.cm-footer-links a:hover { color: #22d3ee; }
.cm-newsletter-form { display: flex; gap: 8px; }
.cm-newsletter-form input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #fff; font-size: 13px; outline: none; font-family: inherit; }
.cm-newsletter-form input::placeholder { color: #4b5563; }
.cm-newsletter-form input:focus { border-color: rgba(34,211,238,.4); }
.cm-newsletter-form button { padding: 10px 18px; background: #22d3ee; border: none; border-radius: 9px; color: #000; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .2s; }
.cm-newsletter-form button:hover { background: #06b6d4; }
.cm-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 20px 0; }
.cm-footer-bottom p { margin: 0; font-size: 13px; color: #4b5563; }
.cm-footer-bottom a { color: #22d3ee; }
.cm-footer-bottom a:hover { text-decoration: underline; }

/* ---- Misc ---- */
.cm-link { color: #22d3ee; }
.cm-link:hover { text-decoration: underline; }
.cm-textarea { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 14px; resize: vertical; outline: none; font-family: inherit; transition: border-color .2s; }
.cm-textarea:focus { border-color: rgba(34,211,238,.4); }
.cm-star-rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 14px; }
.cm-star-rate input { display: none; }
.cm-star-rate label { cursor: pointer; font-size: 26px; color: #2d3149; transition: color .15s; }
.cm-star-rate label::before { content: '★'; }
.cm-star-rate input:checked ~ label, .cm-star-rate label:hover, .cm-star-rate label:hover ~ label { color: #f59e0b; }
.cm-no-reviews { text-align: center; padding: 36px; color: #6b7280; background: rgba(255,255,255,.02); border-radius: 14px; font-size: 14px; }

/* Live Preview Thumbnail — iframe auto-scaled to fit card */
/* iPad-style frame for product cards */
.ipad-frame{position:relative;background:#1a1a2e;border-radius:18px;padding:10px;height:240px;overflow:hidden;border:2px solid #2a2a40;box-shadow:0 8px 30px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.05)}
.ipad-screen{position:relative;width:100%;height:100%;border-radius:10px;overflow:hidden;background:#0d1117}
.ipad-screen iframe{width:1440px;height:900px;transform-origin:top left;pointer-events:none;border:none;position:absolute;top:0;left:0;z-index:1}
.ipad-screen .ipad-overlay{position:absolute;inset:0;z-index:3;cursor:pointer}
.ipad-notch{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:36px;height:4px;background:rgba(255,255,255,.12);border-radius:4px;z-index:4}
.ipad-frame::before{content:'';position:absolute;top:3px;left:50%;transform:translateX(-50%);width:5px;height:5px;background:rgba(255,255,255,.06);border-radius:50%;z-index:5}
.ipad-frame::after{content:'';position:absolute;inset:0;border-radius:18px;pointer-events:none;z-index:4;background:linear-gradient(180deg,rgba(255,255,255,.03) 0%,transparent 30%)}

/* iPad small (related products) */
.ipad-frame-sm{position:relative;background:#1a1a2e;border-radius:14px;padding:7px;height:170px;overflow:hidden;border:2px solid #2a2a40;box-shadow:0 4px 16px rgba(0,0,0,.15)}
.ipad-frame-sm .ipad-screen{position:relative;width:100%;height:100%;border-radius:8px;overflow:hidden;background:#0d1117}
.ipad-frame-sm .ipad-screen iframe{width:1440px;height:900px;transform-origin:top left;pointer-events:none;border:none;position:absolute;top:0;left:0;z-index:1}
.ipad-frame-sm .ipad-overlay{position:absolute;inset:0;z-index:3;cursor:pointer}

/* Legacy compat */
.cm-card-preview{position:relative;overflow:hidden;background:#0d1117;height:220px}
.cm-card-preview iframe{width:1440px;height:900px;transform-origin:top left;transform:scale(0.27);pointer-events:none;border:none;position:absolute;top:0;left:0;z-index:1}
.cm-card-preview .cm-card-overlay{position:absolute;inset:0;z-index:3;cursor:pointer}
.cm-card-preview-sm{position:relative;overflow:hidden;background:#0d1117;height:160px}
.cm-card-preview-sm iframe{width:1440px;height:900px;transform-origin:top left;transform:scale(0.22);pointer-events:none;border:none;position:absolute;top:0;left:0;z-index:1}
.cm-card-preview-sm .cm-card-overlay{position:absolute;inset:0;z-index:3;cursor:pointer}

/* Legacy compat */
.cm-live-thumb{position:relative;overflow:hidden;background:#f8f9fb}
.cm-live-thumb iframe{width:1440px;height:900px;transform-origin:top left;pointer-events:none;border:none;position:absolute;top:0;left:0;z-index:1;opacity:0;transition:opacity .4s}
.cm-live-thumb iframe.cm-scaled{opacity:1}
.cm-live-thumb .cm-thumb-overlay{position:absolute;inset:0;z-index:3;cursor:pointer}
.cm-live-thumb .cm-thumb-img{display:none}

/* =============================================
   MOBILE RESPONSIVE FIXES
   ============================================= */

/* Mobile card previews — smaller height, adjusted scale */
@media(max-width:767px){
  .ipad-frame{height:180px;padding:6px;border-radius:14px}
  .ipad-frame-sm{height:130px;padding:5px;border-radius:10px}
  .cm-card-preview{height:160px}
  .cm-card-preview-sm{height:120px}
  .mc-preview{height:160px!important;border-radius:12px}
  .mc-card{border-radius:18px;padding:12px 12px 0}
  .mc-title{font-size:15px}
  .mc-meta{grid-template-columns:1fr;gap:6px}
  .mc-btn{padding:8px 14px;font-size:12px}
  .mc-footer{padding:10px 0}
}

/* Product page mobile — pinch-to-zoom preview */
@media(max-width:767px){
  .pdp-iframe-wrap{overflow:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
  .pdp-iframe-wrap iframe{pointer-events:auto!important;touch-action:pinch-zoom}
  .pdp-iframe-wrap .pdp-iframe-shield{display:none!important}
}

/* Mobile desktop badge — shown via JS */
.mobile-desktop-badge{display:none;position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:9998;padding:10px 20px;background:rgba(17,17,17,.92);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.1);border-radius:50px;font-size:12px;font-weight:700;color:#fff;white-space:nowrap;box-shadow:0 8px 30px rgba(0,0,0,.3);gap:8px;align-items:center}
.mobile-desktop-badge i{color:#f59e0b;font-size:14px}
.mobile-desktop-badge .close-badge{background:none;border:none;color:#666;font-size:16px;cursor:pointer;padding:0 0 0 8px}
@media(max-width:767px){
  .mobile-desktop-badge{display:flex}
}

/* Landscape prompt overlay */
.mobile-rotate-prompt{display:none;position:fixed;inset:0;z-index:99998;background:rgba(0,0,0,.85);backdrop-filter:blur(6px);flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#fff;text-align:center;padding:24px}
.mobile-rotate-prompt .rotate-icon{font-size:48px;animation:rotateHint 2s ease-in-out infinite}
@keyframes rotateHint{0%,100%{transform:rotate(0deg)}50%{transform:rotate(90deg)}}
.mobile-rotate-prompt h3{font-size:18px;font-weight:800;margin:0}
.mobile-rotate-prompt p{font-size:13px;color:#9ca3af;max-width:280px;margin:0}
.mobile-rotate-prompt button{padding:10px 24px;background:#5956E9;color:#fff;border:none;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer}
@media(max-width:767px) and (orientation:portrait){
  .mobile-rotate-prompt.show-on-product{display:flex}
}

/* Shop page mobile grid */
@media(max-width:575px){
  .shop-grid .col-md-6{flex:0 0 100%;max-width:100%}
}

/* Editor mobile */
@media(max-width:767px){
  .ed-sidebar{display:none!important}
  .ed-topbar{flex-wrap:wrap;height:auto;padding:8px;gap:6px}
  .ed-topbar-left,.ed-topbar-right{width:100%;justify-content:center}
  .ed-btn{padding:6px 10px;font-size:11px}
  .ed-iframe-container iframe{width:800px!important;height:500px!important}
}
