/* ======================================================================
   Gyertyadékor Sidecart — frontend styles
   Frosted floating side cart for WooCommerce.
   Ugyanaz a design-rendszer, mint a demóban. Minden szín/méret CSS-változó,
   így egy helyen újraszínezhető:  #gd-sidecart{ --sc-accent:#... }
   ====================================================================== */
:root{
  --sc-accent:#c67e7e;
  --sc-accent-strong:#bd7373;
  --sc-accent-hover:#ac6464;
  --sc-accent-soft:#fbeeee;
  --sc-accent-softer:#fdf6f4;
  --sc-track:rgba(120,90,90,.14);
  --sc-text:#4a4140;
  --sc-heading:#3d3535;
  --sc-muted:#a99e97;
  --sc-muted-strong:#8a807a;
  --sc-border:rgba(150,120,120,.15);
  --sc-line:rgba(120,90,90,.13);
  --sc-shadow:0 30px 80px -22px rgba(80,50,50,.42);
  --sc-fab-shadow:0 14px 30px -6px rgba(176,104,104,.55);
  --sc-radius-card:15px;
  --sc-panel-w:412px;
  --sc-ease:cubic-bezier(.33,1,.68,1);
  --sc-font-head:'Playfair Display',Georgia,'Times New Roman',serif;
  --sc-font-body:'Jost',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
}

.gd-sc,.gd-sc *{box-sizing:border-box}
html.gd-sc-locked,html.gd-sc-locked body{overflow:hidden!important}

/* ======================================================================
   MENÜ / TRIGGER IKON  (a shortcode ezt teszi ki)
   Öröklődő színnel (currentColor), így bármelyik menübe belesimul.
   ====================================================================== */
.gd-sc-toggle{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;margin:0;color:inherit;background:none;border:0;cursor:pointer;line-height:0;-webkit-tap-highlight-color:transparent;transition:color .2s}
.gd-sc-toggle:hover{color:var(--sc-accent)}
.gd-sc-toggle svg{width:26px;height:26px;display:block;fill:currentColor;pointer-events:none}
.gd-sc-badge{position:absolute;top:0;right:0;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--sc-accent);color:#fff;font-family:var(--sc-font-body);font-size:11px;font-weight:600;display:grid;place-items:center;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 2px 6px rgba(150,90,90,.35);pointer-events:none}
.gd-sc-badge.is-zero{display:none}
.gd-sc-badge.pulse{animation:gd-sc-pulse .5s var(--sc-ease)}
@keyframes gd-sc-pulse{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}

/* ======================================================================
   SIDECART  (pontosan a demó szerinti megjelenés)
   ====================================================================== */
.gd-sc-overlay{position:fixed;inset:0;z-index:99998;background:rgba(66,46,46,.36);opacity:0;visibility:hidden;transition:opacity .5s cubic-bezier(.22,1,.36,1),visibility .5s}
.gd-sc.is-open .gd-sc-overlay{opacity:1;visibility:visible}

/* Floating frosted-glass panel: 70% tall, vertically centered, 20px inset */
.gd-sc-panel{
  position:fixed;top:50%;right:20px;z-index:99999;
  width:var(--sc-panel-w);max-width:calc(100vw - 40px);
  height:80vh;max-height:calc(100vh - 40px);
  background:rgba(255,252,251,.75);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
  border:1px solid rgba(255,255,255,.55);
  border-radius:24px;
  box-shadow:var(--sc-shadow);
  display:flex;flex-direction:column;overflow:hidden;
  transform:translate(calc(100% + 30px),-50%);
  transition:transform .58s cubic-bezier(.22,1,.36,1);
  will-change:transform;
}
.gd-sc.is-open .gd-sc-panel{transform:translate(0,-50%)}
@media(max-width:480px){
  /* Mobil: egyenlő 10px eltartás minden oldalon */
  .gd-sc-panel{top:10px;right:10px;bottom:10px;left:10px;width:auto;height:auto;max-width:none;max-height:none;border-radius:18px;transform:translateX(calc(100% + 20px))}
  .gd-sc.is-open .gd-sc-panel{transform:translateX(0)}
}

