/* Pagina de produs (design/produs/index.html): galeria în stânga, informațiile lipite în dreapta, ghidul de mărimi, „Alte piese”. */
.pill.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.12); background: var(--ink); color: var(--greige); } }

.product { display: grid; grid-template-columns: 65fr 35fr; gap: 0 clamp(28px, 3.5vw, 56px); padding: 8px var(--gutter) 0; }
.gallery { display: grid; gap: 8px; }
.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: rgba(26, 24, 21, .06); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame.open-able { cursor: zoom-in; }
.frame.open-able:hover img { transform: scale(1.02); }
.frame .zoom { position: absolute; right: 14px; top: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: rgba(237, 233, 225, .85); display: grid; place-items: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
.frame .zoom::before, .frame .zoom::after { content: ""; position: absolute; width: 12px; height: 1.5px; background: var(--ink); }
.frame .zoom::after { transform: rotate(90deg); }
.frame.open-able:hover .zoom { opacity: 1; }
.frame .cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; }
.frame.ph { background: linear-gradient(105deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 55%), rgba(26, 24, 21, .1); }
.counter { display: none; }

/* Vizualizatorul de poze, pe tot ecranul */
.lb { position: fixed; inset: 0; z-index: 99995; background: var(--greige); display: grid; grid-template-rows: auto 1fr; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.lb.open { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.lb .lbbar { display: flex; justify-content: space-between; align-items: center; height: var(--hh); padding: 0 var(--gutter); }
.lb .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb .track::-webkit-scrollbar { display: none; }
.lb .slide { flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; display: grid; place-items: center; padding: 0 var(--gutter) 24px; }
.lb .slide img { max-width: 100%; max-height: calc(100svh - var(--hh) - 24px); object-fit: contain; cursor: zoom-in; transition: transform .5s var(--ease); }
.lb .slide.zoomed img { transform: scale(2.2); cursor: zoom-out; transition: transform .5s var(--ease), transform-origin .1s linear; }
.lb .nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1px solid var(--line); background: rgba(237, 233, 225, .9); cursor: pointer; font-size: 18px; }
.lb .nav:hover { border-color: var(--ink); }
.lb .prev { left: var(--gutter); }
.lb .next { right: var(--gutter); }
.lb .nav:disabled { opacity: .3; cursor: default; }

.info { position: sticky; top: calc(var(--hh) + 24px); align-self: start; padding: 24px 0 40px; }
.admin-bar .info { top: calc(var(--hh) + 56px); }
.crumbs a:hover { color: var(--ink); }
.info h1 { font-weight: 500; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -.035em; margin-top: 18px; }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 20px; font-weight: 500; }
.price small { font-size: 13px; font-weight: 400; }
.lead { margin-top: 20px; max-width: 46ch; }

/* Croiul: zona + intensitatea, pe scala din ghidul de brand */
.cut { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; align-items: center; margin-top: 28px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 14px; }
.scale { display: flex; gap: 6px; align-items: center; }
.scale i { flex: 1; max-width: 56px; height: 4px; border-radius: 2px; background: var(--line); }
.scale i.on { background: var(--ink); }
.scale span { margin-left: 8px; }

.sizes-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 28px; }
.sizes-head button { border: 0; background: none; cursor: pointer; border-bottom: 1px solid currentColor; padding-bottom: 2px; font-size: 14px; }
.sizes-head button:hover { color: var(--camel); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.size { padding: 14px 0; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; transition: border-color .3s, background .3s, color .3s; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--greige); }
.size:disabled { color: var(--ink-60); text-decoration: line-through; cursor: not-allowed; opacity: .6; }
.hint { min-height: 22px; margin-top: 8px; font-size: 13px; }

.add { width: 100%; margin-top: 8px; padding: 18px; border-radius: 999px; border: 0; background: var(--ink); color: var(--greige); font-weight: 500; cursor: pointer; transition: background .3s; }
.add:hover:not(:disabled) { background: var(--camel); }
.add:disabled { opacity: .5; cursor: default; }
.add.busy { opacity: .7; cursor: progress; }
.made { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; }
.made .icon { --d: 9px; }

/* Detaliile, în secțiuni care se deschid */
.details { margin-top: 28px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details .body { padding: 0 0 20px; color: var(--ink-60); font-size: 15px; display: grid; gap: 10px; max-width: 52ch; }
details dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; }
details dt { color: var(--ink); }
details a.u { color: var(--ink); border-bottom: 1px solid; }

/* Alte piese */
.more { padding: clamp(96px, 14vh, 160px) var(--gutter) 0; }
.more-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.more-head a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.more-head a:hover { color: var(--camel); }
.more .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.card .img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: rgba(26, 24, 21, .06); }
.card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform 1.2s var(--ease); }
.card .img img.back { opacity: 0; }
.card:hover .img img.back { opacity: 1; }
.card:hover .img img:only-of-type { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 15px; }
.card h3 { font-weight: 500; font-size: 15px; }

