/* ============================================================
   CREVIZ MARKETPLACE — marketplace.css  v2.0
   Theme : Dark + Fire (Red → Orange → Yellow)
   Font  : Poppins
============================================================ */

/* ---- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #0c0a09;
  color: #f0ece8;
  line-height: 1.7;
  overflow-x: hidden;
}

:root {
  --fire:      linear-gradient(135deg, #ff2d2d, #ff6b1a, #ffc93c);
  --orange:    #ff6b1a;
  --red:       #ff2d2d;
  --yellow:    #ffc93c;
  --glow:      rgba(255, 107, 26, .35);
  --bg:        #0c0a09;
  --bg2:       #110e0b;
  --bg3:       #181210;
  --card:      rgba(255, 255, 255, .035);
  --border:    rgba(255, 255, 255, .08);
  --text:      #f0ece8;
  --muted:     #9e9189;
  --success:   #4ade80;
  --r-sm:      6px;
  --r-md:      12px;
  --r-lg:      20px;
  --r-xl:      30px;
  --nav-h:     68px;
  --sidebar-w: 260px;
  --t:         all .3s ease;
  --t-sp:      all .4s cubic-bezier(.34, 1.56, .64, 1);
}

a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fire); border-radius: 6px; }

.accent-text, .accent {
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-img-icon {
  width: 22px; height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }


/* ============================================================
   NAVBAR
============================================================ */
.mk-navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  background: rgba(12, 10, 9, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 26, .12);
  z-index: 1000;
  transition: var(--t);
}

.mk-nav-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* Logo */
.mk-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  transition: var(--t-sp);
  justify-self: start;
  text-decoration: none;
}

.mk-logo:hover { transform: scale(1.03); }

.mk-logo-icon {
  width: 34px; height: 34px;
  background: var(--fire);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: .85rem;
  box-shadow: 0 0 14px var(--glow);
  flex-shrink: 0;
  overflow: hidden;
}

.mk-logo-icon-sm {
  width: 26px; height: 26px;
  font-size: .7rem;
}

/* Search */
.mk-search-wrap {
  justify-self: center;
  width: 100%;
  max-width: 560px;
}

.mk-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: var(--t);
  position: relative;
}

.mk-search-form:focus-within {
  border-color: var(--orange);
  background: rgba(255, 107, 26, .05);
  box-shadow: 0 0 0 3px rgba(255, 107, 26, .12);
}

.mk-search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  font-size: .85rem;
  pointer-events: none;
}

.mk-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 14px 10px 40px;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
}

.mk-search-input::placeholder { color: var(--muted); opacity: .6; }

.mk-search-btn {
  background: var(--fire);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: .8rem;
  font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
}

.mk-search-btn:hover { filter: brightness(1.12); }

/* Nav actions */
.mk-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}

.mk-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-xl);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  transition: var(--t-sp);
  text-decoration: none;
}

.mk-nav-btn:hover {
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(255, 107, 26, .2);
}

/* Highlighted Sign In button */
.mk-signin-btn {
  color: var(--orange);
  border-color: rgba(255, 107, 26, .3);
  background: rgba(255, 107, 26, .08);
}

.mk-signin-btn:hover {
  background: var(--fire);
  color: #fff;
  border-color: transparent;
}

/* Cart button */
.mk-cart-btn {
  position: relative;
  padding: 10px 16px;
  font-size: 1rem;
}

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--fire);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.cart-count.bump { transform: scale(1.5); }


/* ============================================================
   HERO BANNER
============================================================ */
.mk-hero {
  margin-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 107, 26, .18) 0%, transparent 70%),
    radial-gradient(ellipse at 0%  80%, rgba(255, 45, 45, .14)  0%, transparent 60%),
    radial-gradient(ellipse at 100% 50%, rgba(255, 201, 60, .10) 0%, transparent 60%),
    #0c0a09;
  border-bottom: 1px solid rgba(255, 107, 26, .12);
}

.mk-hero-bg { position: absolute; inset: 0; pointer-events: none; }

.mk-orb {
  position: absolute;
  border-radius: 50%;
  animation: mk-orb-float ease-in-out infinite alternate;
}

