/* =============================================
   MKTRADE — Modern E-Commerce Stylesheet
   Brand: Blue #1565C0 + Red #C62828
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --blue:        #1565C0;
  --blue-dark:   #0d47a1;
  --blue-light:  #e8f0fe;
  --red:         #C62828;
  --red-dark:    #b71c1c;
  --red-light:   #fdecea;
  --dark:        #111827;
  --dark-2:      #1f2937;
  --gray:        #6b7280;
  --gray-2:      #9ca3af;
  --gray-light:  #e5e7eb;
  --gray-bg:     #f3f4f6;
  --light:       #f8fafc;
  --white:       #ffffff;
  --success:     #16a34a;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow:      0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.16);
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  all 0.25s ease;
  --font:        'Poppins', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--white); color: var(--dark); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; background: none; }

/* Layout */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* ============ NAVBAR ============ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 0;
}
/* Brand mark image on product cards */
.brand-mark-img {
  display: block;
  height: 32px;
  width: auto;
  margin-top: 8px;
  border-radius: 6px;
  object-fit: contain;
}

.navbar-logo {
  display: flex; align-items: center; gap: 1px; flex-shrink: 0;
  text-decoration: none; line-height: 1;
}
.navbar-logo .m {
  color: var(--blue); font-weight: 900; font-size: 1.6rem;
  font-family: var(--font); letter-spacing: -1px;
}
.navbar-logo .trade {
  color: var(--red); font-weight: 800; font-size: 1.1rem;
  font-family: var(--font); letter-spacing: 2px; margin-left: 2px;
  align-self: flex-end; padding-bottom: 2px;
}

.logo-fallback { display: flex; align-items: center; gap: 1px; font-weight: 900; font-size: 1.4rem; }
.logo-fallback .m  { color: var(--blue); font-weight: 900; }
.logo-fallback .k  { color: var(--blue); font-weight: 900; }
.logo-fallback .trade { color: var(--red); font-size: 1rem; font-weight: 800; margin-left: 2px; letter-spacing: 2px; }

/* Search */
.navbar-search {
  flex: 1; max-width: 400px;
  display: flex; align-items: center;
  background: var(--gray-bg); border-radius: 50px;
  padding: 9px 18px; gap: 8px;
  border: 2px solid transparent; transition: var(--transition);
}
.navbar-search:focus-within { border-color: var(--blue); background: var(--white); }
.navbar-search input { flex: 1; border: none; background: none; outline: none; font-family: var(--font); font-size: 0.88rem; color: var(--dark); }
.navbar-search input::placeholder { color: var(--gray-2); }
.navbar-search i { color: var(--gray); font-size: 0.9rem; }

/* Nav links */
.navbar-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.navbar-nav a { padding: 7px 14px; border-radius: 8px; font-size: 0.87rem; font-weight: 500; color: var(--gray); transition: var(--transition); }
.navbar-nav a:hover, .navbar-nav a.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

/* Navbar actions */
.navbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.navbar-cart {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
}
.navbar-cart:hover { background: var(--blue); color: var(--white); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #fff; border-radius: 50%;
  width: 18px; height: 18px; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.btn-nav-cta {
  padding: 9px 20px; border-radius: 8px; font-size: 0.83rem;
  background: var(--blue); color: var(--white); font-weight: 600;
  transition: var(--transition); display: inline-block;
}
.btn-nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* Mobile menu */
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--gray-light); }
.mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--dark); transition: var(--transition); }
.mobile-menu a:hover { background: var(--blue-light); color: var(--blue); }
.mobile-menu.open { display: flex; }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565C0 55%, #1976d2 100%);
  position: relative; overflow: hidden; padding: 72px 0 80px;
}
.hero::after {
  content: ''; position: absolute; right: -80px; bottom: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px; padding: 6px 16px; font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.92); margin-bottom: 22px;
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800;
  line-height: 1.2; margin-bottom: 18px;
}
.hero-content h1 span { color: #fbbf24; }
.hero-content p {
  font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.8;
  margin-bottom: 32px; max-width: 460px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px; font-weight: 700; font-size: 0.92rem;
  background: var(--white); color: var(--blue); transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); }

