/* DUXA SHOP — decorative layer: botanical pattern, dividers, corner florals, polls + time wheels */
:root {
  --orn-sage: #75a391;
  --orn-deep: #305a4c;
  --orn-blush: #e9c8c0;
  --orn-sand: #efe2ce;
  --orn-leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180' fill='none' stroke='%2375a391' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M22 150c4-32 18-58 44-76M66 74c-14 0-24-8-26-22 14 0 24 8 26 22zM44 112c-12 2-22-4-27-16 13-3 24 3 27 16zM58 92c12-6 24-3 32 8-12 6-24 3-32-8z' opacity='.5'/%3E%3Cpath d='M130 40c-2 20-12 36-30 46M100 86c10 2 20-2 24-12-10-4-20 0-24 12zM116 60c-9-5-12-15-8-25 9 5 12 15 8 25z' opacity='.4'/%3E%3Ccircle cx='150' cy='132' r='3' opacity='.5'/%3E%3Ccircle cx='158' cy='122' r='2' opacity='.35'/%3E%3Cpath d='M146 150c6-10 16-14 26-12-4 10-14 14-26 12z' opacity='.4'/%3E%3C/svg%3E");
  --orn-flower: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23c98f86' stroke-width='1.3' stroke-linecap='round'%3E%3Cg opacity='.55'%3E%3Cpath d='M60 60c-6-14-4-26 0-36 6 10 6 22 0 36zM60 60c12-8 24-9 34-4-7 9-19 12-34 4zM60 60c8 12 8 24 3 34-9-6-12-18-3-34zM60 60c-12 8-24 9-34 4 7-9 19-12 34-4zM60 60c-8-12-8-24-3-34 9 6 12 18 3 34z'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

/* soft botanical wallpaper behind everything */
body { position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--orn-leaf); background-size: 220px 220px; opacity: .6;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%);
          mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 60%, rgba(0,0,0,.25) 100%);
}

/* ornamental divider between big sections */
.popular-gift, .catalog-section, .finder-section, .how-section, .shop-community, .studio-strip { position: relative; }
.catalog-section::before, .finder-section::before, .how-section::before, .shop-community::before {
  content: "❦  ✦  ❦"; display: block; text-align: center; letter-spacing: .6em;
  color: var(--orn-sage); font-size: 1rem; opacity: .75; padding: 18px 0 2px;
  background: linear-gradient(90deg, transparent 0, transparent 20%, rgba(117,163,145,.0) 20%);
}
.catalog-section::after, .finder-section::after, .how-section::after, .shop-community::after {
  content: ""; position: absolute; top: 30px; left: 50%; width: min(520px, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(117,163,145,.5), transparent); pointer-events: none;
}

/* corner florals on dark sections */
.hero, .workshop-section, .last-section { position: relative; overflow: hidden; }
.hero::after, .workshop-section::after, .last-section::after {
  content: ""; position: absolute; right: -34px; bottom: -34px; width: 220px; height: 220px; pointer-events: none;
  background: var(--orn-flower) center/contain no-repeat; opacity: .5; transform: rotate(12deg);
}
.hero::before, .workshop-section::before, .last-section::before {
  content: ""; position: absolute; left: -40px; top: -40px; width: 200px; height: 200px; pointer-events: none;
  background: var(--orn-flower) center/contain no-repeat; opacity: .35; transform: rotate(-24deg) scaleX(-1);
}