/* Ghidul de mărimi: panou lateral */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 99992; width: clamp(520px, 50vw, 860px); max-width: 100%; background: var(--greige); border-left: 1px solid var(--ink); padding: 24px var(--gutter) 0; overflow-y: auto; transform: translateX(100%); transition: transform .6s var(--ease); }
.drawer.open { transform: none; }
.drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.drawer h2 { font-weight: 500; font-size: 28px; letter-spacing: -.02em; }
.drawer p { color: var(--ink-60); margin-bottom: 20px; font-size: 15px; }
.g-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; margin-bottom: 20px; }
.g-draw { background: rgba(26, 24, 21, .04); border-radius: 6px; padding: 12px; }
.g-draw svg { width: 100%; height: auto; display: block; }
.g-legend { list-style: none; display: grid; gap: 9px; font-size: 13px; line-height: 1.4; }
.g-legend li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.g-legend b { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--greige); display: grid; place-items: center; font-size: 11px; font-weight: 500; transition: background .2s; }
.g-legend li.hot b { background: var(--camel); }
.g-legend em { font-style: normal; font-weight: 500; color: var(--ink); }
.g-legend span { color: var(--ink-60); }
.g-body { display: grid; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.g-inp { display: flex; align-items: center; height: 42px; max-width: 170px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .4); }
.g-inp:focus-within { border-color: var(--ink); }
.g-inp input { flex: 1; min-width: 0; border: 0; background: none; font: 500 16px Inter, "Helvetica Neue", Arial, sans-serif; color: var(--ink); }
.g-inp input:focus { outline: none; }
.g-inp span, .g-body small { font-size: 12px; color: var(--ink-60); }
.g-rec { margin-top: 10px; font-size: 14px; }
.g-rec b { font-weight: 500; color: var(--camel); }
.g-rec a { color: var(--ink); border-bottom: 1px solid; }
.g-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.g-table th, .g-table td { text-align: left; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--line); }
.g-table th { font-weight: 400; color: var(--ink-60); }
.g-table th b { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; background: var(--ink); color: var(--greige); font-size: 10px; font-weight: 500; }
.g-table th.hot b { background: var(--camel); }
.g-table tbody tr { cursor: pointer; transition: background .2s; }
.g-table tbody tr:hover { background: rgba(26, 24, 21, .04); }
.g-table tbody tr.on { background: rgba(154, 123, 79, .15); }
.g-table tbody tr.off { cursor: not-allowed; color: rgba(26, 24, 21, .4); }
.g-table td.hot { color: var(--camel); font-weight: 500; }
.g-radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.g-radio input { accent-color: #1A1815; margin: 0; }
.g-radio small { font-weight: 400; font-size: 12px; }
.g-note { margin-top: 18px; font-size: 14px; }
.g-note a { color: var(--ink); border-bottom: 1px solid; }
.g-foot { position: sticky; bottom: 0; margin: 20px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) 20px; background: var(--greige); border-top: 1px solid var(--ink); }
.g-foot .add { width: 100%; margin: 0; }
.x { width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; cursor: pointer; position: relative; }
.x span { position: absolute; left: 11px; right: 11px; top: 21.5px; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.x span + span { transform: rotate(-45deg); }
.scrim { position: fixed; inset: 0; z-index: 99991; background: rgba(26, 24, 21, .35); opacity: 0; pointer-events: none; transition: opacity .4s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* Confirmarea adăugării în coș */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 99993; display: flex; align-items: center; gap: 20px; padding: 14px 14px 14px 22px; border-radius: 999px; background: var(--ink); color: var(--greige); font-size: 14px; transform: translate(-50%, 140%); opacity: 0; visibility: hidden; transition: transform .6s var(--ease), opacity .3s, visibility 0s .6s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .6s var(--ease), opacity .3s; }
.toast a { padding: 8px 14px; border-radius: 999px; background: var(--greige); color: var(--ink); font-weight: 500; }
.toast.err { background: #7A2E22; }

.buybar { display: none; }

@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding: 0; }
  /* Galeria devine glisantă, cu numărător */
  .gallery { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; position: relative; }
  .gallery::-webkit-scrollbar { display: none; }
  .frame { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
  .frame .zoom { opacity: 1; }
  .lb .nav { display: none; }
  .lb .slide { padding: 0 0 16px; }
  .gal-wrap { position: relative; }
  .counter { display: block; position: absolute; right: 16px; bottom: 14px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(237, 233, 225, .85); font-size: 12px; }
  .info { position: static; padding: 20px var(--gutter) 0; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 12px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--greige) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .5s var(--ease); }
  .buybar.show { transform: none; }
  .buybar .p { display: grid; line-height: 1.3; font-size: 14px; }
  .buybar .p b { font-weight: 500; }
  .buybar .add { width: auto; flex: 1; margin: 0; padding: 14px; }
  .toast { bottom: 84px; width: calc(100% - 32px); justify-content: space-between; }
  .more .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .more .row::-webkit-scrollbar { display: none; }
  .more .row .card { flex: 0 0 62%; scroll-snap-align: start; }
  .g-top { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .single-product .foot { padding-bottom: 96px; }
}