.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px; font-weight: 600; font-size: 0.92rem;
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.45); transition: var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 500; }
.trust-badge i { color: #fbbf24; font-size: 1rem; }

/* Hero cards */
.hero-visual { display: flex; flex-direction: column; gap: 14px; }
.hero-card {
  background: rgba(255,255,255,0.11); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-lg);
  padding: 20px 24px; color: var(--white); transition: var(--transition); display: block;
}
.hero-card:hover { background: rgba(255,255,255,0.18); transform: translateX(-5px); }
.hero-card-row { display: flex; align-items: center; gap: 14px; }
.hero-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.hero-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.hero-card p { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin: 0; flex: 1; }
.hero-card-count { font-size: 1.3rem; font-weight: 800; color: #fbbf24; margin-left: auto; }

/* ============ FEATURES STRIP ============ */
.features-strip { background: var(--dark-2); }
.features-strip-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.feature-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px; border-right: 1px solid rgba(255,255,255,0.07);
}
.feature-pill:last-child { border-right: none; }
.feature-pill-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #60a5fa; flex-shrink: 0;
}
.feature-pill h4 { font-size: 0.85rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.feature-pill p { font-size: 0.73rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ============ SECTION HEADERS ============ */
.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 26px; flex-wrap: wrap; gap: 12px;
}
.section-title-row h2 { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.see-all-link { font-size: 0.84rem; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.see-all-link:hover { gap: 9px; }

/* ============ ANIMATED CATEGORY CARDS ============ */
.categories-section { padding: 60px 0 50px; }

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cat-anim-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: block;
  cursor: pointer;
  text-decoration: none;
  background: var(--dark-2);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.cat-anim-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Image stack */
.cat-img-stack { position: absolute; inset: 0; }

.cat-img-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1);
}
.cat-img-layer.active {
  opacity: 1;
  animation: kenBurns 8s ease-in-out forwards;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

/* Placeholder when no images */
.cat-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
}
.cat-placeholder i { font-size: 3.5rem; }
.cat-placeholder span { font-size: 0.85rem; font-weight: 700; opacity: 0.8; }

/* Dark overlay */
.cat-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.0)  35%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.82) 100%
  );
  z-index: 1;
}

/* Bottom info */
.cat-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  z-index: 2; color: var(--white);
}
.cat-overlay-top {
  display: flex; align-items: flex-end; justify-content: space-between;
}
.cat-overlay-name {
  font-size: 1.25rem; font-weight: 800;
  display: block; margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cat-overlay-count {
  font-size: 0.78rem; color: rgba(255,255,255,0.72);
  display: block;
}
.cat-arrow-btn {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.88rem;
  transform: translateX(6px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.cat-anim-card:hover .cat-arrow-btn {
  opacity: 1; transform: translateX(0);
  background: rgba(255,255,255,0.3);
}

/* Progress dots */
.cat-dots {
  position: absolute; bottom: 62px; left: 20px;
  display: flex; gap: 5px; z-index: 3;
}
.cat-dot {
  height: 4px; width: 16px; border-radius: 2px;
  background: rgba(255,255,255,0.35);
  transition: width 0.4s ease, background 0.4s ease;
}
.cat-dot.active { width: 28px; background: rgba(255,255,255,0.9); }

/* ============ PRODUCTS GRID ============ */
.products-section { padding: 40px 0 72px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-light); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  text-decoration: none; color: var(--dark); display: block;
}
.product-card:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-6px); }

.product-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 1; background: var(--gray-bg);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }

/* Placeholder */
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.ph-icon {
  width: 72px; height: 72px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}

