/* ======================= DESKTOP-RESPONSIVE OVERRIDES ======================= */
/* Loaded after style.css and media-query.css */

/* ── Hide sidebar on mobile (shown on desktop via .sidebar-col) ── */
.sidebar-col { display: none; }

/* ---------- Hide/show at breakpoints ---------- */
@media (min-width: 992px) {
  body { max-width: 100% !important; margin: 0 !important; width: 100%; }

  /* ── Profile sidebar card ── */
  .sidebar-col { display: block; width: 280px; flex-shrink: 0; }
  .accout-screen-first { width: 280px; flex-direction: column; align-items: center; text-align: center; padding: 32px 24px; background: linear-gradient(180deg, #830006 0%, #5a0004 100%); border-radius: 16px; align-self: start; position: sticky; top: 100px; display: flex; }
  .accout-screen-img img { width: 96px; height: 96px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); box-shadow: 0 4px 14px rgba(0,0,0,.2); }
  .accout-screen-content { margin-left: 0; margin-top: 16px; }
  .accout-screen-content h3 { font-size: 18px; color: #fff; font-weight: 700; }
  .accout-screen-content p { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }
  .accout-screen-edit { margin-left: 0; margin-top: 20px; }
  .accout-screen-edit a { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2); padding: 10px 20px; border-radius: 24px; transition: background .2s; text-decoration: none; color: #fff; font-size: 13px; font-weight: 600; }
  .accout-screen-edit a:hover { background: rgba(255,255,255,.3); }
  .accout-screen-edit a svg { width: 18px; height: 18px; }
  .accout-screen-edit a svg path { stroke: #fff !important; }

  /* ── Two-column layout for pages with sidebar ── */
   .page-layout-sidebar { display: flex; gap: 28px; align-items: start; max-width: 860px; margin: 40px auto; }
  .page-layout-sidebar > .content-col { flex: 1; min-width: 0; }
  #bottom-navigation { display: none !important; }
  .top-navbar { display: none !important; }
  .menu-sidebar { display: none !important; }
  #desktop-header { display: block; }
  .dh-cat-nav { display: block; }
  .site-footer { display: block; }

  /* Hero slider - Tokopedia style */
  .dh-hero-desktop { display: block; }
  .dh-hero-mobile { display: none !important; }
  .dh-hero-desktop .home2-first-slider { border-radius: 16px; overflow: hidden; max-width: 1280px; margin: 24px auto 0; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
  .dh-hero-desktop .carousel-inner { border-radius: 16px; }
  .dh-hero-desktop .carousel-inner img { width: 100%; height: 380px; object-fit: cover; }
  .dh-hero-desktop .carousel-indicators { bottom: 12px; z-index: 3; gap: 6px; }
  .dh-hero-desktop .carousel-indicators button { width: 6px; height: 6px; border-radius: 50%; border: none; background: rgba(0,0,0,.25); margin: 0; opacity: 1; transition: all .2s; }
  .dh-hero-desktop .carousel-indicators button.active { width: 18px; border-radius: 3px; background: #830006; }
  .dh-hero-desktop .carousel-control-prev, .dh-hero-desktop .carousel-control-next { width: 40px; height: 40px; top: 50%; transform: translateY(-50%); background: #830006; border-radius: 50%; opacity: 0; transition: opacity .2s; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
  .dh-hero-desktop:hover .carousel-control-prev, .dh-hero-desktop:hover .carousel-control-next { opacity: 1; }
  .dh-hero-desktop .carousel-control-prev { left: 12px; }
  .dh-hero-desktop .carousel-control-next { right: 12px; }
  .dh-hero-desktop .carousel-control-prev:hover, .dh-hero-desktop .carousel-control-next:hover { background: #9a0810; transform: translateY(-50%) scale(1.05); }
  .dh-hero-desktop .carousel-control-prev-icon, .dh-hero-desktop .carousel-control-next-icon { filter: brightness(0) invert(1); }

  /* Content containers */
  section .container { max-width: 1280px !important; }

  /* Product grid - 6 columns on desktop */
  .homescreen-fourth-wrapper-bottom .row .col-6 { width: 16.666%; flex: 0 0 16.666%; max-width: 16.666%; }



  /* Section spacing */
  .home2-first-sec.mb-24 { margin-bottom: 0 !important; }
  section .mt-16 { margin-top: 32px !important; }
  section .mt-8 { margin-top: 24px !important; }
  section .mb-60 { margin-bottom: 48px !important; }

  /* Card & product sizing */
  .product-card .product-image { aspect-ratio: 1 / 1 !important; width: 100% !important; height: auto !important; object-fit: cover; }

  /* Product listing page */
  .product-listing-page .container { max-width: 1280px !important; }
  .product-listing-page .search-wrapper { max-width: 480px; }
  .product-listing-page .product-card { border-radius: 12px; border: 1px solid #f0f0f0; }
  .product-listing-page .product-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-4px); }
  .product-listing-page .product-card .final-price { font-size: 16px; }

  /* Member dashboard */
  .member-dashboard .container { max-width: 1280px !important; }
  .member-dashboard .card { border-radius: 12px !important; transition: box-shadow .2s; }
  .member-dashboard .card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08) !important; }
  .member-dashboard .shopee-section a:hover { border-color: #830006 !important; box-shadow: 0 2px 12px rgba(131,0,6,.08); }
  .member-dashboard .ks-pro-loyalty { margin: 0 !important; }
}
@media (max-width: 991.98px) {
  #desktop-header { display: block !important; }
  #desktop-header .dh-main { display: none !important; }
  .dh-cat-nav { display: none !important; }
  .dh-hero-desktop { display: none !important; }
  .site-footer { display: none !important; }

  /* Hero slider mobile - Tokopedia style */
  .dh-hero-mobile { display: block; }
  .dh-hero-mobile .home2-first-slider { border-radius: 0; overflow: hidden; }
  .dh-hero-mobile .carousel-indicators { bottom: 10px !important; right: auto !important; left: 50% !important; transform: translateX(-50%) !important; justify-content: center !important; gap: 6px; }
  .dh-hero-mobile .carousel-indicators button { width: 6px; height: 6px; border-radius: 50%; border: none; background: rgba(0,0,0,.2); margin: 0; opacity: 1; }
  .dh-hero-mobile .carousel-indicators button.active { width: 18px; border-radius: 3px; background: #830006; }
  .dh-hero-mobile .carousel-control-prev, .dh-hero-mobile .carousel-control-next { display: none !important; }
}

/* ---------- Desktop Header ---------- */
#desktop-header { font-family: 'Montserrat', sans-serif; }
#desktop-header .dh-main { position: sticky; top: 0; z-index: 1050; }

/* Top promo bar */
#desktop-header .dh-top-bar { background: #830006; color: #f1f5f9; font-size: 12px; font-weight: 500; }
#desktop-header .dh-top-bar-inner { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 1280px; margin: 0 auto; padding: 8px 24px; }
#desktop-header .dh-top-bar-inner svg { flex-shrink: 0; opacity: .7; }
#desktop-header .dh-top-bar-hover { position: relative; cursor: pointer; display: flex; align-items: center; gap: 8px; }
#desktop-header .dh-top-bar-hover svg { opacity: .7; transition: opacity .2s; flex-shrink: 0; }
#desktop-header .dh-top-bar-hover span { letter-spacing: .3px; }
#desktop-header .dh-top-bar-hover:hover svg { opacity: 1; }
#desktop-header .dh-top-bar-popup { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 9999; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.15); padding: 26px 24px 24px; width: 260px; margin-top: -4px; text-align: center; }
#desktop-header .dh-top-bar-popup::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid #fff; }
#desktop-header .dh-top-bar-hover:hover .dh-top-bar-popup { display: block; }
#desktop-header .dh-top-bar-popup p { color: #374151; font-size: 12px; font-weight: 500; line-height: 1.5; margin: 0 0 16px; }
#desktop-header .dh-qr-img { width: 130px; height: 130px; border-radius: 12px; background: #f9fafb; padding: 8px; margin: 0 auto 16px; display: block; }
#desktop-header .dh-store-label { font-size: 11px !important; color: #6b7280 !important; margin-bottom: 12px !important; }
#desktop-header .dh-store-buttons { display: flex; flex-direction: column; gap: 8px; }
#desktop-header .dh-store-badge { width: 100%; height: auto; border-radius: 6px; transition: opacity .2s; }
#desktop-header .dh-store-badge:hover { opacity: .85; }

/* Main navbar */
#desktop-header .dh-main { background: #fff; border-bottom: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
#desktop-header .dh-main-inner { display: flex; align-items: center; max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px; gap: 24px; }
#desktop-header .dh-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
#desktop-header .dh-logo img { height: 38px; width: auto; }
#desktop-header .dh-search { flex: 1; display: flex; align-items: center; background: #f3f4f6; border-radius: 8px; padding: 0 16px; gap: 10px; max-width: none; border: 2px solid transparent; transition: border .2s, box-shadow .2s, background .2s; }
#desktop-header .dh-search:focus-within { border-color: #830006; background: #fff; box-shadow: 0 0 0 3px rgba(131,0,6,.1); }
#desktop-header .dh-search input { border: none; background: transparent; padding: 10px 0; font-size: 14px; outline: none; width: 100%; font-family: 'Montserrat', sans-serif; }
#desktop-header .dh-search input::placeholder { color: #9ca3af; }
#desktop-header .dh-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
#desktop-header .dh-action { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #4b5563; text-decoration: none; transition: .15s; position: relative; }
#desktop-header .dh-action:hover { background: #f3f4f6; color: #830006; }
#desktop-header .dh-action svg { width: 22px; height: 22px; }
#desktop-header .dh-notif-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; border: 2px solid #fff; }
#desktop-header .dh-cart { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #830006; color: #fff; text-decoration: none; position: relative; transition: .15s; margin-left: 4px; }
#desktop-header .dh-cart:hover { background: #9a0810; transform: scale(1.04); }
#desktop-header .dh-cart svg { width: 21px; height: 21px; }
#desktop-header .dh-cart-count { position: absolute; top: -5px; right: -5px; background: #ef4444; color: #fff; border-radius: 50%; min-width: 19px; height: 19px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1; border: 2px solid #fff; }

/* Live search results */
#desktop-header .dh-search { position: relative; }
.dh-search-results { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 12px 12px; box-shadow: 0 12px 40px rgba(0,0,0,.12); max-height: 420px; overflow-y: auto; z-index: 99999; margin-top: 4px; }
.dh-search-results.active { display: block; }
.dh-sr-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; transition: background .12s; }
.dh-sr-item:hover { background: #f9fafb; }
.dh-sr-item + .dh-sr-item { border-top: 1px solid #f3f4f6; }
.dh-sr-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f3f4f6; }
.dh-sr-thumb-placeholder { background: #f3f4f6; }
.dh-sr-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dh-sr-name { font-size: 13px; font-weight: 600; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh-sr-meta { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.dh-sr-cat { font-size: 11px; color: #6b7280; }
.dh-sr-disc { font-size: 10px; font-weight: 700; background: #fee2e2; color: #dc2626; padding: 1px 6px; border-radius: 4px; line-height: 1.4; }
.dh-sr-prices { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.dh-sr-price { font-size: 12px; font-weight: 700; color: #830006; }
.dh-sr-original { font-size: 11px; color: #9ca3af; text-decoration: line-through; }

@media (max-width: 991.98px) {
  .dh-search-results { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; max-height: 360px; }
}

/* Mobile search bar */
.mob-search-bar { display: none; align-items: center; gap: 8px; padding: 4px 0; }
.mob-search-bar.active { display: flex; }
.mob-search-back { display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 4px; cursor: pointer; color: #374151; flex-shrink: 0; }
.mob-search-back svg { width: 24px; height: 24px; }
.mob-search-input-wrap { flex: 1; display: flex; align-items: center; background: #f3f4f6; border-radius: 8px; padding: 0 12px; gap: 8px; border: 2px solid transparent; transition: border .2s, background .2s; position: relative; }
.mob-search-input-wrap:focus-within { border-color: #830006; background: #fff; }
.mob-search-input-wrap input { border: none; background: transparent; padding: 8px 0; font-size: 14px; outline: none; width: 100%; font-family: 'Montserrat', sans-serif; }
.mob-search-input-wrap input::placeholder { color: #9ca3af; }
.mob-search-input-wrap .dh-search-results { margin-top: 2px; }

.top-navbar-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mob-search-btn { display: flex; align-items: center; justify-content: center; background: none; border: none; padding: 8px; cursor: pointer; color: #374151; }
.mob-search-btn svg { width: 22px; height: 22px; }
.mob-notif-btn { display: flex; align-items: center; position: relative; padding: 8px; text-decoration: none; color: #374151; }
.mob-notif-btn svg { width: 22px; height: 22px; }

/* Sidebar section label */
.sidebar-section-label { padding: 12px 16px 4px; font-size: 12px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 1px; }

.sidebar-logo-link { display: block; padding: 16px 16px 8px; }
.sidebar-logo { max-width: 140px; height: auto; display: block; }

.setting-icon .sidebar-cat-img { width: 24px; height: 24px; display: block; object-fit: contain; }
/* Category nav bar */
.dh-cat-nav { background: #fff; border-bottom: 1px solid #e5e7eb; position: relative; z-index: 2; }
.dh-cat-nav-inner { display: flex; align-items: center; gap: 0; max-width: 1280px; margin: 0 auto; padding: 0 24px; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.dh-cat-nav-inner::-webkit-scrollbar { display: none; }
.dh-cat-link { text-decoration: none; color: #4b5563; font-size: 13px; font-weight: 500; padding: 6px 12px; transition: color .15s; white-space: nowrap; flex-shrink: 0; }
.dh-cat-link:hover { color: #830006; }
.dh-cat-brand-trigger { cursor: pointer; }
.dh-cat-brand-dropdown { position: absolute; top: 100%; left: 24px; margin-top: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 12px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08); min-width: 200px; max-height: 360px; overflow-y: auto; padding: 6px; display: none; z-index: 99999; }
.dh-cat-brand-item { display: block; padding: 8px 12px; font-size: 13px; color: #374151; text-decoration: none; border-radius: 8px; transition: background .12s; }
.dh-cat-brand-item:hover { background: #f3f4f6; color: #830006; }

/* Sidebar brand */
.sidebar-brand-wrap [aria-expanded="true"] .sidebar-brand-chevron svg { transform: rotate(180deg); }
.sidebar-brand-sub-link { text-decoration: none; display: block; }
.sidebar-brand-sub-link .icon-name p { color: #374151; }






