h1, h2, h3, h4, h5 {
/*    font-family: "Montserrat", sans-serif;*/
    font-family: "Poppins", sans-serif;
}

body {
    font-size: 16px;
}

.w3-half img {
    margin-bottom: -6px;
    margin-top: 16px;
    opacity: 0.8;
    cursor: pointer;
}

.w3-half img:hover {
    opacity: 1;
}


html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
/* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section {
  display: block;
}
summary {
  display: list-item;
}
audio, canvas, progress, video {
  display: inline-block;
}
progress {
  vertical-align: baseline;
}
audio:not([controls]) {
  display: none;
  height: 0;
}
[hidden], template {
  display: none;
}
a {
  background-color: transparent;
}
a:active, a:hover {
  outline-width: 0;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}
b, strong {
  font-weight: bolder;
}
dfn {
  font-style: italic;
}
mark {
  background: #ff0;
  color: #000;
}
small {
  font-size: 80%;
}
sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
figure {
  margin: 1em 40px;
}
img {
  border-style: none;
}
code, kbd, pre, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
button, input, select, textarea, optgroup {
  font: inherit;
  margin: 0;
}
optgroup {
  font-weight: bold;
}
button, input {
  overflow: visible;
}
button, select {
  text-transform: none;
}
button, [type=button], [type=reset], [type=submit] {
  -webkit-appearance: button;
}
button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: .35em .625em .75em;
}
legend {
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}
textarea {
  overflow: auto;
}
[type=checkbox], [type=radio] {
  padding: 0;
}
[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button {
  height: auto;
}
[type=search] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
/* End extract */