/* Badges */
.product-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700;
}
.product-badge.new { background: var(--blue); color: #fff; }
.product-badge.featured { background: #fbbf24; color: #78350f; }

/* Wishlist */
.product-wish {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.88rem; transition: var(--transition);
  opacity: 0; border: none; cursor: pointer;
}
.product-card:hover .product-wish { opacity: 1; }
.product-wish:hover { background: var(--red); color: #fff; }

.product-card-body { padding: 16px; }
.product-card-cat { font-size: 0.7rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.product-card-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.4; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-size: 1.05rem; font-weight: 800; color: var(--blue); }
.product-card-price small { font-size: 0.68rem; font-weight: 400; color: var(--gray); }
.product-card-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; transition: var(--transition); flex-shrink: 0;
}
.product-card:hover .product-card-btn { background: var(--blue-dark); transform: scale(1.1); }

/* ============ PROMO BANNER ============ */
.promo-banner {
  background: linear-gradient(135deg, #C62828, #e53935);
  border-radius: var(--radius-lg); padding: 48px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; color: var(--white); overflow: hidden; position: relative;
}
.promo-banner::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.06);
}
.promo-banner::after {
  content: ''; position: absolute; left: -40px; bottom: -60px;
  width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.05);
}
.promo-badge { background: rgba(255,255,255,0.18); border-radius: 6px; padding: 4px 12px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 12px; }
.promo-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.promo-banner p { color: rgba(255,255,255,0.82); font-size: 0.93rem; max-width: 480px; }
.btn-promo {
  display: inline-flex; align-items: center; gap: 8px; position: relative; z-index: 1;
  padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 0.93rem;
  background: var(--white); color: var(--red); transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.btn-promo:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.22); }

/* ============ PRODUCT DETAIL PAGE ============ */
.product-detail-page { padding: 44px 0 80px; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: var(--gray); margin-bottom: 36px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.6rem; }

.product-detail-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start;
}
.product-detail-img-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--gray-bg); aspect-ratio: 1;
  position: sticky; top: 90px;
}
.product-detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-placeholder {
  width: 100%; height: 100%; min-height: 400px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}

.product-detail-cat {
  display: inline-block; padding: 5px 14px; border-radius: 6px;
  background: var(--blue-light); color: var(--blue); font-size: 0.77rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px;
}
.product-detail-name { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: var(--blue); margin-bottom: 10px; }
.product-detail-price small { font-size: 0.88rem; font-weight: 400; color: var(--gray); }
.condition-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: 700;
  background: rgba(22,163,74,0.1); color: var(--success);
}
.detail-divider { height: 1px; background: var(--gray-light); margin: 24px 0; }
.product-detail-desc { font-size: 0.95rem; color: var(--gray); line-height: 1.9; margin-bottom: 26px; }

.product-detail-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.meta-row { display: flex; gap: 14px; font-size: 0.87rem; }
.meta-row span:first-child { color: var(--gray); min-width: 100px; }
.meta-row span:last-child { font-weight: 600; color: var(--dark); }

.product-detail-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-inquire {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 0.93rem;
  background: var(--blue); color: var(--white); transition: var(--transition); min-width: 180px;
  text-decoration: none;
}
.btn-inquire:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,0.3); }

.btn-share {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--gray-bg); color: var(--gray); font-size: 1rem;
  transition: var(--transition); border: 1.5px solid var(--gray-light);
}
.btn-share:hover { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }

.product-features {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--gray-light);
}
.product-feature { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--gray); }
.product-feature i { color: var(--blue); }

/* Related */
.related-section { padding: 60px 0; border-top: 1px solid var(--gray-light); }
.related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

/* ============ PRODUCT GALLERY ============ */
.gallery-thumbs {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px;
}
.gallery-thumb {
  width: 76px; height: 76px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--gray-light); cursor: pointer;
  transition: var(--transition); flex-shrink: 0; position: relative;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { border-color: var(--blue); }
.gallery-thumb.active { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.gallery-thumb.placeholder {
  background: var(--gray-bg); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* Main image container transitions */
#productImageWrap img,
#productImageWrap .product-detail-placeholder { transition: opacity 0.2s ease; }
.img-fade { opacity: 0 !important; }

/* Gallery counter badge */
.gallery-count-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 700; color: var(--gray);
  margin-bottom: 8px;
}
.gallery-count-badge i { color: var(--blue); }

/* ============ PORTFOLIO PAGE ============ */
.portfolio-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 52px 0; color: var(--white); text-align: center;
}
.portfolio-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.portfolio-hero p { color: rgba(255,255,255,0.78); font-size: 0.98rem; }