.mk-orb-1 {
  width: 420px; height: 420px;
  top: -160px; left: -100px;
  background: radial-gradient(circle, rgba(255, 45, 45, .14), transparent 70%);
  animation-duration: 10s;
}
.mk-orb-2 {
  width: 360px; height: 360px;
  bottom: -130px; right: -80px;
  background: radial-gradient(circle, rgba(255, 107, 26, .12), transparent 70%);
  animation-duration: 13s;
  animation-delay: -4s;
}
.mk-orb-3 {
  width: 220px; height: 220px;
  top: 30%; left: 60%;
  background: radial-gradient(circle, rgba(255, 201, 60, .10), transparent 70%);
  animation-duration: 8s;
  animation-delay: -2s;
}

@keyframes mk-orb-float {
  from { transform: translate(0, 0)    scale(1); }
  to   { transform: translate(20px, -30px) scale(1.05); }
}

.mk-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding: 56px 24px;
}

.mk-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--orange);
  background: rgba(255, 107, 26, .1);
  border: 1px solid rgba(255, 107, 26, .25);
  padding: 4px 14px;
  border-radius: var(--r-xl);
  margin-bottom: 18px;
}

.mk-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 14px;
}

.mk-hero-content p {
  font-size: .95rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.mk-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.mk-stat { text-align: center; }

.mk-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mk-stat span {
  font-size: .68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mk-stat-divider {
  width: 1px; height: 36px;
  background: var(--border);
}


/* ============================================================
   MAIN LAYOUT
============================================================ */
.mk-main {
  max-width: 1440px;
  margin-inline: auto;
  padding: 32px 24px 80px;
}

.mk-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 32px;
  align-items: start;
}


/* ============================================================
   SIDEBAR
============================================================ */
.mk-sidebar {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
}

.mk-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.mk-sidebar-header h2 {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mk-sidebar-header h2 i { color: var(--orange); }

.mk-clear-btn {
  font-size: .7rem;
  font-weight: 600;
  color: var(--orange);
  background: none;
  border: 1px solid rgba(255, 107, 26, .25);
  padding: 4px 10px;
  border-radius: var(--r-xl);
  transition: var(--t);
}

.mk-clear-btn:hover { background: rgba(255, 107, 26, .1); }

.mk-filter-group {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.mk-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.mk-filter-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.mk-filter-list { display: flex; flex-direction: column; gap: 10px; }

.mk-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s ease;
  user-select: none;
}

.mk-checkbox-label:hover { color: var(--text); }

.mk-checkbox-label span {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.mk-checkbox-label span i { color: var(--orange); font-size: .75rem; }

.mk-checkbox {
  width: 16px; height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}

.mk-count {
  font-size: .65rem;
  background: rgba(255, 107, 26, .12);
  color: var(--orange);
  padding: 1px 6px;
  border-radius: 20px;
  font-style: normal;
  font-weight: 600;
}

/* Price inputs */
.mk-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mk-price-field {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: .8rem;
  color: var(--muted);
  flex: 1;
}

.mk-price-field input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: .8rem;
  width: 100%;
  min-width: 0;
}

.mk-price-sep { color: var(--muted); flex-shrink: 0; }

.mk-range {
  width: 100%;
  accent-color: var(--orange);
  margin-bottom: 8px;
}

.mk-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
}

/* Star filter */
.mk-star-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mk-star-btn {
  padding: 5px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--t);
}

.mk-star-btn:hover,
.mk-star-btn.active {
  background: var(--fire);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--glow);
}


/* ============================================================
   TOOLBAR
============================================================ */
.mk-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.mk-result-count { font-size: .85rem; color: var(--muted); }
.mk-result-count strong { color: var(--text); }

.mk-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mk-sort-select {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .8rem;
  padding: 8px 28px 8px 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239e9189' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  cursor: pointer;
  transition: var(--t);
}

.mk-sort-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 26, .12);
}

.mk-sort-select option { background: var(--bg2); }

.mk-view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.mk-view-btn {
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, .04);
  border: none;
  color: var(--muted);
  font-size: .8rem;
  transition: var(--t);
  display: grid;
  place-items: center;
}

.mk-view-btn.active,
.mk-view-btn:hover {
  background: var(--fire);
  color: #fff;
}

.mk-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 107, 26, .1);
  border: 1px solid rgba(255, 107, 26, .25);
  border-radius: var(--r-sm);
  color: var(--orange);
  font-size: .8rem;
  font-weight: 600;
  transition: var(--t);
}

.mk-filter-toggle:hover {
  background: rgba(255, 107, 26, .2);
}

/* Active filter pills */
.mk-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.mk-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 26, .12);
  border: 1px solid rgba(255, 107, 26, .25);
  color: var(--orange);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-xl);
}

