/*
 * Alinea — style.css perangkat (selalu dimuat AppController untuk desktop dan HP; isi kedua berkas sama karena
 * Alinea memakai satu template responsif). Gaya kulit utama ada di /assets/themes/alinea/css/theme.css.
 */

.products-grid {
	margin-top: 0px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 15px;
}

.product-item img {
	max-width: 100%;
	object-fit: cover;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price .price-regular {
  font-weight: 600;
  color: #111;
     font-size: 18px;
}

.product-price .price-new {
  font-weight: 600;
  color: #111;
   font-size: 18px;
}

.product-price .price-old {
  font-size: 14px;
  color: #888;
  text-decoration: line-through;
}
.product-price .price-regular span,
.product-price .price-new span, .product-price .price-old span {
 font-size: 14px;
}

.product-price .discount-badge {
  position: absolute;
  top: 10px;
  right: 16px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

/* =========================
   PAGINATION
========================= */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pagination a,
.pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  line-height: 1;
  text-decoration: none;

  border: 1px solid #E7E2D8; /* line */
  border-radius: 4px;
  background: #fff;
  color: #6E6760; /* inkMuted */

  transition: all 0.15s ease;
}

/* HOVER */
.pagination a:hover {
  background: #FAF8F5; /* canvas */
  border-color: #161413; /* ink */
  color: #161413;
}

.pagination .current-page {
  background: #161413; /* ink */
  color: #fff;
  border-color: #161413;
  font-weight: 600;
  cursor: default;
}

.pagination .disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 640px) {
  .pagination {
    justify-content: center;
  }
}

/* Rich text blocks from the builder */
.htmlcode,
.paragraph {
  line-height: 1.7;
}

.htmlcode p:not([class]):not([style]),
.paragraph p:not([class]):not([style]) {
  margin: 0 0 1em;
}

.htmlcode h1:not([class]):not([style]),
.htmlcode h2:not([class]):not([style]),
.htmlcode h3:not([class]):not([style]),
.htmlcode h4:not([class]):not([style]),
.htmlcode h5:not([class]):not([style]),
.htmlcode h6:not([class]):not([style]),
.paragraph h1:not([class]):not([style]),
.paragraph h2:not([class]):not([style]),
.paragraph h3:not([class]):not([style]),
.paragraph h4:not([class]):not([style]),
.paragraph h5:not([class]):not([style]),
.paragraph h6:not([class]):not([style]) {
  margin: 1.2em 0 0.55em;
  color: inherit;
  font-weight: 900;
  line-height: 1.18;
}

.htmlcode h1:not([class]):not([style]),
.htmlcode .shop-inline-heading-h1,
.paragraph h1:not([class]):not([style]),
.paragraph .shop-inline-heading-h1 {
  font-size: 2.25em;
}

.htmlcode h2:not([class]):not([style]),
.htmlcode .shop-inline-heading-h2,
.paragraph h2:not([class]):not([style]),
.paragraph .shop-inline-heading-h2 {
  font-size: 1.85em;
}

.htmlcode h3:not([class]):not([style]),
.htmlcode .shop-inline-heading-h3,
.paragraph h3:not([class]):not([style]),
.paragraph .shop-inline-heading-h3 {
  font-size: 1.5em;
}

.htmlcode h4:not([class]):not([style]),
.htmlcode .shop-inline-heading-h4,
.paragraph h4:not([class]):not([style]),
.paragraph .shop-inline-heading-h4 {
  font-size: 1.25em;
}

.htmlcode h5:not([class]):not([style]),
.htmlcode .shop-inline-heading-h5,
.paragraph h5:not([class]):not([style]),
.paragraph .shop-inline-heading-h5 {
  font-size: 1.08em;
}