.filter-bar { padding: 28px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--gray-light); margin-bottom: 32px; }
.filter-btn {
  padding: 8px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
  background: var(--white); border: 2px solid var(--gray-light); color: var(--gray);
  cursor: pointer; transition: var(--transition); font-family: var(--font);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Empty state */
.empty-state { text-align: center; padding: 70px 20px; color: var(--gray); }
.empty-state i { font-size: 3.5rem; color: var(--gray-light); display: block; margin-bottom: 18px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }

/* ============ FOOTER ============ */
footer { background: var(--dark-2); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 44px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-fallback .m  { color: #60a5fa; }
.footer-brand .logo-fallback .k  { color: #f87171; }
.footer-brand .logo-fallback .trade { color: rgba(255,255,255,0.88); }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.5); line-height: 1.9; margin: 14px 0 20px; max-width: 280px; }

.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: var(--transition);
}
.footer-social:hover { background: var(--blue); color: #fff; }

.footer-col h4 { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.82rem; color: rgba(255,255,255,0.47); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 5px; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 10px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.55s ease forwards; }
.fade-in-delay-1 { animation-delay: 0.12s; }
.fade-in-delay-2 { animation-delay: 0.25s; }
.fade-in-delay-3 { animation-delay: 0.4s; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--dark); color: #fff; padding: 13px 20px; border-radius: 12px;
  font-size: 0.87rem; font-weight: 600; opacity: 0; transform: translateY(20px);
  transition: var(--transition); pointer-events: none; box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .categories-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .related-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { display: none; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-detail-img-wrap { position: relative; top: auto; aspect-ratio: 4/3; max-height: 380px; }
  .cat-cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-search { display: none; }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .cat-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .features-strip-inner { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .promo-banner { padding: 32px 28px; }
  .promo-banner h2 { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .cat-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-overlay-name { font-size: 1rem; }
  .features-strip-inner { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { justify-content: center; }
}

/* ============ DASHBOARD COMPAT ============ */
.dashboard-body { background: var(--light); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
  font-family: var(--font); transition: var(--transition); cursor: pointer;
  white-space: nowrap; border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { opacity: 0.88; }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--gray-light); }
.btn-outline:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }

.mf { margin-bottom: 16px; }
.mf label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.mf input, .mf select, .mf textarea {
  width: 100%; padding: 10px 13px; border: 2px solid var(--gray-light);
  border-radius: 8px; font-family: var(--font); font-size: 0.88rem; outline: none; transition: var(--transition);
}
.mf input:focus, .mf select:focus, .mf textarea:focus { border-color: var(--blue); }

.status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.status.delivered { background: rgba(22,163,74,0.1); color: var(--success); }
.status.processing { background: rgba(21,101,192,0.1); color: var(--blue); }
.status.pending { background: rgba(251,191,36,0.1); color: #92400e; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 5000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: 16px; width: 100%; padding: 28px;
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-head h3 { font-size: 1rem; font-weight: 800; }
.modal-close { background: none; padding: 4px; color: var(--gray); font-size: 1.1rem; cursor: pointer; }
.modal-close:hover { color: var(--red); }

/* Section (used in about/services etc) */
.section { padding: 90px 0; }
.section-sm { padding: 55px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue); background: rgba(21,101,192,0.08);
  padding: 5px 18px; border-radius: 30px; margin-bottom: 14px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: var(--dark); line-height: 1.25; margin-bottom: 16px; }
.section-header h2 span { color: var(--blue); }
.section-header p { color: var(--gray); font-size: 1.03rem; max-width: 580px; margin: 0 auto; }
.divider { width: 56px; height: 4px; background: linear-gradient(90deg, var(--blue), var(--red)); border-radius: 4px; margin: 14px auto 0; }

/* Navbar for old pages */
.navbar-inner .navbar-logo img { height: 40px; }