.mk-pill button {
  background: none;
  border: none;
  color: inherit;
  font-size: .65rem;
  padding: 0;
  line-height: 1;
  transition: color .2s;
}

.mk-pill button:hover { color: var(--red); }


/* ============================================================
   PRODUCT GRID
============================================================ */
.mk-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: all .4s ease;
}

.mk-product-grid.list-view { grid-template-columns: 1fr; }

/* ---- PRODUCT CARD ----------------------------------------- */
.mk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Fire border on hover */
.mk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  padding: 1px;
  background: var(--fire);
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 1;
}

.mk-card:hover::before { opacity: 1; }

.mk-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 107, 26, .3);
  box-shadow: 0 16px 48px rgba(0,0,0,.5),
              0 0 40px rgba(255, 107, 26, .18);
}

/* Image area */
.mk-card-img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 26, .1),
    rgba(255, 45, 45, .06)
  );
  flex-shrink: 0;
}

.mk-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mk-card:hover .mk-card-img img { transform: scale(1.07); }

/* Placeholder icon */
.mk-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--orange);
  opacity: .35;
  transition: all .3s ease;
}

.mk-card:hover .mk-card-img-placeholder {
  opacity: .55;
  transform: scale(1.1) rotate(-5deg);
}

/* Badges */
.mk-card-badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.mk-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: var(--r-xl);
}

.mk-badge-new  { background: var(--fire); color: #fff; }
.mk-badge-hot  { background: rgba(255, 45, 45, .9); color: #fff; }
.mk-badge-sale { background: rgba(74, 222, 128, .9); color: #0c0a09; }
.mk-badge-free { background: rgba(255, 201, 60, .9); color: #0c0a09; }

/* Wishlist button */
.mk-wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(12, 10, 9, .75);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  color: var(--muted);
  transition: var(--t-sp);
  z-index: 2;
  backdrop-filter: blur(6px);
}

.mk-wishlist-btn:hover,
.mk-wishlist-btn.active {
  color: var(--red);
  border-color: var(--red);
  background: rgba(255, 45, 45, .15);
  transform: scale(1.15);
}

/* Quick View overlay */
.mk-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 107, 26, .1);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--t);
  z-index: 2;
}

.mk-card:hover .mk-card-overlay { opacity: 1; }

.mk-quick-view-btn {
  background: rgba(12, 10, 9, .85);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--r-xl);
  font-size: .78rem;
  font-weight: 600;
  transition: var(--t);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mk-quick-view-btn:hover {
  background: var(--fire);
  border-color: transparent;
}

/* Card body */
.mk-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.mk-card-category {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
  background: rgba(255, 107, 26, .1);
  padding: 2px 8px;
  border-radius: var(--r-xl);
  display: inline-block;
  align-self: flex-start;
}

.mk-card-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  transition: color .2s ease;
}

.mk-card:hover .mk-card-title { color: var(--orange); }

.mk-card-desc {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mk-card-formats {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mk-format-tag {
  font-size: .6rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 4px;
  transition: var(--t);
}

.mk-card:hover .mk-format-tag {
  border-color: rgba(255, 107, 26, .2);
  color: var(--orange);
}

.mk-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
}

.mk-stars { color: var(--yellow); letter-spacing: 1px; }
.mk-rating-count { color: var(--muted); font-size: .72rem; }

/* Card footer */
.mk-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mk-price-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.mk-price {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mk-price-original {
  font-size: .72rem;
  color: var(--muted);
  text-decoration: line-through;
}

.mk-price-free {
  font-size: 1.1rem;
  font-weight: 800;
  color: #4ade80;
}

/* Buy button */
.mk-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--fire);
  color: #fff;
  border: none;
  border-radius: var(--r-xl);
  font-size: .78rem;
  font-weight: 700;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  white-space: nowrap;
}

.mk-buy-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px var(--glow);
  filter: brightness(1.1);
}

.mk-buy-btn:active { transform: scale(.97); }

.mk-buy-btn.added {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 8px 20px rgba(74, 222, 128, .3);
}

/* ---- LIST VIEW overrides ---------------------------------- */
.list-view .mk-card {
  flex-direction: row;
  height: 150px;
}

.list-view .mk-card-img {
  width: 210px;
  height: 100%;
  flex-shrink: 0;
}

