@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Inter:wght@400;500;600&display=swap");

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

/* Global helper: the UI toggles `.hidden` on sections, overlays and modals. */
.hidden {
  display: none !important;
}

:root {
  --primary: #d1b06b;
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --surface: rgba(20, 20, 24, 0.72);
  --surface-strong: rgba(20, 20, 24, 0.9);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.40);
  --radius: 18px;
  --radius-sm: 14px;
  --maxw: 1100px;
}

body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(900px 700px at 15% 0%, rgba(209, 176, 107, 0.22), transparent 60%),
              radial-gradient(800px 650px at 85% 15%, rgba(255, 255, 255, 0.10), transparent 60%),
              linear-gradient(180deg, #0b0b0e 0%, #0f0f13 50%, #0b0b0e 100%);
  color: var(--text);
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  text-align: left;
}

.hide-scrollbar {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

#preloader {
  position: fixed;
  z-index: 9999999;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #aec597;
  transition: 0.3s;
}
#preloader.done {
  opacity: 0;
  pointer-events: none;
}
#preloader .logo {
  position: absolute;
  width: 50px;
  aspect-ratio: 1/1;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center center;
     object-position: center center;
}
#preloader .loading-animate {
  width: 100px;
}

header {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* Let the safe-area padding actually increase the header height on iOS.
     Using a fixed height can cause downstream "double safe-area" spacing bugs. */
  min-height: 60px;
  padding: 10px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background-color: #aec597;
  border-bottom: 2px solid #4c4c4c;
}
header a img {
  width: 150px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
  padding: 10px;
  /* Reserve space for the in-grid title bar.
     iOS Safari can render position:sticky titles on top of cards.
     Fixed title + reserved padding avoids the overlap. */
  padding-top: calc(12px + var(--titlebar-height, 56px));
  background-color: #e2e2e2;
  align-content: start;
  justify-items: stretch;
  overflow: auto;
}

.grid.hidden {
  display: none;
}


/* ---
   Image consistency tweaks
   - Keep all category/subcategory cards visually equal
   - Prevent wildly different source image ratios from affecting layout
   --- */


.grid .card {
  aspect-ratio: 1 / 1;
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid #4c4c4c;
  background: #f4f4f4;
}

