/* Le Chicche Shop - stile condiviso da tutte le pagine */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; src: url(font/instrument-serif-italic.woff) format("woff"); }
  @font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; src: url(font/poppins-400.woff) format("woff"); }
  @font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; src: url(font/poppins-500.woff) format("woff"); }
  @font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; src: url(font/poppins-700.woff) format("woff"); }

  :root {
    --violet-900: #2e1a4f;
    --violet-700: #5b2fa8;
    --violet-500: #8b5cf6;
    --violet-200: #e4d8fb;
    --violet-100: #f3eefe;
    --pink-600: #c2185b;
    --pink-400: #ec6fa6;
    --pink-100: #fde7f1;
    --bg: #fbf8ff;
    --card: #ffffff;
    --text: #2a1d40;
    --text-soft: #5c4d75;
    --line: #e7dff5;
    --shadow: 0 10px 30px rgba(91, 47, 168, 0.10);
    --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; }
  button, input, textarea { font-family: inherit; font-size: 1rem; }
  a { color: inherit; }
  h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 400; color: var(--violet-900); font-synthesis: none; letter-spacing: 0.2px; text-wrap: balance; }

  /* HEADER */
  header { background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .header-inner { max-width: 1140px; margin: 0 auto; padding: 4px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .logo-link { display: block; line-height: 0; }
  .logo-link img { height: 48px; width: auto; display: block; }
  .cart-btn { background: var(--violet-700); color: #fff; border: none; padding: 7px 15px; border-radius: 999px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; }
  .cart-btn:hover { background: var(--violet-900); }
  .cart-count { background: var(--pink-400); color: #fff; border-radius: 999px; min-width: 22px; padding: 1px 7px; font-size: 0.8rem; text-align: center; }

  /* HERO */
  .hero { background: radial-gradient(circle at 15% 20%, var(--pink-100) 0, transparent 40%), radial-gradient(circle at 85% 80%, var(--violet-200) 0, transparent 45%), var(--violet-100); padding: 72px 18px 78px; text-align: center; }
  .eyebrow { display: inline-block; background: #fff; color: var(--pink-600); font-size: 0.75rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
  .hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.3rem); max-width: 720px; margin: 0 auto 14px; line-height: 1.05; }
  .hero p { color: var(--text-soft); font-size: 1.02rem; max-width: 520px; margin: 0 auto 26px; }
  .hero-cta { display: inline-block; text-decoration: none; background: linear-gradient(90deg, var(--violet-700), var(--pink-600)); color: #fff; border: none; padding: 14px 32px; border-radius: 999px; font-weight: 500; box-shadow: 0 8px 20px rgba(194, 24, 91, 0.25); }

  .info-strip { max-width: 1140px; margin: -26px auto 0; padding: 0 18px; position: relative; }
  .info-box { background: var(--card); border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 0.9rem; font-weight: 500; text-align: center; text-decoration: none; color: var(--text); }
  .info-link { color: var(--pink-600); font-weight: 700; white-space: nowrap; }
  a.info-box:hover .info-link { text-decoration: underline; }

  main, .container { max-width: 1140px; margin: 0 auto; padding: 56px 18px 30px; }
  section[id] { scroll-margin-top: 100px; }
  .section-head { text-align: center; margin-bottom: 26px; }
  .section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3rem); line-height: 1.1; margin-bottom: 6px; }
  .section-head p { color: var(--text-soft); }

  .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0 0 26px; }
  .step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
  .step-num { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--violet-700), var(--pink-600)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
  .step h3 { font-size: 1.5rem; margin-bottom: 4px; line-height: 1.15; }
  .step p { font-size: 0.88rem; color: var(--text-soft); }

  .filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
  .filter-btn { text-decoration: none; background: #fff; border: 1.5px solid var(--violet-200); padding: 8px 18px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; color: var(--violet-700); }
  .filter-btn:hover { border-color: var(--violet-500); }
  .filter-btn.active { background: var(--violet-700); border-color: var(--violet-700); color: #fff; }

  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
  .product { background: var(--card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; }
  .product-img { display: flex; background: linear-gradient(135deg, var(--violet-200), var(--pink-100)); aspect-ratio: 1 / 1; align-items: center; justify-content: center; color: var(--violet-700); font-size: 0.82rem; font-weight: 500; text-decoration: none; overflow: hidden; }
  .product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .product-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
  .product-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--pink-600); font-weight: 700; text-decoration: none; }
  .product-name { font-size: 1.45rem; line-height: 1.15; margin: 4px 0 6px; }
  .product-name a { text-decoration: none; color: inherit; }
  .product-name a:hover { color: var(--violet-700); }
  .product-desc { font-size: 0.86rem; color: var(--text-soft); margin-bottom: 14px; flex: 1; }
  .product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 8px; }
  .price { font-weight: 700; font-size: 1.1rem; color: var(--violet-900); }
  .add-btn { background: var(--pink-600); color: #fff; border: none; padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 0.86rem; cursor: pointer; }
  .add-btn:hover { background: #a3134b; }

  /* PAGINA PRODOTTO */
  .container { padding-top: 34px; padding-bottom: 60px; }
  .crumbs { font-size: 0.82rem; color: var(--text-soft); margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
  .crumbs a { color: var(--violet-700); font-weight: 500; text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; margin-bottom: 56px; }
  .pdp-img { background: linear-gradient(135deg, var(--violet-200), var(--pink-100)); border-radius: 22px; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; color: var(--violet-700); font-weight: 500; overflow: hidden; border: 1px solid var(--line); }
  .pdp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .pdp-info h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: 6px 0 10px; }
  .pdp-price { font-weight: 700; font-size: 1.7rem; color: var(--violet-900); margin-bottom: 14px; }
  .pdp-desc { color: var(--text-soft); margin-bottom: 18px; }
  .ingr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.88rem; color: var(--text-soft); }
  .ingr summary { cursor: pointer; font-weight: 700; color: var(--violet-900); }
  .ingr p { margin-top: 8px; }
  .pdp-add { width: 100%; background: linear-gradient(90deg, var(--violet-700), var(--pink-600)); color: #fff; border: none; padding: 15px; border-radius: 999px; font-weight: 500; cursor: pointer; }
  .pdp-note { font-size: 0.82rem; color: var(--text-soft); margin-top: 10px; text-align: center; }
  .related-title { font-size: 2rem; margin-bottom: 18px; }

  /* PAGINE LEGALI */
  .legal-page { max-width: 860px; }
  .back-link { display: inline-block; color: var(--violet-700); font-weight: 500; text-decoration: none; margin-bottom: 16px; font-size: 0.9rem; }
  .legal-page h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); line-height: 1.05; margin-bottom: 6px; }
  .legal-page .updated { color: var(--text-soft); font-size: 0.85rem; margin-bottom: 26px; }
  .legal-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 14px; box-shadow: var(--shadow); }
  .legal-page h2 { font-size: 1.7rem; line-height: 1.15; margin: 24px 0 8px; }
  .legal-page h2:first-child { margin-top: 0; }
  .legal-page p, .legal-page li { font-size: 0.92rem; color: var(--text-soft); margin-bottom: 10px; }
  .legal-page ul { padding-left: 22px; margin-bottom: 10px; }
  .legal-page a { color: var(--violet-700); font-weight: 500; }
  .legal-page .box { background: var(--violet-100); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }

  /* CARRELLO */
  .overlay { position: fixed; inset: 0; background: rgba(46, 26, 79, 0.35); display: none; z-index: 20; }
  .overlay.open { display: block; }
  .drawer { position: fixed; top: 0; right: -100%; width: min(440px, 100%); height: 100%; background: var(--bg); z-index: 30; display: flex; flex-direction: column; transition: right 0.3s ease; box-shadow: none; }
  .drawer.open { right: 0; box-shadow: -10px 0 30px rgba(46, 26, 79, 0.15); }
  .drawer-header { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: #fff; }
  .drawer-header h2 { font-size: 1.9rem; line-height: 1; }
  .close-btn { background: var(--violet-100); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; color: var(--violet-900); line-height: 1; }
  .view { display: none; flex: 1; flex-direction: column; min-height: 0; }
  .view.show { display: flex; }
  .drawer-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
  .empty { text-align: center; color: var(--text-soft); margin-top: 50px; font-weight: 500; }
  .cart-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
  .cart-thumb { width: 52px; height: 52px; background: linear-gradient(135deg, var(--violet-200), var(--pink-100)); border-radius: 10px; flex-shrink: 0; overflow: hidden; }
  .cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cart-info { flex: 1; }
  .cart-name { font-weight: 500; font-size: 0.9rem; text-decoration: none; display: block; }
  .cart-name:hover { color: var(--violet-700); }
  .cart-price { font-size: 0.82rem; color: var(--text-soft); }
  .qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
  .qty span { font-weight: 700; min-width: 16px; text-align: center; }
  .qty button.step-btn { width: 28px; height: 28px; border: 1.5px solid var(--violet-200); background: #fff; border-radius: 50%; cursor: pointer; color: var(--violet-700); font-weight: 700; }
  .remove-btn { background: none; border: none; color: var(--pink-600); cursor: pointer; font-size: 0.8rem; font-weight: 500; margin-left: 6px; }
  .cart-line-total { font-weight: 700; color: var(--violet-900); }
  .drawer-footer { padding: 16px 20px; background: #fff; border-top: 1px solid var(--line); }
  .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; color: var(--violet-900); margin-bottom: 4px; }
  .tax-note { font-size: 0.8rem; color: var(--text-soft); margin-bottom: 12px; }
  .min-note { font-size: 0.84rem; background: var(--pink-100); color: var(--pink-600); font-weight: 500; padding: 9px 12px; border-radius: 10px; margin-bottom: 12px; display: none; }
  .min-note.show { display: block; }
  .main-btn { width: 100%; background: linear-gradient(90deg, var(--violet-700), var(--pink-600)); color: #fff; border: none; padding: 15px; border-radius: 999px; font-weight: 500; cursor: pointer; }
  .main-btn:disabled { background: #cfc6e0; color: #6b5d82; cursor: not-allowed; }
  .link-btn { background: none; border: none; color: var(--violet-700); font-weight: 500; cursor: pointer; padding: 10px 0 0; }

  form#orderForm { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
  .field { margin-bottom: 12px; }
  .field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--violet-900); margin-bottom: 4px; }
  .field input, .field textarea { width: 100%; border: 1.5px solid var(--violet-200); border-radius: 12px; padding: 11px 12px; background: #fff; color: var(--text); }
  .field input:focus, .field textarea:focus { outline: none; border-color: var(--violet-500); }
  .row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
  .check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; color: var(--text-soft); margin: 14px 0; }
  .check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; }
  .check a { color: var(--violet-700); font-weight: 500; }
  .form-total { background: var(--violet-100); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 0.88rem; }
  .form-total strong { color: var(--violet-900); }
  .form-total a { color: var(--violet-700); font-weight: 500; }
  .error { background: var(--pink-100); color: var(--pink-600); font-weight: 500; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: none; font-size: 0.88rem; }
  .error.show { display: block; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  .done { padding: 40px 24px; text-align: center; }
  .done h3 { font-size: 2rem; line-height: 1.1; margin-bottom: 10px; }
  .done p { color: var(--text-soft); margin-bottom: 12px; font-size: 0.92rem; }
  .order-no { display: inline-block; background: var(--violet-100); color: var(--violet-900); font-weight: 700; padding: 8px 16px; border-radius: 999px; margin-bottom: 16px; }

  .toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--violet-900); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 500; opacity: 0; pointer-events: none; transition: all 0.25s ease; z-index: 40; }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }

  footer { background: var(--violet-900); color: #efe8ff; text-align: center; padding: 36px 18px; font-size: 0.88rem; }
  footer p + p { margin-top: 10px; }
  footer a { color: #fff; font-weight: 500; text-decoration: none; }
  footer a:hover { text-decoration: underline; }

  @media (max-width: 720px) {
    .header-inner { padding: 3px 14px; }
    .logo-link img { height: 44px; }
    .pdp { grid-template-columns: 1fr; gap: 20px; }
    .legal-card { padding: 20px 18px 10px; }
  }
  a.cart-btn { text-decoration: none; }
  .static-footer-gap { height: 20px; }
