/* CASA SILVA / Diseño Vibrante. Drawer V2: structural 60/40, not spacing patches. */
.cs7-cart-drawer aside {
  width:min(100%,580px)!important;
  padding:0!important;
  overflow:hidden!important;
  overscroll-behavior:contain;
  background:#f4efe6!important;
}
body.cs-cart-drawer-open { overflow:hidden; }
.admin-bar .cs7-cart-drawer { top:32px; }
@media(max-width:782px){ .admin-bar .cs7-cart-drawer { top:46px; } }
/* Critical: override the theme's `aside>div:last-child` flex + margin-top rule. */
.cs7-cart-drawer aside > .csdp-panel {
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:minmax(0,3fr) minmax(0,2fr)!important;
  gap:0!important;
  align-items:stretch!important;
  flex-direction:initial!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  height:100%!important;
  width:100%!important;
  color:#241f1a;
}
.csdp-panel *, .csdp-panel *::before, .csdp-panel *::after { box-sizing:border-box; }
.csdp-feature {
  display:flex;
  flex-direction:column;
  min-height:0;
  padding:22px 30px 20px;
  background:linear-gradient(150deg,#fbf7ef 0%,#f4efe6 76%);
  border-bottom:1px solid rgba(53,42,28,.17);
}
.csdp-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}
.csdp-kicker {
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#6d654f;
  font:800 10px/1.2 Arial,Helvetica,sans-serif;
  text-transform:uppercase;
  letter-spacing:.18em;
}
.csdp-dot { width:8px;height:8px;border-radius:50%;background:#5f6240;flex:none; }
.csdp-close {
  width:42px;height:42px; flex:none;
  display:grid;place-items:center;
  border:1px solid rgba(33,29,25,.16);
  border-radius:50%; background:#fffdf8;
  color:#211d19; font:400 26px/1 Arial,sans-serif;
  cursor:pointer; transition:background .2s ease,transform .2s ease;
}
.csdp-close:hover { background:#e9dfd0;transform:rotate(90deg); }
.csdp-main {
  display:grid;
  grid-template-columns:minmax(0,44%) minmax(0,1fr);
  gap:23px;
  align-items:center;
  flex:1 1 auto;
  min-height:0;
  padding:2px 0 9px;
}
.csdp-photo {
  align-self:stretch;
  min-height:0;
  max-height:355px;
  border-radius:24px;
  overflow:hidden;
  position:relative;
  background:#e6d9c7;
  box-shadow:0 16px 35px rgba(47,35,22,.11);
}
.csdp-photo img { width:100%;height:100%;display:block;object-fit:cover; }
.csdp-photo-state {
  position:absolute;left:12px;top:12px;
  padding:9px 12px;display:inline-flex;align-items:center;gap:7px;
  border-radius:999px;
  background:rgba(255,253,248,.96);
  color:#353d27;
  font:800 9px/1 Arial,sans-serif;
  text-transform:uppercase;letter-spacing:.12em;
  box-shadow:0 4px 10px rgba(30,20,10,.05);
}
.csdp-photo-state span { width:7px;height:7px;background:#5f6240;border-radius:50%; }
.csdp-product-copy { min-width:0;align-self:center; }
.csdp-eyebrow {
  display:block; margin:0 0 9px;
  color:#967047;
  font:800 10px/1.3 Arial,Helvetica,sans-serif;
  letter-spacing:.16em;text-transform:uppercase;
}
.csdp-product-copy h2 {
  margin:0 0 10px!important;
  color:#211d19;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(31px,3vw,43px)!important;
  line-height:.99!important;
  letter-spacing:-.038em!important;
  font-weight:400!important;
}
.csdp-desc {
  display:-webkit-box;
  -webkit-line-clamp:3;-webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 11px!important;
  font:400 13px/1.55 Arial,Helvetica,sans-serif!important;
  color:#5c554d!important;
}
.csdp-benefits { display:flex;flex-wrap:wrap;gap:7px; }
.csdp-benefit {
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 9px;border-radius:12px;
  background:#ebe5da;border:1px solid #ded6c6;
  color:#514b42;
  font:600 10px/1.25 Arial,Helvetica,sans-serif;
}
.csdp-benefit::before { content:"";width:5px;height:5px;flex:none;border-radius:50%;background:#b18a52; }
.csdp-summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:16px;
  padding:12px 0 11px;
  border-top:1px solid rgba(33,29,25,.15);
}
.csdp-price-label {
  color:#7d6e5a;
  font:800 9px/1.3 Arial,Helvetica,sans-serif;
  letter-spacing:.15em;text-transform:uppercase;
}
.csdp-price {
  display:block;margin-top:3px;
  color:#211d19;
  font:400 clamp(26px,3vw,34px)/1.05 Georgia,"Times New Roman",serif;
}
.csdp-summary-note {
  max-width:170px;
  display:flex;align-items:center;gap:6px;
  color:#5f6240;
  font:600 11px/1.4 Arial,Helvetica,sans-serif;
}
.csdp-actions { display:grid!important;grid-template-columns:1.2fr 1fr;align-items:center!important;gap:10px!important;margin:0!important; }
.csdp-cart-btn,.csdp-continue-btn {
  min-width:0;min-height:49px;padding:0 15px;
  display:inline-flex;justify-content:center;align-items:center;text-align:center;
  text-decoration:none!important;border-radius:999px;
  font:800 10px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.1em;text-transform:uppercase;cursor:pointer;
  transition:transform .2s ease,background .2s ease;
}
.csdp-cart-btn { border:1px solid #211d19;background:#211d19;color:#fff!important; }
.csdp-cart-btn:hover { background:#3a3329;transform:translateY(-1px); }
.csdp-continue-btn { border:1px solid rgba(33,29,25,.2);background:#fffdf8;color:#211d19; }
.csdp-continue-btn:hover { background:#e6ddce;transform:translateY(-1px); }
.csdp-related {
  display:flex;
  flex-direction:column;
  min-height:0;
  margin:0!important;
  padding:20px 30px 24px;
  background:#eee8dd;
}
.csdp-related-heading {
  display:flex;align-items:end;justify-content:space-between;gap:20px;
  margin-bottom:13px;
}
.csdp-related-heading small {
  display:block;margin-bottom:5px;
  color:#99754c;
  font:800 9px/1.2 Arial,Helvetica,sans-serif;
  letter-spacing:.15em;text-transform:uppercase;
}
.csdp-related-heading h3 {
  margin:0;color:#211d19;
  font:400 27px/1 Georgia,"Times New Roman",serif;
  letter-spacing:-.025em;
}
.csdp-related-heading p {
  margin:0!important;max-width:175px;
  text-align:right;color:#756d60!important;
  font:400 11px/1.4 Arial,Helvetica,sans-serif!important;
}
.csdp-related-grid {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
  flex:1 1 auto;min-height:0;
}
.csdp-related-card {
  position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;
  overflow:hidden;border:1px solid #ddd5c8;
  border-radius:16px;background:#fffdf8;
  box-shadow:0 7px 16px rgba(29,23,15,.035);
}
.csdp-related-link {
  min-height:0;flex:1 1 auto;
  display:grid;grid-template-rows:minmax(0,1fr) auto;
  color:#211d19;text-decoration:none!important;
}
.csdp-related-image {min-height:0;overflow:hidden;background:#e4d8c5;}
.csdp-related-image img {display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s ease;}
.csdp-related-card:hover .csdp-related-image img {transform:scale(1.045);}
.csdp-related-caption {padding:10px 11px 12px;min-height:72px;}
.csdp-related-caption strong {
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;min-height:30px;
  font:700 11px/1.35 Arial,Helvetica,sans-serif;
}
.csdp-related-caption span {display:block;margin-top:4px;font:400 16px/1 Georgia,"Times New Roman",serif;}
.csdp-add {
  width:37px;height:37px;
  position:absolute;right:9px;top:9px;z-index:1;
  display:grid;place-items:center;
  border:0;border-radius:50%;background:#fffdf8;color:#28211a;
  box-shadow:0 3px 10px rgba(0,0,0,.13);
  font:400 24px/1 Arial,Helvetica,sans-serif;cursor:pointer;
}
.csdp-add:hover { background:#e8e1d1; }
.csdp-add:disabled {opacity:.6;cursor:wait;}
.csdp-banner {
  display:flex;align-items:center;gap:14px;flex:none;
  margin-top:12px;padding:14px 17px;
  border-radius:13px;background:#42452d;color:#fff;
}
.csdp-banner-icon {flex:none;font:400 25px/1 Georgia,serif;color:#e7cfa1;}
.csdp-banner strong {display:block;font:400 17px/1.08 Georgia,"Times New Roman",serif;}
.csdp-banner span {display:block;margin-top:3px;font:400 10px/1.35 Arial,Helvetica,sans-serif;color:#e5e3d6;}
.csdp-panel :is(a,button):focus-visible {outline:3px solid #ad8450;outline-offset:3px;}
/* Responsive: preserve the 60/40 split on normal viewport heights. */
@media(max-width:650px){
  .cs7-cart-drawer aside { width:100%!important; }
  .csdp-feature {padding:16px 18px 16px;}
  .csdp-head {margin-bottom:9px;}
  .csdp-close {width:36px;height:36px;font-size:22px;}
  .csdp-kicker {font-size:9px;}
  .csdp-main {grid-template-columns:minmax(0,38%) minmax(0,1fr);gap:13px;padding:2px 0 8px;}
  .csdp-photo { max-height:230px;border-radius:16px; }
  .csdp-photo-state {padding:6px 8px;font-size:7px;left:7px;top:7px;}
  .csdp-eyebrow {font-size:8px;margin-bottom:4px;}
  .csdp-product-copy h2 {font-size:clamp(26px,7vw,36px)!important;margin-bottom:6px!important;}
  .csdp-desc {font-size:11px!important;line-height:1.38!important;margin-bottom:8px!important;-webkit-line-clamp:3;}
  .csdp-benefits {gap:4px;}
  .csdp-benefit {font-size:9px;padding:5px 7px;}
  .csdp-summary {padding:9px 0;}
  .csdp-price {font-size:25px;}
  .csdp-price-label {font-size:8px;}
  .csdp-summary-note {font-size:9px;max-width:130px;}
  .csdp-cart-btn,.csdp-continue-btn {min-height:43px;font-size:9px;padding:0 8px;}
  .csdp-related {padding:15px 18px 16px;}
  .csdp-related-heading {margin-bottom:9px;gap:10px;}
  .csdp-related-heading h3 {font-size:23px;}
  .csdp-related-heading small {font-size:8px;}
  .csdp-related-heading p {font-size:9px!important;max-width:125px;}
  .csdp-related-grid {gap:7px;}
  .csdp-related-card {border-radius:12px;}
  .csdp-related-caption {min-height:58px;padding:7px;}
  .csdp-related-caption strong {font-size:9px;min-height:26px;}
  .csdp-related-caption span {font-size:13px;}
  .csdp-add {width:29px;height:29px;top:5px;right:5px;font-size:18px;}
  .csdp-banner {margin-top:9px;padding:9px 11px;gap:8px;}
  .csdp-banner-icon {font-size:20px;}
  .csdp-banner strong {font-size:14px;}
  .csdp-banner span {font-size:9px;}
}
/* Short-height desktops and short mobile screens scroll the drawer rather than crop products. */
@media(max-height:755px){
  .cs7-cart-drawer aside {overflow-y:auto!important;}
  .cs7-cart-drawer aside > .csdp-panel {height:auto!important;min-height:100%!important;grid-template-rows:auto auto!important;}
  .csdp-main {min-height:220px;}
  .csdp-related-grid {min-height:170px;}
}
@media(max-width:370px){
  .csdp-feature {padding:13px 12px;}
  .csdp-related {padding:12px;}
  .csdp-product-copy h2 {font-size:25px!important;}
  .csdp-benefit:nth-child(3) {display:none;}
  .csdp-related-heading p {display:none;}
}
@media(prefers-reduced-motion:reduce){
  .csdp-panel *, .csdp-panel *::before {transition:none!important;animation:none!important;}
}