.gd-sc-head{display:flex;align-items:flex-start;justify-content:space-between;padding:20px 20px 0px;flex:0 0 auto}
.gd-sc-title{font-family:var(--sc-font-head);font-weight:600;font-size:26px;color:var(--sc-heading);margin:0;line-height:1}
.gd-sc-count{font-size:12px;color:var(--sc-muted);margin:0;letter-spacing:.2px}
.gd-sc-close{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;color:var(--sc-heading);transition:background .2s,transform .25s;flex:0 0 auto;margin:-4px -4px 0 0;border:0;background:none;cursor:pointer}
.gd-sc-close:hover{background:var(--sc-accent-softer);transform:rotate(90deg)}
.gd-sc-close svg{width:19px;height:19px}

.gd-sc-body{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:4px 20px 8px;scrollbar-width:thin;scrollbar-color:var(--sc-track) transparent;min-height:0}
.gd-sc-body::-webkit-scrollbar{width:7px}
.gd-sc-body::-webkit-scrollbar-thumb{background:var(--sc-track);border-radius:10px}

.gd-sc-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}

/* Item card */
.gd-sc-item{position:relative;display:flex;gap:14px;padding:13px;border:1px solid var(--sc-border);border-radius:var(--sc-radius-card);background:rgba(255,255,255,.55);animation:sc-in .45s var(--sc-ease) both;overflow:hidden}
.gd-sc-item.is-removing{animation:sc-out .32s var(--sc-ease) forwards}
.gd-sc-item.is-loading{opacity:.6;pointer-events:none}
@keyframes sc-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes sc-out{to{opacity:0;transform:translateX(30px);max-height:0;padding-top:0;padding-bottom:0;margin-bottom:-12px;border-width:0}}

.gd-sc-thumb{flex:0 0 84px;width:84px;height:96px;border-radius:12px;overflow:hidden;background:var(--sc-accent-softer);display:block}
.gd-sc-thumb svg,.gd-sc-thumb img{width:100%;height:100%;object-fit:cover;display:block}

