* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* ===================== NAVBAR DESKTOP ===================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  gap: 10px;
}

.navbar-mobile {
  display: none !important;
}
.navbar-desktop {
  display: flex !important;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  white-space: nowrap;
}

.search-bar {
  flex: 1;
  min-width: 150px;
  max-width: 400px;
  padding: 10px 16px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 14px;
}

.menu {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.login-daftar {
  background: #e94560 !important;
}
.login-daftar:hover {
  background: #d63447 !important;
}

/* ===================== USER DROPDOWN MENU ===================== */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-menu-btn {
  background: transparent;
  border: none;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.user-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  background: #ffffff;
  border: 2px solid #e94560;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  min-width: 200px;
  overflow: hidden;
}

.dropdown-menu.active {
  display: block !important;
  visibility: visible !important;
}

.dropdown-item {
  display: block !important;
  padding: 14px 18px !important;
  color: #1a1a2e !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  border-bottom: 1px solid #f0f0f0 !important;
  background: #ffffff !important;
  cursor: pointer !important;
  visibility: visible !important;
}

.dropdown-item:last-child {
  border-bottom: none !important;
}

.dropdown-item:hover {
  background: #fff5f7 !important;
  color: #e94560 !important;
  padding-left: 22px !important;
}

/* ===================== NAVBAR MOBILE ===================== */
.nav-icon-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* SEARCH BAR MOBILE */
.mobile-search-bar {
  display: none;
  background: #1a1a2e;
  padding: 10px 16px;
}
.mobile-search-bar.open {
  display: block;
}
.mobile-search-bar input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 25px;
  border: none;
  outline: none;
  font-size: 14px;
}

/* ===================== SIDEBAR MOBILE ===================== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}
.sidebar-overlay.open {
  display: block;
}

.sidebar-mobile {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 2001;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
}
.sidebar-mobile.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
}

.sidebar-body {
  padding: 10px 0;
}

.sidebar-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px 6px;
}

.sidebar-link {
  display: block;
  padding: 13px 20px;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: #f8f8f8;
  border-left-color: #e94560;
  color: #e94560;
}
.sale-link {
  color: #e94560 !important;
  font-weight: 700;
}

/* ===================== KATEGORI NAV DESKTOP ===================== */
.kategori-nav {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 60px;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kategori-nav::-webkit-scrollbar {
  display: none;
}
.kategori-nav-desktop {
  display: block;
}

.kategori-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0;
  padding: 0 10px;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
  justify-content: center;
}

.kategori-menu li {
  display: inline-flex !important;
  flex-shrink: 0;
}

.kategori-link {
  display: block;
  padding: 14px 18px;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.kategori-link:hover,
.kategori-link.active {
  color: #e94560;
  border-bottom: 3px solid #e94560;
}

.kategori-link.sale {
  color: #e94560;
}

/* ===================== SUBCATEGORY MENU ===================== */
.kategori-item-with-submenu {
  position: relative;
  display: inline-flex !important;
}

.kategori-item-with-submenu > .kategori-link {
  position: relative;
  padding-right: 28px;
}

.kategori-item-with-submenu > .kategori-link::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #e94560;
  transition: transform 0.2s ease;
}

.kategori-item-with-submenu:hover > .kategori-link::after {
  transform: translateY(-50%) rotate(180deg);
}

.kategori-item-with-submenu:hover .subcategory-submenu {
  display: grid;
  animation: slideDown 0.25s ease;
}

.subcategory-submenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid #efefef;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 45px rgba(20, 20, 50, 0.14);
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 0;
  min-width: 320px;
  max-width: 460px;
  padding: 16px 0;
  z-index: 1000;
  overflow: hidden;
}

.subcategory-submenu a {
  display: block;
  padding: 14px 22px;
  color: #2b2b2b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
  background: transparent;
  border: none;
}

.subcategory-submenu a:hover {
  background: #fff6f8;
  color: #e94560;
  transform: translateX(2px);
}

.subcategory-submenu a:not(:last-child) {
  border-bottom: none;
}

.subcategory-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  margin: 0;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

.subcategory-bar-label {
  color: #555;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.subcategory-chip {
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 10px 16px;
  background: #fafafa;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subcategory-chip:hover {
  border-color: #e94560;
  background: #fff1f4;
  color: #e94560;
}