.grid .card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.grid .title {
  grid-column: 1 / -1;
  /* Use a fixed title bar to avoid iOS sticky overlap glitches */
  position: fixed;
  /* IMPORTANT: header height already includes safe-area padding.
     Adding env(safe-area-inset-top) here causes the title to slide DOWN
     into the first row of cards on iPhone (seen in screenshots). */
  top: var(--header-height, 60px);
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  height: var(--titlebar-height, 56px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(226, 226, 226, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(76, 76, 76, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  padding: 0 10px;
}
.grid .title button {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #4c4c4c;
  border-radius: 5px;
  background-color: #aec597;
  color: #4c4c4c;
}

.grid .title h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #111;
}
.grid .card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  border: 1px solid #4c4c4c;
}
.grid .card.hidden {
  pointer-events: none;
  opacity: 0;
}
.grid .card img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
  filter: brightness(0.85) contrast(1.1);
}
.grid .card .gloss {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 30%, transparent 70%);
  pointer-events: none;
}
.grid .card .content {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 16px;
  color: white;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.grid .card .content h3 {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-type=subCategory] {
  position: fixed;
  /* Start under the header to avoid content living "behind" it on mobile */
  top: var(--header-height, 60px);
  left: 0;
  width: 100vw;
  height: calc(100dvh - var(--header-height, 60px));
}
[data-type=subCategory].hidden {
  pointer-events: none;
  opacity: 0;
}

/* Lots of subcategories (e.g. brand lists): make it roomier on small screens */
@media (max-width: 520px) {
  [data-type=subCategory].sub-grid-compact {
    /* Keep the same square "cube" cards.
       Just make the grid breathe and wrap nicely on mobile. */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }
  [data-type=subCategory].sub-grid-compact .card {
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    border-radius: var(--radius);
  }
  [data-type=subCategory].sub-grid-compact .card .content {
    bottom: 10px;
    left: 10px;
    right: 10px;
    max-width: unset;
    width: auto;
  }
}

.item-list {
  position: fixed;
  top: var(--header-height, 60px);
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--header-height, 60px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  /* Header height already includes safe-area padding; don't add it again */
  padding-top: 10px;
  background-color: #e2e2e2;
  transition: 0.3s;
}
.item-list.hidden {
  opacity: 0;
  pointer-events: none;
}
.item-list .title {
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  background: #e2e2e2;
  padding: 6px 0;
  z-index: 6;
}

/* Small screens */
@media (max-width: 520px) {
  header a img { width: 140px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid .card { border-radius: 14px; }
  .grid .card .content { padding: 12px; }
  .item-list .list .item img { width: 68px; height: 68px; }
}

/* Very small screens */
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}
.item-list .title button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #4c4c4c;
  border-radius: 5px;
  background-color: #aec597;
  color: #4c4c4c;
}
.item-list .list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
.item-list .list .item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(76, 76, 76, 0.25);
}
.item-list .list .item img {
  width: 75px;
  height: 75px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  border-radius: 10px;
}
.item-list .list .item h4 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: bold;
}
.item-list .list .item h4 span {
  display: flex;
  font-weight: lighter;
  font-size: 0.8rem;
  margin: 0;
}
.item-list .list .item span {
  margin-left: auto;
  font-weight: bolder;
}
.item-list .list .item .buyrow {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-list .list .item .buyrow .price {
  font-weight: 800;
}
.item-list .list .item .buyrow .wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(209, 176, 107, 0.45);
  background: rgba(209, 176, 107, 0.12);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.item-list .list .item .buyrow .wa:hover {
  transform: translateY(-1px);
}

/*# sourceMappingURL=style.css.map */

/* --- Premium UI overrides (2026) --- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: calc(var(--header-height, 60px) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 20, 0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
header a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(var(--maxw), 100%);
  padding: 0 14px;
}
header img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Layout container width */
.grid,
.item-list {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Category / subcategory cards */
.grid {
  gap: 14px;
  padding: 14px;
  padding-top: 14px;
  background: transparent;
}
.grid .title {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.grid .title h1 {
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  color: var(--text);
}
.grid .title button {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}
.grid .card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  overflow: hidden;
  transform: translateZ(0);
}
.grid .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
  transform: scale(1.001);
}
.grid .card .gloss {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 240px at 15% 5%, rgba(255,255,255,0.40), transparent 55%),
              linear-gradient(180deg, rgba(0,0,0,0.00) 35%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.grid .card .content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.grid .card .content h3 {
  color: rgba(255,255,255,0.96);
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: 0.2px;
}
.grid .card:active {
  transform: scale(0.985);
}
@media (hover:hover) {
  .grid .card:hover { transform: translateY(-2px); }
}

/* Product list */
.item-list {
  background: transparent;
  padding: 14px;
  padding-top: calc(var(--header-height, 60px) + 14px + env(safe-area-inset-top));
}
.item-list .title {
  background: rgba(245, 246, 247, 0.68);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 12px;
}
.item-list .title h1 { color: var(--text); font-size: 1.0rem; }
.item-list .title button {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.item-list .list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-list .list .item {
  border-bottom: none;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-soft);
  gap: 12px;
}
.item-list .list .item img {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.04);
}
.item-list .list .item h4 {
  font-size: 0.98rem;
  letter-spacing: 0.15px;
  color: var(--text);
}
.item-list .list .item h4 span {
  color: var(--muted);
  font-size: 0.82rem;
}
.item-list .list .item > span {
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(174, 197, 151, 0.22);
  color: rgba(16, 18, 20, 0.90);
  font-weight: 700;
  white-space: nowrap;
}

/* Better scrolling on iOS */
.grid, .item-list { -webkit-overflow-scrolling: touch; }
.hide-scrollbar::-webkit-scrollbar { width: 0px; height: 0px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* Mobile: tighter grid so cards look great on iPhone/Android */
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
  .item-list .list .item img { width: 78px; height: 78px; flex-basis: 78px; }
}

/* ==========================================================
   Classy header + titles (fixes iOS overlap and "tuhaf" title)
   ========================================================== */

/* Clean, single-source header sizing (avoid double safe-area math) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: unset;
  height: auto;
  padding: 10px 14px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: rgba(245, 246, 247, 0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
header a { width: min(var(--maxw), 100%); }
header img { height: 34px; width: auto; }

/* Remove the old fixed titlebar behavior and extra reserved padding */
.grid {
  padding-top: 14px !important;
}
.grid .title { display: none !important; }

/* Shared page title component (main/sub/list) */
.page-title {
  grid-column: 1 / -1;
  width: 100%;
  max-width: var(--maxw);
  margin: 4px auto 6px;
  padding: 10px 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-title .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(16, 18, 20, 0.62);
}

.page-title .headline {
  margin-top: 4px;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: rgba(16, 18, 20, 0.92);
}

.page-title .divider {
  margin-top: 10px;
  height: 1px;
  width: min(220px, 70%);
  background: linear-gradient(90deg, transparent, rgba(16,18,20,0.22), transparent);
}

/* Back button version */
.page-title.has-back {
  position: relative;
  padding-left: 52px;
}
.page-title.has-back .back {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-soft);
  color: rgba(16, 18, 20, 0.78);
}