.gd-sc-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center}
.gd-sc-name{font-family:var(--sc-font-head);font-weight:600;font-size:14px;color:var(--sc-heading);margin:0;line-height:1.15;padding-right:26px;display:block}
a.gd-sc-name:hover{color:var(--sc-accent)}
.gd-sc-price{font-size:12px;color:#5E5550;font-weight:500;margin:0 0 5px;letter-spacing:.2px}

/* Remove = X in the top-right corner, rotates on hover */
.gd-sc-remove{position:absolute;top:8px;right:8px;width:27px;height:27px;border-radius:8px;display:grid;place-items:center;color:var(--sc-muted);transition:transform .25s var(--sc-ease),color .2s,background .2s;z-index:2;border:0;background:none;cursor:pointer}
.gd-sc-remove:hover{color:var(--sc-accent);background:var(--sc-accent-softer);transform:rotate(90deg)}
.gd-sc-remove svg{width:14px;height:14px}

/* Qty stepper */
.gd-sc-qty{display:inline-flex;align-items:center;border:1px solid var(--sc-line);border-radius:7px;overflow:hidden;width:fit-content;background:rgba(255,255,255,.5)}
.gd-sc-qty .gd-sc-qty-btn{width:25px;height:25px;display:grid;place-items:center;color:var(--sc-accent-strong);font-size:14px;line-height:1;transition:background .18s,color .18s;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.gd-sc-qty .gd-sc-qty-btn:hover{background:var(--sc-accent-soft)}
.gd-sc-qty .gd-sc-qty-btn.is-disabled{color:#d8cdc8;cursor:default;pointer-events:none}
.gd-sc-qty-val{min-width:30px;height:25px;display:grid;place-items:center;font-size:12px;color:var(--sc-heading);border-left:1px solid var(--sc-line);border-right:1px solid var(--sc-line);font-weight:500;font-variant-numeric:tabular-nums}

/* Footer */
.gd-sc-foot{flex:0 0 auto;padding:10px 20px 10px;border-top:1px solid var(--sc-line);background:transparent}
.gd-sc.is-empty .gd-sc-foot{display:none}
.gd-sc-subtotal{padding:10px;background:#F6EEE9;border-radius:10px;box-shadow:0 1px 2px rgba(0,0,0,.2);margin-top:10px;margin-bottom:15px}
.gd-sc-subtotal-row{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--sc-heading);font-weight:500}
.gd-sc-subtotal-val{color:#D98D84;font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}

.gd-sc-ship{margin-bottom:5px}
.gd-sc-ship:empty{display:none}
.gd-sc-ship-row{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--sc-muted-strong);margin-bottom:9px}
.gd-sc-ship-row svg{width:20px;height:20px;color:var(--sc-accent);flex:0 0 auto}
.gd-sc-ship-row b{color:var(--sc-accent-strong);font-weight:600}
.gd-sc-progress{height:7px;border-radius:20px;background:var(--sc-track);overflow:hidden}
.gd-sc-progress-bar{height:100%;border-radius:20px;background:linear-gradient(90deg,#d59a9a,var(--sc-accent-strong));width:0;transition:width .5s var(--sc-ease)}

.gd-sc-ship-note,.gd-sc-card-note{font-size:12px;color:var(--sc-muted-strong);line-height:1.4}
.gd-sc-ship-note{margin:5px 0 0;text-align:left}
.gd-sc-card-note{margin:10px 0 0;text-align:center}

.gd-sc-btn{display:block;width:100%;text-align:center;border-radius:12px;padding:14px;font-size:14.5px;font-weight:500;letter-spacing:.4px;transition:background .2s,color .2s,transform .12s,box-shadow .2s}
/* Kosár + Pénztár gombok: fix 10px felső/alsó padding (téma-felülírás ellen) */
.gd-sc-foot .gd-sc-btn{padding-top:10px!important;padding-bottom:10px!important}
.gd-sc-btn--primary{background:var(--sc-accent);color:#fff!important;box-shadow:0 10px 22px -10px rgba(176,104,104,.7);margin-bottom:5px}
.gd-sc-btn--primary:hover{background:var(--sc-accent-hover);color:#fff!important;box-shadow:0 14px 26px -10px rgba(176,104,104,.8)}
.gd-sc-btn--primary:active{transform:scale(.985)}
.gd-sc-btn--ghost{background:rgba(255,255,255,.35);color:var(--sc-accent-strong);border:1.4px solid var(--sc-accent)}
.gd-sc-btn--ghost:hover{background:var(--sc-accent-softer);color:var(--sc-accent-strong)}

/* Empty state */
.gd-sc-empty{display:none;flex-direction:column;align-items:center;text-align:center;padding:40px 24px}
.gd-sc.is-empty .gd-sc-empty{display:flex}
.gd-sc.is-empty .gd-sc-items{display:none}
.gd-sc-empty svg{width:52px;height:52px;color:var(--sc-track);margin-bottom:16px}
.gd-sc-empty h3{font-family:var(--sc-font-head);font-size:21px;color:var(--sc-heading);margin:0 0 6px;font-weight:600}
.gd-sc-empty p{font-size:14px;color:var(--sc-muted);margin:0 0 20px}

/* ======================================================================
   FLOATING GOMB (FAB) — a forrás szerinti lebegő kosárgomb, jobb-alul.
   role="button" span, hogy az Elementor button-stílusai ne fogják meg.
   ====================================================================== */
.gd-sc-fab{position:fixed;right:26px;bottom:26px;z-index:99997;width:62px;height:62px;border-radius:20px;background:var(--sc-accent);color:#fff;display:grid;place-items:center;box-shadow:var(--sc-fab-shadow);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .25s var(--sc-ease),background .2s}
.gd-sc-fab:hover{background:var(--sc-accent-hover);transform:translateY(-3px)}
.gd-sc-fab:active{transform:scale(.94)}
.gd-sc-fab.is-hidden{opacity:0;visibility:hidden;transform:scale(.6);pointer-events:none;transition:opacity .3s var(--sc-ease),transform .3s var(--sc-ease),visibility .3s}
.gd-sc-fab svg{width:27px;height:27px;fill:currentColor;pointer-events:none}
/* A FAB badge felülírja a menü-badge alap színeit/méretét (fehér alap, accent szám) */
.gd-sc-fab-badge{top:-6px;right:-6px;min-width:24px;height:24px;padding:0 6px;border-radius:12px;background:#fff;color:var(--sc-accent-strong);font-size:12px;box-shadow:0 3px 8px rgba(150,90,90,.35)}
@media(max-width:480px){.gd-sc-fab{right:18px;bottom:18px;width:56px;height:56px}}

/* Hozzáadás folyamatban (kattintott gomb) — dupla submit ellen */
.gd-sc-adding{opacity:.7;pointer-events:none}

@media(prefers-reduced-motion:reduce){
  .gd-sc *,.gd-sc-toggle{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
.gd-sc :focus-visible,.gd-sc-toggle:focus-visible{outline:2px solid var(--sc-accent);outline-offset:2px}
