/* CRU® LINE Shop + Cart · iridescent white-purple-gold system · 2026-09-01 */
:root{
  --cru-shop-ink:#34283d;
  --cru-shop-muted:#6d6272;
  --cru-shop-purple:#9160b4;
  --cru-shop-purple-deep:#68457b;
  --cru-shop-gold:#a97835;
  --cru-shop-gold-light:#dcbf82;
  --cru-shop-pearl:#fffdf9;
  --cru-shop-line:rgba(157,106,192,.24);
}

/* ===== LINE SHOP · 選購 CRU 系列 ===== */
.line-shop-page > .line-shop-hero + .line-shop-section{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:var(--cru-shop-ink)!important;
  border-top:1px solid rgba(169,120,53,.18);
  border-bottom:1px solid rgba(151,98,196,.18);
  background:
    radial-gradient(980px 690px at 103% 7%,rgba(159,102,207,.20),transparent 70%),
    radial-gradient(860px 620px at -7% 45%,rgba(231,193,120,.20),transparent 72%),
    radial-gradient(900px 650px at 76% 100%,rgba(199,167,244,.13),transparent 72%),
    linear-gradient(180deg,#fcf9fd 0%,#f9f3fc 46%,#f5ecfa 73%,#fff9ed 100%)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section::before{
  content:'';
  position:absolute;
  z-index:0;
  left:-5%;
  right:-5%;
  top:-120px;
  height:1120px;
  pointer-events:none;
  background:url('/assets/cru-company-white-purple-gold-iridescent-gene-20260901.svg?v=iridescent-v1') center 8%/min(1660px,112vw) auto no-repeat;
  opacity:.42;
  filter:saturate(1.15) contrast(1.02);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.88) 58%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.88) 58%,transparent 100%);
  animation:cruLineShopGeneFloat 19s ease-in-out infinite alternate;
}
.line-shop-page > .line-shop-hero + .line-shop-section::after{
  content:'';
  position:absolute;
  z-index:0;
  left:-20%;
  right:-20%;
  bottom:-310px;
  height:780px;
  pointer-events:none;
  border-radius:50%;
  background:
    radial-gradient(ellipse at 62% 48%,rgba(178,124,225,.19),transparent 67%),
    radial-gradient(ellipse at 36% 44%,rgba(232,193,118,.22),transparent 66%),
    radial-gradient(ellipse at 52% 56%,rgba(255,255,255,.76),transparent 69%);
  filter:blur(7px);
  opacity:.94;
}
.line-shop-page > .line-shop-hero + .line-shop-section > .wrap{
  position:relative;
  z-index:2;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-heading h2{
  color:var(--cru-shop-ink)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.94),0 12px 34px rgba(92,57,108,.09);
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-heading p{
  color:var(--cru-shop-muted)!important;
  font-weight:450;
}
.line-shop-page > .line-shop-hero + .line-shop-section .eyebrow{
  color:var(--cru-shop-gold)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .eyebrow::before{
  background:linear-gradient(90deg,var(--cru-shop-gold),var(--cru-shop-purple))!important;
}

.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-filters{
  position:relative;
  z-index:2;
  padding:8px;
  margin-bottom:18px;
  border:1px solid rgba(154,102,191,.22);
  border-radius:999px;
  background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(248,239,252,.68));
  box-shadow:0 18px 48px rgba(73,45,84,.10),inset 0 1px 0 rgba(255,255,255,.96);
  backdrop-filter:blur(14px) saturate(1.08);
  -webkit-backdrop-filter:blur(14px) saturate(1.08);
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-filter{
  color:#685d6e!important;
  border-color:rgba(153,103,188,.18)!important;
  background:rgba(255,255,255,.38)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-filter:hover{
  color:var(--cru-shop-ink)!important;
  border-color:rgba(167,119,201,.42)!important;
  background:rgba(255,255,255,.74)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-filter.active{
  color:#fff!important;
  border-color:rgba(255,239,204,.64)!important;
  background:linear-gradient(135deg,#6f4b80 0%,#a46bc5 43%,#c89a4b 78%,#e1c483 100%)!important;
  box-shadow:0 9px 25px rgba(114,67,137,.20),0 0 18px rgba(214,174,93,.14);
  text-shadow:0 1px 8px rgba(46,22,54,.28);
}

.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-card{
  border:1px solid rgba(159,107,196,.24)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(248,239,252,.84))!important;
  box-shadow:0 24px 62px rgba(75,46,86,.12),inset 0 1px 0 rgba(255,255,255,.98),0 0 28px rgba(201,157,233,.055)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-card:hover{
  border-color:rgba(175,124,208,.48)!important;
  box-shadow:0 32px 76px rgba(71,42,84,.17),0 0 34px rgba(164,104,205,.10),0 0 28px rgba(213,169,82,.08)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-image{
  background:
    radial-gradient(circle at 50% 42%,rgba(205,174,245,.18),transparent 58%),
    linear-gradient(145deg,#242027,#111214)!important;
  border-bottom:1px solid rgba(218,184,119,.24);
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-card-body{
  color:var(--cru-shop-ink)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-cat{
  color:var(--cru-shop-purple)!important;
  font-weight:700;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-card h3{
  color:var(--cru-shop-ink)!important;
  font-weight:650;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-tagline{
  color:var(--cru-shop-muted)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-price{
  color:var(--cru-shop-gold)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.86);
}
.line-shop-page > .line-shop-hero + .line-shop-section .stock-badge{
  color:#7e638c!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-add{
  color:#fff!important;
  border:1px solid rgba(255,239,203,.46)!important;
  background:linear-gradient(135deg,#6d4a7d 0%,#9d68ba 42%,#bd8940 76%,#ddbd7c 100%)!important;
  box-shadow:0 13px 32px rgba(95,56,112,.18),inset 0 1px 0 rgba(255,255,255,.26);
  text-shadow:0 1px 7px rgba(46,24,52,.30);
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-add:hover{
  filter:brightness(1.06) saturate(1.04);
  box-shadow:0 16px 38px rgba(95,56,112,.25),0 0 24px rgba(216,174,95,.12);
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-trust article{
  color:var(--cru-shop-ink)!important;
  border-color:rgba(157,106,192,.22)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(248,240,252,.70))!important;
  box-shadow:0 18px 46px rgba(72,44,83,.08),inset 0 1px 0 rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-trust b{
  color:var(--cru-shop-ink)!important;
}
.line-shop-page > .line-shop-hero + .line-shop-section .line-shop-trust p{
  color:var(--cru-shop-muted)!important;
}

/* Bottom cart dock echoes the same palette while staying readable over the page. */
.line-shop-page > .line-shop-dock{
  border-color:rgba(225,192,128,.42)!important;
  background:linear-gradient(135deg,rgba(42,28,49,.92),rgba(73,47,84,.88) 54%,rgba(30,22,33,.94))!important;
  box-shadow:0 22px 58px rgba(31,18,37,.40),0 0 28px rgba(154,95,196,.12),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
.line-shop-page > .line-shop-dock a{
  color:#3b2a27!important;
  background:linear-gradient(135deg,#f5e6c0,#d7b46e,#ead5a5)!important;
}

/* ===== CART PAGE · matching copy + colour system ===== */
body.cru-route-cart #app > .section.page-enter{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:calc(100vh - 72px);
  color:var(--cru-shop-ink)!important;
  background:
    radial-gradient(980px 700px at 103% 4%,rgba(159,102,207,.20),transparent 70%),
    radial-gradient(850px 620px at -7% 46%,rgba(232,194,122,.21),transparent 72%),
    radial-gradient(930px 690px at 82% 100%,rgba(193,158,243,.15),transparent 72%),
    linear-gradient(180deg,#fcf9fd 0%,#f8f2fb 47%,#f5ecfa 73%,#fff9ed 100%)!important;
}
body.cru-route-cart #app > .section.page-enter::before{
  content:'';
  position:absolute;
  inset:-90px -5% auto -5%;
  z-index:0;
  height:1080px;
  pointer-events:none;
  background:url('/assets/cru-story-white-purple-gold-iridescent-gene-20260901.svg?v=iridescent-v1') center top/min(1660px,112vw) auto no-repeat;
  opacity:.38;
  filter:saturate(1.14) contrast(1.02);
  -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.86) 59%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.86) 59%,transparent 100%);
  animation:cruCartGeneFloat 19s ease-in-out infinite alternate;
}
body.cru-route-cart #app > .section.page-enter::after{
  content:'';
  position:absolute;
  left:-20%;right:-20%;bottom:-330px;
  z-index:0;
  height:760px;
  pointer-events:none;
  border-radius:50%;
  background:radial-gradient(ellipse at 62% 50%,rgba(177,124,224,.18),transparent 67%),radial-gradient(ellipse at 36% 44%,rgba(233,196,122,.21),transparent 66%),radial-gradient(ellipse at 50% 56%,rgba(255,255,255,.74),transparent 69%);
  filter:blur(7px);
}
body.cru-route-cart #app > .section.page-enter > .wrap{
  position:relative;
  z-index:2;
}
body.cru-route-cart .section-head .eyebrow{color:var(--cru-shop-gold)!important}
body.cru-route-cart .section-head .eyebrow::before{background:linear-gradient(90deg,var(--cru-shop-gold),var(--cru-shop-purple))!important}
body.cru-route-cart .section-head h2{
  color:var(--cru-shop-ink)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.96),0 13px 36px rgba(90,55,106,.10)!important;
}

body.cru-route-cart .cart-item{
  margin-bottom:14px;
  padding:18px;
  border:1px solid rgba(157,106,192,.22)!important;
  border-radius:18px;
  background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(248,239,252,.77))!important;
  box-shadow:0 20px 52px rgba(75,46,86,.10),inset 0 1px 0 rgba(255,255,255,.96);
}
body.cru-route-cart .cart-item img{
  border-color:rgba(218,181,111,.34)!important;
  box-shadow:0 13px 28px rgba(58,35,67,.13);
}
body.cru-route-cart .cart-item h4{color:var(--cru-shop-ink)!important;font-weight:650}
body.cru-route-cart .cart-item .cat{color:var(--cru-shop-purple)!important;font-weight:700}
body.cru-route-cart .cart-item .unit{color:var(--cru-shop-muted)!important}
body.cru-route-cart .cart-item .price{color:var(--cru-shop-gold)!important;font-weight:700}
body.cru-route-cart .cart-item .stock-badge{color:#7f648e!important}
body.cru-route-cart .qty-box{
  border-color:rgba(151,99,188,.27)!important;
  background:rgba(255,255,255,.70)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.94);
}
body.cru-route-cart .qty-box button{color:var(--cru-shop-purple-deep)!important}
body.cru-route-cart .qty-box span{color:var(--cru-shop-ink)!important;font-weight:650}
body.cru-route-cart .remove-link{color:#8b5fa2!important}
body.cru-route-cart .remove-link:hover{color:var(--cru-shop-gold)!important;border-color:var(--cru-shop-gold)!important}

body.cru-route-cart .summary-box{
  border:1px solid rgba(157,106,192,.25)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(248,239,252,.82))!important;
  box-shadow:0 28px 72px rgba(71,43,82,.14),inset 0 1px 0 rgba(255,255,255,.98),0 0 28px rgba(201,157,233,.05)!important;
  backdrop-filter:blur(16px) saturate(1.08);
  -webkit-backdrop-filter:blur(16px) saturate(1.08);
}
body.cru-route-cart .summary-box h3{color:var(--cru-shop-ink)!important}
body.cru-route-cart .summary-row{color:var(--cru-shop-muted)!important}
body.cru-route-cart .summary-row.total{
  color:var(--cru-shop-ink)!important;
  border-top-color:rgba(163,111,198,.20)!important;
}
body.cru-route-cart .summary-row.total .val{color:var(--cru-shop-gold)!important;text-shadow:0 1px 0 #fff}
body.cru-route-cart .summary-box .notice-box,
body.cru-route-cart .inventory-alert{
  color:#675a6d!important;
  border-color:rgba(168,114,201,.25)!important;
  background:linear-gradient(90deg,rgba(163,108,207,.08),rgba(229,192,120,.10),rgba(255,255,255,.45))!important;
}
body.cru-route-cart .inventory-alert strong{color:var(--cru-shop-gold)!important}

body.cru-route-cart .btn-gold{
  color:#fff!important;
  border-color:rgba(255,239,203,.52)!important;
  background:linear-gradient(135deg,#6f4b80 0%,#a46bc5 42%,#c49349 77%,#e1c483 100%)!important;
  box-shadow:0 14px 34px rgba(97,57,114,.20),inset 0 1px 0 rgba(255,255,255,.26)!important;
  text-shadow:0 1px 7px rgba(45,23,53,.28);
}
body.cru-route-cart .btn-gold:hover{filter:brightness(1.06) saturate(1.04)}
body.cru-route-cart .btn-outline{
  color:var(--cru-shop-purple-deep)!important;
  border-color:rgba(145,94,181,.36)!important;
  background:rgba(255,255,255,.62)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92);
}
body.cru-route-cart .btn-outline:hover{
  color:var(--cru-shop-ink)!important;
  border-color:rgba(169,120,53,.45)!important;
  background:rgba(255,249,238,.88)!important;
}

body.cru-route-cart .empty-state{
  color:var(--cru-shop-muted)!important;
  border-color:rgba(157,106,192,.28)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(248,239,252,.72))!important;
  box-shadow:0 24px 62px rgba(74,45,85,.10),inset 0 1px 0 rgba(255,255,255,.96);
}
body.cru-route-cart .empty-state .em-ic{color:var(--cru-shop-gold)!important}



/* LINE shop stack: Nova stays above the cart, while the cart anchors the lower-right corner. */
body:has(.line-shop-page) .ai-float{
  bottom:96px!important;
  transition:bottom .28s ease,transform .28s ease;
}

/* Compact right-side cart dock: keeps the product grid visible while shopping. */
.line-shop-page > .line-shop-dock{
  left:auto!important;
  right:20px!important;
  bottom:20px!important;
  width:min(360px,calc(100vw - 40px))!important;
  max-width:360px!important;
  transform:none!important;
  padding:10px 10px 10px 16px!important;
  gap:12px!important;
  border-radius:20px!important;
}
.line-shop-page > .line-shop-dock-copy{
  min-width:0;
  flex:1 1 auto;
}
.line-shop-page > .line-shop-dock-copy b,
.line-shop-page > .line-shop-dock-copy span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.line-shop-page > .line-shop-dock a{
  flex:0 0 auto;
  margin-right:16px!important;
  padding:11px 17px!important;
  white-space:nowrap;
}
@media(max-width:650px){
  body:has(.ai-float) .line-shop-page > .line-shop-dock,
  .line-shop-page > .line-shop-dock{
    left:10px!important;
    right:10px!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    border-radius:18px!important;
  }
}


.line-shop-page > .line-shop-dock .line-shop-dock-toggle{
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(255,255,255,.24);
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
  cursor:pointer;
  transition:background .2s ease,transform .2s ease;
}
.line-shop-page > .line-shop-dock .line-shop-dock-toggle:hover{
  background:rgba(255,255,255,.18);
  transform:translateY(-1px);
}
.line-shop-dock-toggle-mark{
  font-size:20px;
  font-weight:400;
  line-height:1;
}
.line-shop-dock-toggle-count{display:none}
.line-shop-page > .line-shop-dock.is-collapsed{
  width:76px!important;
  min-width:76px;
  padding:8px!important;
  gap:0!important;
  border-radius:999px!important;
}
.line-shop-page > .line-shop-dock.is-collapsed .line-shop-dock-copy,
.line-shop-page > .line-shop-dock.is-collapsed > a{display:none!important}
.line-shop-page > .line-shop-dock.is-collapsed .line-shop-dock-toggle{
  display:flex;
  width:60px;
  height:42px;
  flex-basis:60px;
  gap:6px;
  border-radius:999px;
}
.line-shop-page > .line-shop-dock.is-collapsed .line-shop-dock-toggle-count{
  display:inline;
  min-width:18px;
  padding:1px 5px;
  border-radius:999px;
  color:#3b2a27;
  background:linear-gradient(135deg,#f5e6c0,#d7b46e);
  font-size:12px;
  font-weight:800;
}

@keyframes cruLineShopGeneFloat{
  from{transform:scale(1.01) translate3d(0,0,0)}
  to{transform:scale(1.045) translate3d(-14px,9px,0)}
}
@keyframes cruCartGeneFloat{
  from{transform:scale(1.01) translate3d(0,0,0)}
  to{transform:scale(1.045) translate3d(14px,8px,0)}
}

@media(max-width:900px){
  .line-shop-page > .line-shop-hero + .line-shop-section::before,
  body.cru-route-cart #app > .section.page-enter::before{background-size:1280px auto;opacity:.34}
}
@media(max-width:650px){
  .line-shop-page > .line-shop-hero + .line-shop-section::before{left:-60%;right:-60%;top:-20px;height:780px;background-size:1040px auto;opacity:.29}
  .line-shop-page > .line-shop-hero + .line-shop-section .line-shop-filters{border-radius:16px}
  .line-shop-page > .line-shop-hero + .line-shop-section .line-shop-card{border-radius:16px!important}
  body.cru-route-cart #app > .section.page-enter::before{left:-65%;right:-65%;top:-10px;height:780px;background-size:1060px auto;opacity:.28}
  body.cru-route-cart .cart-item{padding:15px;border-radius:15px}
  body.cru-route-cart .summary-box{border-radius:17px}
}

/* Mobile LINE cart: compact on the right across phone widths; collapsed cart overlaps behind Nova. */
@media(max-width:768px){
  body:has(.ai-float) .line-shop-page > .line-shop-dock,
  .line-shop-page > .line-shop-dock{
    left:auto!important;
    right:max(10px,env(safe-area-inset-right))!important;
    bottom:max(10px,env(safe-area-inset-bottom))!important;
    width:min(272px,calc(100vw - 82px))!important;
    min-width:0!important;
    max-width:272px!important;
    padding:8px!important;
    gap:7px!important;
    justify-content:flex-end!important;
    border-radius:16px!important;
    transition:right .28s ease,bottom .28s ease,width .28s ease;
  }
  .line-shop-page > .line-shop-dock-copy{
    flex:1 1 auto;
    min-width:0;
  }
  .line-shop-page > .line-shop-dock-copy b{
    display:block;
    font-size:11px;
    line-height:1.25;
  }
  .line-shop-page > .line-shop-dock-copy span{display:none}
  .line-shop-page > .line-shop-dock:not(.is-collapsed) > a[href="#/cart"]{
    margin-right:clamp(58px,16vw,68px)!important;
    padding:9px 12px!important;
    font-size:11px;
  }
  .line-shop-page > .line-shop-dock:not(.is-collapsed) .line-shop-dock-toggle{
    width:30px;
    height:30px;
    flex-basis:30px;
  }
  body:has(.ai-float) .line-shop-page > .line-shop-dock.is-collapsed,
  .line-shop-page > .line-shop-dock.is-collapsed{
    left:auto!important;
    right:max(50px,calc(env(safe-area-inset-right) + 46px))!important;
    bottom:101px!important;
    width:52px!important;
    min-width:52px!important;
    max-width:52px!important;
    padding:4px!important;
    gap:0!important;
    border-radius:999px!important;
  }
  .line-shop-page > .line-shop-dock.is-collapsed .line-shop-dock-toggle{
    width:44px;
    height:44px;
    flex-basis:44px;
    gap:4px;
  }
  .line-shop-page > .line-shop-dock.is-collapsed .line-shop-dock-toggle-count{
    min-width:16px;
    padding:1px 4px;
    font-size:10px;
  }
}
@media(prefers-reduced-motion:reduce){
  .line-shop-page > .line-shop-hero + .line-shop-section::before,
  body.cru-route-cart #app > .section.page-enter::before{animation:none!important}
}


/* iPad LINE cart: keep the full cart label clear of the right-side control. */
@media (min-width:769px) and (max-width:1180px){
  .line-shop-page > .line-shop-dock:not(.is-collapsed) > a[href="#/cart"]{
    margin-right:32px!important;
  }
}