.htmlcode h6:not([class]):not([style]),
.htmlcode .shop-inline-heading-h6,
.paragraph h6:not([class]):not([style]),
.paragraph .shop-inline-heading-h6 {
  font-size: 0.95em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.htmlcode .shop-inline-heading,
.paragraph .shop-inline-heading {
  display: inline;
  color: inherit;
  font-weight: 900;
  line-height: 1.18;
}

.htmlcode h1:not([class]):not([style]):first-child,
.htmlcode h2:not([class]):not([style]):first-child,
.htmlcode h3:not([class]):not([style]):first-child,
.htmlcode h4:not([class]):not([style]):first-child,
.htmlcode h5:not([class]):not([style]):first-child,
.htmlcode h6:not([class]):not([style]):first-child,
.paragraph h1:not([class]):not([style]):first-child,
.paragraph h2:not([class]):not([style]):first-child,
.paragraph h3:not([class]):not([style]):first-child,
.paragraph h4:not([class]):not([style]):first-child,
.paragraph h5:not([class]):not([style]):first-child,
.paragraph h6:not([class]):not([style]):first-child {
  margin-top: 0;
}

.htmlcode ul:not([class]):not([style]),
.paragraph ul:not([class]):not([style]) {
  margin: 0 0 1em 1.25em;
  list-style: disc;
}

.htmlcode ol:not([class]):not([style]),
.paragraph ol:not([class]):not([style]) {
  margin: 0 0 1em 1.25em;
  list-style: decimal;
}

.htmlcode a:not([class]),
.paragraph a:not([class]) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Kelas prose dipakai tanpa plugin typography Tailwind, jadi diberi gaya seperti .htmlcode. Daftar untuk semua .prose;
   judul hanya untuk deskripsi produk dan instruksi bank, karena gaya judul lokal article.twig akan kalah oleh berkas ini. */
:is(.product-description-content, .prose-sm) h1:where(:not([class]):not([style])),
:is(.product-description-content, .prose-sm) h2:where(:not([class]):not([style])),
:is(.product-description-content, .prose-sm) h3:where(:not([class]):not([style])),
:is(.product-description-content, .prose-sm) h4:where(:not([class]):not([style])),
:is(.product-description-content, .prose-sm) h5:where(:not([class]):not([style])),
:is(.product-description-content, .prose-sm) h6:where(:not([class]):not([style])) {
  margin: 1.2em 0 0.55em;
  color: inherit;
  font-weight: 900;
  line-height: 1.18;
}

:is(.product-description-content, .prose-sm) h1:where(:not([class]):not([style])) { font-size: 2.25em; }
:is(.product-description-content, .prose-sm) h2:where(:not([class]):not([style])) { font-size: 1.85em; }
:is(.product-description-content, .prose-sm) h3:where(:not([class]):not([style])) { font-size: 1.5em; }
:is(.product-description-content, .prose-sm) h4:where(:not([class]):not([style])) { font-size: 1.25em; }
:is(.product-description-content, .prose-sm) h5:where(:not([class]):not([style])) { font-size: 1.08em; }

:is(.product-description-content, .prose-sm) h6:where(:not([class]):not([style])) {
  font-size: 0.95em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:is(.product-description-content, .prose-sm) :where(h1, h2, h3, h4, h5, h6):where(:not([class]):not([style])):first-child {
  margin-top: 0;
}

.prose ul:where(:not([class]):not([style])) {
  margin: 0 0 1em 1.25em;
  list-style: disc;
}

.prose ol:where(:not([class]):not([style])) {
  margin: 0 0 1em 1.25em;
  list-style: decimal;
}

/* Keep currency/language controls visually integrated with the header. */
.exshop-locale-switcher .exshop-locale-field,
.exshop-locale-switcher .exshop-locale-field select {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: var(--site-header-text) !important;
}

.exshop-locale-switcher .exshop-locale-field select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Alinea: radius setelan admin dipasang per elemen lewat kelas kait di theme.css (.al-r-img = kartu/gambar memakai
   --site-image-radius, .al-r-btn = tombol memakai --site-button-radius; preset tombol "default" = rounded mockup).
   Aturan devorge [data-image-radius="none"] [class*="rounded-"] tidak dipakai karena ikut membuat titik status dan
   lencana jumlah (rounded-full) menjadi kotak. */
.alinea-product-card {
  min-width: 0;
}

body.alinea #buy-now,
body.alinea #buy-now-var,
body.alinea .bg-primary {
  background-color: var(--site-footer-bg, #0f172a) !important;
  color: #ffffff !important;
}

body.alinea #buy-now:hover,
body.alinea #buy-now-var:hover,
body.alinea .bg-primary:hover {
  opacity: 0.9 !important;
}