.list-view .mk-card-body {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.list-view .mk-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-view .mk-card-footer {
  flex-direction: column;
  align-items: flex-end;
  border-top: none;
  border-left: 1px solid var(--border);
  padding: 0 0 0 16px;
  margin-top: 0;
  min-width: 140px;
}


/* ============================================================
   NO RESULTS
============================================================ */
.mk-no-results {
  text-align: center;
  padding: 72px 24px;
  color: var(--muted);
}

.mk-no-results i {
  font-size: 3rem;
  color: var(--orange);
  opacity: .4;
  margin-bottom: 18px;
}

.mk-no-results h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 8px;
}

.mk-no-results p { font-size: .88rem; margin-bottom: 22px; }


/* ============================================================
   PAGINATION
============================================================ */
.mk-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.mk-page-btn {
  width: 38px; height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  display: grid;
  place-items: center;
  transition: var(--t);
}

.mk-page-btn:hover,
.mk-page-btn.active {
  background: var(--fire);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px var(--glow);
}

.mk-page-btn:disabled { opacity: .4; pointer-events: none; }


/* ============================================================
   CART DRAWER
============================================================ */
.mk-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.mk-cart-overlay.open { opacity: 1; pointer-events: all; }

.mk-cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid rgba(255, 107, 26, .15);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -16px 0 60px rgba(0, 0, 0, .5);
}

.mk-cart-drawer.open { transform: translateX(0); }

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

.mk-cart-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.mk-cart-header h2 i { color: var(--orange); }

.mk-cart-close {
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: .9rem;
  display: grid;
  place-items: center;
  transition: var(--t);
}

.mk-cart-close:hover {
  color: #fff;
  background: rgba(255, 107, 26, .2);
  border-color: var(--orange);
}

.mk-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.mk-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.mk-cart-empty i {
  font-size: 2.5rem;
  color: var(--orange);
  opacity: .4;
}

.mk-cart-empty p { font-size: .9rem; font-weight: 600; color: var(--text); }
.mk-cart-empty span { font-size: .8rem; }

.mk-cart-items { display: flex; flex-direction: column; gap: 14px; }

.mk-cart-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: var(--t);
  animation: cart-item-in .35s ease both;
}

@keyframes cart-item-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.mk-cart-item-img {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: rgba(255, 107, 26, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--orange);
  flex-shrink: 0;
  overflow: hidden;
}

.mk-cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.mk-cart-item-info { flex: 1; }

.mk-cart-item-title {
  font-size: .84rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.mk-cart-item-price {
  font-size: .8rem;
  font-weight: 700;
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mk-cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: .82rem;
  padding: 4px;
  transition: var(--t);
  flex-shrink: 0;
}

.mk-cart-item-remove:hover { color: var(--red); transform: scale(1.2); }

.mk-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}

.mk-cart-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mk-cart-row {
  display: flex;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--muted);
}

.mk-cart-total {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.mk-cart-total span:last-child {
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mk-cart-note {
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mk-cart-note i { color: var(--orange); }


/* ============================================================
   QUICK VIEW MODAL
============================================================ */
.mk-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  padding: 20px;
}

.mk-modal-overlay.open { opacity: 1; pointer-events: all; }

.mk-modal {
  background: var(--bg2);
  border: 1px solid rgba(255, 107, 26, .2);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(.92) translateY(20px);
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, .6),
    0 0 60px rgba(255, 107, 26, .1);
}

.mk-modal-overlay.open .mk-modal {
  transform: scale(1) translateY(0);
}

.mk-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  display: grid;
  place-items: center;
  z-index: 1;
  transition: var(--t);
}

.mk-modal-close:hover {
  background: rgba(255, 107, 26, .2);
  color: #fff;
  border-color: var(--orange);
}

.mk-modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.mk-modal-img-pane {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 26, .1),
    rgba(255, 45, 45, .06)
  );
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--orange);
  opacity: .5;
  overflow: hidden;
  min-height: 320px;
}

.mk-modal-img-pane img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  opacity: 1;
}

.mk-modal-info {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mk-modal-cat {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange);
}

.mk-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.mk-modal-desc { font-size: .84rem; color: var(--muted); line-height: 1.65; }

.mk-modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mk-meta-item { display: flex; flex-direction: column; gap: 2px; }

.mk-meta-item label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}

.mk-meta-item span {
  font-size: .82rem;
  color: var(--text);
  font-weight: 500;
}

.mk-modal-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
}

.mk-modal-rating .mk-stars { font-size: 1rem; }

.mk-modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
  gap: 12px;
  flex-wrap: wrap;
}

