.product-selection{
  min-height:100vh;
  background:
    radial-gradient(circle at 15% 8%,rgba(23,209,198,.20),transparent 34%),
    radial-gradient(circle at 88% 88%,rgba(23,209,198,.14),transparent 38%),
    linear-gradient(180deg,#f7fbfb 0%,#edf7f6 100%);
  color:#072f33;
}

.product-selection__main{
  width:min(100%,430px);
  margin:0 auto;
  min-height:100vh;
  padding:28px 20px 128px;
}

.product-selection__header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:24px;
}

.product-selection__back{
  width:56px;
  height:56px;
  border:0;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  color:#083236;
  font-size:34px;
  font-weight:800;
  box-shadow:0 16px 36px rgba(6,43,47,.10);
}

.product-selection__header strong{
  display:block;
  font-size:24px;
  line-height:1.05;
  letter-spacing:-.03em;
}

.product-selection__header small{
  display:block;
  margin-top:5px;
  color:rgba(7,47,51,.58);
  font-size:14px;
  font-weight:700;
}

.product-selection__hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:26px;
  border-radius:32px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 16%,rgba(255,255,255,.24),transparent 28%),
    linear-gradient(135deg,#18d6cb 0%,#083236 88%);
  box-shadow:0 28px 70px rgba(8,50,54,.24);
  overflow:hidden;
}

.product-selection__hero p{
  margin:0;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.10em;
  opacity:.88;
}

.product-selection__hero h1{
  margin:8px 0 8px;
  font-size:38px;
  line-height:.92;
  letter-spacing:-.055em;
}

.product-selection__hero small{
  display:block;
  max-width:230px;
  color:rgba(255,255,255,.82);
  font-size:15px;
  font-weight:650;
  line-height:1.38;
}

.product-selection__hero-art{
  flex:0 0 82px;
  width:82px;
  height:82px;
  border-radius:28px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.18);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.20);
  font-size:40px;
}

.product-selection__search{
  display:flex;
  align-items:center;
  gap:14px;
  margin:24px 0 16px;
  padding:0 18px;
  height:62px;
  border-radius:24px;
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 34px rgba(6,43,47,.08);
}

.product-selection__search span{
  font-size:24px;
  color:#18bfb6;
  font-weight:900;
}

.product-selection__search input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#072f33;
  font-size:17px;
  font-weight:750;
}

.product-selection__search input::placeholder{
  color:rgba(7,47,51,.42);
}

.product-selection__chips{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:2px 2px 14px;
  margin-bottom:10px;
  -webkit-overflow-scrolling:touch;
}

.product-selection__chips::-webkit-scrollbar{
  display:none;
}

.product-selection__chips button{
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  padding:13px 17px;
  background:rgba(255,255,255,.92);
  color:#36575a;
  font-size:14px;
  font-weight:850;
  box-shadow:0 10px 24px rgba(6,43,47,.06);
}

.product-selection__chips button.is-active{
  background:#083236;
  color:#fff;
  box-shadow:0 16px 34px rgba(8,50,54,.20);
}

.product-selection__category{
  display:block;
  margin:0 0 18px;
}

.product-selection__category > span{
  display:block;
  margin:0 0 8px 4px;
  color:#36575a;
  font-size:13px;
  font-weight:850;
}

.product-selection__category select{
  width:100%;
  min-height:58px;
  padding:0 46px 0 18px;
  border:1px solid rgba(8,50,54,.10);
  border-radius:20px;
  background:#fff;
  color:#072f33;
  font:inherit;
  font-size:15px;
  font-weight:750;
  box-shadow:0 12px 28px rgba(6,43,47,.07);
  text-overflow:ellipsis;
}

.product-selection__category select:focus-visible{
  outline:3px solid rgba(24,214,203,.34);
  outline-offset:2px;
}
.product-selection__list{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:8px;
}

.product-selection__card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px;
  border-radius:28px;
  background:rgba(255,255,255,.94);
  box-shadow:0 14px 34px rgba(6,43,47,.08);
  transition:all .22s ease;
}

.product-selection__card.is-selected{
  border:2px solid #18d6cb;
  transform:translateY(-2px);
  box-shadow:0 20px 46px rgba(24,214,203,.18);
}

.product-selection__card:hover{
  transform:translateY(-2px);
}