html, body {
  font-family: Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
html {
  overflow-x: hidden;
}
h1 {
  font-size: 36px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 20px;
}
h5 {
  font-size: 18px;
}
h6 {
  font-size: 16px;
}
.w3-serif {
  font-family: serif;
}
.w3-sans-serif {
  font-family: sans-serif;
}
.w3-cursive {
  font-family: cursive;
}
.w3-monospace {
  font-family: monospace;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  margin: 10px 0;
}
.w3-wide {
  letter-spacing: 4px;
}
hr {
  border: 0;
  border-top: 1px solid #eee;
  margin: 20px 0;
}


.w3-image {
  max-width: 100%;
  height: auto;
}
img {
  vertical-align: middle;
}
a {
  color: inherit;
}
.w3-table, .w3-table-all {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  display: table;
}
.w3-table-all {
  border: 1px solid #ccc;
}
.w3-bordered tr, .w3-table-all tr {
  border-bottom: 1px solid #ddd;
}
.w3-striped tbody tr:nth-child(even) {
  background-color: #f1f1f1;
}
.w3-table-all tr:nth-child(odd) {
  background-color: #fff;
}
.w3-table-all tr:nth-child(even) {
  background-color: #f1f1f1;
}
.w3-hoverable tbody tr:hover, .w3-ul.w3-hoverable li:hover {
  background-color: #ccc;
}
.w3-centered tr th, .w3-centered tr td {
  text-align: center;
}
.w3-table td, .w3-table th, .w3-table-all td, .w3-table-all th {
  padding: 8px;
  display: table-cell;
  text-align: left;
  vertical-align: top;
}
.w3-table th:first-child, .w3-table td:first-child, .w3-table-all th:first-child, .w3-table-all td:first-child {
  padding-left: 16px;
}
.w3-btn, .w3-button {
  border: none;
  display: inline-block;
  padding: 8px 16px;
  vertical-align: middle;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background-color: inherit;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.w3-btn:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.w3-disabled, .w3-btn:disabled, .w3-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}
.w3-disabled *, :disabled * {
  pointer-events: none;
}
.w3-btn.w3-disabled:hover, .w3-btn:disabled:hover {
  box-shadow: none;
}

.w3-badge, .w3-tag {
  background-color: #000;
  color: #fff;
  display: inline-block;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}
.w3-badge {
  border-radius: 50%;
}
.w3-ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.w3-ul li {
  padding: 8px 16px;
  border-bottom: 1px solid #ddd;
}
.w3-ul li:last-child {
  border-bottom: none;
}
.w3-tooltip, .w3-display-container {
  position: relative;
}
.w3-tooltip .w3-text {
  display: none;
}
.w3-tooltip:hover .w3-text {
  display: inline-block;
}
.w3-ripple:active {
  opacity: 0.5;
}
.w3-ripple {
  transition: opacity 0s;
}
.w3-input {
  padding: 8px;
  display: block;
  border: none;
  border-bottom: 1px solid #ccc;
  width: 100%;
}
.w3-select {
  padding: 9px 0;
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
}
.w3-dropdown-click, .w3-dropdown-hover {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.w3-dropdown-hover:hover .w3-dropdown-content {
  display: block;
}
.w3-dropdown-hover:first-child, .w3-dropdown-click:hover {
  background-color: #ccc;
  color: #000;
}
.w3-dropdown-hover:hover > .w3-button:first-child, .w3-dropdown-click:hover > .w3-button:first-child {
  background-color: #ccc;
  color: #000;
}
.w3-dropdown-content {
  cursor: auto;
  color: #000;
  background-color: #fff;
  display: none;
  position: absolute;
  min-width: 160px;
  margin: 0;
  padding: 0;
  z-index: 1;
}
.w3-check, .w3-radio {
  width: 24px;
  height: 24px;
  position: relative;
  top: 6px;
}
.w3-sidebar {
  height: 100%;
  width: 200px;
  background-color: #fff;
  position: fixed !important;
  z-index: 9999 !important;
  overflow: auto;
}
.w3-bar-block .w3-dropdown-hover, .w3-bar-block .w3-dropdown-click {
  width: 100%;
}
.w3-bar-block .w3-dropdown-hover .w3-dropdown-content, .w3-bar-block .w3-dropdown-click .w3-dropdown-content {
  min-width: 100%;
}
.w3-bar-block .w3-dropdown-hover .w3-button, .w3-bar-block .w3-dropdown-click .w3-button {
  width: 100%;
  text-align: left;
  padding: 8px 16px;
}
.w3-main, #main {
  transition: margin-left .4s;
    display: flex;
    flex-direction: column;
    min-height: 75vh; /* Tinggi penuh viewport */
}

.w3-modal {
  z-index: 3;
  display: none;
  padding-top: 25px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}
.w3-modal-content {
  margin: auto;
  background-color: #fff;
  position: relative;
  padding: 0;
  outline: 0;
  width: 600px;
}
.w3-bar {
  width: 100%;
  overflow: hidden;
}
.w3-center .w3-bar {
  display: inline-block;
  width: auto;
}
.w3-bar .w3-bar-item {
  padding: 8px 16px;
  float: left;
  width: auto;
  border: none;
  display: block;
  outline: 0;
}
.w3-bar .w3-dropdown-hover, .w3-bar .w3-dropdown-click {
  position: static;
  float: left;
}
.w3-bar .w3-button {
  white-space: normal;
}
.w3-bar-block .w3-bar-item {
  width: 100%;
  display: block;
  padding: 8px 16px;
  text-align: left;
  border: none;
  white-space: normal;
  float: none;
  outline: 0;
}
.w3-bar-block.w3-center .w3-bar-item {
  text-align: center;
}
.w3-block {
  display: block;
  width: 100%;
}
.w3-responsive {
  display: block;
  overflow-x: auto;
}
.w3-container:after, .w3-container:before,
.w3-panel:after, .w3-panel:before,
.w3-row:after, .w3-row:before,
.w3-row-padding:after, .w3-row-padding:before,
.w3-cell-row:before, .w3-cell-row:after,
.w3-clear:after, .w3-clear:before,
.w3-bar:before, .w3-bar:after {
  content: "";
  display: table;
  clear: both;
}
.w3-col, .w3-half, .w3-third, .w3-twothird, .w3-threequarter, .w3-quarter {
  float: left;
  width: 100%;
}
.w3-col.s1 { width: 8.33333%; }
.w3-col.s2 { width: 16.66666%; }
.w3-col.s3 { width: 24.99999%; }
.w3-col.s4 { width: 33.33333%; }
.w3-col.s5 { width: 41.66666%; }
.w3-col.s6 { width: 49.99999%; }
.w3-col.s7 { width: 58.33333%; }
.w3-col.s8 { width: 66.66666%; }
.w3-col.s9 { width: 74.99999%; }
.w3-col.s10 { width: 83.33333%; }
.w3-col.s11 { width: 91.66666%; }
.w3-col.s12 { width: 99.99999%; }
@media (min-width: 601px) {
  .w3-col.m1 { width: 8.33333%; }
  .w3-col.m2 { width: 16.66666%; }
  .w3-col.m3, .w3-quarter { width: 24.99999%; }
  .w3-col.m4, .w3-third { width: 33.33333%; }
  .w3-col.m5 { width: 41.66666%; }
  .w3-col.m6, .w3-half { width: 49.99999%; }
  .w3-col.m7 { width: 58.33333%; }
  .w3-col.m8, .w3-twothird { width: 66.66666%; }
  .w3-col.m9, .w3-threequarter { width: 74.99999%; }
  .w3-col.m10 { width: 83.33333%; }
  .w3-col.m11 { width: 91.66666%; }
  .w3-col.m12 { width: 99.99999%; }
}
@media (min-width: 993px) {
  .w3-col.l1 { width: 8.33333%; }
  .w3-col.l2 { width: 16.66666%; }
  .w3-col.l3 { width: 24.99999%; }
  .w3-col.l4 { width: 33.33333%; }
  .w3-col.l5 { width: 41.66666%; }
  .w3-col.l6 { width: 49.99999%; }
  .w3-col.l7 { width: 58.33333%; }
  .w3-col.l8 { width: 66.66666%; }
  .w3-col.l9 { width: 74.99999%; }
  .w3-col.l10 { width: 83.33333%; }
  .w3-col.l11 { width: 91.66666%; }
  .w3-col.l12 { width: 99.99999%; }
}
.w3-rest {
  overflow: hidden;
}
.w3-stretch {
  margin-left: -16px;
  margin-right: -16px;
}
.w3-content, .w3-auto {
  margin-left: auto;
  margin-right: auto;
}
.w3-content {
  max-width: 980px;
}
.w3-auto {
  max-width: 1140px;
}
.w3-cell-row {
  display: table;
  width: 100%;
}
.w3-cell {
  display: table-cell;
}
.w3-cell-top {
  vertical-align: top;
}
.w3-cell-middle {
  vertical-align: middle;
}
.w3-cell-bottom {
  vertical-align: bottom;
}
.w3-hide {
  display: none !important;
}
.w3-show-block, .w3-show {
  display: block !important;
}
.w3-show-inline-block {
  display: inline-block !important;
}
@media (max-width: 1205px) {
  .w3-auto {
    max-width: 95%;
  }
}

@media (max-width: 600px) {
  .w3-modal-content {
    margin: 0 10px;
    width: auto !important;
  }

  .w3-modal {
    padding-top: 30px;
  }

  .w3-dropdown-hover.w3-mobile .w3-dropdown-content,
  .w3-dropdown-click.w3-mobile .w3-dropdown-content {
    position: relative;
  }

  .w3-hide-small {
    display: none !important;
  }

  .w3-mobile {
    display: block;
    width: 100% !important;
  }

  .w3-bar-item.w3-mobile,
  .w3-dropdown-hover.w3-mobile,
  .w3-dropdown-click.w3-mobile {
    text-align: center;
  }

  .w3-dropdown-hover.w3-mobile,
  .w3-dropdown-hover.w3-mobile .w3-btn,
  .w3-dropdown-hover.w3-mobile .w3-button,
  .w3-dropdown-click.w3-mobile,
  .w3-dropdown-click.w3-mobile .w3-btn,
  .w3-dropdown-click.w3-mobile .w3-button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .w3-modal-content {
    width: 500px;
  }

  .w3-modal {
    padding-top: 50px;
  }
}

@media (min-width: 993px) {
  .w3-modal-content {
    width: 900px;
  }

  .w3-hide-large {
    display: none !important;
  }

  .w3-sidebar.w3-collapse {
    display: block !important;
  }
}

@media (max-width: 992px) and (min-width: 601px) {
  .w3-hide-medium {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .w3-sidebar.w3-collapse {
    display: none;
  }

  .w3-main {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .w3-auto {
    max-width: 100%;
  }
}

.w3-top,
.w3-bottom {
  position: fixed;
  width: 100%;
  z-index: 1;
}

.w3-top {
  top: 0;
  z-index: 2;
}

.w3-bottom {
  bottom: 0;
}

.w3-overlay {
  position: fixed;
  display: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.w3-display-topleft {
  position: absolute;
  left: 0;
  top: 0;
}

.w3-display-topright {
  position: absolute;
  right: 0;
  top: 0;
}

.w3-display-bottomleft {
  position: absolute;
  left: 0;
  bottom: 0;
}

.w3-display-bottomright {
  position: absolute;
  right: 0;
  bottom: 0;
}

.w3-display-middle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.w3-display-left {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(0%, -50%);
  -ms-transform: translate(0%, -50%);
}

.w3-display-right {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translate(0%, -50%);
  -ms-transform: translate(0%, -50%);
}

.w3-display-topmiddle {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
}

.w3-display-bottommiddle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
}

.w3-display-container:hover .w3-display-hover {
  display: block;
}

.w3-display-container:hover span.w3-display-hover {
  display: inline-block;
}

.w3-display-hover {
  display: none;
}

.w3-display-position {
  position: absolute;
}

.w3-circle {
  border-radius: 50%;
}

.w3-round-small {
  border-radius: 2px;
}

.w3-round,
.w3-round-medium {
  border-radius: 4px;
}

.w3-round-large {
  border-radius: 8px;
}

.w3-round-xlarge {
  border-radius: 16px;
}

.w3-round-xxlarge {
  border-radius: 32px;
}

.w3-row-padding,
.w3-row-padding > .w3-half,
.w3-row-padding > .w3-third,
.w3-row-padding > .w3-twothird,
.w3-row-padding > .w3-threequarter,
.w3-row-padding > .w3-quarter,
.w3-row-padding > .w3-col {
  padding: 0 8px;
}

.w3-container,
.w3-panel {
  padding: 0.01em 16px;
}

.w3-panel {
  margin-top: 16px;
  margin-bottom: 16px;
}

.w3-code,
.w3-codespan {
  font-family: Consolas, "courier new";
  font-size: 16px;
}

.w3-code {
  width: auto;
  background-color: #fff;
  padding: 8px 12px;
  border-left: 4px solid #4CAF50;
  word-wrap: break-word;
}

.w3-codespan {
  color: crimson;
  background-color: #f1f1f1;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 110%;
}

.w3-card,
.w3-card-2 {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

.w3-card-4,
.w3-hover-shadow:hover {
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 20px 0 rgba(0, 0, 0, 0.19);
}

.w3-spin {
  animation: w3-spin 2s infinite linear;
}

@keyframes w3-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

.w3-animate-fading {
  animation: fading 10s infinite;
}

@keyframes fading {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.w3-animate-opacity {
  animation: opac 0.8s;
}

@keyframes opac {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.w3-animate-top {
  position: relative;
  animation: animatetop 0.4s;
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.w3-animate-left {
  position: relative;
  animation: animateleft 0.4s;
}

@keyframes animateleft {
  from {
    left: -300px;
    opacity: 0;
  }
  to {
    left: 0;
    opacity: 1;
  }
}

.w3-animate-right {
  position: relative;
  animation: animateright 0.4s;
}

@keyframes animateright {
  from {
    right: -300px;
    opacity: 0;
  }
  to {
    right: 0;
    opacity: 1;
  }
}

.w3-animate-bottom {
  position: relative;
  animation: animatebottom 0.4s;
}

@keyframes animatebottom {
  from {
    bottom: -300px;
    opacity: 0;
  }
  to {
    bottom: 0;
    opacity: 1;
  }
}

.w3-animate-zoom {
  animation: animatezoom 0.6s;
}

@keyframes animatezoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.w3-animate-input {
  transition: width 0.4s ease-in-out;
}

.w3-animate-input:focus {
  width: 100% !important;
}

.w3-opacity,
.w3-hover-opacity:hover {
  opacity: 0.60;
}

.w3-opacity-off,
.w3-hover-opacity-off:hover {
  opacity: 1;
}

.w3-opacity-max {
  opacity: 0.25;
}

.w3-opacity-min {
  opacity: 0.75;
}

.w3-greyscale-max,
.w3-grayscale-max,
.w3-hover-greyscale:hover,
.w3-hover-grayscale:hover {
  filter: grayscale(100%);
}

.w3-greyscale,
.w3-grayscale {
  filter: grayscale(75%);
}

.w3-greyscale-min,
.w3-grayscale-min {
  filter: grayscale(50%);
}

.w3-sepia {
  filter: sepia(75%);
}

.w3-sepia-max,
.w3-hover-sepia:hover {
  filter: sepia(100%);
}

.w3-sepia-min {
  filter: sepia(50%);
}

.w3-tiny {
  font-size: 10px !important;
}

.w3-small {
  font-size: 12px !important;
}

.w3-medium {
  font-size: 15px !important;
}

.w3-large {
  font-size: 18px !important;
}

.w3-xlarge {
  font-size: 24px !important;
}

.w3-xxlarge {
  font-size: 36px !important;
}

.w3-xxxlarge {
  font-size: 48px !important;
}

.w3-jumbo {
  font-size: 64px !important;
}

.w3-left-align {
  text-align: left !important;
}

.w3-right-align {
  text-align: right !important;
}

.w3-justify {
  text-align: justify !important;
}

.w3-center {
  text-align: center !important;
}

.w3-border-0 {
  border: 0 !important;
}

.w3-border {
  border: 1px solid #ccc !important;
}

.w3-border-top {
  border-top: 1px solid #ccc !important;
}

.w3-border-bottom {
  border-bottom: 1px solid #ccc !important;
}

.w3-border-left {
  border-left: 1px solid #ccc !important;
}

.w3-border-right {
  border-right: 1px solid #ccc !important;
}

.w3-topbar {
  border-top: 6px solid #ccc !important;
}

.w3-bottombar {
  border-bottom: 6px solid #ccc !important;
}

.w3-leftbar {
  border-left: 6px solid #ccc !important;
}

.w3-rightbar {
  border-right: 6px solid #ccc !important;
}

.w3-section,
.w3-code {
  margin-top: 16px !important;
  margin-bottom: 16px !important;
}

.w3-margin {
  margin: 16px !important;
}

.w3-margin-top {
  margin-top: 16px !important;
}

.w3-margin-bottom {
  margin-bottom: 16px !important;
}

.w3-margin-left {
  margin-left: 16px !important;
}

.w3-margin-right {
  margin-right: 16px !important;
}

.w3-padding-small {
  padding: 4px 8px !important;
}

.w3-padding {
  padding: 8px 16px !important;
}

.w3-padding-large {
  padding: 12px 24px !important;
}

.w3-padding-16 {
  padding-top: 16px !important;
  padding-bottom: 16px !important;
}

.w3-padding-24 {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

.w3-padding-32 {
  padding-top: 32px !important;
  padding-bottom: 32px !important;
}

.w3-padding-48 {
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}

.w3-padding-64 {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.w3-padding-top-64 {
  padding-top: 64px !important;
}

.w3-padding-top-48 {
  padding-top: 48px !important;
}

.w3-padding-top-32 {
  padding-top: 32px !important;
}

.w3-padding-top-24 {
  padding-top: 24px !important;
}

.w3-left {
  float: left !important;
}

.w3-right {
  float: right !important;
}

.w3-button:hover {
  color: #000 !important;
  background-color: #ffc107 !important;
}

.w3-transparent,
.w3-hover-none:hover {
  background-color: transparent !important;
}

.w3-hover-none:hover {
  box-shadow: none !important;
}



/* Colors */
.w3-amber, .w3-hover-amber:hover {
  color: #000 !important;
  background-color: #ffc107 !important;
}

.w3-aqua, .w3-hover-aqua:hover {
  color: #000 !important;
  background-color: #00ffff !important;
}

.w3-blue, .w3-hover-blue:hover {
  color: #fff !important;
  background-color: #2196F3 !important;
}

.w3-light-blue, .w3-hover-light-blue:hover {
  color: #000 !important;
  background-color: #87CEEB !important;
}

.w3-brown, .w3-hover-brown:hover {
  color: #fff !important;
  background-color: #795548 !important;
}

.w3-cyan, .w3-hover-cyan:hover {
  color: #000 !important;
  background-color: #00bcd4 !important;
}

.w3-blue-grey, .w3-hover-blue-grey:hover,
.w3-blue-gray, .w3-hover-blue-gray:hover {
  color: #fff !important;
  background-color: #607d8b !important;
}

.w3-green, .w3-hover-green:hover {
  color: #fff !important;
  background-color: #4CAF50 !important;
}

.w3-light-green, .w3-hover-light-green:hover {
  color: #000 !important;
  background-color: #8bc34a !important;
}

.w3-indigo, .w3-hover-indigo:hover {
  color: #fff !important;
  background-color: #3f51b5 !important;
}

.w3-khaki, .w3-hover-khaki:hover {
  color: #000 !important;
  background-color: #f0e68c !important;
}

.w3-lime, .w3-hover-lime:hover {
  color: #000 !important;
  background-color: #cddc39 !important;
}

.w3-orange, .w3-hover-orange:hover {
  color: #000 !important;
  background-color: #ff9800 !important;
}

.w3-deep-orange, .w3-hover-deep-orange:hover {
  color: #fff !important;
  background-color: #ff5722 !important;
}

.w3-pink, .w3-hover-pink:hover {
  color: #fff !important;
  background-color: #e91e63 !important;
}

.w3-purple, .w3-hover-purple:hover {
  color: #fff !important;
  background-color: #9c27b0 !important;
}

.w3-deep-purple, .w3-hover-deep-purple:hover {
  color: #fff !important;
  background-color: #673ab7 !important;
}

.w3-red, .w3-hover-red:hover {
  color: #fff !important;
  background-color: #f44336 !important;
}

.w3-sand, .w3-hover-sand:hover {
  color: #000 !important;
  background-color: #fdf5e6 !important;
}

.w3-teal, .w3-hover-teal:hover {
  color: #fff !important;
  background-color: #009688 !important;
}

.w3-yellow, .w3-hover-yellow:hover {
  color: #000 !important;
  background-color: #ffeb3b !important;
}

.w3-white, .w3-hover-white:hover {
  color: #000 !important;
  background-color: #fff !important;
}

.w3-black, .w3-hover-black:hover {
  color: #fff !important;
  background-color: #000 !important;
}

.w3-grey, .w3-hover-grey:hover,
.w3-gray, .w3-hover-gray:hover {
  color: #000 !important;
  background-color: #9e9e9e !important;
}

.w3-light-grey, .w3-hover-light-grey:hover,
.w3-light-gray, .w3-hover-light-gray:hover {
  color: #000 !important;
  background-color: #f1f1f1 !important;
}

.w3-dark-grey, .w3-hover-dark-grey:hover,
.w3-dark-gray, .w3-hover-dark-gray:hover {
  color: #fff !important;
  background-color: #616161 !important;
}

.w3-pale-red, .w3-hover-pale-red:hover {
  color: #000 !important;
  background-color: #ffdddd !important;
}

.w3-pale-green, .w3-hover-pale-green:hover {
  color: #000 !important;
  background-color: #ddffdd !important;
}

.w3-pale-yellow, .w3-hover-pale-yellow:hover {
  color: #000 !important;
  background-color: #ffffcc !important;
}

.w3-pale-blue, .w3-hover-pale-blue:hover {
  color: #000 !important;
  background-color: #ddffff !important;
}

.w3-text-amber, .w3-hover-text-amber:hover {
  color: #ffc107 !important;
}

.w3-text-aqua, .w3-hover-text-aqua:hover {
  color: #00ffff !important;
}

.w3-text-blue, .w3-hover-text-blue:hover {
  color: #2196F3 !important;
}

.w3-text-light-blue, .w3-hover-text-light-blue:hover {
  color: #87CEEB !important;
}

.w3-text-brown, .w3-hover-text-brown:hover {
  color: #795548 !important;
}

.w3-text-cyan, .w3-hover-text-cyan:hover {
  color: #00bcd4 !important;
}

.w3-text-blue-grey, .w3-hover-text-blue-grey:hover,
.w3-text-blue-gray, .w3-hover-text-blue-gray:hover {
  color: #607d8b !important;
}

.w3-text-green, .w3-hover-text-green:hover {
  color: #4CAF50 !important;
}

.w3-text-light-green, .w3-hover-text-light-green:hover {
  color: #8bc34a !important;
}

.w3-text-indigo, .w3-hover-text-indigo:hover {
  color: #3f51b5 !important;
}

.w3-text-khaki, .w3-hover-text-khaki:hover {
  color: #b4aa50 !important;
}

.w3-text-lime, .w3-hover-text-lime:hover {
  color: #cddc39 !important;
}

.w3-text-orange, .w3-hover-text-orange:hover {
  color: #ff9800 !important;
}

.w3-text-deep-orange, .w3-hover-text-deep-orange:hover {
  color: #ff5722 !important;
}

.w3-text-pink, .w3-hover-text-pink:hover {
  color: #e91e63 !important;
}

.w3-text-purple, .w3-hover-text-purple:hover {
  color: #9c27b0 !important;
}

.w3-text-deep-purple, .w3-hover-text-deep-purple:hover {
  color: #673ab7 !important;
}

.w3-text-red, .w3-hover-text-red:hover {
  color: #f44336 !important;
}

.w3-text-sand, .w3-hover-text-sand:hover {
  color: #fdf5e6 !important;
}

.w3-text-teal, .w3-hover-text-teal:hover {
  color: #009688 !important;
}

.w3-text-yellow, .w3-hover-text-yellow:hover {
  color: #d2be0e !important;
}

.w3-text-white, .w3-hover-text-white:hover {
  color: #fff !important;
  font-size: 1.7em; /* Adjust the font size on hover */
}

.w3-text-black, .w3-hover-text-black:hover {
  color: #000 !important;
}

.w3-text-grey,
.w3-hover-text-grey:hover,
.w3-text-gray,
.w3-hover-text-gray:hover {
  color: #757575 !important;
}

.w3-text-light-grey,
.w3-hover-text-light-grey:hover,
.w3-text-light-gray,
.w3-hover-text-light-gray:hover {
  color: #f1f1f1 !important;
}

.w3-text-dark-grey,
.w3-hover-text-dark-grey:hover,
.w3-text-dark-gray,
.w3-hover-text-dark-gray:hover {
  color: #3a3a3a !important;
}

.w3-border-amber,
.w3-hover-border-amber:hover {
  border-color: #ffc107 !important;
}

.w3-border-aqua,
.w3-hover-border-aqua:hover {
  border-color: #00ffff !important;
}

.w3-border-blue,
.w3-hover-border-blue:hover {
  border-color: #2196F3 !important;
}

.w3-border-light-blue,
.w3-hover-border-light-blue:hover {
  border-color: #87CEEB !important;
}

.w3-border-brown,
.w3-hover-border-brown:hover {
  border-color: #795548 !important;
}

.w3-border-cyan,
.w3-hover-border-cyan:hover {
  border-color: #00bcd4 !important;
}

.w3-border-blue-grey,
.w3-hover-border-blue-grey:hover,
.w3-border-blue-gray,
.w3-hover-border-blue-gray:hover {
  border-color: #607d8b !important;
}

.w3-border-green,
.w3-hover-border-green:hover {
  border-color: #4CAF50 !important;
}

.w3-border-light-green,
.w3-hover-border-light-green:hover {
  border-color: #8bc34a !important;
}

.w3-border-indigo,
.w3-hover-border-indigo:hover {
  border-color: #3f51b5 !important;
}

.w3-border-khaki,
.w3-hover-border-khaki:hover {
  border-color: #f0e68c !important;
}

.w3-border-lime,
.w3-hover-border-lime:hover {
  border-color: #cddc39 !important;
}

.w3-border-orange,
.w3-hover-border-orange:hover {
  border-color: #ff9800 !important;
}

.w3-border-deep-orange,
.w3-hover-border-deep-orange:hover {
  border-color: #ff5722 !important;
}

.w3-border-pink,
.w3-hover-border-pink:hover {
  border-color: #e91e63 !important;
}

.w3-border-purple,
.w3-hover-border-purple:hover {
  border-color: #9c27b0 !important;
}

.w3-border-deep-purple,
.w3-hover-border-deep-purple:hover {
  border-color: #673ab7 !important;
}

.w3-border-red,
.w3-hover-border-red:hover {
  border-color: #f44336 !important;
}

.w3-border-sand,
.w3-hover-border-sand:hover {
  border-color: #fdf5e6 !important;
}

.w3-border-teal,
.w3-hover-border-teal:hover {
  border-color: #009688 !important;
}

.w3-border-yellow,
.w3-hover-border-yellow:hover {
  border-color: #ffeb3b !important;
}

.w3-border-white,
.w3-hover-border-white:hover {
  border-color: #fff !important;
}

.w3-border-black,
.w3-hover-border-black:hover {
  border-color: #000 !important;
}

.w3-border-grey,
.w3-hover-border-grey:hover,
.w3-border-gray,
.w3-hover-border-gray:hover {
  border-color: #9e9e9e !important;
}

.w3-border-light-grey,
.w3-hover-border-light-grey:hover,
.w3-border-light-gray,
.w3-hover-border-light-gray:hover {
  border-color: #f1f1f1 !important;
}

.w3-border-dark-grey,
.w3-hover-border-dark-grey:hover,
.w3-border-dark-gray,
.w3-hover-border-dark-gray:hover {
  border-color: #616161 !important;
}

.w3-border-pale-red,
.w3-hover-border-pale-red:hover {
  border-color: #ffe7e7 !important;
}

.w3-border-pale-green,
.w3-hover-border-pale-green:hover {
  border-color: #e7ffe7 !important;
}

.w3-border-pale-yellow,
.w3-hover-border-pale-yellow:hover {
  border-color: #ffffcc !important;
}

.w3-border-pale-blue,
.w3-hover-border-pale-blue:hover {
  border-color: #e7ffff !important;
}

/* === Original stylePlus.css, cascade order retained === */
/* ==========================================================================
   1. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   2. KOMPONEN UTAMA (TAMPILAN DASAR / DESKTOP FIRST)
   ========================================================================== */

/* --- Tombol --- */
.nextbutton {
    border: none;
    display: block;
    width: 100%;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    background-color: #ffedcb;
    color: #000 !important;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    padding: 12px 24px;
    border-radius: 5px;
    transition: background-color 0.3s;
    user-select: none;
    -webkit-user-select: none;
}
.nextbutton:hover { background-color: #ffc107; }

.w3-button {
    background-color: #feecb4;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}
.w3-button:hover {
    background-color: rgba(255, 193, 7, 0.8);
    border-radius: 5px;
}
.w3-button img { margin-right: 8px; }

/* ==========================================================================
   PENGATURAN GRID PRODUK (JARAK KONSISTEN & RAPI 100%)
   ========================================================================== */
#productContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -8px !important; /* Menarik container agar sejajar dengan tepi layar */
}

.product-item {
    padding: 8px !important; /* Celah presisi 16px (8px + 8px) di SEMUA SISI (Atas, Bawah, Kiri, Kanan) */
    margin-bottom: 0 !important; /* Menghapus margin usang */
    float: none !important; /* Mematikan sifat mengambang (float) bawaan w3.css */
    display: flex;
    flex-direction: column;
}

.w3-row-padding .img-container {
    position: relative;
    width: 100%;
    height: 100%; /* Memastikan semua card memiliki tinggi yang sama rata */
    padding: 0 !important; /* Menghapus padding 5px lama agar gambar penuh ke tepi kotak */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.w3-row-padding img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.w3-row-padding .img-container:hover img {
    transform: scale(1.02);
}

.jarak { margin-bottom: 16px !important; margin-top: 10px !important; }
.w3-row-padding h3 { margin-left: 15px; margin-right: 15px; color: #795548; }
.w3-row-padding p { margin-left: 15px; margin-right: 15px; font-size: 1rem; }
.w3-row-padding p img {
    display: block;
    margin: 10px auto;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    opacity: 1;
}

/* --- Animasi Produk Muncul Halus --- */
.product-item { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.product-item.show { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   LABEL KATEGORI PRODUK (FULL WIDTH & PRESISI DALAM GAMBAR)
   ========================================================================== */
.img-kategori-top, .img-kategori-bottom {
    position: absolute;
    left: 0;
    width: 100%; /* Lebar sempurna mengikuti gambar */
    color: #795548;
    text-align: center;
    z-index: 3;
    background-color: rgba(250, 230, 194, 0.95);
    backdrop-filter: blur(2px);
    opacity: 1 !important;
    transform: none !important; /* Menghapus translateX bawaan lama yang bikin bergeser */
    box-sizing: border-box;
}

.img-kategori-top { 
    top: 0 !important; /* Menempel erat di atas gambar */
    font-size: 0.9rem; 
    font-weight: 700; 
    padding: 6px 0; 
    border-radius: 8px 8px 0 0;
}

.img-kategori-bottom { 
    bottom: 0 !important; /* Menempel erat di bawah gambar */
    font-size: 0.8rem; 
    font-weight: 500; 
    padding: 5px 6px; 
    border-radius: 0 0 8px 8px;
}


/* --- CSS Dasar Modal --- */
.w3-modal {
    background-color: rgba(253, 245, 230, 0.8); display: none; justify-content: center; align-items: center;
    position: fixed; inset: 0; width: 100%; height: 100%; overflow: hidden !important; z-index: 999999 !important;
}
.w3-modal.show { animation: modalFadeIn 0.35s ease forwards; }
.w3-modal.hide { animation: modalFadeOut 0.35s ease forwards; }

@keyframes modalFadeIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
@keyframes modalFadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.96); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

body.modal-open { overflow: hidden !important; position: fixed; width: 100%; }

/* ==========================================================================
   SLIDER UTAMA (CAROUSEL INFINITE) - DESKTOP & MOBILE
   ========================================================================== */
.slider { position: relative; width: 100%; max-width: 100%; overflow: hidden; height: 100vh; background-color: #f4f6f9; }
.slides { display: flex; will-change: transform; height: 100%; }

/* Default disembunyikan agar JS merender tanpa cacat (FOUC) */
.slide { min-width: 100%; box-sizing: border-box; height: 100%; display: none; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

.prev, .next {
    cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); padding: 16px;
    color: #ffc107; font-weight: bold; font-size: 24px; transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-color: rgba(255, 255, 255, 0.4); border: none; border-radius: 4px; z-index: 5;
}
.prev { left: 20px; }
.next { right: 20px; }
.prev:hover, .next:hover { 
    color: #ffc107; transform: translateY(-50%) scale(1.15); 
    background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 10px rgba(0,0,0,0.15); 
}

/* Indikator Garis Horizontal dengan Loading Efek */
.indicators { display: flex; justify-content: center; gap: 8px; position: absolute; bottom: 30px; width: 100%; z-index: 10; }
.indicator { width: 35px; height: 4px; background-color: rgba(255, 255, 255, 0.4); border-radius: 4px; overflow: hidden; cursor: pointer; position: relative; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: width 0.3s ease, background-color 0.3s ease; }
.indicator-progress { height: 100%; width: 0%; background: #ff9800; border-radius: 4px; }
.indicator.active { width: 50px; background-color: rgba(255, 255, 255, 0.6); }

/* CSS Mobile Overrides Spesifik Slider */
@media (max-width: 768px) {
    .slider { 
        height: calc(100svh - 60px); /* Kunci tinggi mengikuti layar hp asli */
        background-color: #fff;
    }
    .slides {
        /* Potong 65px dari bagian bawah agar gambar putus pas sebelum Bottom Nav! */
        height: calc(100% - 65px); 
    }
    .slide img { 
        border-radius: 0; 
    }
    .indicators { 
        /* Angkat indikator 15px di atas menu bottom (65+15=80) agar terlihat jelas */
        bottom: 80px; 
    }
    .indicator { width: 25px; height: 3.5px; }
    .indicator.active { width: 35px; }
    .prev, .next { padding: 10px 14px; font-size: 18px; }
    .prev { left: 8px; }
    .next { right: 8px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .slider { height: 75vh; }
    .indicators { bottom: 20px; }
}

/* --- Ikon Sosial Media --- */
.social-icons { display: flex; justify-content: center; align-items: center; margin-top: 20px; }
.social-icons i { font-size: 24px; margin: 0 6px; }
.social-icon { font-size: 2rem; color: #000; margin: 0 10px; transition: color 0.3s ease, transform 0.3s ease; }
.social-icon:hover { color: #ffc107; transform: scale(1.2); }
.social-icon:active { transform: scale(1.1); }


/* ==========================================================================
   CONTAINER KATEGORI (TIRAI PUTIH ELEGAN & MOBILE OPTIMIZED)
   ========================================================================== */

/* --- Dasar --- */
.w3-display-container {
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    border-radius: 12px; 
    background-color: #ffffff; /* Base putih */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 0 !important; 
    margin: 0 !important;
    display: block; 
}

.w3-display-container a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
}

.w3-display-container img { 
    width: 100%; 
    aspect-ratio: 16 / 9;
    object-fit: cover; 
    object-position: center; 
    display: block; 
    margin: 0 !important; 
    padding: 0 !important;
    vertical-align: top;
    filter: none !important;
    opacity: 1 !important;
    transition: transform 0.8s ease; 
}

/* --- Tampilan Desktop (Tirai Putih Membuka) --- */
@media (min-width: 993px) {
    .w3-display-container::before,
    .w3-display-container::after {
        content: ""; position: absolute; top: 0; width: 55%; height: 100%;
        z-index: 1; pointer-events: none; transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .w3-display-container::before {
        left: 0; transform-origin: left;
        background: linear-gradient(to right, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 65%, rgba(255,255,255,0) 100%);
    }
    .w3-display-container::after {
        right: 0; transform-origin: right;
        background: linear-gradient(to left, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 65%, rgba(255,255,255,0) 100%);
    }
    .w3-display-container:hover::before, .w3-display-container:hover::after { transform: scaleX(0); }
    .w3-display-container:hover img { transform: scale(1.08); }

    .w3-display-middle { 
        position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 
        width: 90%; text-align: center; z-index: 5; transition: transform 0.5s ease; 
    }

    .team-title { 
        font-size: clamp(1.2rem, 3vw, 1.6rem) !important; font-weight: 750; color: #5d4037 !important; 
        text-transform: uppercase; letter-spacing: 0.5px; margin: 0; 
        text-shadow: -1px -1px 0px #ffffff, 1px -1px 0px #ffffff, -1px 1px 0px #ffffff, 1px 1px 0px #ffffff, 2px 2px 4px rgba(255, 255, 255, 1); 
    }
    
    .team-desc { 
        font-size: clamp(0.9rem, 2vw, 1.05rem); color: #333333; font-weight: 500; margin-top: 10px; line-height: 1.4; 
        text-shadow: -1px -1px 0px #ffffff, 1px -1px 0px #ffffff, -1px 1px 0px #ffffff, 1px 1px 0px #ffffff, 2px 2px 3px rgba(255, 255, 255, 1); 
    }
    .w3-display-container:hover .w3-display-middle { transform: translate(-50%, -50%) scale(1.05); }
}

/* --- Tampilan Mobile (Bersih, Gambar di Atas, Text di Bawah) --- */
@media (max-width: 992px) {
    .w3-display-container { background-color: #ffffff; border: 1px solid #eee; }
    .w3-display-container a { display: flex; flex-direction: column; }
    .w3-display-container img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px 12px 0 0; }
    .w3-display-middle {
        position: relative !important; top: auto !important; left: auto !important; transform: none !important;
        width: 100%; padding: 15px; background-color: #ffffff; text-align: center; border-radius: 0 0 12px 12px; margin: 0 !important;
    }
    .team-title { font-size: 1.15rem !important; font-weight: 700; color: #795548 !important; margin: 0 0 5px 0; letter-spacing: 0.5px; text-shadow: none !important; }
    .team-desc { font-size: 0.9rem; color: #666666; margin: 0; line-height: 1.4; text-shadow: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}


/* --- Testimonial Carousel --- */
.testimonial-carousel { display: block; overflow-x: visible; white-space: normal; }
.testimonial-carousel .testimonial-item img { width: 60% !important; display: block; margin: 0 auto; }
.testimonial-carousel .w3-container h3, .testimonial-carousel .w3-container p { text-align: center; }
.testimonial-item { display: inline-block; vertical-align: top; min-width: 10%; margin-right: 0; white-space: normal; width: 32%; padding-left: 20px; }

/* --- Top Menu & Footer --- */
#topMenu { transition: transform 0.3s ease; transform: translateY(0); z-index: 6; }
.footer { background-color: #f1f1f1; text-align: center; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); margin-top: 75px; }

/* --- Bottom Nav --- */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #ffffff; border-top: 1px solid #e0e0e0; display: flex; justify-content: space-around; align-items: center; padding: 10px 0; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); z-index: 9999; box-sizing: border-box; }
.bottom-nav .nav-item { text-decoration: none; color: #7a7a7a; font-size: 12px; text-align: center; flex: 1; max-width: 25%; display: flex; flex-direction: column; align-items: center; transition: color 0.3s ease, font-weight 0.3s ease; }
.bottom-nav .nav-item i { font-size: 20px; margin-bottom: 3px; }
.bottom-nav .nav-item.active { color: #e6b520; font-weight: bold; }
.bottom-nav .nav-item:hover { color: #e6b520; }

/* --- Sidebar Menu Menu & Bullet --- */
[data-list="bullet"] { list-style-type: disc; }
.custom-menu { margin-top: 20px; padding: 0 10px; }
.custom-menu-item { display: block; padding: 12px 20px; margin-bottom: 2px; color: #795548; text-decoration: none; background-color: transparent; border-radius: 4px; position: relative; overflow: hidden; transition: background-color 0.3s ease, color 0.3s ease; }
.custom-menu-item::before { content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-color: rgba(255, 193, 7, 0.5); z-index: 0; transition: left 0.4s ease-in-out; }
.custom-menu-item:hover::before { left: 0; }
.custom-menu-item:hover { color: #000; }
.custom-menu-item.active::before { left: 0; }
.custom-menu-item.active { color: #000; font-weight: bold; background-color: rgba(255, 193, 7, 0.3); transition: background-color 0.3s ease; }

/* --- Form Hubungi & Cari Produk --- */
.error-message { color: red; font-size: 0.9em; margin-top: 5px; display: none; }
input::placeholder, textarea::placeholder { color: #999; font-style: italic; }
.tooltip-icon { display: inline-block; font-size: 12px; color: #666; cursor: pointer; position: relative; }
.tooltip-text { visibility: hidden; background-color: #333; color: #fff; text-align: center; padding: 8px; border-radius: 5px; font-size: 0.9em; position: absolute; z-index: 1; bottom: 120%; left: 50%; transform: translateX(-50%); width: 250px; opacity: 0; transition: opacity 0.3s ease; box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); }
.tooltip-text::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border-width: 6px; border-style: solid; border-color: #333 transparent transparent transparent; }
.tooltip-icon:hover .tooltip-text, .tooltip-icon:focus .tooltip-text { visibility: visible; opacity: 1; }

/* ==========================================================================
   FORM PENCARIAN (DESKTOP & MOBILE)
   ========================================================================== */
.search-wrapper {
    display: flex;
    align-items: stretch;
    margin: 0 auto;
    position: relative;
    width: 100%;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cariproduk .search-wrapper { max-width: 250px; }
.search-area .search-wrapper { max-width: 500px; }
.search-wrapper:focus-within { border-color: #ffc107; box-shadow: 0 0 8px rgba(255, 193, 7, 0.3); }

.search-wrapper input[type="text"] {
    flex: 1; padding: 10px 45px 10px 15px; border: none !important; outline: none; font-size: 14px; background: transparent; width: 100%; min-width: 0;
}

.search-wrapper button.nextbutton {
    border: none; border-radius: 0; padding: 0 20px; margin: 0; background-color: #ffc107; color: #000 !important;
    font-size: 16px; cursor: pointer; transition: background-color 0.3s ease; display: flex; align-items: center; justify-content: center; width: auto;
}
.search-wrapper button.nextbutton:hover { background-color: #e0a800; }

.clear-icon {
    position: absolute; right: 58px; top: 50%; transform: translateY(-50%); font-size: 14px; cursor: pointer;
    visibility: hidden; color: #999; padding: 6px; z-index: 2; transition: color 0.3s ease; display: flex; align-items: center; justify-content: center;
}
.clear-icon:hover { color: #d32f2f; }
input:focus + .clear-icon, input:not(:placeholder-shown) + .clear-icon { visibility: visible; }

.search-area {
    position: fixed; bottom: -100%; left: 0; width: 100%; background: #fff; z-index: 9998; padding: 15px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 15px 15px 0 0;
}
.search-area.visible { bottom: 60px; } 
.search-area.hidden { bottom: -100%; }


/* ==========================================================================
   3. RESPONSIVE BREAKPOINTS (SUPER CLEAN)
   ========================================================================== */

/* --- 1. ATURAN GLOBAL UNTUK SEMUA MOBILE & TABLET (≤ 1024px) --- */
@media (max-width: 1024px) {
    .custom-sidebar { width: 100%; left: -100%; transition: transform 0.3s ease; }
    .custom-sidebar.open { transform: translateX(100%); }

    .carousel { 
        display: flex !important; flex-wrap: nowrap !important; width: 100% !important; 
        overflow-x: auto !important; scroll-behavior: auto !important; 
        -webkit-overflow-scrolling: touch !important; padding: 10px 0 !important; cursor: grab !important; 
    }
    .carousel:active { cursor: grabbing !important; }
    
    .w3-row-padding .w3-quarter, .w3-row-padding .w3-half { width: 25% !important; }

    #topMenu { padding: 4px 0 !important; }
    #topMenu .w3-bar-item, #topMenu .w3-button, #topMenu a { padding-top: 8px !important; padding-bottom: 8px !important; font-size: 14px !important; }
    #topMenu i { font-size: 16px !important; } 
}

/* --- 2. TABLET POTRET & SELURUH LAYAR ≤ 768px --- */
@media (max-width: 768px) {
    .slide.desktop { display: none; }
    .slider { height: calc(100vh - 60px); }
    .slides { flex-direction: row; height: 100%; }
    .indicator { width: 8px; height: 8px; }
    .prev { left: 0px; }
    .next { right: 0px; }
    
    .cariproduk { display: none; }
    
    .social-icons { margin-top: 15px; }
    .social-icons i { font-size: 20px; margin: 0 4px; }
    
    .testimonial-carousel { display: flex; overflow-x: scroll; -webkit-overflow-scrolling: touch; padding-left: 10px; -ms-overflow-style: none; scrollbar-width: none; }
    .testimonial-carousel::-webkit-scrollbar { display: none; }
    .testimonial-carousel .w3-container h3 { font-size: 16px; }
    .testimonial-carousel .w3-container p { font-size: 12px; }
    .testimonial-item { flex: 0 0 auto; min-width: 5%; margin-right: 10px; width: 67%; padding-left: 0px; }
    
    .sosmed { display: block; }
    .sosmed .w3-xxlarge.w3-text-brown { color: #ffc107; }
    .sosmed hr { width: 50px; border: 5px solid brown; border-radius: 5px; }
    .sosmed p { margin-top: 10px; font-size: 16px; color: #2c2a2a; }
    .sosmed .social-icons { margin-top: 20px; display: flex; justify-content: space-around; }
    .sosmed .social-icon { font-size: 24px; color: #2c2a2a; transition: color 0.3s ease; }
    .sosmed .social-icon:hover { color: #ffc107; }
    
    .bottom-nav { display: flex; }
    .bottom-nav .nav-item { font-size: 10px; }
    .bottom-nav .nav-item i { font-size: 18px; }
    .w3-container p.w3-right { margin-bottom: 80px; }
    
    .w3-row-padding h3 { margin-left: 20px; margin-right: 20px; }
    .w3-row-padding p { margin-left: 20px; margin-right: 20px; }
    .w3-row-padding p img { margin: 20px auto; max-width: 95%; }
}

/* --- 3. MOBILE SEDANG (≤ 576px) -> 3 KOLOM --- */
@media (max-width: 576px) {
    .w3-row-padding .w3-quarter, .w3-row-padding .w3-half { width: 33.3333% !important; }
    
    .img-kategori-top { font-size: 0.75rem !important; }
    .img-kategori-bottom { font-size: 0.65rem !important; }
    
    .team-title { font-size: 1.25rem !important; }
    .team-desc { font-size: 0.8rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
    
    .carousel-item { flex: 0 0 80vw !important; margin-right: 15px !important; }

    #topMenu { padding: 2px 0 !important; }
    #topMenu .w3-bar-item, #topMenu .w3-button, #topMenu a { padding-top: 6px !important; padding-bottom: 6px !important; font-size: 13px !important; }
}

/* --- 4. MOBILE KECIL (≤ 480px) -> 2 KOLOM --- */
@media (max-width: 480px) {
    .w3-row-padding .w3-quarter, .w3-row-padding .w3-half { width: 50% !important; }
    
    .img-kategori-top { font-size: 0.7rem !important; padding: 4px 0 !important; }
    .img-kategori-bottom { font-size: 0.6rem !important; padding: 4px 2px !important; }
    
    .social-icons i { font-size: 18px; margin: 0 6px; }

    #topMenu { padding: 0 !important; }
    #topMenu .w3-bar-item, #topMenu .w3-button, #topMenu a { padding-top: 4px !important; padding-bottom: 4px !important; font-size: 12px !important; }
}

/* --- 5. KHUSUS LAYAR MENDATAR / LANDSCAPE --- */
@media (max-height: 500px) and (orientation: landscape) {
    #topMenu { padding: 0 !important; min-height: 35px !important; }
    #topMenu .w3-bar-item, #topMenu .w3-button, #topMenu a { padding-top: 4px !important; padding-bottom: 4px !important; font-size: 12px !important; }
    #topMenu img { max-height: 25px !important; width: auto !important; } 
}

/* --- 6. TABLET LANSKAP & UKURAN SPESIFIK (601px - 1024px) --- */
@media (min-width: 601px) and (max-width: 1024px) {
    .carousel-item { flex: 0 0 45vw !important; margin-right: 15px !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .slide.mobile { display: none; }
    .slider { height: 75vh; }
    .slides { flex-direction: row; height: 100%; }
    .indicator { width: 10px; height: 10px; }
    .prev { left: 10px; }
    .next { right: 10px; }
}
@media (min-width: 769px) {
    .sosmed { display: none; }
}

/* --- 7. DESKTOP KECIL & BESAR (≥ 1025px) --- */
@media (min-width: 1025px) {
    .w3-row-padding .w3-quarter { width: 25%; }
    .slide.mobile { display: none; }
    .slider { height: 100vh; max-width: 100%; overflow: hidden; position: relative; }
    .slides { display: flex; flex-direction: row; height: 100%; width: 100%; transition: transform 0.5s ease-in-out; }
    .slide { min-width: 100%; height: 100%; box-sizing: border-box; }
    .slide img { width: 100%; height: 100%; object-fit: cover; }
}

@media (min-width: 1200px) {
    .bottom-nav { display: none; }
}


/* =========================================================
   TAMPILAN DETAIL E-COMMERCE (GAMBAR & VARIASI)
   ========================================================= */
.ecommerce-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; line-height: 1.3; margin-top: 0; margin-bottom: 5px; color: #333;
}
.ecommerce-price {
    font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 800; color: #ff5722; margin-top: 0; margin-bottom: 20px;
}

.main-image-wrapper {
    width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); background-color: #fff;
}
.ecommerce-main-img {
    width: 100%; 
    height: auto; 
    aspect-ratio: 1 / 1; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.3s ease; 
    cursor: zoom-in !important; /* Menampilkan ikon kaca pembesar dengan tanda plus saat belum di-hover sepenuhnya */
    touch-action: pan-y; 
    filter: none !important; 
    opacity: 1 !important; 
    margin: 0 !important;
}

.ecommerce-main-img.zooming { 
    cursor: crosshair !important; /* Berubah menjadi tanda plus ( + ) presisi saat mouse masuk dan efek zoom aktif */
}

.gallery-thumbnails { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; justify-content: flex-start; }
.thumb-item {
    display: flex; align-items: center; justify-content: center; padding: 5px; border: 1.5px solid #ddd; border-radius: 6px;
    background-color: #fff; cursor: pointer; transition: all 0.2s ease-in-out; width: 55px; height: 55px; user-select: none;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; filter: none !important; opacity: 1 !important; margin: 0 !important; }
.thumb-item:hover { border-color: #ff9800; background-color: #fff8f0; }
.thumb-item.active { border-color: #ff5722; background-color: #fff3e0; box-shadow: 0 0 0 1px #ff5722; }

/* =========================================================
   TAMPILAN DETAIL E-COMMERCE (MOBILE REORDER & ZOOM ICON)
   ========================================================= */
.eye-icon-zoom {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255, 255, 255, 0.75); color: #333;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 15; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px); transition: transform 0.2s;
}
.eye-icon-zoom:active { transform: scale(0.9); }

.img-counter-badge {
    position: absolute; bottom: 15px; right: 15px;
    background: rgba(0, 0, 0, 0.65); color: #fff;
    padding: 5px 12px; border-radius: 20px;
    font-size: 0.85rem; font-weight: bold; z-index: 15;
    backdrop-filter: blur(4px); letter-spacing: 1px;
}

/* Sembunyikan Ikon dan Counter di Layar Desktop/Tablet */
@media (min-width: 768px) {
    .eye-icon-zoom, .img-counter-badge { display: none !important; }
}

/* Logika Flexbox untuk menyusun ulang urutan (Order) hanya di Layar HP */
@media (max-width: 767.98px) {
    .detail-info-column { display: flex; flex-direction: column; }
    .gallery-thumbnails { display: none !important; } /* Sembunyikan gambar kecil */
    
    /* Mengatur Urutan Tampilan Kebawah */
    .order-price { order: 1; margin-top: 15px; }
    .order-variasi { order: 2; margin-top: 10px; }
    .order-action { order: 3; margin-top: 15px; margin-bottom: 25px; }
    .order-title { order: 4; font-size: 1.4rem; border-top: 1px dashed #ddd; padding-top: 20px; }
    .order-desc { order: 5; margin-top: 20px; }

    /* Kecilkan Font & Potong Text Variasi Horizontal */
    .variation-label { font-size: 0.85rem !important; }
    .variation-item span {
        font-size: 0.72rem !important; 
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100%;
        display: block; 
        text-align: center;
    }
}

/* Indikator Bar Auto Slide untuk Modal Mobile (Posisi Bawah) */
.gallery-progress-bar {
    position: absolute;
    bottom: 100px; /* Berada tepat di atas tombol aksi */
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
    z-index: 15;
    display: none;
}

/* Wajib ada: Ini adalah baris warna orange yang berjalan */
.gallery-progress-fill {
    height: 100%;
    width: 0%;
    background: #ff9800; 
    border-radius: 2px;
}

/* =========================================================
   BAGIAN PEMILIHAN VARIASI
   ========================================================= */
.ecommerce-variations {
    background-color: #fafafa;
    padding: 10px 10px 15px 10px; 
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.variation-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-top: 0;
    margin-bottom: 10px;
    margin-left: 0 !important; 
}

.variation-label span#selectedVariationName {
    color: #d32f2f; 
    font-weight: bold;
}

.scroll-hint-mobile {
    font-size: 0.75rem; 
    color: #888; 
    font-style: italic; 
    margin-bottom: 10px; 
    margin-left: 2px;
    display: none; 
}

.variation-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Tambahan jarak aman agar pop-up ceklist tidak terpotong tepi */
    padding-top: 6px; 
    padding-right: 6px;
}

.variation-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    gap: 6px; 
    padding: 8px; 
    border: 1.5px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
    min-width: 65px; 
    position: relative; /* SANGAT PENTING: Untuk mengunci posisi ikon ceklist */
}
.variation-item img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
}
.variation-item span {
    font-size: 0.85rem; 
    font-weight: 500;
    color: #444;
    text-align: center; 
}

.variation-item:hover {
    border-color: #ff9800;
    background-color: #fff8f0;
}
.variation-item.active {
    border-color: #ff5722;
    background-color: #fff3e0;
    box-shadow: 0 0 0 1px #ff5722; 
}
.variation-item.active span {
    color: #e65100;
    font-weight: 700;
}

/* --- EFEK CEKLIST (CHECKMARK) VARIASI TERPILIH --- */
.variation-item::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #ff5722; /* Warna Oren khas Algonas */
    /* Menggunakan Vektor SVG murni agar anti pecah/blur & tanpa lag HTTP request */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    border: 2px solid #fff; /* Memotong efek garis putih */
    opacity: 0;
    transform: scale(0) rotate(-15deg); /* Muncul dari kecil ke besar memutar */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 6px rgba(255, 87, 34, 0.3);
}

/* Memunculkan Ceklist dengan Animasi Memantul (Bounce) */
.variation-item.active::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* --- Teks Summernote --- */
.judul-detail { margin-left: 15px; margin-right: 15px; }
.spek-container { margin-left: 15px; margin-right: 15px; font-size: 1rem; line-height: 1.6; color: #333; overflow-x: hidden; }
.spek-container p, .spek-container div, .spek-container h1, .spek-container h2, .spek-container h3, .spek-container h4, .spek-container h5, .spek-container h6 { margin-left: 0 !important; margin-right: 0 !important; margin-top: 0.5em; margin-bottom: 0.8em; }
.spek-container b, .spek-container strong, .spek-container i, .spek-container em, .spek-container u, .spek-container span { margin: 0 !important; padding: 0 !important; display: inline !important; }
.spek-container ul, .spek-container ol { padding-left: 35px !important; margin-left: 0 !important; margin-right: 0 !important; margin-top: 0.5em; margin-bottom: 0.8em; }
.spek-container li { margin-bottom: 5px; }
.spek-container img { max-width: 100% !important; height: auto !important; border-radius: 5px; filter: none !important; opacity: 1 !important; margin: 0 !important; }

/* --- Tombol Bawah --- */
.button-container { display: flex !important; justify-content: center !important; align-items: center !important; gap: 15px !important; margin-top: 15px !important; flex-wrap: nowrap !important; }
.button-container .w3-button { display: flex !important; align-items: center !important; justify-content: center !important; background-color: #ffefc4 !important; color: #5c4033 !important; border-radius: 6px !important; padding: 10px 24px !important; font-size: 1.05rem !important; font-weight: 500 !important; text-decoration: none !important; transition: all 0.3s ease !important; min-width: 140px !important; border: none !important; cursor: pointer; }
.button-container .w3-button img { width: 24px !important; height: 24px !important; margin-right: 8px !important; object-fit: contain !important; filter: none !important; opacity: 1 !important; margin: 0 8px 0 0 !important; vertical-align: middle !important; }
.button-container .w3-button:hover { background-color: #ffe082 !important; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* RESPONSIF KHUSUS MOBILE (MAX 600PX) */
@media (max-width: 600px) {
    .judul-detail, .spek-container { margin-left: 20px !important; margin-right: 20px !important; }
    .ecommerce-title { margin-top: 15px; }
    .scroll-hint-mobile { animation: pulseHint 2s infinite; }
    @keyframes pulseHint { 0% { opacity: 0.7; transform: translateX(0); } 50% { opacity: 1; transform: translateX(3px); } 100% { opacity: 0.7; transform: translateX(0); } }
    .variation-grid {
        display: flex !important; 
        flex-wrap: nowrap !important; /* Larang elemen turun ke bawah */
        overflow-x: auto !important;  /* Aktifkan scroll horizontal */
        -webkit-overflow-scrolling: touch !important; 
        gap: 12px !important; 
        
        /* Tambahan ruang aman (padding) di semua sisi agar ikon ceklist atas/kanan tidak terpotong */
        padding-top: 10px !important;
        padding-right: 12px !important; 
        padding-bottom: 10px !important; 
        
        scrollbar-width: thin;
        scrollbar-color: #ffc107 transparent;
    }
    .variation-grid::-webkit-scrollbar { height: 4px; }
    .variation-grid::-webkit-scrollbar-thumb { background-color: #ddd; border-radius: 4px; }
    .variation-item { flex: 0 0 85px !important; width: 85px !important; padding: 8px !important; }
    .variation-item img { width: 45px !important; height: 45px !important; }
    .gallery-thumbnails { justify-content: center; }
    .thumb-item { width: 65px; height: 65px; }
    .button-container { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
    .button-container .w3-button { min-width: 100% !important; padding: 10px 12px !important; font-size: 0.95rem !important; }
}

/* =========================================================
   MODAL GALLERY MOBILE
   ========================================================= */
.mobile-gallery-modal { 
    display: none; 
    position: fixed; 
    top: 0; left: 0; right: 0; bottom: 0; 
    width: 100vw; 
    height: 100vh; height: 100dvh; /* 100dvh sangat ampuh untuk mencegah layar HP bolong */
    background-color: rgba(0, 0, 0, 0.85); /* Sedikit digelapkan agar lebih elegan */
    z-index: 9999999; 
    flex-direction: column; 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); 
    overflow: hidden !important; 
    overscroll-behavior: none; /* Mencegah pantulan (bounce) scroll dari browser */
}
.gallery-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; color: #fff; position: absolute; top: 0; width: 100%; z-index: 10; }
.gallery-counter { background: rgba(255, 255, 255, 0.2); padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 1rem; letter-spacing: 1px; }
.close-gallery { font-size: 2.5rem; cursor: pointer; line-height: 1; color: #fff; padding-left: 20px; }
.gallery-slider-container { flex: 1; overflow: hidden; position: relative; width: 100%; height: 100%; display: flex; align-items: center; }
.gallery-slides { display: flex; width: 100%; height: 100%; transition: transform 0.3s ease-out; will-change: transform; }
.gallery-actions { position: absolute; bottom: 30px; left: 0; width: 100%; display: flex; justify-content: center; gap: 15px; z-index: 10; padding: 0 15px; }
.gallery-actions .action-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1rem; flex: 1; justify-content: center; }
.gallery-actions .wa-btn { background-color: #25D366; color: #fff; box-shadow: 0 4px 10px rgba(37,211,102,0.3); }
.gallery-actions .cart-btn { background-color: #ff9800; color: #fff; box-shadow: 0 4px 10px rgba(255,152,0,0.3); }
.gallery-slide { min-width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 10px; }
.slide-content-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-height: 75vh; gap: 15px; }
.slide-content-wrapper img { max-width: 100%; max-height: 60vh; object-fit: contain; border-radius: 8px; user-select: none; box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.gallery-var-badge { position: relative; background-color: #ffefc4; color: #5c4033; border: 1px solid #ffc107; padding: 8px 24px; border-radius: 30px; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 95%; box-shadow: 0 4px 10px rgba(0,0,0,0.4); pointer-events: none; z-index: 5; }

/* =========================================================
   GAYA BARU: KOTAK TOMBOL TRANSAKSI (ACTION BUY)
   ========================================================= */
.action-buy { display: flex !important; gap: 12px !important; margin-top: 15px; margin-bottom: 25px; width: 100%; }
.action-buy .btn-buy-wa, .action-buy .btn-buy-cart { display: flex !important; align-items: center !important; justify-content: center !important; border-radius: 6px !important; padding: 10px 20px !important; font-size: 1rem !important; font-weight: 600 !important; text-decoration: none !important; transition: all 0.2s ease-in-out !important; flex: 1; border: none !important; cursor: pointer; }
.action-buy .btn-buy-wa { background-color: #25D366 !important; color: #ffffff !important; }
.action-buy .btn-buy-cart { background-color: #ff9800 !important; color: #ffffff !important; }
.action-buy .btn-buy-wa img { margin: 0 8px 0 0 !important; width: 22px !important; height: 22px !important; filter: none !important; opacity: 1 !important; vertical-align: middle !important; }
.action-buy .btn-buy-cart i { margin-right: 8px !important; font-size: 1.1rem; vertical-align: middle !important; }
.action-buy .btn-buy-wa:hover { background-color: #20ba5a !important; transform: translateY(-1px); }
.action-buy .btn-buy-cart:hover { background-color: #e65100 !important; transform: translateY(-1px); }

@media (max-width: 600px) {
    .action-buy { gap: 8px !important; margin-bottom: 20px; }
    .action-buy .btn-buy-wa, .action-buy .btn-buy-cart { padding: 10px 12px !important; font-size: 0.95rem !important; }
}

.custom-menu-item.active, .bottom-nav .nav-item.active { cursor: default !important; }

/* =======================================================
   STYLING ECOMMERCE CARD & BADGE
   ======================================================= */
.ecommerce-card-link { display: block; text-decoration: none !important; color: inherit !important; height: 100%; }
.ecommerce-card-link .w3-light-grey { height: 100%; border-radius: 10px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; }
@media (min-width: 993px) { .ecommerce-card-link:hover .w3-light-grey { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); } }

.cart-badge-desktop { float: right; background-color: #ff5722; color: #ffffff !important; border-radius: 12px; padding: 2px 9px; font-size: 0.85rem; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); margin-top: 1px; position: relative; z-index: 2; }
.cart-badge-mobile { position: absolute; top: -8px; right: -12px;background-color: #ff5722; color: #ffffff; border-radius: 50%;  min-width: 18px; height: 18px; padding: 0; font-size: 0.65rem; font-weight: bold; text-align: center; box-shadow: 0 2px 4px rgba(0,0,0,0.3); border: 1.5px solid #fff; display: flex; align-items: center; justify-content: center; line-height: 1; }

/* =======================================================
   STYLING HALAMAN KERANJANG BELANJA (CART GRID)
   ======================================================= */
.input-qty-custom::-webkit-inner-spin-button, .input-qty-custom::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
button[onclick^="ubahQty"]:hover { background: #e0e0e0 !important; }
.cart-grid-card { display: grid; padding: 15px; align-items: center; gap: 2px 15px; grid-template-columns: 85px 1fr auto; grid-template-areas: "img title tools" "img price tools"; }
.cart-grid-img { grid-area: img; width: 85px; height: 85px; display: flex; align-items: center; }
.cart-grid-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; border-radius: 8px !important; border: 1px solid #eee !important; margin: 0 !important; padding: 0 !important; opacity: 1 !important; filter: none !important; transform: none !important; }
.cart-grid-title { grid-area: title; align-self: end; display: flex; flex-direction: column; gap: 4px; }
.cart-grid-title h4 { margin: 0; font-size: 1.1rem; font-weight: 600; color: #333; line-height: 1.3; }
.cart-grid-title a { text-decoration: none; color: inherit; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-badge-sku { font-size: 0.8rem; color: #888; }
.cart-badge-var { font-size: 0.85rem; color: #795548; font-weight: 600; }
.cart-badge-var span { background: #ffefc4; padding: 2px 8px; border-radius: 4px; }
.cart-grid-price { grid-area: price; align-self: start; font-weight: bold; color: #ff5722; font-size: 1.1rem; margin-top: 3px; }
.cart-grid-tools { grid-area: tools; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cart-grid-del { color: #d32f2f; text-decoration: none; font-size: 1.2rem; transition: color 0.3s; }
.cart-grid-del:hover { color: #b71c1c; }
.cart-grid-qtybox { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; background: #fff; }
.cart-qty-btn { border: none; background: #f9f9f9; padding: 6px 12px; cursor: pointer; color: #555; outline: none; transition: background 0.2s; }
.cart-qty-btn:hover { background: #e0e0e0; }
.cart-qty-btn.minus { border-right: 1px solid #ccc; }
.cart-qty-btn.plus { border-left: 1px solid #ccc; }
.cart-qty-input { width: 45px; text-align: center; border: none; outline: none; padding: 6px 0; font-weight: bold; -moz-appearance: textfield; }

@media (max-width: 600px) {
    .cart-grid-card { grid-template-columns: 85px 1fr; grid-template-areas: "title title" "img price" "img tools"; gap: 10px 15px; }
    .cart-grid-title { align-self: start; gap: 6px; }
    .cart-grid-price { align-self: center; margin-top: 0; font-size: 1.2rem; }
    .cart-grid-tools { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
    .cart-grid-del { color: #999; }
}

/* =========================================================
   PAGE LOADER 0-100%
   ========================================================= */
#produk { position: relative; min-height: 65vh; }
.page-loader-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #fffdf8; z-index: 99; display: flex; justify-content: center; align-items: flex-start; padding-top: 15vh; transition: opacity 0.5s ease, visibility 0.5s ease; border-radius: 8px; }
.loader-content { text-align: center; width: 80%; max-width: 280px; }
.loader-progress-bar { width: 100%; height: 8px; background-color: #e0e0e0; border-radius: 10px; overflow: hidden; margin-bottom: 10px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.loader-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #ffc107, #ff5722); border-radius: 10px; transition: width 0.2s ease-out; }
.loader-text { font-size: 1.2rem; font-weight: 800; color: #795548; font-family: 'Poppins', sans-serif; }
.loader-title { color: #795548; margin-bottom: 15px; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.5px; }



/* =======================================================
   STYLING ECOMMERCE CARD & HARGA (Pindahan dari listproduct.php)
   ======================================================= */
.card-inner-wrapper {
    border: 1.5px solid #fae6c2; 
    border-radius: 8px; 
    background: #fffdf8; 
    overflow: hidden; 
    box-shadow: 0 3px 8px rgba(0,0,0,0.06); 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-container:hover .card-inner-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-image-box {
    position: relative; 
    padding-top: 100%; 
    overflow: hidden; 
    border-radius: 8px 8px 0 0;
    background: #f9f9f9;
    display: block;
}
.card-image-box img {
    position: absolute; top: 0; left: 0; 
    width: 100%; height: 100%; object-fit: cover; 
    margin: 0 !important; filter: none !important; opacity: 1 !important;
}

/* PENGATURAN LABEL KATEGORI (Tengah-Atas & Tengah-Bawah) */
.card-image-box .img-kategori-top {
    position: absolute !important;
    top: 0 !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 3;
    border-radius: 8px 8px 0 0 !important;
    background: rgba(250, 230, 194, 0.95);
    text-align: center;
    padding: 6px 0;
    color: #795548;
    font-weight: bold;
    font-size: 0.85rem;
}
.card-image-box .img-kategori-top::before { display: none !important; } /* Matikan before bawaan lama */

.card-image-box .img-kategori-bottom {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 3;
    border-radius: 0 !important; /* REVISI: Sudut tegak lurus (tidak melengkung) */
    background: rgba(250, 230, 194, 0.95);
    text-align: center;
    padding: 4px 6px;
    color: #795548;
    font-size: 0.8rem;
}
.card-image-box .img-kategori-bottom::before { display: none !important; } /* Matikan before bawaan lama */


/* =======================================================
   EFEK HOVER LABEL (KHUSUS DESKTOP DENGAN MOUSE)
   ======================================================= */
@media (hover: hover) and (pointer: fine) {
    .card-image-box .img-kategori-top {
        opacity: 0 !important;
        transform: translateX(-50%) translateY(-10px) !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }
    .card-image-box .img-kategori-bottom {
        opacity: 0 !important;
        transform: translateX(-50%) translateY(10px) !important;
        transition: opacity 0.3s ease, transform 0.3s ease !important;
    }

    .card-image-box:hover .img-kategori-top,
    .card-image-box:hover .img-kategori-bottom {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}


/* PENGATURAN INFO PRODUK & TOMBOL */
.card-product-info {
    padding: 8px 8px 10px 8px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    justify-content: flex-end;
    overflow: hidden;
}

.btn-grid-action {
    flex: 1; padding: 6px 0; font-size: 0.85rem; font-weight: 700;
    border-radius: 6px; text-align: center; text-decoration: none;
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-grid-action:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-lihat { background: #fae6c2; color: #5c4033 !important; }
.btn-beli { background: #ff9800; color: #fff !important; }
.btn-wa { background: #25D366; color: #fff !important; }

.price-horizontal-box {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 18px; overflow: hidden; white-space: nowrap;
}
.price-final-box {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 22px; overflow: hidden; white-space: nowrap; margin-bottom: 10px;
}
.price-text-content { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.anim-marquee { animation: smooth-pan 4.5s ease-in-out infinite alternate; }
@keyframes smooth-pan {
    0%, 20% { transform: translateX(12px); }
    80%, 100% { transform: translateX(-12px); }
}

@media (max-width: 600px) {
    .btn-grid-action { font-size: 0.7rem; padding: 6px 2px; gap: 3px; }
    .btn-grid-action i { font-size: 0.75rem; }
    .price-final-text { font-size: 0.95rem !important; }
}



/* =========================================================
   TAMPILAN BOTTOM NAV KHUSUS DETAIL PRODUK (MOBILE)
   ========================================================= */
@media (max-width: 767.98px) {
    /* Sembunyikan tombol beli asli di isi.php pada mobile */
    .order-action { display: none !important; }
    
    /* Sembunyikan bottom nav standar jika sedang buka Detail Produk */
    .bottom-nav-standard { display: none !important; }
}

.bottom-nav-detail {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    padding: 8px 10px;
    z-index: 1000;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-detail .nav-icons-container {
    display: flex;
    gap: 14px;
    align-items: center;
}

.bottom-nav-detail .nav-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 40px;
    position: relative;
    transition: color 0.2s;
}

.bottom-nav-detail .nav-icon-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
    color: #6c757d;
    transition: transform 0.2s, color 0.2s;
}

.bottom-nav-detail .nav-icon-item:hover i,
.bottom-nav-detail .nav-icon-item:active i {
    color: #ff9800;
    transform: scale(1.15);
}

.bottom-nav-detail .nav-action-container {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Desain Tombol Beli 3D Pastel & Eye-Catching */
.bottom-nav-detail .nav-btn-buy {
    width: 100%;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #fff;
    border: 1px solid #e64a19;
    border-radius: 25px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 10px rgba(255, 87, 34, 0.4);
    position: relative;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.bottom-nav-detail .nav-btn-buy:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(255, 87, 34, 0.3);
}

/* Desain Tombol WhatsApp */
.bottom-nav-detail .nav-btn-wa {
    width: 100%;
    background: linear-gradient(135deg, #4ade80 0%, #128c7e 100%);
    color: #fff;
    border: 1px solid #075e54;
    border-radius: 25px;
    padding: 10px 15px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.3), 0 4px 10px rgba(18, 140, 126, 0.4);
    text-decoration: none;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-detail .nav-btn-wa:active {
    transform: scale(0.96) translateY(2px);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(18, 140, 126, 0.3);
}

/* Label Hemat Lucu & Animasi Melayang */
.bottom-nav-detail .label-hemat {
    position: absolute;
    top: -18px;
    right: 10px;
    background: #fff3cd;
    color: #d32f2f;
    font-size: 0.65rem;
    padding: 3px 10px;
    border-radius: 12px 12px 12px 2px;
    font-weight: 800;
    border: 1px solid #ffeeba;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: floatHemat 2s infinite ease-in-out;
    white-space: nowrap;
    z-index: 10;
    letter-spacing: 0.3px;
}

.bottom-nav-detail .label-hemat::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 8px;
    border-width: 5px 5px 0 0;
    border-style: solid;
    border-color: #fff3cd transparent transparent transparent;
}

@keyframes floatHemat {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-4px) rotate(-2deg); }
}


/* =========================================================
   FITUR BACA SELENGKAPNYA (READ MORE) DESKRIPSI PRODUK - MOBILE
   ========================================================= */
@media (max-width: 767.98px) {
    .desc-wrapper-mobile {
        position: relative;
        max-height: 180px; /* Tinggi awal deskripsi yang ditampilkan */
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .desc-wrapper-mobile.expanded {
        max-height: 5000px; /* Angka besar agar seluruh teks muat */
    }
    
    /* 1. Efek Gradasi Putih (Dibuat lebih pendek agar tidak terlalu menutupi atas) */
    .desc-wrapper-mobile .desc-gradient {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 55px; /* Dibuat lebih pendek dari sebelumnya */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 1) 100%);
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }
    .desc-wrapper-mobile.expanded .desc-gradient {
        opacity: 0;
        visibility: hidden;
    }
    
    /* 2. Tombol Selengkapnya (Saat posisi tertutup / Default) */
    .btn-read-more-mobile {
        display: flex !important;
        width: 100%;
        justify-content: center;
        align-items: center;
        padding: 12px 0;
        color: #0288d1;
        background-color: #fff;
        border: none;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        gap: 6px;
        position: relative;
        z-index: 5;
        margin-top: -15px; 
        box-shadow: 0 -15px 20px rgba(255, 255, 255, 1), 0 -5px 10px rgba(255, 255, 255, 1);
    }
    .btn-read-more-mobile i {
        transition: transform 0.3s ease;
    }

    /* 3. Tombol Sembunyikan (Saat deskripsi terbuka penuh) */
    .desc-wrapper-mobile.expanded + .btn-read-more-mobile {
        margin-top: 10px; /* Tombol kembali turun ke posisi normal */
        box-shadow: none; /* Kabut putih dihilangkan */
        border-top: 1px solid #f0f0f0; /* Munculkan garis batas */
    }
}

/* =========================================================
   SEMBUNYIKAN FITUR MOBILE SAAT DIAKSES LEWAT DESKTOP/LAPTOP
   ========================================================= */
@media (min-width: 768px) {
    .btn-read-more-mobile, .desc-gradient {
        display: none !important;
    }
    .desc-wrapper-mobile {
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* PERBAIKAN BUG (BIANG KEROK): Kekuatan Selector ID untuk menimpa CSS Bawaan secara mutlak */
    #mobileBottomNavDetail,
    #standardBottomNav.bottom-nav-standard,
    .bottom-nav-detail {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Pastikan tombol Beli / WA asli di halaman Desktop kembali muncul normal */
    .order-action {
        display: flex !important; 
    }
}

/* =========================================================
   PASTIKAN NAV STANDAR MENGHILANG SAAT DI DETAIL (KHUSUS HP)
   ========================================================= */
@media (max-width: 767.98px) {
    #standardBottomNav.bottom-nav-standard {
        display: none !important;
    }
}


/* =========================================================
   TRUE LOADER EXPERIENCE (FULLSCREEN & SECTION)
   ========================================================= */
/* 1. Loader Layar Penuh (Untuk Detail Produk & Keranjang) */
.global-fullscreen-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fdfdfd;
    z-index: 9999999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* 2. Loader Area (Untuk List Produk & Kategori di Beranda) */
.section-loader {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; min-height: 350px;
    background-color: rgba(253,253,253,0.95); /* Menutupi HANYA area produk */
    z-index: 50;
    display: block; 
    transition: opacity 0.6s ease, visibility 0.6s ease;
    border-radius: 8px;
}
.section-loader .loader-box-center {
    position: sticky !important;
    top: 150px !important; /* Kotak putih akan berhenti 150px dari atas layar saat di-scroll */
    z-index: 99 !important;
    margin: 60px auto 0 auto !important; /* Posisi awal agak turun sedikit, dan di tengah horizontal */
    transform: none !important;
    left: auto !important;
}

/* 3. Kotak Putih di Tengah Loader */
.loader-box-center {
    background: #fff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    width: 85%;
    max-width: 350px;
    border: 1px solid #f0f0f0;
    border-top: 5px solid #ff9800;
}

.loader-box-center .progress-container {
    width: 100%; background: #eee; height: 8px; border-radius: 4px; overflow: hidden; margin: 15px 0 8px 0;
}
.loader-box-center .progress-fill {
    height: 100%; width: 0%; background: linear-gradient(90deg, #ff9800, #ff5722); transition: width 0.3s ease-out;
}

/* 4. Efek Konten Memudar (Fade-In) setelah Loading Selesai */
.content-hidden-initial {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.content-visible-loaded {
    opacity: 1;
    transform: none !important; 
}


/* =========================================================
   MODE FOKUS: SEMBUNYIKAN SEMUA NAVBAR SAAT GALLERY DIBUKA
   ========================================================= */
/* Sembunyikan Navbar Atas & Bawah ketika "Saklar Sakti" aktif */
body.gallery-fullscreen-active #topMenu,
body.gallery-fullscreen-active .main-header,
body.gallery-fullscreen-active #mobileBottomNavDetail,
body.gallery-fullscreen-active #standardBottomNav,
body.gallery-fullscreen-active .bottom-nav {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Pastikan Modal Gallery menduduki kasta paling tinggi dan presisi di atas */
body.gallery-fullscreen-active .mobile-gallery-modal {
    top: 0 !important;
    bottom: 0 !important;
    z-index: 999999999 !important;
}

/* PERBAIKAN BUG SCROLL: Menghancurkan 'Penjara CSS' (Stacking Context) dari Parent */
/* Memastikan Modal tidak ikut bergeser meski sebelumnya pengunjung sudah men-scroll jauh ke bawah */
body.gallery-fullscreen-active #detailContentArea,
body.gallery-fullscreen-active .w3-main {
    transform: none !important;
    perspective: none !important;
    filter: none !important;
    will-change: auto !important;
}



/* ==========================================================================
   MODAL & BOTTOM SHEET QUICK-SELECT VARIAN (DESKTOP & MOBILE RESPONSIVE)
   ========================================================================== */

/* 1. Overlay Latar Gelap */
.quick-var-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: transparent;
    z-index: 9999999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.quick-var-overlay.show {
    opacity: 1;
}

.quick-var-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
}

/* 2. Kotak Modal Utama (Desktop First) */
.quick-var-modal {
    position: relative;
    z-index: 2;
    width: 92%;
    max-width: 500px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1.5px solid #fae6c2;
}

.quick-var-overlay.show .quick-var-modal {
    transform: scale(1) translateY(0);
}

.quick-var-handle-bar {
    display: none; /* Sembunyi di desktop */
}

/* Tombol Tutup X */
.quick-var-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.quick-var-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* 3. Header Modal (Diperbarui untuk Gambar Lebih Besar) */
.quick-var-header {
    display: flex;
    gap: 16px; /* Jarak sedikit diperlebar untuk gambar besar */
    padding: 16px 20px;
    background: #fffdf8;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start; /* Ubah dari center ke flex-start agar teks rata atas dengan gambar */
}

.quick-var-header-img {
    width: 110px; /* Diperbesar signifikan dari 70px */
    height: 110px; /* Diperbesar signifikan dari 70px */
    min-width: 110px;
    border-radius: 12px; /* Lengkungan disesuaikan agar proporsional */
    overflow: hidden;
    border: 1.5px solid #fae6c2;
    background: #fdfdfd;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Tambahan shadow halus agar gambar menonjol */
}

.quick-var-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.quick-var-header-info {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
    padding-top: 6px; /* Mendorong teks sedikit turun agar sejajar sempurna dengan tepi atas gambar */
}

.quick-var-title {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-var-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.quick-var-price-final {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff5722;
}

.quick-var-price-asli {
    font-size: 0.85rem;
    color: #9e9e9e;
    text-decoration: line-through;
}

.quick-var-badge-diskon {
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #fca5a5;
}

.quick-var-selected-text {
    font-size: 0.8rem;
    color: #666;
}

.quick-var-selected-text b {
    color: #e65100;
}

/* 4. Body Modal (Daftar Variasi & Jumlah) */
.quick-var-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.quick-var-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5c4033;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.quick-var-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

/* Kartu Item Variasi */
.quick-var-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.quick-var-card:hover {
    border-color: #ff9800;
    background: #fffcf5;
    transform: translateY(-1px);
}

.quick-var-card.active {
    border-color: #ff5722;
    background: #fff3e0;
    box-shadow: 0 0 0 1px #ff5722;
}

.quick-var-card-thumb {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.quick-var-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-var-card-info {
    flex: 1;
    min-width: 0;
}

.quick-var-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-var-card.active .quick-var-card-name {
    color: #e65100;
    font-weight: 700;
}

.quick-var-card-prices {
    display: flex;
    align-items: center;
    gap: 4px;
}

.quick-var-card-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #ff5722;
}

.quick-var-card-disc-pill {
    font-size: 0.65rem;
    background: #fee2e2;
    color: #ef4444;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Badge Ceklist Varian Aktif */
.quick-var-card-check {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #ff5722;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    box-shadow: 0 2px 5px rgba(255, 87, 34, 0.4);
}

.quick-var-card.active .quick-var-card-check {
    opacity: 1;
    transform: scale(1);
}

/* 5. Kontrol Jumlah Beli (Qty) */
.quick-var-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-top: 5px;
}

.quick-var-qty-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
}

.quick-var-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.btn-var-qty {
    background: #f7f7f7;
    border: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: 0.85rem;
    transition: background 0.2s, color 0.2s;
}

.btn-var-qty:hover {
    background: #ffecb3;
    color: #ff9800;
}

#quickVarQtyInput {
    width: 44px;
    height: 34px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}

#quickVarQtyInput::-webkit-inner-spin-button,
#quickVarQtyInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 6. Footer Modal (Tombol Transaksi) */
.quick-var-footer {
    padding: 14px 20px;
    background: #fffdf8;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.quick-var-actions {
    display: flex;
    width: 100%;
    gap: 10px;
}

.btn-quick-buy {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-quick-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.45);
}

.btn-quick-buy:active {
    transform: scale(0.97);
}

.btn-quick-buy[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-quick-wa {
    flex: 1;
    padding: 12px;
    background: #25D366;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.quick-var-detail-link {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 2px;
}

.quick-var-detail-link a {
    color: #795548;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.quick-var-detail-link a:hover {
    color: #ff5722;
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIF MOBILE / HP (BOTTOM SHEET APPLICATION STYLE)
   ========================================================================== */
@media (max-width: 768px) {
    .quick-var-overlay {
        align-items: flex-end; /* Menggeser modal menempel di dasar layar */
    }

    .quick-var-modal {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 22px 22px 0 0 !important;
        max-height: 82vh !important;
        max-height: 82dvh !important;
        transform: translateY(100%); /* Animasi meluncur dari bawah ke atas */
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
        border: none;
        border-top: 2px solid #fae6c2;
    }

    .quick-var-overlay.show .quick-var-modal {
        transform: translateY(0) !important;
    }

    /* Handle Bar Geser Khas Aplikasi Modern */
    .quick-var-handle-bar {
        display: block;
        width: 44px;
        height: 5px;
        background: #e0e0e0;
        border-radius: 4px;
        margin: 10px auto 2px auto;
    }

    .quick-var-close {
        top: 10px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .quick-var-header {
        padding: 12px 16px;
    }

    .quick-var-header-img {
        width: 90px !important;  /* Diperbesar dari 60px */
        height: 90px !important; /* Diperbesar dari 60px */
        min-width: 90px !important;
        border-radius: 10px !important;
    }

    .quick-var-title {
        font-size: 0.95rem;
    }

    .quick-var-price-final {
        font-size: 1.15rem;
    }

    .quick-var-body {
        padding: 14px 16px;
    }

    .quick-var-grid {
        grid-template-columns: 1fr; /* 1 Kolom memanjang penuh agar nyaman disentuh */
        gap: 8px;
    }

    .quick-var-footer {
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .btn-quick-buy {
        padding: 11px;
        font-size: 0.95rem;
    }
}

    @keyframes cartBump {
        0% { transform: scale(1); }
        50% { transform: scale(1.6) translateY(-5px); color: #ff5722; }
        100% { transform: scale(1) translateY(0); }
    }
    .cart-bump { animation: cartBump 0.5s ease-out; display: inline-block; }

/* ======================================================================
   ALGONAS RESPONSIVE PATCH
   Desktop rules above are retained, in their original cascade order.
   Compact: <=1024px, plus touch tablets up to 1366px in landscape.
   Keep this query in sync with AlgonasUI.compactQuery in kode.js.
   ====================================================================== */
.alg-mobile-menu { display: none !important; }

@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    :root {
        --alg-nav-height: 68px;
        --alg-bottom-space: calc(var(--alg-nav-height) + env(safe-area-inset-bottom, 0px));
        --alg-header-height: calc(60px + env(safe-area-inset-top, 0px));
        --alg-nav-layer: 2147483000;
        --alg-panel-layer: 2147482000;
        --alg-gold: #aa7c20;
        --alg-gold-soft: #fff4da;
    }

    html { scroll-padding-top: 72px; scroll-padding-bottom: var(--alg-bottom-space); }
    html body {
        padding-top: var(--alg-header-height);
        padding-bottom: var(--alg-bottom-space) !important;
        -webkit-text-size-adjust: 100%;
    }
    html body .w3-main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-width: 0;
        padding: 0 12px;
    }
    html body #topMenu {
        display: flex !important;
        height: var(--alg-header-height);
        min-height: var(--alg-header-height) !important;
        top: 0;
        padding-top: env(safe-area-inset-top, 0px) !important;
        left: 0;
        right: 0;
        transform: none !important;
        transition: none !important;
        border-bottom: 1px solid #e9dfc9;
    }
    html body #topMenu #menuButton {
        min-width: 48px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    html body #topMenu img { width: auto !important; height: 38px !important; max-height: 38px !important; max-width: 160px; object-fit: contain; }
    html body #pwaTopMenu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        z-index: 1 !important;
        gap: 8px;
    }
    html body #pwaTopMenu img { max-width: 52px; object-fit: contain; }
    html body .w3-main > div[id] { scroll-margin-top: 72px !important; }
    html body .w3-main .w3-xxlarge { font-size: clamp(24px, 4vw, 32px) !important; line-height: 1.35; overflow-wrap: anywhere; }
    html body .w3-main p { line-height: 1.65; }

    /* Bottom bar remains visible/clickable, also over gallery/variant panels. */
    html body #standardBottomNav.bottom-nav,
    html body #mobileBottomNavDetail.bottom-nav {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        width: 100% !important;
        height: var(--alg-bottom-space);
        min-height: var(--alg-bottom-space);
        padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
        background: #fffdf8;
        border-top: 1px solid #e7ddc5;
        box-shadow: 0 -3px 16px rgba(65, 47, 16, 0.08);
        z-index: var(--alg-nav-layer) !important;
        isolation: isolate;
        gap: 4px;
    }
    html body #standardBottomNav.bottom-nav-standard { display: none !important; }
    html body .bottom-nav .alg-desktop-about { display: none !important; }
    html body .bottom-nav .alg-mobile-menu { display: flex !important; }
    html body .bottom-nav .nav-item,
    html body .bottom-nav .nav-icon-item {
        appearance: none;
        border: 0;
        background: transparent;
        border-radius: 10px;
        margin: 0;
        padding: 5px 2px;
        min-width: 0;
        min-height: 48px;
        font: inherit;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.25;
        color: #615746;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        max-width: none;
        text-decoration: none;
        cursor: pointer !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    html body .bottom-nav .nav-item i,
    html body .bottom-nav .nav-icon-item i { font-size: 20px; color: inherit; margin-bottom: 4px; }
    html body .bottom-nav .nav-item.active,
    html body .bottom-nav .nav-icon-item.active { color: #77520e; background: var(--alg-gold-soft); font-weight: 700; }
    html body .bottom-nav :focus-visible { outline: 2px solid var(--alg-gold); outline-offset: -2px; }
    html body .bottom-nav-detail .nav-icons-container { flex: 0 0 49%; gap: 2px; min-width: 0; }
    html body .bottom-nav-detail .nav-action-container { flex: 1; min-width: 0; display: flex; align-items: center; }
    html body .bottom-nav-detail .nav-btn-buy,
    html body .bottom-nav-detail .nav-btn-wa {
        min-height: 46px;
        width: 100%;
        padding: 8px 6px;
        font-size: clamp(12px, 2vw, 15px);
        line-height: 1.25;
        white-space: normal;
    }
    html body .bottom-nav-detail .label-hemat { font-size: 9px; max-width: 100%; padding: 2px 5px; }
    html body .bottom-nav .cart-badge-mobile { min-width: 16px; font-size: 10px; line-height: 16px; }
    html body .order-action { display: none !important; }

    /* Menu and search stop ABOVE the bottom bar, rather than covering it. */
    html body #mySidebar {
        display: none;
        position: fixed;
        top: 0;
        bottom: var(--alg-bottom-space);
        left: 0;
        width: min(360px, 92vw) !important;
        height: auto !important;
        max-height: calc(100dvh - var(--alg-bottom-space));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        z-index: calc(var(--alg-panel-layer) + 10) !important;
        box-shadow: 6px 0 24px rgba(40, 30, 12, 0.16);
    }
    html body.alg-menu-open #mySidebar { display: block !important; }
    html body.alg-menu-open { overflow: hidden; }
    html body #mySidebar > .w3-hide-large { display: block !important; min-height: 44px; }
    html body #mySidebar .cariproduk { display: block; margin-top: 44px; }
    html body #mySidebar .custom-menu-item { min-height: 44px; }
    html body #myOverlay {
        top: 0;
        bottom: var(--alg-bottom-space);
        height: auto;
        z-index: var(--alg-panel-layer) !important;
    }
    html body.alg-menu-open #myOverlay { display: block !important; }
    html body #searchArea {
        bottom: var(--alg-bottom-space) !important;
        z-index: calc(var(--alg-panel-layer) + 5);
        width: 100%;
        padding: 14px 12px;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
        transition: transform 0.18s ease, opacity 0.18s ease;
    }
    html body #searchArea.visible { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
    /* Do not animate inherited visibility: input focus must work on the first tap. */
    html body #searchArea .search-wrapper { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
    html body .search-wrapper input,
    html body #keranjang input:not(.cart-qty-input),
    html body #keranjang select,
    html body #keranjang textarea { font-size: 16px !important; min-height: 44px; }

    /* Two readable cards on phones; three/four on tablets via queries below. */
    html body #productContainer { margin: 0 -6px !important; }
    html body #listContentArea { align-items: stretch; }
    html body #productContainer .product-item { width: 50% !important; padding: 6px !important; min-width: 0; }
    html body #productContainer .card-inner-wrapper { height: 100%; display: flex; flex-direction: column; border-radius: 10px; }
    html body #productContainer .card-image-box { aspect-ratio: auto; padding: 0; height: auto; display: flex; flex-direction: column; overflow: hidden; }
    html body #productContainer .card-image-box > img {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        display: block;
        transform: none !important;
    }
    html body #productContainer .img-kategori-top,
    html body #productContainer .img-kategori-bottom {
        position: static !important;
        width: 100%;
        height: auto;
        transform: none !important;
        opacity: 1 !important;
        white-space: normal !important;
        text-overflow: clip !important;
        line-height: 1.45;
        overflow-wrap: anywhere;
        padding: 5px 8px !important;
        text-align: left;
    }
    html body #productContainer .img-kategori-top { font-size: 11px !important; color: #795c25; background: #fff6e5; }
    html body #productContainer .img-kategori-bottom { font-size: 13px !important; font-weight: 600; color: #332b20; background: #fff; min-height: 48px; }
    html body #productContainer .card-product-info { padding: 8px; flex: 1; }
    html body #productContainer .price-horizontal-box,
    html body #productContainer .price-final-box { height: auto; min-height: 22px; overflow: visible; justify-content: flex-start; white-space: normal; }
    html body #productContainer .price-text-content { white-space: normal; flex-wrap: wrap; line-height: 1.4; overflow-wrap: anywhere; }
    html body #productContainer .price-final-text { font-size: 15px !important; color: #965119 !important; }
    html body #productContainer .anim-marquee { animation: none !important; transform: none !important; }
    html body #productContainer .btn-grid-action { min-height: 42px; font-size: 12px; padding: 8px 3px; gap: 4px; touch-action: manipulation; }
    html body #productContainer .btn-grid-action i { font-size: 12px; }
    html body #productContainer .hidden-product { /* Inline display:none stays in charge of incremental loading. */ }

    /* Do not block first paint while off-screen lazy images are still pending. */
    html body #algonas-global-preloader,
    html body .global-fullscreen-loader,
    html body .section-loader { display: none !important; }
    html body .content-hidden-initial,
    html body .product-item { opacity: 1 !important; transform: none !important; }
    html body.preloader-active { overflow-y: auto !important; }
    html body .carousel { touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
    html body .carousel .carousel-item { flex: 0 0 78% !important; margin-right: 12px !important; }
    html body .carousel .w3-display-container::before,
    html body .carousel .w3-display-container::after { display: none; }
    html body .carousel .w3-display-middle { position: relative !important; inset: auto !important; transform: none !important; width: 100%; margin: 0; padding: 12px; }
    html body .carousel .team-title { font-size: 17px !important; text-shadow: none !important; }
    html body .carousel .team-desc { font-size: 13px; text-shadow: none !important; }
    html body .slider { border-radius: 0 0 10px 10px; }
    html body .slider .slide img { max-height: calc(100svh - var(--alg-header-height) - var(--alg-bottom-space)) !important; }
    html body .slider .prev, html body .slider .next { min-width: 44px; min-height: 44px; }

    /* Product detail, gallery and checkout: no content hidden behind the bar. */
    html body #detailContentArea > .w3-container:first-child { margin-top: 18px !important; }
    html body .detail-info-column { min-width: 0; }
    html body .ecommerce-title { font-size: clamp(21px, 3vw, 28px); overflow-wrap: anywhere; }
    html body .order-title { order: 0; border-top: 0; padding-top: 0; margin-top: 16px; }
    html body .eye-icon-zoom, html body .img-counter-badge { display: flex !important; }
    html body .eye-icon-zoom { min-width: 44px; min-height: 44px; }
    html body .variation-item { min-height: 48px; min-width: 70px; }
    html body .button-container { flex-wrap: wrap !important; gap: 8px !important; }
    html body .button-container .w3-button { min-width: 0 !important; flex: 1 1 120px; padding: 10px !important; font-size: 14px !important; }
    html body #mobileGalleryModal,
    html body #modalQuickVarian,
    html body #modalVoucher,
    html body #modalKonfirmasiData,
    html body #modalSuccessOrder {
        top: 0 !important;
        bottom: var(--alg-bottom-space) !important;
        height: calc(100vh - var(--alg-bottom-space)) !important;
        height: calc(100dvh - var(--alg-bottom-space)) !important;
        max-height: calc(100dvh - var(--alg-bottom-space));
        width: 100% !important;
        z-index: var(--alg-panel-layer) !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        backdrop-filter: none;
    }
    html body #modalQuickVarian { align-items: flex-end; padding: 10px 0 0; }
    html body #modalQuickVarian .quick-var-modal { max-height: 100%; border-radius: 18px 18px 0 0; width: min(100%, 640px); }
    html body #modalQuickVarian .quick-var-body { min-height: 0; overflow-y: auto; }
    html body #mobileGalleryModal .gallery-slide img { max-height: 50dvh; }
    html body #mobileGalleryModal .gallery-header { padding-top: max(12px, env(safe-area-inset-top, 0px)); }
    html body #mobileGalleryModal .close-gallery { min-width: 44px; min-height: 44px; text-align: center; }
    html body #keranjang .w3-col { min-width: 0; }
    html body #keranjang .cart-grid-title { min-width: 0; overflow-wrap: anywhere; }
    html body #keranjang .cart-grid-title h4 { font-size: 16px; }
    html body #keranjang .cart-grid-del,
    html body #keranjang .cart-qty-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    html body #keranjang .cart-qty-input { min-width: 40px; height: 44px; font-size: 16px; }
    html body #keranjang .nextbutton { white-space: normal; }
    html body .alg-cart-toast { max-width: calc(100vw - 24px); width: max-content; white-space: normal !important; padding: 12px 16px !important; font-size: 13px !important; }
    html body .footer { margin-top: 36px; }
    html body .footer .w3-right { float: none !important; margin-bottom: 0; font-size: 13px; overflow-wrap: anywhere; }
}

@media (min-width: 600px) and (max-width: 899px) {
    html body #productContainer .product-item { width: 33.333333% !important; }
    html body .carousel .carousel-item { flex-basis: 44% !important; }
}
@media (min-width: 900px) and (max-width: 1024px), (min-width: 900px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    html body #productContainer .product-item { width: 25% !important; }
    html body .carousel .carousel-item { flex-basis: 32% !important; }
}
@media (max-width: 600px) {
    html body #keranjang .cart-grid-card { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; padding: 12px; }
    html body #keranjang .cart-grid-img { width: 72px; height: 72px; }
    html body #keranjang .cart-grid-price { font-size: 16px; }
    html body #keranjang .cart-grid-tools { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1024px), (prefers-reduced-motion: reduce) and (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    html body .bottom-nav *, html body .product-item, html body .carousel *, html body .quick-var-overlay * {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}


/* ======================================================================
   LISTPRODUCT: KATEGORI RINGKAS, JUDUL RESPONSIF, HARGA GESER, TOMBOL MINIMAL
   Berlaku hanya untuk #productContainer.alg-product-list (listproduct.php).
   Grid, navigasi bawah, halaman detail, dan keranjang tidak diubah.
   Satu koreksi sidebar compact tercatat terpisah di bagian bawah.
   Desktop tetap memakai label di atas gambar; compact tetap di bawah gambar.
   ====================================================================== */
html body #productContainer.alg-product-list {
    --list-category-size: 11px;
    --list-title-size: 13px;
    --list-price-size: 15px;
    --list-button-size: 11px;
    --list-gold: #80591c;
    --list-gold-soft: #f5e5c4;
    --list-title-color: #332b20;
}

/* Hilangkan garis bawah pada TAUTAN INDUK juga, bukan hanya teks anak. */
html body #productContainer.alg-product-list .card-image-box,
html body #productContainer.alg-product-list .card-image-box:hover,
html body #productContainer.alg-product-list .card-image-box:focus,
html body #productContainer.alg-product-list .img-kategori-top,
html body #productContainer.alg-product-list .img-kategori-bottom {
    text-decoration: none !important;
}
html body #productContainer.alg-product-list .img-kategori-top {
    font-size: var(--list-category-size) !important;
    font-weight: 500;
    line-height: 1.5;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis !important;
    border-bottom: 0;
    backdrop-filter: none;
}

/* Padding di luar span clamp agar baris ketiga tidak mengintip. */
html body #productContainer.alg-product-list .img-kategori-bottom {
    min-height: 0;
    padding: 6px 8px !important;
    font-size: var(--list-title-size) !important;
    font-weight: 600;
    line-height: 1.4;
    color: var(--list-title-color);
    backdrop-filter: none;
}
/* Desktop: cukup satu baris; judul lengkap tetap ada pada atribut title. */
html body #productContainer.alg-product-list .alg-product-title {
    display: block;
    height: 1.4em;
    max-height: 1.4em;
    line-height: 1.4;
    white-space: nowrap !important;
    overflow-wrap: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

/* Satu baseline dan ruang diskon konsisten, termasuk produk tanpa diskon. */
html body #productContainer.alg-product-list .card-product-info {
    min-width: 0;
    gap: 0;
    padding: 8px;
}
html body #productContainer.alg-product-list .alg-price-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 26px;
    margin-bottom: 2px;
}
html body #productContainer.alg-product-list .alg-discount-badge {
    flex: 0 0 auto;
    padding: 2px 5px;
    border: 1px solid #eed4cb;
    border-radius: 4px;
    background: #fbefea;
    color: #9b3e26;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
}

/* Native scroll: tidak ada timer, library, atau pergeseran harga otomatis. */
html body #productContainer.alg-product-list .alg-price-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
    scrollbar-width: thin;
    scrollbar-color: #cbb584 transparent;
    scroll-behavior: auto;
    border-radius: 3px;
}
html body #productContainer.alg-product-list .price-horizontal-box {
    flex: 0 1 auto;
    width: auto;
    margin: 0;
}
html body #productContainer.alg-product-list .price-final-box {
    margin: 0 0 8px;
    min-height: 31px;
}
html body #productContainer.alg-product-list .price-text-content {
    display: block;
    width: max-content;
    min-width: 100%;
    max-width: none;
    flex: none;
    flex-wrap: nowrap;
    white-space: nowrap !important;
    overflow-wrap: normal;
    word-break: normal;
    text-align: center;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    animation: none !important;
    transform: none !important;
}
html body #productContainer.alg-product-list .alg-price-original {
    font-size: 11px;
    font-weight: 400;
    color: #777067;
    text-decoration: line-through;
}
html body #productContainer.alg-product-list .price-final-text {
    font-size: var(--list-price-size) !important;
    font-weight: 700;
    color: #965119 !important;
}
html body #productContainer.alg-product-list .alg-price-scroll::-webkit-scrollbar { height: 4px; }
html body #productContainer.alg-product-list .alg-price-scroll::-webkit-scrollbar-track { background: transparent; }
html body #productContainer.alg-product-list .alg-price-scroll::-webkit-scrollbar-thumb { background: #cbb584; border-radius: 8px; }

/* Tombol pendek, tipografi lebih ringan, ukuran area sentuh tetap nyaman. */
html body #productContainer.alg-product-list .alg-product-actions {
    display: flex;
    align-items: stretch;
    gap: 6px;
    margin-top: auto;
    min-width: 0;
}
html body #productContainer.alg-product-list .alg-product-cart-form {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}
html body #productContainer.alg-product-list .btn-grid-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: var(--list-button-size);
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none;
    touch-action: manipulation;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
html body #productContainer.alg-product-list .btn-grid-action i { flex: 0 0 auto; font-size: 11px; }
html body #productContainer.alg-product-list .btn-grid-action span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html body #productContainer.alg-product-list .btn-lihat { background: #fffdf8; border-color: #e4d8c2; color: #65553c !important; }
html body #productContainer.alg-product-list .btn-beli { background: var(--list-gold-soft); border-color: #dfc591; color: var(--list-gold) !important; }
html body #productContainer.alg-product-list .btn-wa { background: #edf6ef; border-color: #ccdfd0; color: #276844 !important; }
html body #productContainer.alg-product-list .btn-grid-action:hover { opacity: 1; transform: none; }
/* Status dari kode.js (Proses / Masuk Keranjang) juga muat di kartu sempit. */
html body #productContainer.alg-product-list .btn-grid-action:disabled {
    cursor: wait;
    padding: 4px 3px;
    font-size: 10px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}
html body #productContainer.alg-product-list .btn-grid-action:disabled i { display: none; }
html body #productContainer.alg-product-list .btn-beli:disabled { color: #213820 !important; }
html body #productContainer.alg-product-list .btn-grid-action:focus-visible,
html body #productContainer.alg-product-list .card-image-box:focus-visible,
html body #productContainer.alg-product-list .alg-price-scroll:focus-visible { outline: 2px solid #987022; outline-offset: -2px; }

@media (hover: hover) and (pointer: fine) {
    html body #productContainer.alg-product-list .btn-lihat:hover { background: #f7f1e5; }
    html body #productContainer.alg-product-list .btn-beli:hover { background: #ecd5a8; }
    html body #productContainer.alg-product-list .btn-wa:hover { background: #dfeee3; }
    /* Label desktop tetap mengikuti desain hover lama, juga terbuka via keyboard. */
    html body #productContainer.alg-product-list .card-image-box:focus-visible .img-kategori-top,
    html body #productContainer.alg-product-list .card-image-box:focus-visible .img-kategori-bottom {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}

/* Batas compact sama dengan patch navigasi sebelumnya. */
@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    /* W3 .w3-sidebar.w3-collapse memaksa display:block!important mulai 993px.
       Hormati status menu tertutup di tablet agar kartu tidak tertutup sidebar.
       Menu terbuka dan seluruh desktop non-compact tetap mengikuti kode lama. */
    html body:not(.alg-menu-open) #mySidebar.w3-collapse { display: none !important; }
    html body #productContainer.alg-product-list { --list-category-size: 10px; }
    /* Smartphone/tablet tetap dua baris, termasuk tablet landscape sentuh. */
    html body #productContainer.alg-product-list .alg-product-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        height: 2.8em;
        max-height: 2.8em;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    html body #productContainer.alg-product-list .alg-price-meta { justify-content: flex-start; }
    html body #productContainer.alg-product-list .price-text-content { text-align: left; }
    html body #productContainer.alg-product-list .btn-grid-action { min-height: 44px; }
    html body #productContainer.alg-product-list .card-image-box:focus-visible .img-kategori-top,
    html body #productContainer.alg-product-list .card-image-box:focus-visible .img-kategori-bottom { transform: none !important; }
}
/* kode.js melewati animasi saat reduced-motion; kartu tetap harus terlihat. */
@media (prefers-reduced-motion: reduce) {
    html body #productContainer.alg-product-list .product-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
@media (max-width: 359px) {
    html body #productContainer.alg-product-list { --list-price-size: 14px; --list-title-size: 12px; }
    html body #productContainer.alg-product-list .card-product-info { padding: 7px; }
    html body #productContainer.alg-product-list .alg-product-actions { gap: 4px; }
    html body #productContainer.alg-product-list .btn-grid-action { gap: 3px; padding: 6px 3px; }
}

/* ======================================================================
   LISTPRODUCT: PILIHAN RINGKAS DI SAMPING JUDUL KATALOG (v4)
   Toolbar dipindahkan oleh kode.js ke heading induk: jangan batasi selector
   toolbar di dalam #productContainer. Grid dan gaya kartu tetap seperti v3.
   ====================================================================== */
html body .alg-catalog-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    min-width: 0;
}
html body .alg-catalog-heading-row > .alg-catalog-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}
html body .alg-catalog-heading-fallback {
    padding: 6px 8px 10px;
}
html body .alg-catalog-heading-fallback > .alg-catalog-title {
    margin: 0;
    color: #795548;
    font-size: 24px;
    font-weight: 700;
}
html body .alg-product-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 52%;
    margin: 0;
    padding: 0;
}
html body .alg-product-toolbar[hidden],
html body .alg-sort-warning[hidden],
html body #infiniteScrollContainer .alg-load-more[hidden] { display: none !important; }
html body .alg-product-toolbar select {
    min-width: 0;
    width: 182px;
    max-width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    border: 1px solid #dfcba5;
    border-radius: 8px;
    background-color: #fffdf8;
    color: #664919;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    touch-action: manipulation;
}
html body .alg-product-toolbar select:focus-visible,
html body #infiniteScrollContainer .alg-load-more:focus-visible {
    outline: 2px solid #987022;
    outline-offset: 2px;
}
html body .alg-product-toolbar .alg-sort-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
html body .alg-sort-warning {
    display: block;
    width: 100%;
    margin: 6px 0;
    color: #785b33;
    font-size: 12px;
    line-height: 1.5;
    text-align: right;
}
html body #infiniteScrollContainer .alg-load-more {
    min-height: 44px;
    max-width: 100%;
    padding: 10px 20px;
    border: 1px solid #dfcba5;
    border-radius: 8px;
    background: #fffdf8;
    color: #664919;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
    html body .alg-product-toolbar select:hover,
    html body #infiniteScrollContainer .alg-load-more:hover { background-color: #faf1df; }
}
@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    /* Sejajar bahkan pada ponsel 320px, tidak lagi mengambil satu baris penuh. */
    html body .alg-catalog-heading { padding-left: 6px; padding-right: 6px; }
    html body .alg-catalog-heading-row { gap: 8px; }
    html body .alg-catalog-heading-row > .alg-catalog-title,
    html body .w3-main .alg-catalog-heading-row > .alg-catalog-title.w3-xxlarge {
        font-size: clamp(16px, 4.6vw, 22px) !important;
        line-height: 1.35;
        margin: 0;
    }
    html body .alg-catalog-heading > hr { margin: 10px 0 14px; }
    html body .alg-catalog-heading-fallback { padding: 6px 6px 12px; }
    html body .alg-product-toolbar select {
        width: 134px;
        height: 34px;
        min-height: 34px;
        padding: 5px 6px;
        border-radius: 6px;
        font-size: 12px;
        line-height: 1.3;
    }
}
@media (max-width: 359px) {
    html body .alg-product-toolbar select { width: 126px; }
}


/* ======================================================================
   ALGONAS v5 - KARTU KATEGORI HALAMAN UTAMA, KHUSUS DESKTOP
   Tambahkan setelah CSS lama. Tidak perlu mengubah PHP, JS, atau gambar.
   Scope: #kategori #kategoriCarouselWrapper, bukan seluruh komponen W3.
   Aktif: layar >1024px + input utama presisi yang mendukung hover.
   Mobile, tablet sentuh, dan jendela <=1024px tetap memakai gaya semula.
   ====================================================================== */
@media screen and (min-width: 1025px) and (hover: hover) and (pointer: fine) {
    html body #kategori #kategoriCarouselWrapper {
        --cat-gold: #b78935;
        --cat-border: #e7dac2;
        --cat-surface: #fffdf8;
        --cat-ink: #342c24;
        --cat-muted: #716657;
        --cat-radius: 14px;
        --cat-lift: -5px;
        --cat-zoom: 1.045;
        overflow: visible !important; /* Ruang untuk bayangan dan focus ring. */
    }

    /* Tiga kolom seperti desain awal; jarak dan tinggi kartu diratakan. */
    html body #kategori #kategoriCarouselWrapper > .carousel {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 18px;
        padding: 8px 8px 20px;
        overflow: visible;
        white-space: normal;
        cursor: auto;
    }
    html body #kategori #kategoriCarouselWrapper > .carousel::before,
    html body #kategori #kategoriCarouselWrapper > .carousel::after {
        content: none; /* Clearfix W3 tidak boleh menjadi item grid tambahan. */
    }
    html body #kategori #kategoriCarouselWrapper .carousel-item {
        float: none;
        display: flex;
        width: auto;
        min-width: 0;
        padding: 0;
        margin: 0 !important;
    }

    /* Kartu ivory + garis gold halus. Tautan asli tetap utuh. */
    html body #kategori #kategoriCarouselWrapper .w3-display-container {
        isolation: isolate;
        height: 100%;
        overflow: hidden;
        border: 1px solid var(--cat-border);
        border-radius: var(--cat-radius);
        background: var(--cat-surface);
        box-shadow: 0 3px 12px rgba(71, 51, 17, 0.055);
        transform: none;
        transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container::before,
    html body #kategori #kategoriCarouselWrapper .w3-display-container::after {
        content: none; /* Hapus tirai putih lama HANYA di kategori desktop. */
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a {
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-width: 0;
        color: inherit;
        text-decoration: none !important;
        border-radius: inherit;
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a > img {
        display: block;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        opacity: 1 !important;
        transform: scale(1);
        transform-origin: center;
        transition: transform 420ms cubic-bezier(0.2, 0.65, 0.3, 1);
    }

    /* Kilau sekali saat hover, bukan animasi berulang/timer JavaScript. */
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.32) 48%, transparent 64%);
        opacity: 0;
        transform: translateX(-115%);
        transition: transform 650ms ease, opacity 200ms ease;
    }
    /* Panah dekoratif: bagian dari tautan yang sama, bukan tombol baru. */
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a::after {
        content: "";
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 3;
        width: 32px;
        height: 32px;
        border: 1px solid rgba(183, 137, 53, 0.45);
        border-radius: 50%;
        background-color: rgba(255, 253, 248, 0.96);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23664716' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M7 6h11v11'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        pointer-events: none;
        transition: transform 240ms ease, background-color 240ms ease;
    }

    /* Caption di bawah gambar, selalu terbaca tanpa menunggu hover. */
    html body #kategori #kategoriCarouselWrapper .w3-display-middle {
        position: relative;
        inset: auto;
        z-index: 2;
        flex: 1 0 auto;
        width: 100%;
        min-width: 0;
        padding: 16px 18px 14px;
        margin: 0;
        border-top: 1px solid var(--cat-border);
        border-radius: 0;
        background: var(--cat-surface);
        text-align: left;
        transform: none;
        transition: background-color 240ms ease;
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-middle::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 18px;
        width: 32px;
        height: 2px;
        border-radius: 2px;
        background: var(--cat-gold);
        transform: scaleX(1);
        transform-origin: left;
        transition: transform 240ms ease;
    }
    html body #kategori #kategoriCarouselWrapper .team-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 1.4em;
        margin: 0 !important;
        overflow: hidden;
        overflow-wrap: anywhere;
        color: var(--cat-ink) !important;
        font-size: clamp(15px, 1.25vw, 19px) !important;
        font-weight: 700;
        line-height: 1.4;
        letter-spacing: 0.1px;
        text-transform: none;
        text-shadow: none !important;
        transition: color 200ms ease;
    }
    html body #kategori #kategoriCarouselWrapper .team-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        min-height: 3.1em;
        margin: 6px 0 0;
        overflow: hidden;
        overflow-wrap: anywhere;
        color: var(--cat-muted);
        font-size: 13px;
        font-weight: 400;
        line-height: 1.55;
        text-shadow: none !important;
    }

    /* Hover mouse dan focus keyboard mendapat penanda yang setara. */
    html body #kategori #kategoriCarouselWrapper .w3-display-container:hover,
    html body #kategori #kategoriCarouselWrapper .w3-display-container:focus-within {
        border-color: var(--cat-gold);
        box-shadow: 0 12px 24px rgba(99, 69, 17, 0.12);
        transform: translateY(var(--cat-lift));
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container:hover > a > img,
    html body #kategori #kategoriCarouselWrapper .w3-display-container:focus-within > a > img {
        transform: scale(var(--cat-zoom));
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container:hover > a::before {
        opacity: 1;
        transform: translateX(115%);
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container:hover > a::after,
    html body #kategori #kategoriCarouselWrapper .w3-display-container:focus-within > a::after {
        background-color: #f1ddb3;
        transform: translate(2px, -2px);
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container:hover .w3-display-middle,
    html body #kategori #kategoriCarouselWrapper .w3-display-container:focus-within .w3-display-middle {
        background-color: #fcf7ec;
        transform: none; /* Jangan mewarisi pembesaran caption dari gaya W3 lama. */
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container:hover .w3-display-middle::before,
    html body #kategori #kategoriCarouselWrapper .w3-display-container:focus-within .w3-display-middle::before {
        transform: scaleX(1.8);
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container:hover .team-title,
    html body #kategori #kategoriCarouselWrapper .w3-display-container:focus-within .team-title {
        color: #775319 !important;
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a:focus-visible {
        outline: 3px solid #88601f;
        outline-offset: -3px;
    }
}

/* Hormati reduced motion, tetap khusus kategori pada desktop. */
@media screen and (min-width: 1025px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
    html body #kategori #kategoriCarouselWrapper {
        --cat-lift: 0px;
        --cat-zoom: 1;
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container,
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a::before,
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a::after,
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a > img,
    html body #kategori #kategoriCarouselWrapper .w3-display-middle,
    html body #kategori #kategoriCarouselWrapper .w3-display-middle::before,
    html body #kategori #kategoriCarouselWrapper .team-title {
        transition: none !important;
        animation: none !important;
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a::before {
        display: none;
    }
    html body #kategori #kategoriCarouselWrapper .w3-display-container > a::after,
    html body #kategori #kategoriCarouselWrapper .w3-display-middle::before {
        transform: none !important;
    }
}
/* AKHIR ALGONAS v5 - KATEGORI DESKTOP */
/* ========================================================================== */
/* ALGONAS - OPERASIONAL & CARA PEMESANAN VISUAL                              */
/* ========================================================================== */
#operasional.alg-info-section,
#carapemesanan.alg-order-section {
    --alg-brown: #795548;
    --alg-brown-dark: #5f4035;
    --alg-gold: #ffb300;
    --alg-orange: #ff9800;
    --alg-cream: #fff9ef;
    --alg-soft: #fffdf8;
    --alg-border: #f0dfc0;
    --alg-text: #3f3f3f;
    --alg-muted: #737373;
    position: relative;
}

#operasional .alg-section-shell,
#carapemesanan .alg-section-shell {
    margin-top: 28px;
}

#operasional .alg-section-heading,
#carapemesanan .alg-section-heading {
    margin-bottom: 18px;
}

#operasional .alg-section-heading h1,
#carapemesanan .alg-section-heading h1 {
    margin: 5px 0 4px;
    line-height: 1.2;
}

#operasional .alg-section-heading p,
#carapemesanan .alg-section-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--alg-muted);
    font-size: 0.96rem;
}

#operasional .alg-section-eyebrow,
#carapemesanan .alg-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid #f1dfbd;
    border-radius: 999px;
    background: #fff7e7;
    color: #8a5b11;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

/* --- OPERASIONAL --- */
#operasional .alg-operational-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

#operasional .alg-operational-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    min-height: 180px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--alg-border);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, var(--alg-soft) 100%);
    box-shadow: 0 8px 24px rgba(94, 67, 37, 0.07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#operasional .alg-operational-card::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -52px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: rgba(255, 179, 0, 0.07);
    pointer-events: none;
}

#operasional .alg-operational-card:hover {
    transform: translateY(-3px);
    border-color: #e6c98c;
    box-shadow: 0 13px 30px rgba(94, 67, 37, 0.11);
}

#operasional .alg-operational-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff0c8, #ffe4a2);
    color: #9b6500;
    font-size: 1.35rem;
    box-shadow: inset 0 0 0 1px rgba(185, 123, 0, .08);
}

#operasional .alg-card-label {
    display: inline-block;
    margin-bottom: 3px;
    color: #a36a00;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

#operasional .alg-operational-content h3 {
    margin: 0 0 13px;
    color: var(--alg-brown-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

#operasional .alg-schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px dashed #ead9b8;
    color: var(--alg-text);
    font-size: .89rem;
}

#operasional .alg-schedule-row strong {
    color: #5e4438;
    font-size: .86rem;
    text-align: right;
}

#operasional .alg-schedule-row.is-holiday strong {
    color: #bf6b00;
}

#operasional .alg-shipping-highlight {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 9px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff4dc;
    color: #70501d;
    font-size: .89rem;
    line-height: 1.45;
}

#operasional .alg-shipping-highlight i {
    margin-top: 3px;
    color: var(--alg-orange);
}

#operasional .alg-operational-content > p {
    margin: 0;
    color: var(--alg-muted);
    font-size: .87rem;
    line-height: 1.6;
}

#operasional .alg-operational-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #f8f5ef;
    color: #6e6258;
    font-size: .83rem;
    line-height: 1.5;
}

#operasional .alg-operational-note i {
    color: var(--alg-orange);
    flex: 0 0 auto;
}

/* --- CARA PEMESANAN --- */
#carapemesanan .alg-order-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

#carapemesanan .alg-order-flow::before {
    content: "";
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, #f1d79d, #ffb300, #f1d79d);
    z-index: 0;
}

#carapemesanan .alg-order-step {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    min-height: 190px;
    padding: 18px 13px 15px;
    border: 1px solid #eee0c5;
    border-radius: 17px;
    background: rgba(255, 255, 255, .97);
    color: inherit;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 7px 20px rgba(86, 63, 37, .06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#carapemesanan a.alg-order-step:hover,
#carapemesanan .alg-order-step:hover {
    transform: translateY(-4px);
    border-color: #e6c47c;
    box-shadow: 0 12px 26px rgba(86, 63, 37, .11);
}

#carapemesanan .alg-step-number {
    position: absolute;
    top: 9px;
    right: 10px;
    min-width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff3d6;
    color: #996000;
    font-size: .7rem;
    font-weight: 800;
}

#carapemesanan .alg-step-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border: 7px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #ffe8ae, #ffc85a);
    color: #765006;
    font-size: 1.5rem;
    box-shadow: 0 0 0 1px #edd6a4, 0 6px 16px rgba(163, 105, 0, .12);
    animation: algOrderFloat 3.4s ease-in-out infinite;
}

#carapemesanan .alg-order-step:nth-child(2) .alg-step-icon { animation-delay: .18s; }
#carapemesanan .alg-order-step:nth-child(3) .alg-step-icon { animation-delay: .36s; }
#carapemesanan .alg-order-step:nth-child(4) .alg-step-icon { animation-delay: .54s; }
#carapemesanan .alg-order-step:nth-child(5) .alg-step-icon { animation-delay: .72s; }

#carapemesanan .alg-order-step.is-final .alg-step-icon {
    background: linear-gradient(145deg, #d9f9e4, #9be7b5);
    color: #168542;
    box-shadow: 0 0 0 1px #bde7ca, 0 6px 16px rgba(30, 130, 75, .12);
}

#carapemesanan .alg-step-body {
    display: block;
    min-width: 0;
}

#carapemesanan .alg-step-body strong {
    display: block;
    margin-bottom: 6px;
    color: var(--alg-brown-dark);
    font-size: .97rem;
}

#carapemesanan .alg-step-body small {
    display: block;
    color: var(--alg-muted);
    font-size: .78rem;
    line-height: 1.5;
}

#carapemesanan .alg-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 17px;
    padding: 14px;
    border: 1px solid #f0dfc0;
    border-radius: 15px;
    background: linear-gradient(110deg, #fffaf0, #fff);
}

#carapemesanan .alg-order-message {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #67594e;
    font-size: .84rem;
    line-height: 1.5;
}

#carapemesanan .alg-order-message i {
    color: #d38b00;
    font-size: 1.1rem;
}

#carapemesanan .alg-order-cta {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 11px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffb300, #ff9800);
    color: #fff !important;
    font-size: .88rem;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(255, 152, 0, .18);
}

#carapemesanan .alg-order-cta:hover {
    background: linear-gradient(135deg, #ffa000, #f57c00);
    color: #fff !important;
}

#carapemesanan .alg-marketplace-note {
    margin: 13px 2px 0;
    color: #77706a;
    font-size: .8rem;
    text-align: center;
}

@keyframes algOrderFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 900px) {
    #carapemesanan .alg-order-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #carapemesanan .alg-order-flow::before {
        display: none;
    }
    #carapemesanan .alg-order-step {
        min-height: 165px;
    }
    #carapemesanan .alg-order-step.is-final {
        grid-column: 1 / -1;
        width: min(50%, 310px);
        justify-self: center;
    }
}

@media (max-width: 700px) {
    #operasional .alg-section-shell,
    #carapemesanan .alg-section-shell {
        margin-top: 22px;
    }
    #operasional .alg-section-heading h1,
    #carapemesanan .alg-section-heading h1 {
        font-size: 1.75rem !important;
    }
    #operasional .alg-operational-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #operasional .alg-operational-card {
        min-height: 0;
        grid-template-columns: 47px minmax(0, 1fr);
        gap: 11px;
        padding: 15px;
        border-radius: 15px;
    }
    #operasional .alg-operational-icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 1.1rem;
    }
    #operasional .alg-operational-content h3 {
        margin-bottom: 10px;
        font-size: 1rem;
    }
    #operasional .alg-schedule-row {
        align-items: flex-start;
        padding: 8px 0;
        font-size: .82rem;
    }
    #operasional .alg-schedule-row strong {
        font-size: .79rem;
    }
    #operasional .alg-operational-note {
        align-items: flex-start;
        font-size: .76rem;
    }

    #carapemesanan .alg-order-flow {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }
    #carapemesanan .alg-order-step,
    #carapemesanan .alg-order-step.is-final {
        width: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        padding: 12px 42px 12px 12px;
        text-align: left;
    }
    #carapemesanan .alg-step-icon {
        width: 50px;
        height: 50px;
        margin: 0;
        border-width: 4px;
        font-size: 1.05rem;
        animation-duration: 4s;
    }
    #carapemesanan .alg-step-body strong {
        margin-bottom: 2px;
        font-size: .9rem;
    }
    #carapemesanan .alg-step-body small {
        font-size: .74rem;
        line-height: 1.45;
    }
    #carapemesanan .alg-step-number {
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
    }
    #carapemesanan .alg-order-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    #carapemesanan .alg-order-cta {
        width: 100%;
    }
    #carapemesanan .alg-order-message {
        align-items: flex-start;
        font-size: .77rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #operasional .alg-operational-card,
    #carapemesanan .alg-order-step,
    #carapemesanan .alg-step-icon {
        animation: none !important;
        transition: none !important;
    }
}
/* AKHIR ALGONAS - OPERASIONAL & CARA PEMESANAN VISUAL */