.subcategory-chip.active {
  border-color: #e94560;
  background: #e94560;
  color: #ffffff;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sidebar Submenu Styles */
.sidebar-submenu-group {
  display: flex;
  flex-direction: column;
}

.sidebar-submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  position: relative;
}

.sidebar-submenu-toggle::after {
  content: "▾";
  font-size: 12px;
  color: #e94560;
  transition: transform 0.2s ease;
}

.sidebar-submenu {
  display: none;
  flex-direction: column;
  background: #faf7f8;
  border-left: 4px solid #e94560;
  margin-left: 10px;
  margin-top: 5px;
  padding-bottom: 8px;
}

.sidebar-submenu.open {
  display: flex;
}

.sidebar-submenu-link {
  display: block !important;
  padding: 12px 22px !important;
  color: #444 !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  border-left: 3px solid transparent !important;
}

.sidebar-submenu-link:hover {
  background: #fff1f4 !important;
  color: #e94560 !important;
  border-left-color: #e94560 !important;
  padding-left: 26px !important;
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 32px;
  margin-bottom: 15px;
  animation: fadeInUp 1s ease;
  line-height: 1.3;
}

.hero-content p {
  font-size: 15px;
  margin-bottom: 25px;
  opacity: 0.9;
  padding: 0 10px;
}

.btn-shop {
  display: inline-block;
  padding: 14px 35px;
  background: #e94560;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-shop:hover {
  background: #d63447;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(233, 69, 96, 0.3);
}

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

/* ===================== PROMO BANNER ===================== */
.promo-banner {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px 15px;
  flex-wrap: wrap;
}

.promo-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px 25px;
  border-radius: 15px;
  text-align: center;
  color: white;
  flex: 1;
  min-width: 140px;
  max-width: 280px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.promo-card:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.promo-card:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.promo-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.promo-card p {
  font-size: 13px;
}

/* ===================== SECTION TITLE ===================== */
.section-title {
  text-align: center;
  padding: 30px 20px 15px;
}

.section-title h2 {
  font-size: 26px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.section-title p {
  color: #666;
  font-size: 14px;
}

/* ===================== PRODUK GRID ===================== */
.produk {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #f0f0f0;
  display: block;
}

.card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 50, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.product-detail-card {
  width: min(980px, 100%);
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  position: relative;
}

.detail-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #1a1a2e;
  color: white;
  font-size: 24px;
  cursor: pointer;
  line-height: 0;
  z-index: 10;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 30px;
  padding: 30px;
}

.detail-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  border-radius: 22px;
  padding: 24px;
}