.product-selection__card-icon{
  flex:0 0 64px;
  width:64px;
  height:64px;
  border-radius:22px;
  display:grid;
  place-items:center;
  font-size:30px;
  background:linear-gradient(135deg,#18d6cb,#0a4348);
  color:#fff;
}

.product-selection__card-content{
  flex:1;
  min-width:0;
}

.product-selection__card-content p{
  margin:0 0 4px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#18bfb6;
}

.product-selection__card-content h2{
  margin:0;
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  color:#072f33;
}

.product-selection__card-content small{
  display:block;
  margin-top:6px;
  color:#6f888b;
  font-size:14px;
  line-height:1.4;
}

.product-selection__add{
  flex:0 0 54px;
  width:54px;
  height:54px;
  border:0;
  border-radius:18px;
  background:#18d6cb;
  color:#fff;
  font-size:28px;
  font-weight:800;
  box-shadow:0 14px 28px rgba(24,214,203,.25);
}

.product-selection__qty{
  display:flex;
  align-items:center;
  gap:10px;
}

.product-selection__qty button{
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:#083236;
  color:#fff;
  font-size:22px;
  font-weight:800;
}

.product-selection__qty strong{
  min-width:26px;
  text-align:center;
  font-size:18px;
  color:#083236;
}

.product-selection__empty{
  padding:36px 24px;
  text-align:center;
  border-radius:28px;
  background:#fff;
  box-shadow:0 12px 28px rgba(6,43,47,.06);
}

.product-selection__empty strong{
  display:block;
  font-size:18px;
  margin-bottom:8px;
}

.product-selection__empty small{
  color:#6f888b;
}

.product-selection__cartbar{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  width:min(calc(100vw - 28px),430px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  border-radius:26px;
  background:#083236;
  color:#fff;
  box-shadow:0 24px 60px rgba(8,50,54,.34);
}

.product-selection__cartbar strong{
  display:block;
  font-size:16px;
}

.product-selection__cartbar small{
  color:rgba(255,255,255,.74);
}

.product-selection__cartbar button{
  border:0;
  border-radius:18px;
  padding:14px 22px;
  background:#18d6cb;
  color:#083236;
  font-weight:800;
  font-size:15px;
}
.product-selection__sheet-backdrop{
  position:fixed;
  inset:0;
  background:rgba(3,26,28,.34);
  z-index:50;
}

.product-selection__sheet{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(100%,430px);
  padding:14px 24px 28px;
  border-radius:32px 32px 0 0;
  background:#fff;
  color:#072f33;
  z-index:60;
  box-shadow:0 -24px 70px rgba(6,43,47,.26);
  text-align:center;
}

.product-selection__sheet-handle{
  width:46px;
  height:5px;
  border-radius:999px;
  background:#d8e6e6;
  margin:0 auto 22px;
}

.product-selection__sheet-icon{
  width:78px;
  height:78px;
  margin:0 auto 16px;
  border-radius:26px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#18d6cb,#083236);
  color:white;
  font-size:38px;
}

.product-selection__sheet p{
  margin:0 0 6px;
  color:#18bfb6;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.product-selection__sheet h2{
  margin:0;
  font-size:24px;
  line-height:1.15;
}

.product-selection__sheet small{
  display:block;
  margin:10px auto 22px;
  max-width:320px;
  color:#6f888b;
  line-height:1.4;
}

.product-selection__sheet-qty{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:20px 0 22px;
}

.product-selection__sheet-qty button{
  width:56px;
  height:56px;
  border:0;
  border-radius:18px;
  background:#083236;
  color:#fff;
  font-size:28px;
  font-weight:900;
}

.product-selection__sheet-qty strong{
  min-width:92px;
  font-size:22px;
  color:#083236;
}

.product-selection__sheet-save{
  width:100%;
  height:58px;
  border:0;
  border-radius:20px;
  background:#18d6cb;
  color:#083236;
  font-size:17px;
  font-weight:900;
}
.product-selection__selected{
  flex:0 0 64px;
  height:54px;
  border:0;
  border-radius:18px;
  background:#083236;
  color:#fff;
  font-size:18px;
  font-weight:900;
  box-shadow:0 14px 28px rgba(8,50,54,.20);
}
.product-selection__card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.product-selection__favorite{
  width:44px;
  height:40px;
  border:0;
  border-radius:14px;
  background:rgba(24,214,203,.12);
  color:#083236;
  font-size:22px;
  font-weight:900;
}
.product-selection__card-icon img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.product-selection__sheet-icon img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
}


/* MATERIALS-IMAGE-PREVIEW-01 */
.product-selection__image-button {
  display:grid;
  place-items:center;
  border:0;
  padding:0;
  margin:0;
  border-radius:inherit;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:zoom-in;
  min-width:44px;
  min-height:44px;
}
.product-selection__image-button:disabled { cursor:default; }
.product-selection__image-button:focus-visible,
.product-selection__image-close:focus-visible {
  outline:3px solid #18bfb6;
  outline-offset:3px;
}
.product-selection__image-button [hidden],
.product-selection__image-preview [hidden] { display:none; }
.product-selection__image-preview {
  position:fixed;
  inset:0;
  box-sizing:border-box;
  width:100%;
  height:100%;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  border:0;
  background:transparent;
  color:#072f33;
  overflow:hidden;
  overscroll-behavior:contain;
}
.product-selection__image-preview[open] { display:grid; place-items:center; }
.product-selection__image-preview::backdrop { background:rgba(3,26,28,.78); }
.product-selection__image-panel {
  box-sizing:border-box;
  display:grid;
  grid-template-rows:44px minmax(0,1fr) auto;
  gap:8px;
  width:min(100%,960px);
  height:100%;
  max-height:900px;
  min-width:0;
  min-height:0;
  padding:12px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 70px rgba(6,43,47,.26);
}
.product-selection__image-close {
  justify-self:end;
  width:44px;
  height:44px;
  border:0;
  border-radius:14px;
  background:#083236;
  color:#fff;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}
.product-selection__preview-image {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  min-width:0;
  object-fit:contain;
}
.product-selection__image-caption {
  margin:0;
  text-align:center;
  font-size:14px;
  line-height:1.4;
  max-height:2.8em;
  overflow:auto;
  overflow-wrap:anywhere;
}
.product-selection__image-error { align-self:center; text-align:center; overflow:auto; }