/* Item list: use the same classy title and remove the old sticky bar */
.item-list {
  padding-top: 14px !important;
}
.item-list .title { display: none !important; }

/* Slightly smaller titles on narrow screens */
@media (max-width: 420px) {
  .page-title .headline { font-size: 1.38rem; }
}



/* --- Premium category/subcategory title label (fix ugly text look) --- */
.grid .card .content{
  bottom: 12px;
  left: 12px;
  width: auto;
  max-width: calc(100% - 24px);
  padding: 10px 12px;
  background: rgba(18, 18, 20, 0.46);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.grid .card .content h3{
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-shadow: none;
  margin: 0;
}

@media (max-width: 520px){
  .grid .card .content{
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 9px 11px;
    border-radius: 13px;
  }
}



/* ===== Premium topbar (logo removed) ===== */
header.topbar{
  position: sticky;
  top: 0;
  z-index: 9999;
  padding-top: env(safe-area-inset-top);
  background: rgba(245,246,247,0.72);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar-inner{
  min-height: 56px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
}
.topbar .brand{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text);
}

/* ===== Page titles ===== */
.page-title{
  padding: 18px 16px 10px;
  text-align:center;
}
.page-title .kicker{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.page-title .subkicker{
  margin-top: 6px;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: rgba(16,18,20,0.72);
}
.page-title .headline{
  margin-top: 10px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.2px;
  color: var(--text);
}
.page-title .divider{
  width: 88px;
  height: 1px;
  margin: 12px auto 0;
  background: rgba(16,18,20,0.22);
}

/* back button refinement */
.page-title.has-back{
  position: relative;
  padding-left: 54px;
  padding-right: 54px;
}
.page-title.has-back .back{
  position:absolute;
  left: 14px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* ===== Category/Subcategory card titles (more delicate) ===== */
.card .content{
  padding: 14px 14px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0,0,0,0));
}
.card .content h3{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

/* Make long names break nicer */
.card .content h3{
  word-break: break-word;
  hyphens: auto;
}


/* --- JK Perfume enhancements: search overlay + product modal --- */
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.icon-btn{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);color:inherit;border-radius:14px;padding:10px 12px;cursor:pointer}
.icon-btn:hover{background:rgba(255,255,255,.10)}
.icon-btn:active{transform:scale(.98)}

.overlay{position:fixed;inset:0;display:flex;align-items:flex-start;justify-content:center;padding:calc(var(--header-height,72px) + 12px) 16px 16px;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);z-index:20000}
.overlay-card{width:min(820px,100%);margin-top:0;background:rgba(20,20,26,.92);border:1px solid rgba(255,255,255,.10);border-radius:18px;overflow:hidden;box-shadow:0 18px 48px rgba(0,0,0,.45)}
.overlay-head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.overlay-title{font-weight:700;letter-spacing:.2px}
.overlay-body{padding:14px}
#searchInput{width:100%;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;padding:12px 12px;outline:none}
#searchInput:focus{border-color:rgba(255,255,255,.22)}
.hint{margin-top:10px;opacity:.8;font-size:.92rem}
.results{margin-top:14px;display:grid;gap:10px}
.result-row{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;padding:10px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04)}
.result-row img{width:72px;height:72px;object-fit:cover;border-radius:14px;border:1px solid rgba(255,255,255,.10)}
.result-meta{display:flex;flex-direction:column;gap:6px}
.result-title{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.result-title b{font-size:1rem}
.badge{font-size:.78rem;opacity:.85;border:1px solid rgba(255,255,255,.14);padding:2px 8px;border-radius:999px}
.result-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;text-decoration:none;cursor:pointer}
.btn:hover{background:rgba(255,255,255,.10)}
.btn-primary{background:rgba(70,255,184,.14);border-color:rgba(70,255,184,.22)}
.btn-primary:hover{background:rgba(70,255,184,.18)}
.btn-ghost{background:transparent}

