:root{
  --pink-50:#fff0f7;
  --pink-100:#ffe6f2;
  --pink-200:#ffb3d9;
  --pink-500:var(--store-accent,#ff66b2);
  --pink-600:#ff4da6;
  --ink:#111827;
  --muted:#6b7280;
  --wa:#25D366;
  --shadow:0 10px 28px rgba(255,182,193,.28);
  --shadow-lg:0 16px 40px rgba(255,182,193,.18);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body.boutique-page{
  font-family:Arial,Helvetica,sans-serif;
  background:#fff;
  color:var(--ink);
}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
.wrap,.hero-card,.section-head,.products{max-width:1120px;margin:0 auto}

/* Header */
.boutique-header{
  padding:22px 16px 14px;
  background:linear-gradient(180deg,var(--pink-100),#fff);
  border-bottom:1px solid rgba(255,102,178,.14);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo{
  width:46px;
  height:46px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--pink-500),#b12cff);
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 20px rgba(255,102,178,.25);
}
.brand h1{
  margin:0;
  font-size:30px;
  line-height:1.05;
  color:var(--pink-500);
}
.brand p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}
.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.header-link{
  font-weight:700;
  color:var(--pink-600);
}

/* Top bar */
.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid rgba(255,102,178,.12);
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
}
.top-left,.icons,.pillbar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.search-box input{
  padding:10px 14px;
  width:min(320px,76vw);
  border-radius:999px;
  border:1px solid var(--pink-200);
  outline:none;
  background:#fff;
}
.pill{
  border:1px solid rgba(255,102,178,.22);
  background:#fff;
  color:var(--pink-600);
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size:13px;
  user-select:none;
}
.pill.active{
  background:var(--pink-100);
  border-color:rgba(255,102,178,.35);
}

/* Buttons */
.cart-link,.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  font-weight:700;
}
.cart-link{
  border:1px solid rgba(255,102,178,.22);
  background:#fff;
}
.cart-count{
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:var(--pink-500);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:800;
  padding:0 6px;
}
.btn{
  border:none;
  cursor:pointer;
  white-space:normal;
  text-align:center;
  line-height:1.2;
}
.btn-primary{
  background:var(--pink-500);
  color:#fff;
}
.btn-ghost{
  background:#fff;
  color:var(--pink-600);
  border:1px solid rgba(255,102,178,.22);
}
.btn-wa{
  background:var(--wa);
  color:#06210e;
}
.btn-small{
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  min-height:44px;
}

/* Hero */
.hero{padding:26px 16px 10px}
.hero-card{
  border-radius:22px;
  background:linear-gradient(135deg,var(--pink-50),#fff);
  border:1px solid rgba(255,102,178,.14);
  box-shadow:var(--shadow-lg);
  overflow:hidden;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:0;
}
.hero-left{padding:28px 24px}
.eyebrow{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(255,102,178,.14);
  color:var(--pink-600);
  font-size:12px;
  font-weight:800;
  margin-bottom:12px;
}
.hero h2{
  margin:0 0 8px;
  font-size:36px;
  line-height:1.05;
  letter-spacing:-.02em;
}
.hero .sub{
  margin:0 0 14px;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}
.hero-actions,.hero-points{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.hero-points{
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}
.hero-right{
  padding:22px;
  background:
    radial-gradient(420px 250px at 30% 20%,rgba(255,102,178,.18),transparent 60%),
    radial-gradient(420px 250px at 70% 80%,rgba(177,44,255,.15),transparent 60%),
    #fff;
  border-left:1px solid rgba(255,102,178,.14);
  display:flex;
  flex-direction:column;
  gap:14px;
}
.hero-photo-wrap{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,102,178,.14);
  background:#fff;
}
.hero-photo{
  display:block;
  width:100%;
  height:240px;
  object-fit:cover;
}
.box{
  border-radius:18px;
  border:1px solid rgba(255,102,178,.14);
  background:rgba(255,255,255,.75);
  padding:14px;
}
.box h3{
  margin:0 0 8px;
  color:var(--pink-600);
}
.box ul{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  font-size:13px;
}
.box li{margin:6px 0}
.hero-mini{
  margin-top:12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}

/* Product grid */
.container{padding:24px 16px 50px}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.section-head h3{
  margin:0;
  font-size:20px;
}
.muted{
  color:var(--muted);
  font-size:13px;
}
.products{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}
.product-card{
  background:#fff;
  border-radius:20px;
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .25s ease,box-shadow .25s ease;
  border:1px solid rgba(255,102,178,.1);
  cursor:pointer;
  position:relative;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 14px 32px rgba(255,182,193,.36);
}

/* Supports current JS/PHP markup */
.product-card .media img,
.product-card img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
  background:#f7f7f7;
}

.product-card .body,
.product-info{
  padding:16px;
}

.product-card .badge,
.product-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(255,102,178,.14);
  color:var(--pink-600);
  font-size:12px;
  font-weight:800;
  margin-bottom:10px;
}

.product-info h4,
.product-card h4{
  margin:0;
  font-weight:700;
  font-size:16px;
}

.desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  margin-top:8px;
  min-height:38px;
}

.meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}
.price{
  color:var(--pink-600);
  font-weight:800;
}
.compare-at{
  font-size:12px;
  color:var(--muted);
  text-decoration:line-through;
  margin-left:6px;
}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--pink-50);
  border:1px solid rgba(255,102,178,.14);
  color:var(--pink-600);
  font-weight:700;
  white-space:nowrap;
}

/* Main fix for cut-off buttons */
.actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:12px;
}
.product-card .actions .btn{
  width:100%;
  min-width:0;
  white-space:normal;
  text-align:center;
  line-height:1.2;
  padding:10px 12px;
  min-height:44px;
}

.empty-state{
  grid-column:1 / -1;
  text-align:center;
  padding:28px 18px;
  border:1px dashed rgba(255,102,178,.25);
  border-radius:18px;
  color:var(--muted);
  background:var(--pink-50);
}

/* Cart drawer */
.cart{
  position:fixed;
  right:-400px;
  top:0;
  width:380px;
  max-width:92vw;
  height:100%;
  background:#fff5fa;
  box-shadow:-10px 0 30px rgba(255,182,193,.45);
  padding:18px;
  transition:.35s;
  overflow-y:auto;
  z-index:100;
}
.cart.active{right:0}
.cart-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  position:sticky;
  top:0;
  background:#fff5fa;
  padding:4px 0 10px;
  z-index:2;
}
.cart h2{
  margin:0;
  color:var(--pink-600);
}
.xbtn{
  border:1px solid rgba(255,102,178,.25);
  background:#fff;
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:800;
  color:var(--pink-600);
}
.cart-items{margin-top:10px}

.cart-row{
  display:flex;
  gap:10px;
  padding:12px 10px;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(255,102,178,.12);
  border-radius:14px;
  margin-bottom:10px;
  align-items:flex-start;
}
.cart-row img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:12px;
  background:#fff;
  flex:0 0 72px;
}
.cart-col{
  flex:1;
  min-width:0;
}
.cart-name{
  font-weight:800;
  margin-bottom:4px;
}
.cart-price{
  color:var(--muted);
  font-size:12px;
}
.qty-controls{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.qty-controls button{
  border:1px solid rgba(255,102,178,.25);
  background:#fff;
  color:var(--pink-600);
  border-radius:10px;
  min-width:30px;
  height:30px;
  padding:0 10px;
  cursor:pointer;
  font-weight:900;
}
.qty-controls .remove{
  height:32px;
  padding:0 12px;
}

.totals{
  border-top:1px solid rgba(255,102,178,.18);
  padding-top:12px;
  margin-top:10px;
}
.totline{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
}
.totline b{font-size:16px}
.checkout{
  margin-top:12px;
  padding:12px;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(255,102,178,.12);
  border-radius:16px;
}
.checkout h3{
  margin:0 0 10px;
  color:var(--pink-600);
}
.checkout label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin:10px 0 6px;
}
.checkout input,
.checkout textarea{
  width:100%;
  padding:10px 11px;
  border-radius:12px;
  border:1px solid var(--pink-200);
  outline:none;
  background:#fff;
}
.checkout textarea{resize:vertical}
.optional{font-size:11px}
.mt10{margin-top:10px}
.helper-text{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.helper-text.error{color:#b42318}
.helper-text.success{color:#047857}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:120;
}
.modal.active{display:block}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}
.modal-card{
  position:relative;
  width:min(980px,96vw);
  margin:4vh auto;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  display:grid;
  grid-template-columns:1fr 1fr;
  z-index:2;
}
.modal-card img{
  width:100%;
  height:520px;
  object-fit:cover;
  background:#f7f7f7;
}
.modal-body{
  padding:18px 18px 16px;
}
.modal-body h3{margin:0 0 6px}
.modal-body p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.modal-meta{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:12px 0;
}
.modal-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.modal-actions .btn{
  white-space:normal;
  text-align:center;
  line-height:1.2;
  min-height:44px;
}
.close{
  position:absolute;
  top:18px;
  right:18px;
  background:#fff;
  border:1px solid rgba(255,255,255,.35);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:900;
  z-index:3;
}

/* Old floating button style kept just in case */
.floating-wa{
  position:fixed;
  bottom:18px;
  right:18px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:var(--wa);
  color:#06210e;
  padding:12px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
  box-shadow:0 14px 28px rgba(37,211,102,.25);
  z-index:130;
}
.floating-wa span{
  background:rgba(255,255,255,.55);
  padding:6px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.boutique-footer{
  text-align:center;
  padding:24px 16px;
  background:var(--pink-100);
  color:var(--pink-600);
  margin-top:20px;
  border-top:1px solid rgba(255,102,178,.14);
}

/* Responsive */
@media (max-width:980px){
  .hero-card,
  .modal-card{
    grid-template-columns:1fr;
  }

  .hero-right{
    border-left:none;
    border-top:1px solid rgba(255,102,178,.14);
  }

  .modal-card img{
    height:340px;
  }
}

@media (max-width:700px){
  .top-bar{
    align-items:flex-start;
    flex-direction:column;
  }

  .hero h2{
    font-size:28px;
  }

  .product-card .media img,
  .product-card img{
    height:260px;
  }

  .actions,
  .modal-actions{
    grid-template-columns:1fr;
  }

  .product-card .actions .btn,
  .modal-actions .btn{
    width:100%;
    white-space:normal;
  }
}