/* gentle card polish */
.catalog-section article, .catalog-section .gift-card, .popular-gift article, .shop-community article {
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 14px 34px rgba(99,132,118,.12);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.catalog-section article:hover, .catalog-section .gift-card:hover, .popular-gift article:hover, .shop-community article:hover {
  transform: translateY(-4px) rotate(-.3deg); box-shadow: 0 22px 44px rgba(99,132,118,.2);
}
.site-footer { background-image: var(--orn-leaf); background-size: 200px; background-blend-mode: soft-light; }
@media (prefers-reduced-motion: reduce) {
  .catalog-section article:hover, .catalog-section .gift-card:hover, .popular-gift article:hover, .shop-community article:hover { transform: none; }
}
@media (max-width: 640px) {
  .hero::after, .workshop-section::after, .last-section::after { width: 140px; height: 140px; }
  .hero::before, .workshop-section::before, .last-section::before { width: 120px; height: 120px; }
}

/* ---------- polls + time wheel ---------- */
.gp-builder { margin: 14px 0; padding: 12px 14px; border: 1px dashed var(--orn-sage); border-radius: 16px; background: rgba(255,255,255,.55); }
.gp-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; color: var(--orn-deep); }
.gp-toggle input { width: 18px; height: 18px; accent-color: var(--orn-sage); }
.gp-toggle2 { margin-top: 12px; }
.gp-body { margin-top: 12px; display: grid; gap: 10px; }
.gp-h, .gp-sub { margin: 0; color: var(--orn-deep); }
.gp-input { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid #c9d8d0; border-radius: 12px; font: inherit; background: #fff; color: #293c38; }
.gp-input:focus { outline: 2px solid var(--orn-sage); outline-offset: 1px; }
.gp-opts { display: grid; gap: 8px; }
.gp-optrow { display: flex; align-items: center; gap: 8px; }
.gp-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orn-sage); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.gp-x { flex: none; border: 0; background: #f3e4df; color: #8a4b40; border-radius: 10px; width: 34px; height: 34px; cursor: pointer; }
.gp-add, .gp-btn { border: 1px solid var(--orn-sage); background: #fff; color: var(--orn-deep); border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; transition: background .2s, color .2s; }
.gp-add:hover, .gp-btn:hover { background: var(--orn-sage); color: #fff; }
.gp-send { background: var(--orn-deep); color: #fff; border-color: var(--orn-deep); padding: 12px 22px; }
.gp-send:disabled { opacity: .6; }
.gp-hint { margin: 0; font-size: .85rem; color: #6f7975; }
.gp-timebox { display: grid; gap: 10px; }
.gp-range { display: flex; gap: 14px; flex-wrap: wrap; }
.gp-rangeitem small { display: block; margin-bottom: 4px; color: #6f7975; }

.gift-poll { margin: 22px auto; max-width: 460px; padding: 22px 20px; border-radius: 22px; background: rgba(255,252,247,.92); border: 1px solid #dbe5de; box-shadow: 0 16px 40px rgba(60,90,76,.15); position: relative; display: grid; gap: 12px; color: #293c38; }
.gift-poll::before { content: ""; position: absolute; top: -18px; right: -14px; width: 74px; height: 74px; background: var(--orn-flower) center/contain no-repeat; opacity: .8; pointer-events: none; }
.gp-title { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.gp-status { margin: 0; min-height: 1.2em; font-size: .9rem; color: var(--orn-deep); }
.gp-choices { display: grid; gap: 8px; }
.gp-choice { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid #cfdcd5; background: #fff; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .15s; color: inherit; }
.gp-choice:hover { transform: translateX(2px); border-color: var(--orn-sage); }
.gp-choice.on { background: #e5f0ea; border-color: var(--orn-deep); font-weight: 700; }
.gp-choice.on::before { content: "✓ "; color: var(--orn-deep); }
.gp-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #eef3ef; overflow: hidden; margin-bottom: 6px; }
.gp-bar i { position: absolute; inset: 0 auto 0 0; background: rgba(117,163,145,.4); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.gp-bar span, .gp-bar b { position: relative; }
.gp-total, .gp-popular { margin: 4px 0 0; font-size: .88rem; color: #5b6a64; }
.gp-voters { margin: 8px 0 0; padding-left: 18px; font-size: .92rem; }

/* wheel clock */
.gp-clock { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; width: 190px; margin: 4px auto; padding: 0 12px; border-radius: 18px; background: linear-gradient(#f3f6f2, #fff 30%, #fff 70%, #f3f6f2); border: 1px solid #cfdcd5; box-shadow: inset 0 6px 10px -8px rgba(0,0,0,.25), inset 0 -6px 10px -8px rgba(0,0,0,.25); }
.gp-wheel { position: relative; z-index: 1; width: 70px; height: 120px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; text-align: center; touch-action: pan-y; cursor: grab; outline: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent); }
.gp-wheel::-webkit-scrollbar { display: none; }
.gp-wheel:focus-visible { box-shadow: 0 0 0 2px var(--orn-sage); border-radius: 10px; }
.gp-pad { height: 40px; }
.gp-item { height: 40px; line-height: 40px; scroll-snap-align: center; font-size: 1.35rem; color: #a3b3ab; transition: color .15s, transform .15s; user-select: none; }
.gp-item.on { color: var(--orn-deep); font-weight: 700; transform: scale(1.15); }
.gp-colon { position: relative; z-index: 1; font-size: 1.5rem; font-weight: 700; color: var(--orn-deep); }
.gp-band { position: absolute; left: 8px; right: 8px; top: 40px; height: 40px; border-radius: 12px; background: rgba(117,163,145,.16); border: 1px solid rgba(117,163,145,.4); pointer-events: none; z-index: 0; }
.gp-readout { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: .85rem; color: #5b6a64; display: none; }
.gp-timebox .gp-clock, .gp-rangeitem .gp-clock { margin: 4px 0 6px; }

/* specificity fixes inside the publish dialog */
.gp-builder .gp-toggle { display: flex !important; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; width: auto; }
.gp-builder .gp-toggle input[type="checkbox"] { flex: none; width: 20px !important; height: 20px !important; min-width: 20px; margin: 0; padding: 0; appearance: auto; -webkit-appearance: checkbox; }
.gp-builder .gp-toggle span { flex: 1; text-align: left; }
.gp-builder .gp-input { width: 100%; }
.gp-builder .gp-optrow .gp-input { flex: 1; width: auto; }

/* ---- stronger ornaments (v4) ---- */
body::before { opacity: 1; background-size: 200px 200px; -webkit-mask-image: none; mask-image: none; filter: saturate(1.6) contrast(1.2); }
.popular-gift, .catalog-section, .finder-section, .how-section, .shop-community, .studio-strip {
  background-image: var(--orn-leaf), var(--orn-flower); background-repeat: repeat, repeat;
  background-size: 170px 170px, 260px 260px; background-position: 0 0, 90px 120px;
}
.catalog-section::before, .finder-section::before, .how-section::before, .shop-community::before {
  font-size: 1.6rem; opacity: 1; color: #5a8774; padding: 26px 0 6px; text-shadow: 0 0 14px rgba(255,255,255,.9);
}
.catalog-section::after, .finder-section::after, .how-section::after, .shop-community::after { top: 50px; height: 2px; background: linear-gradient(90deg, transparent, #75a391, #c98f86, #75a391, transparent); }
.hero::after, .workshop-section::after, .last-section::after { width: 340px; height: 340px; opacity: .9; right: -60px; bottom: -60px; }
.hero::before, .workshop-section::before, .last-section::before { width: 300px; height: 300px; opacity: .75; left: -70px; top: -70px; }
.site-footer { background-size: 150px; background-blend-mode: normal; }
.site-header { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, transparent, #75a391, #c98f86, #75a391, transparent) 1; }
@media (max-width: 640px) {
  .hero::after, .workshop-section::after, .last-section::after { width: 220px; height: 220px; }
  .hero::before, .workshop-section::before, .last-section::before { width: 190px; height: 190px; }
}