/* =========================================================
   BADGE KLIK DASAR
   ========================================================= */

#carapemesanan .alg-click-hint {
    position: absolute;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;

    padding: 5px 8px;

    background: #fff7e6;
    border: 1px solid rgba(255, 152, 0, 0.30);
    border-radius: 20px;

    color: #d97706;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);

    z-index: 5;

    opacity: 0;
    visibility: hidden;

    transform: scale(.92);

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}

#carapemesanan .alg-click-hint i {
    font-size: 11px;
}


/* =========================================================
   DESKTOP
   Badge di KIRI ATAS
   ========================================================= */

@media (min-width: 769px) {

    #carapemesanan .alg-click-hint {
        top: 10px;
        left: 10px;

        right: auto;
        bottom: auto;

        transform: translateY(-4px) scale(.92);
    }

    #carapemesanan .alg-step-clickable:hover .alg-click-hint,
    #carapemesanan .alg-step-clickable:focus-visible .alg-click-hint {
        opacity: 1;
        visibility: visible;

        transform: translateY(0) scale(1);

        animation: algClickHintPulse 1.4s ease-in-out infinite;
    }

    #carapemesanan .alg-step-clickable:hover .alg-click-hint i {
        animation: algPointerMove .8s ease-in-out infinite;
    }
}