.mk-modal-price {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mk-modal-actions { display: flex; gap: 10px; }


/* ============================================================
   TOAST NOTIFICATIONS
============================================================ */
.mk-toast-wrap {
  position: fixed;
  bottom: 30px; right: 30px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.mk-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid rgba(255, 107, 26, .25);
  border-radius: var(--r-md);
  padding: 12px 16px;
  min-width: 280px;
  max-width: 360px;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, .5),
    0 0 20px rgba(255, 107, 26, .1);
  animation: toast-in .4s cubic-bezier(.34, 1.56, .64, 1) both;
  pointer-events: all;
}

.mk-toast.removing {
  animation: toast-out .3s ease forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(40px) scale(.9); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(40px) scale(.9); }
}

.mk-toast-icon {
  width: 36px; height: 36px;
  background: var(--fire);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: .88rem;
  color: #fff;
  flex-shrink: 0;
}

.mk-toast-icon.success {
  background: linear-gradient(135deg, #4ade80, #16a34a);
}

.mk-toast-icon.error {
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.mk-toast-body { flex: 1; }
.mk-toast-title { font-size: .82rem; font-weight: 700; color: #fff; }
.mk-toast-msg   { font-size: .74rem; color: var(--muted); }


/* ============================================================
   SHARED BUTTONS
============================================================ */
.btn-mk-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--fire);
  color: #fff;
  border: none;
  border-radius: var(--r-xl);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}

.btn-mk-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow);
  filter: brightness(1.08);
}

.btn-mk-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--r-xl);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t);
}

.btn-mk-outline:hover {
  background: var(--fire);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px var(--glow);
}

.btn-full { width: 100%; }


/* ============================================================
   FOOTER
============================================================ */
.mk-footer {
  background: var(--bg2);
  border-top: 1px solid rgba(255, 107, 26, .1);
  padding: 32px 24px;
  position: relative;
}

.mk-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 1px;
  background: var(--fire);
  filter: blur(4px);
}

.mk-footer-inner {
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.mk-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  transition: var(--t-sp);
}

.mk-footer-logo:hover { transform: scale(1.03); }

.mk-footer-brand p {
  font-size: .78rem;
  color: var(--muted);
}

.mk-footer-brand strong { color: var(--text); }

.mk-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.mk-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  color: var(--muted);
  transition: color .2s ease;
}

.mk-footer-links a i { font-size: .7rem; color: var(--orange); }
.mk-footer-links a:hover { color: var(--orange); }

.mk-footer-social {
  display: flex;
  gap: 10px;
}

.mk-footer-social a {
  width: 38px; height: 38px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .9rem;
  transition: var(--t-sp);
  position: relative;
  overflow: hidden;
}

.mk-footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fire);
  opacity: 0;
  transition: opacity .3s ease;
}

.mk-footer-social a i { position: relative; z-index: 1; }

.mk-footer-social a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(255, 107, 26, .3);
}

.mk-footer-social a:hover::before { opacity: 1; }


/* ============================================================
   RESPONSIVE — TABLET (≤ 1100px)
============================================================ */
@media (max-width: 1100px) {
  .mk-product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MEDIUM (≤ 960px)
============================================================ */
@media (max-width: 960px) {
  .mk-layout { grid-template-columns: 1fr; }

  .mk-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: min(300px, 92vw);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    border-radius: 0;
    max-height: 100vh;
  }

  .mk-sidebar.open { transform: translateX(0); }

  .mk-filter-toggle { display: flex; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 640px)
============================================================ */
@media (max-width: 640px) {
  .mk-nav-inner {
    grid-template-columns: auto 1fr auto;
    padding-inline: 14px;
    gap: 10px;
  }

  .mk-search-wrap { display: none; }
  .mk-logo-text   { display: none; }
  .mk-nav-btn-label { display: none; }

  .mk-product-grid { grid-template-columns: 1fr; }

  .mk-hero-content { padding: 36px 16px; }

  .mk-main { padding: 24px 16px 60px; }

  .mk-modal-inner { grid-template-columns: 1fr; }

  .mk-modal-img-pane {
    min-height: 200px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  .mk-modal-img-pane img {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  .list-view .mk-card        { flex-direction: column; height: auto; }
  .list-view .mk-card-img    { width: 100%; height: 170px; }
  .list-view .mk-card-body   { flex-direction: column; }
  .list-view .mk-card-footer {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 12px 0 0;
  }

  .mk-footer-inner { flex-direction: column; text-align: center; }
  .mk-footer-links { justify-content: center; }
  .mk-footer-social { justify-content: center; }
}

/* ============================================================
   REDUCE MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:  0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}