.detail-image-wrapper img {
  max-width: 100%;
  border-radius: 18px;
  object-fit: contain;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-info h2 {
  font-size: 28px;
  margin: 0;
  line-height: 1.1;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #333;
  font-size: 13px;
  font-weight: 600;
}

.detail-price {
  font-size: 32px;
  font-weight: 800;
  color: #e94560;
  margin: 0;
}

.detail-description {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  padding: 18px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.detail-actions {
  display: flex;
  gap: 14px;
}

.detail-info .btn-cart {
  width: fit-content;
}

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.card .kategori-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: #e94560;
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}

.card .subcategory-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: #1a1a2e;
  color: white;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  margin: 0;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
  line-height: 1.4;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .harga {
  font-size: 16px;
  color: #e94560;
  font-weight: bold;
  margin-bottom: 12px;
}

.btn-cart {
  width: 100%;
  padding: 11px;
  background: #1a1a2e;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-cart:hover,
.btn-cart:active {
  background: #e94560;
  transform: scale(1.02);
}

/* ===================== EMPTY STATE ===================== */
.empty-state {
  text-align: center;
  grid-column: 1 / -1;
  padding: 50px 20px;
  color: #999;
}

.empty-state p {
  font-size: 16px;
  margin-top: 10px;
}

/* ===================== FOOTER ===================== */
.footer {
  background: #1a1a2e;
  color: white;
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #e94560;
}

.footer-section p,
.footer-section a {
  color: #ccc;
  text-decoration: none;
  line-height: 2;
  font-size: 14px;
}

.footer-section a:hover {
  color: #e94560;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #666;
  font-size: 13px;
}

/* ===================== MOBILE (≤768px) ===================== */
@media (max-width: 768px) {
  .navbar-desktop {
    display: none !important;
  }
  .navbar-mobile {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
  }
  .kategori-nav-desktop {
    display: none !important;
  }

  .hero {
    padding: 40px 16px;
  }
  .hero-content h1 {
    font-size: 26px;
  }
  .hero-content p {
    font-size: 13px;
  }
  .btn-shop {
    padding: 12px 28px;
    font-size: 14px;
  }

  .promo-banner {
    padding: 14px 12px;
    gap: 10px;
  }
  .promo-card {
    padding: 15px 18px;
    min-width: 120px;
  }
  .promo-card h3 {
    font-size: 15px;
  }
  .promo-card p {
    font-size: 11px;
  }

  .section-title {
    padding: 20px 16px 10px;
  }
  .section-title h2 {
    font-size: 22px;
  }

  .produk {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .card-image {
    height: 130px;
  }
  .card-content {
    padding: 12px;
  }
  .product-name {
    font-size: 13px;
    min-height: 28px;
  }
  .card .kategori-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
  .card .harga {
    font-size: 14px;
  }
  .btn-cart {
    font-size: 12px;
    padding: 9px;
  }

  .footer {
    padding: 30px 16px 16px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===================== TABLET (≥600px, ≤768px) ===================== */
@media (min-width: 600px) and (max-width: 768px) {
  .produk {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-image {
    height: 150px;
  }
}

/* ===================== DESKTOP (≥769px) ===================== */
@media (min-width: 769px) {
  .navbar-desktop {
    display: flex !important;
  }
  .navbar-mobile {
    display: none !important;
  }
  .kategori-nav-desktop {
    display: block !important;
  }

  .navbar {
    padding: 15px 40px;
  }
  .brand-title {
    font-size: 24px;
  }
  .kategori-link {
    padding: 16px 22px;
    font-size: 13px;
  }
  .hero {
    padding: 80px 40px;
  }
  .hero-content h1 {
    font-size: 48px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .promo-banner {
    padding: 30px 40px;
  }
  .produk {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 20px 40px 40px;
    gap: 25px;
  }
  .card img {
    height: 200px;
  }
  .card-content {
    padding: 20px;
  }
  .card h4 {
    font-size: 18px;
  }
  .card .harga {
    font-size: 20px;
  }
  .footer {
    padding: 50px 40px 20px;
  }
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =========================================================
   BOOTSTRAP 5 + ICONS VISUAL ENHANCEMENT
   Non-destructive layer: keeps the existing Shoezz Store
   layout while improving spacing, controls, cards and icons.
   ========================================================= */
:root {
    --shoezz-primary: #111827;
    --shoezz-accent: #e94560;
    --shoezz-border: #e5e7eb;
    --shoezz-muted: #6b7280;
}

.bi { vertical-align: -0.125em; line-height: 1; }
a, button, input, select, textarea { transition: all .2s ease; }

/* Cleaner Bootstrap-like controls without forcing a new layout. */
input.form-control, select.form-select, textarea.form-control,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], textarea, select {
    border: 1px solid var(--shoezz-border);
    border-radius: 10px;
    padding: .65rem .8rem;
    background: #fff;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #9ca3af;
    box-shadow: 0 0 0 .2rem rgba(17,24,39,.08);
}

button, .btn, .btn-cart, .btn-primary, .btn-success, .btn-danger,
a.btn, a.button {
    border-radius: 9px;
}

button:hover, .btn:hover, .btn-cart:hover { transform: translateY(-1px); }

.card, .product-card, .order-card, .profile-card, .address-card,
.checkout-card, .success-card {
    border-radius: 14px;
}

/* Icons inside navigation/actions */
.navbar a .bi, .user-menu .bi, .cart .bi,
.sidebar-link .bi, .sidebar-nav-item .bi, .dropdown-item .bi {
    margin-right: .35rem;
}

/* Better icon-only action buttons */
.btn-icon, .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Keep Bootstrap responsive utilities useful on the existing pages. */
@media (max-width: 768px) {
    .container, .container-fluid { max-width: 100%; }
    .btn, button { min-height: 40px; }
}