.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.60);backdrop-filter:blur(6px);z-index:1100}
.modal-card{width:min(920px,100%);background:rgba(20,20,26,.94);border:1px solid rgba(255,255,255,.10);border-radius:22px;overflow:hidden;box-shadow:0 18px 52px rgba(0,0,0,.55);position:relative}
.modal-close{position:absolute;top:10px;right:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);color:#fff;border-radius:14px;padding:10px 12px;cursor:pointer;z-index:2}
.modal-content{display:grid;grid-template-columns:1.2fr 1fr;gap:0}
.modal-media{padding:18px;border-right:1px solid rgba(255,255,255,.08)}
.modal-media img{width:100%;max-height:520px;object-fit:contain;border-radius:18px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.10)}
.modal-info{padding:18px;display:flex;flex-direction:column;gap:12px}
.modal-info h2{margin:0;font-size:1.35rem}
.modal-sub{opacity:.85}

/* =========================================================
   FIX (v1.3.1): Keep the “cube” (square) layout for subcategories
   Even when there are many subcategories.
   Previous overrides in the file introduced pill-like cards on mobile
   via .sub-grid-compact .card { aspect-ratio: auto !important; ... }
   This block is intentionally placed late to win the cascade.
   ========================================================= */

/* Ensure the fixed subcategory layer can scroll naturally */
[data-type=subCategory].grid{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Always keep square cards for categories/subcategories */
.grid .card{
  aspect-ratio: 1 / 1;
  height: auto;
}

/* Stronger override for the compact mode (lots of subcategories) */
[data-type=subCategory].sub-grid-compact .card{
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Make sure images never stretch */
.grid .card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.kv{display:grid;grid-template-columns:120px 1fr;gap:8px 12px;font-size:.96rem}
.kv div{padding:6px 0;border-bottom:1px dashed rgba(255,255,255,.10)}
.kv div:nth-child(odd){opacity:.80}
.modal-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}

@media (max-width: 720px){
  .modal-content{grid-template-columns:1fr}
  .modal-media{border-right:none;border-bottom:1px solid rgba(255,255,255,.08)}
  .overlay-card{margin-top:12px}
}

.item-open{padding:0;border:none;background:transparent;cursor:pointer}
.linklike{padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left}
.linklike:hover{text-decoration:underline}


/* ============================
   JK Parfüm – Dark Luxury UI v1
   (Visual refresh only; JS/panel untouched)
   ============================ */

/* ============================
   Layout Fix Pack (2026-02)
   - Fixes: desktop "right blank" area, inner scrollbars
   - Fixes: mobile "narrow centered column" issue
   - JS / panel untouched
   ============================ */

/* Use the full viewport width while keeping a comfortable max width */
:root{ --maxw: 1400px; }

html, body{ width: 100%; }

/* Allow page scrolling normally (avoid fixed-height/overflow traps) */
body{
  height: auto !important;
  min-height: 100dvh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* These sections were fixed-positioned earlier; that caused content to stick
   to the left (and leave a big blank area on the right on wide screens).
   Keep them in normal document flow. */
[data-type=subCategory],
.item-list{
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
}

/* Make sure inner lists don't create a second scrollbar */
.item-list .list{
  max-height: none !important;
  overflow: visible !important;
}

/* Grid should always occupy available width */
.grid,
.item-list{
  width: 100% !important;
  max-width: var(--maxw) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile: edge-to-edge, no "centered narrow card" look */
@media (max-width: 768px){
  .grid,
  .item-list{
    max-width: 100% !important;
  }
}

:root{
  --bg0:#070709;
  --bg1:#0b0b0e;
  --gold:#d1b06b;
  --gold-2:#f2d28a;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(209,176,107,.22);
  --surface: rgba(15,15,18,.72);
  --surface-2: rgba(12,12,14,.92);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
}

body{
  background:
    radial-gradient(900px 700px at 15% 0%, rgba(209,176,107,.16), transparent 60%),
    radial-gradient(750px 550px at 90% 20%, rgba(209,176,107,.10), transparent 55%),
    radial-gradient(900px 650px at 50% 110%, rgba(209,176,107,.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.68));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar .brand{
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  letter-spacing: .5px;
  font-weight: 600;
}
.topbar .brand::first-letter{ color: var(--gold); }

.icon-btn{
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.icon-btn:hover{ border-color: rgba(209,176,107,.35); }

/* Title blocks */
.page-title .headline{
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  letter-spacing: .4px;
}
.page-title .divider{
  background: linear-gradient(90deg, transparent, rgba(209,176,107,.65), transparent);
  height: 2px;
}

/* Grid cards (categories + subcategories) */
.grid .card{
  border-radius: 18px;
  border: 1px solid rgba(209,176,107,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    0 12px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.07);
  transform: translateZ(0);
}
.grid .card img{
  filter: brightness(.9) contrast(1.12) saturate(1.05);
  transition: transform .35s ease, filter .35s ease;
}
.grid .card .gloss{
  background:
    radial-gradient(600px 280px at 15% 0%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 40%, transparent 72%);
  opacity: .95;
}
.grid .card .content{
  padding: 16px 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.22) 55%, transparent);
}
.grid .card .content h3{
  font-weight: 700;
  letter-spacing: .2px;
}
.grid .card:focus-visible{
  outline: 2px solid rgba(209,176,107,.55);
  outline-offset: 3px;
}
@media (hover:hover){
  .grid .card:hover{
    border-color: rgba(209,176,107,.45);
    box-shadow:
      0 18px 45px rgba(0,0,0,.55),
      0 0 0 1px rgba(209,176,107,.20),
      inset 0 1px 0 rgba(255,255,255,.08);
  }
  .grid .card:hover img{
    transform: scale(1.06);
    filter: brightness(.95) contrast(1.15) saturate(1.08);
  }
}

/* Subcategory compact mode readability (avoid “line” collapse on zoom) */
.sub-grid-compact .card{
  aspect-ratio: auto !important;
  min-height: clamp(68px, 10vh, 92px) !important;
}
.sub-grid-compact .card .content{
  padding: 14px 16px 14px !important;
  background: linear-gradient(to right, rgba(0,0,0,.72), rgba(0,0,0,.18));
}
.sub-grid-compact .card .content h3{
  font-size: 16px !important;
}

/* Item list */
.item-list{
  background: transparent;
}
.item-list .list{
  background: transparent;
  padding: 12px 14px 120px;
}
.item{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  margin-bottom: 10px;
}
.item:last-child{ border-bottom: none; }
.item .item-open img{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
}
.item h4{
  color: var(--text);
}
.item h4 span{
  color: var(--muted);
}
.item .price{
  color: var(--gold-2);
}
.item .wa{
  background: rgba(37, 211, 102, .14);
  border: 1px solid rgba(37, 211, 102, .28);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  text-decoration: none;
}
.item .wa:hover{ filter: brightness(1.05); }

/* Overlay/modal polish */
.overlay{
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.66);
}
.overlay-card{
  border: 1px solid rgba(209,176,107,.22);
  background: linear-gradient(180deg, rgba(20,20,24,.92), rgba(12,12,14,.92));
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}

/* Sticky WhatsApp button already exists; make it premium */
.fab-whatsapp{
  border: 1px solid rgba(37,211,102,.35);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}

/* =========================================================
   FIX (v1.3.1): Keep the “cube” (square) layout for subcategories
   Put at the VERY END to beat earlier overrides.
   ========================================================= */

/* Ensure the fixed subcategory layer can scroll naturally */
[data-type=subCategory].grid{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Always keep square cards for categories/subcategories */
.grid .card{
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
}

/* Stronger override for the compact mode (lots of subcategories) */
[data-type=subCategory].sub-grid-compact .card{
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Make sure images never stretch */
.grid .card img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* =============================
   Dark Luxury overrides (UI v1.1)
   Keep panel/JS intact; only visuals.
   ============================= */

#preloader{ background-color: #0b0b0e !important; }

.topbar{
  background: rgba(10,10,12,.75) !important;
  border-bottom: 1px solid rgba(209,176,107,.16) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.topbar .brand{
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  letter-spacing: .6px;
}

/* Main/Category grids */
.grid{
  background: transparent !important;
}

.grid .page-title .headline{
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  letter-spacing: 1.6px;
}

.grid .card{
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(20,20,24,.55) !important;
  box-shadow: 0 14px 36px rgba(0,0,0,.55) !important;
  transform: translateZ(0);
}

.grid .card img{
  filter: brightness(.92) contrast(1.08) saturate(1.02) !important;
}

.grid .card .gloss{
  background: radial-gradient(600px 260px at 20% 10%, rgba(209,176,107,.18), transparent 55%),
              linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 32%, transparent 70%) !important;
}

.grid .card .content{
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.22), transparent) !important;
}

.grid .card .content h3{
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  font-weight: 600 !important;
  letter-spacing: .3px;
}

.grid .card:hover{ transform: translateY(-2px); }

/* Title bars used in some views */
.grid .title{
  background: rgba(10,10,12,.75) !important;
  border-bottom: 1px solid rgba(209,176,107,.14) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35) !important;
}
.grid .title h1{ color: rgba(255,255,255,.92) !important; }
.grid .title button{
  background: rgba(209,176,107,.14) !important;
  border: 1px solid rgba(209,176,107,.35) !important;
  color: rgba(255,255,255,.90) !important;
  border-radius: 10px !important;
}


/* ============================
   JK Parfüm – Dark Luxury UI v1
   (Visual refresh only; JS/panel untouched)
   ============================ */

:root{
  --bg0:#070709;
  --bg1:#0b0b0e;
  --gold:#d1b06b;
  --gold-2:#f2d28a;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(209,176,107,.22);
  --surface: rgba(15,15,18,.72);
  --surface-2: rgba(12,12,14,.92);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
}

body{
  background:
    radial-gradient(900px 700px at 15% 0%, rgba(209,176,107,.16), transparent 60%),
    radial-gradient(750px 550px at 90% 20%, rgba(209,176,107,.10), transparent 55%),
    radial-gradient(900px 650px at 50% 110%, rgba(209,176,107,.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(10,10,12,.92), rgba(10,10,12,.68));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.topbar .brand{
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  letter-spacing: .5px;
  font-weight: 600;
}
.topbar .brand::first-letter{ color: var(--gold); }

.icon-btn{
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.icon-btn:hover{ border-color: rgba(209,176,107,.35); }

/* Title blocks */
.page-title .headline{
  font-family: "Playfair Display", ui-serif, Georgia, serif;
  letter-spacing: .4px;
}
.page-title .divider{
  background: linear-gradient(90deg, transparent, rgba(209,176,107,.65), transparent);
  height: 2px;
}

/* Grid cards (categories + subcategories) */
.grid .card{
  border-radius: 18px;
  border: 1px solid rgba(209,176,107,.28);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:
    0 12px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.07);
  transform: translateZ(0);
}
.grid .card img{
  filter: brightness(.9) contrast(1.12) saturate(1.05);
  transition: transform .35s ease, filter .35s ease;
}
.grid .card .gloss{
  background:
    radial-gradient(600px 280px at 15% 0%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 40%, transparent 72%);
  opacity: .95;
}
.grid .card .content{
  padding: 16px 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.22) 55%, transparent);
}
.grid .card .content h3{
  font-weight: 700;
  letter-spacing: .2px;
}
.grid .card:focus-visible{
  outline: 2px solid rgba(209,176,107,.55);
  outline-offset: 3px;
}
@media (hover:hover){
  .grid .card:hover{
    border-color: rgba(209,176,107,.45);
    box-shadow:
      0 18px 45px rgba(0,0,0,.55),
      0 0 0 1px rgba(209,176,107,.20),
      inset 0 1px 0 rgba(255,255,255,.08);
  }
  .grid .card:hover img{
    transform: scale(1.06);
    filter: brightness(.95) contrast(1.15) saturate(1.08);
  }
}

/* Subcategory compact mode readability (avoid “line” collapse on zoom) */
.sub-grid-compact .card{
  aspect-ratio: auto !important;
  min-height: clamp(68px, 10vh, 92px) !important;
}
.sub-grid-compact .card .content{
  padding: 14px 16px 14px !important;
  background: linear-gradient(to right, rgba(0,0,0,.72), rgba(0,0,0,.18));
}
.sub-grid-compact .card .content h3{
  font-size: 16px !important;
}

/* Item list */
.item-list{
  background: transparent;
}
.item-list .list{
  background: transparent;
  padding: 12px 14px 120px;
}
.item{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  margin-bottom: 10px;
}
.item:last-child{ border-bottom: none; }
.item .item-open img{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
}
.item h4{
  color: var(--text);
}
.item h4 span{
  color: var(--muted);
}
.item .price{
  color: var(--gold-2);
}
.item .wa{
  background: rgba(37, 211, 102, .14);
  border: 1px solid rgba(37, 211, 102, .28);
  color: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  text-decoration: none;
}
.item .wa:hover{ filter: brightness(1.05); }

/* Overlay/modal polish */
.overlay{
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,.66);
}
.overlay-card{
  border: 1px solid rgba(209,176,107,.22);
  background: linear-gradient(180deg, rgba(20,20,24,.92), rgba(12,12,14,.92));
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}

/* Sticky WhatsApp button already exists; make it premium */
.fab-whatsapp{
  border: 1px solid rgba(37,211,102,.35);
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
}
