/* alg_10 additions; original gold/cream theme and desktop geometry are retained. */
[hidden] { display: none !important; }
#alg10Content { min-height: 60vh; outline: none; }
#alg10Content[aria-busy="true"] { opacity: .55; transition: opacity .15s; }
#alg10Content .content-hidden-initial { opacity: 1; visibility: visible; }
#listProductLoader { display: none !important; }
#alg10LoadPanel { position: fixed; top: 20px; left: 360px; right: 60px; z-index: 1001; background: #fffdf8; color: #684a25; border: 1px solid #e4c894; box-shadow: 0 8px 30px #4c2b151a; border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
#alg10LoadPanel button { border: 1px solid #dbb772; background: #fff5dd; color: #684a25; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.alg10-load-error .alg10-spinner { display: none; }
.alg10-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid #efdfbd; border-top-color: #a66f13; border-radius: 50%; animation: alg10-spin .8s linear infinite; flex-shrink: 0; }
@keyframes alg10-spin { to { transform: rotate(360deg); } }
#algonas-global-preloader { position: fixed; inset: 0; z-index: 2147483600; display: grid; place-items: center; background: #fffdf9; }
.alg10-welcome { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 24px; color: #76552c; }
.alg10-welcome strong { font-size: 20px; }
.alg10-welcome img { object-fit: contain; }
#home .slider { height: auto !important; max-height: none; }
#home .slides { align-items: center; }
@media (min-width: 1025px) and (hover: hover), (min-width: 1367px) {
  html body #mySidebar { display: block !important; position: fixed !important; top: 0; bottom: 0; height: 100vh; overflow-y: auto; transform: none !important; visibility: visible !important; }
  html body #home .slider { aspect-ratio: 16 / 7; max-height: 540px; background: #fffaf2 !important; }
  html body #home .slides, html body #home .slide { height: 100% !important; }
  html body #home .slide img { height: 100% !important; max-height: 540px !important; object-fit: contain !important; }
  html body #home .slide picture { display: block; height: 100%; }
}
#alg10Bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: #fffaf0; color: #765025; border: 1px solid #e8d8b5; border-radius: 50%; cursor: pointer; }
#alg10BellCount { position: absolute; right: -2px; top: -3px; min-width: 19px; height: 19px; line-height: 19px; border-radius: 20px; background: #d0442d; color: white; font: 700 11px/19px Arial, sans-serif; box-shadow: 0 0 0 2px #fdf5e6; }
.alg10-dialog { width: min(92vw, 460px); max-height: calc(100vh - 36px); max-height: calc(100dvh - 36px); padding: 0; border: 1px solid #e6d6b9; border-radius: 24px; background: #fffdf8; color: #423329; box-shadow: 0 24px 80px #25150655; overflow: auto; overscroll-behavior: contain; font-family: Poppins, sans-serif; }
.alg10-dialog:not([open]) { display: none; }
.alg10-dialog::backdrop { background: #251b126b; backdrop-filter: blur(3px); }
body.alg10-dialog-open { overflow: hidden !important; }
.alg10-notif-head { padding: 23px 22px 20px; background: linear-gradient(125deg, #f7e6bc, #fff6e7); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.alg10-eyebrow { font-size: 10px; letter-spacing: 1.4px; font-weight: 700; color: #86601e; }
.alg10-notif-head h2 { font-family: inherit; font-size: 21px; font-weight: 700; line-height: 1.4; margin: 7px 0; color: #594024; }
.alg10-notif-head p { font-size: 12px; margin: 0; line-height: 1.5; color: #796349; }
.alg10-icon-close { border: 1px solid #bba17b55; background: #ffffff80; border-radius: 50%; width: 36px; height: 36px; flex: 0 0 36px; color: #684b2d; font-size: 25px; line-height: 30px; cursor: pointer; }
.alg10-notif-body { padding: 18px; }
.alg10-notice { display: flex; gap: 11px; border: 1px solid #ebdfca; background: white; padding: 14px 12px; border-radius: 16px; margin-bottom: 11px; }
.alg10-notice-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 32px; background: #fff0d0; color: #906120; font-size: 18px; font-weight: 700; }
.alg10-notice-cart .alg10-notice-icon { background: #e5f2e9; color: #236247; }
.alg10-notice-voucher { border-style: dashed; background: #fffcf4; }
.alg10-notice h3 { margin: 0 0 5px; font: 700 13px/1.5 Poppins, sans-serif; color: #5e4326; }
.alg10-notice p { margin: 0; font-size: 11.5px; line-height: 1.65; color: #72695e; }
.alg10-notice-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 9px; }
.alg10-notice-actions a, .alg10-notice-actions button { border: 0; background: transparent; padding: 5px 0; font: 600 11px/1.5 Poppins, sans-serif; text-decoration: underline; text-underline-offset: 3px; color: #80591d; cursor: pointer; min-height: 32px; }
.alg10-notice-actions .alg10-dismiss { color: #827568; font-weight: 400; margin-left: auto; }
#alg10Composer { padding-top: 12px; }
#alg10Composer label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
#alg10Message { width: 100%; box-sizing: border-box; min-height: 94px; padding: 12px; border: 1px solid #dfd4c1; border-radius: 12px; font: 13px/1.65 Poppins, sans-serif; background: white; color: #4b4035; resize: vertical; }
.alg10-chat-note, .alg10-empty-note { font-size: 11px; line-height: 1.7; color: #867a6b; margin: 8px 0 15px; }
.alg10-dialog-actions { display: grid; grid-template-columns: 1fr 1.9fr; gap: 10px; }
.alg10-primary, .alg10-secondary { border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; font: 600 13px/1.5 Poppins, sans-serif; min-height: 46px; cursor: pointer; }
.alg10-primary { background: #26734f; color: white; box-shadow: 0 4px 10px #235d3a18; }
.alg10-secondary { background: #f4eee3; color: #786348; border-color: #e6dbc7; }
.alg10-dialog button:focus-visible, #alg10Bell:focus-visible, .alg10-dialog a:focus-visible, #alg10Message:focus-visible { outline: 3px solid #bb891d; outline-offset: 3px; }
@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
  html body #defaultTopMenu { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px; padding: 0 10px; }
  html body #topMenu .alg10-brand { min-width: 0; display: flex; align-items: center; justify-content: center; }
  html body #topMenu .alg10-brand a { display: flex; align-items: center; justify-content: center; max-width: 100%; padding: 0 !important; }
  html body #topMenu img.alg10-brand-logo { height: 46px !important; max-height: 46px !important; width: auto !important; max-width: min(180px, 100%); object-fit: contain; }
  html body #topMenu #menuButton { margin: 0; padding: 0 !important; width: 44px; height: 44px; display: grid; place-items: center; }
  #alg10LoadPanel { left: 12px; right: 12px; top: 75px; }
  html body #pwaTopMenu { position: fixed !important; z-index: 2147481900 !important; bottom: calc(var(--alg-bottom-space, 68px) + 8px) !important; top: auto !important; left: 12px !important; width: calc(100% - 24px) !important; border-radius: 14px; padding: 10px 12px !important; box-shadow: 0 6px 24px #49311524; border: 1px solid #e5d2ac; }
  html body #pwaTopMenu img { max-width: 55px; }
  #btnInstallPwa { white-space: nowrap; }
  .alg10-dialog { width: calc(100% - 20px); margin: auto auto max(10px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px); }
  .alg10-notif-head { padding: 21px 18px 18px; }
  .alg10-notif-body { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) { .alg10-spinner { animation: none; } #alg10Content { transition: none; } }

@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
 html body.alg10-pwa-banner { padding-bottom: calc(var(--alg-bottom-space, 68px) + 85px) !important; }
}

.alg10-dialog-actions { position: sticky; bottom: 0; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid #e9deca; background: #fffdf8; box-shadow: 0 -5px 15px #4e301009; }

/* ==========================================
   KODE KHUSUS MOBILE (Tambahan baru)
========================================== */
@media (max-width: 1024px) {
  /* Efek interaktif gambar saat loading (Khusus Mobile) */
  img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease-in-out;
  }

  /* Transisi halus ketika gambar selesai dimuat (Khusus Mobile) */
  img:not([src]), img[src=""] {
    opacity: 0;
  }
}