/* =========================================================
   MOBILE
   Badge di KANAN BAWAH
   Minimalis dan selalu tampil
   ========================================================= */

@media (max-width: 768px) {

    #carapemesanan .alg-click-hint {
        top: auto;
        left: auto;

        right: 8px;
        bottom: 8px;

        opacity: 1;
        visibility: visible;

        padding: 4px 6px;

        font-size: 9px;
        font-weight: 600;

        border-radius: 12px;

        background: rgba(255, 247, 230, 0.96);

        transform: none;

        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.06),
            0 0 0 0 rgba(255, 152, 0, 0.20);

        animation: algClickHintMobile 1.8s ease-in-out infinite;
    }

    #carapemesanan .alg-click-hint i {
        font-size: 9px;
        animation: algPointerMove 1s ease-in-out infinite;
    }

    /* Beri ruang bawah agar badge tidak menimpa text */
    #carapemesanan .alg-step-clickable .alg-step-body {
        padding-right: 0;
        padding-bottom: 22px;
    }
}

@keyframes algClickHintMobile {

    0%,
    100% {
        transform: scale(1);

        box-shadow:
            0 2px 6px rgba(0, 0, 0, 0.06),
            0 0 0 0 rgba(255, 152, 0, 0.18);
    }

    50% {
        transform: scale(1.03);

        box-shadow:
            0 2px 7px rgba(0, 0, 0, 0.08),
            0 0 0 4px rgba(255, 152, 0, 0);
    }
}