:root {
  color-scheme: light;
  --ink: #29171e;
  --muted: #806a72;
  --rose: #f44770;
  --rose-dark: #db2855;
  --rose-soft: #fff0f3;
  --cream: #fffaf7;
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(70, 35, 46, 0.12);
  --shadow: 0 20px 55px rgba(91, 42, 57, 0.1);
  --green: #2da978;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background-color: #fff9f5;
  background-image:
    url("love-bunnies-pattern.svg?v=3"),
    radial-gradient(circle at 12% 8%, rgba(255, 180, 198, .38), transparent 29%),
    radial-gradient(circle at 88% 22%, rgba(255, 221, 185, .4), transparent 27%),
    radial-gradient(circle at 76% 82%, rgba(246, 164, 188, .28), transparent 31%),
    linear-gradient(145deg, #fffaf6 0%, #fff4f3 48%, #fffaf2 100%);
  background-position: center top, center, center, center, center;
  background-size: 900px 900px, auto, auto, auto, auto;
  background-attachment: fixed;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

button, input, select { font: inherit; }
button, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header,
.site-footer,
.dashboard-shell,
.messages {
  width: min(1240px, calc(100% - 44px));
  margin-inline: auto;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff7894, var(--rose-dark));
  box-shadow: 0 9px 24px rgba(219, 40, 85, 0.24);
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions form { margin: 0; }
.user-pill { padding: 8px 13px; color: #71535c; font-size: 12px; font-weight: 600; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.64); }
.text-button, .delete-link { padding: 0; color: var(--muted); border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.messages { position: relative; z-index: 20; }
.message { margin-bottom: 10px; padding: 13px 16px; font-size: 14px; border: 1px solid var(--border); border-radius: 13px; background: white; box-shadow: 0 9px 25px rgba(60,25,35,.06); }
.message.success { color: #176d50; background: #effbf6; border-color: #bce8d7; }
.message.error { color: #a22542; background: #fff1f4; border-color: #f5c5d0; }
.message.warning { color: #8a5a12; background: #fff9e9; border-color: #f2dda6; }

.site-footer {
  min-height: 80px;
  margin-top: 54px;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #988087;
  font-size: 12px;
  border-top: 1px solid var(--border);
}
.site-footer b { color: var(--rose); }

.eyebrow, .card-kicker { color: var(--rose-dark); font-size: 12px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.muted { color: var(--muted); line-height: 1.65; }

/* Authentication */
.auth-page { display: flex; flex-direction: column; }
.auth-page .site-footer { margin-top: auto; }
.auth-shell {
  width: min(1050px, calc(100% - 44px));
  margin: 52px auto 90px;
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 95px;
}
.auth-copy h1 { max-width: 560px; margin: 17px 0 23px; font-family: "Manrope", sans-serif; font-size: clamp(42px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -3.8px; }
.auth-copy > p { max-width: 500px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.love-note { width: fit-content; margin-top: 34px; padding: 15px 19px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.7); }
.love-note > span { width: 35px; height: 35px; display: grid; place-items: center; color: var(--rose); border-radius: 11px; background: var(--rose-soft); }
.love-note div { display: flex; flex-direction: column; gap: 2px; }
.love-note strong { font-size: 13px; }
.love-note small { color: var(--muted); }
.auth-card { padding: 40px; border: 1px solid rgba(255,255,255,.88); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card h2 { margin: 9px 0 8px; font-family: "Manrope", sans-serif; font-size: 30px; letter-spacing: -1.2px; }
.auth-card .muted { margin: 0 0 27px; }
.single-card { grid-template-columns: minmax(0, 500px); justify-content: center; }
.invitation-card { text-align: center; }
.invite-heart { width: 64px; height: 64px; margin: -4px auto 24px; display: grid; place-items: center; color: white; font-size: 25px; border-radius: 22px; background: linear-gradient(145deg, #ff7894, var(--rose-dark)); box-shadow: 0 14px 30px rgba(219,40,85,.24); }
.muted-heart { color: var(--rose); background: var(--rose-soft); box-shadow: none; }

.stack-form { display: flex; flex-direction: column; gap: 17px; }
.stack-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; }
.stack-form.compact { margin-top: 17px; gap: 13px; }
.form-control {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid #ddced3;
  border-radius: 12px;
  outline: none;
  background: white;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(244,71,112,.11); }
.field-error, .form-errors { color: #bd294c; font-size: 12px; font-weight: 500; }
.form-errors { padding: 11px; border-radius: 10px; background: var(--rose-soft); }
.form-hint { margin: 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.form-hint ul { margin: 6px 0 0; padding-left: 18px; }
.button { min-height: 43px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button.primary { color: white; background: linear-gradient(145deg, #ff6988, var(--rose-dark)); box-shadow: 0 10px 22px rgba(219,40,85,.19); }
.button.secondary { color: #c1284d; background: var(--rose-soft); }
.button.dark { color: white; background: var(--ink); }
.button.wide { width: 100%; }
.button.mini { min-height: 37px; padding: 8px 12px; }
.subtle-link { display: block; margin-top: 20px; color: var(--muted); font-size: 13px; text-align: center; text-underline-offset: 3px; }

/* Dashboards */
.dashboard-shell { padding-top: 45px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; margin-bottom: 42px; }
.welcome-row h1 { margin: 8px 0 10px; font-family: "Manrope", sans-serif; font-size: clamp(38px, 5vw, 58px); letter-spacing: -3px; line-height: 1.08; }
.welcome-row h1 span { color: var(--rose); }
.welcome-row p { max-width: 660px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.connection-card { min-width: 245px; padding: 15px 18px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.72); }
.connection-card i { width: 37px; height: 37px; display: grid; place-items: center; color: var(--rose); font-style: normal; border-radius: 11px; background: var(--rose-soft); }
.connection-card span { display: flex; flex-direction: column; color: var(--muted); font-size: 11px; }
.connection-card strong { margin-top: 3px; color: var(--ink); font-size: 13px; }
.connection-card.connected i { color: white; background: var(--rose); }
.dashboard-grid { display: grid; grid-template-columns: 315px minmax(0, 1fr); align-items: start; gap: 30px; }
.sidebar-stack { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 13px; }
.action-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.76); }
.action-panel summary { padding: 16px; display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; }
.action-panel summary::-webkit-details-marker { display: none; }
.summary-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; color: white; border-radius: 11px; background: var(--rose); }
.summary-icon.soft { color: #a16e31; background: #fff5df; }
.summary-icon.rose { color: var(--rose); background: var(--rose-soft); }
.action-panel summary > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.action-panel summary b { font-size: 13px; }
.action-panel summary small { color: var(--muted); font-size: 11px; }
.action-panel[open] summary { border-bottom: 1px solid var(--border); }
.action-panel form { padding: 0 16px 17px; }
.wishlist { min-width: 0; }
.wishlist.full-width { width: 100%; }
.section-heading { min-height: 68px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 4px 0 0; font-family: "Manrope", sans-serif; font-size: 28px; letter-spacing: -1.2px; }
.count-pill { padding: 8px 12px; color: var(--muted); font-size: 11px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.65); }
.wish-section { margin-bottom: 20px; padding: 22px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.66); }
.wish-section > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.wish-section > header > div { display: flex; align-items: center; gap: 10px; }
.wish-section h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 19px; letter-spacing: -.5px; }
.section-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 5px var(--rose-soft); }
.inline-details { position: relative; }
.inline-details > summary { color: var(--rose-dark); font-size: 12px; font-weight: 700; list-style: none; cursor: pointer; }
.inline-details[open] .inline-form { display: flex; }
.inline-form { min-width: 280px; position: absolute; z-index: 5; top: 27px; right: 0; padding: 10px; gap: 8px; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.inline-form .form-control { min-height: 37px; }
.subsection-block { margin-top: 22px; }
.subsection-block h4 { margin: 0 0 11px; color: #674c55; font-size: 12px; letter-spacing: .8px; text-transform: uppercase; }
.subsection-block h4 span { margin-left: 5px; padding: 2px 6px; color: var(--rose); border-radius: 999px; background: var(--rose-soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: white; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(80,35,50,.09); }
.product-card.purchased { color: #686164; border-color: #d7d1d3; background: #efeded; box-shadow: none; }
.product-card.purchased:hover { transform: none; box-shadow: none; }
.product-card.purchased .product-image { background: #dedbdc; }
.product-card.purchased .product-image img { filter: grayscale(1); opacity: .58; }
.product-card.purchased .product-info > a { color: #777174; }
.product-image { height: 145px; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #fff2f5, #f7ecee); text-decoration: none; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.image-placeholder { color: #f3a0b4; font-size: 38px; }
.purchased-badge { position: absolute; top: 10px; right: 10px; padding: 6px 9px; color: white; font-size: 10px; font-weight: 800; border-radius: 999px; background: #71696c; box-shadow: 0 5px 15px rgba(56,50,52,.18); }
.product-info { padding: 13px; }
.product-info h5 { min-height: 38px; margin: 0 0 7px; display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-info > a { color: var(--rose-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.product-info form { margin-top: 11px; }
.delete-link { color: #a58c94; font-size: 10px; }
.purchase-button { width: 100%; min-height: 36px; padding: 7px; color: white; font-size: 10px; background: var(--rose); }
.purchase-locked { margin-top: 11px; padding: 9px 10px; color: #5f595b; font-size: 10px; font-weight: 800; text-align: center; border: 1px solid #d4ced0; border-radius: 10px; background: #e2dfe0; }
.need-again-form { margin-top: 7px !important; }
.reopen-product-button { width: 100%; padding: 7px 9px; color: #71696c; font-size: 10px; font-weight: 800; border: 1px solid #cfc8ca; border-radius: 9px; background: rgba(255,255,255,.58); cursor: pointer; }
.reopen-product-button:hover { color: var(--rose-dark); border-color: #dba8b5; background: #fff5f7; }
.empty-state { min-height: 310px; padding: 45px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #ddcbd1; border-radius: 24px; background: rgba(255,255,255,.42); }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--rose); font-size: 30px; border-radius: 22px; background: var(--rose-soft); }
.empty-state h3 { margin: 18px 0 7px; font-family: "Manrope", sans-serif; }
.empty-state p, .empty-line, .section-empty { color: var(--muted); font-size: 13px; }
.empty-state p { max-width: 440px; margin: 0; line-height: 1.6; }
.section-empty { min-height: 100px; display: grid; place-items: center; align-content: center; gap: 5px; border-radius: 15px; background: rgba(255,245,247,.58); }
.section-empty span { color: var(--rose); font-size: 22px; }
.section-empty p { margin: 0; }
.partner-view { max-width: 1100px; }
.partner-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) {
  .auth-shell { grid-template-columns: 1fr 410px; gap: 45px; }
  .dashboard-grid { grid-template-columns: 280px minmax(0,1fr); }
  .product-grid, .partner-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .site-header, .site-footer, .dashboard-shell, .messages { width: min(100% - 28px, 640px); }
  .site-header { min-height: 78px; }
  .user-pill { display: none; }
  .auth-shell { width: min(100% - 28px, 520px); margin-top: 25px; grid-template-columns: 1fr; gap: 35px; }
  .auth-copy { text-align: center; }
  .auth-copy h1 { letter-spacing: -2.5px; }
  .auth-copy > p { margin-inline: auto; }
  .love-note { margin-inline: auto; text-align: left; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .connection-card { width: 100%; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar-stack { position: static; }
  .wishlist { margin-top: 18px; }
  .partner-products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 480px) {
  .brand { font-size: 20px; }
  .brand-mark { width: 37px; height: 37px; }
  .auth-card { padding: 28px 22px; border-radius: 22px; }
  .auth-copy h1 { font-size: 42px; }
  .welcome-row h1 { font-size: 39px; letter-spacing: -2px; }
  .product-grid, .partner-products { grid-template-columns: 1fr; }
  .wish-section { padding: 17px; }
  .wish-section > header { align-items: flex-start; }
  .inline-form { min-width: 245px; }
  .section-heading { align-items: center; }
  .site-footer { gap: 20px; }
}

/* Ribbons, bunnies and folder browser */
.site-header, .dashboard-shell, .auth-shell, .site-footer, .messages { position: relative; z-index: 1; }

.relationship-actions { display: flex; align-items: center; gap: 10px; }
.connection-button { color: inherit; text-align: left; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.connection-button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.connection-button > b { margin-left: auto; color: var(--rose); font-size: 20px; }
.folder-browser { min-height: 520px; padding: 24px; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.66); box-shadow: 0 24px 70px rgba(91,42,57,.08); backdrop-filter: blur(18px); }
.browser-toolbar { min-height: 58px; margin-bottom: 27px; padding-bottom: 17px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); }
.breadcrumbs { min-width: 0; display: flex; align-items: center; gap: 9px; }
.breadcrumbs button { padding: 7px 10px; color: var(--ink); font-weight: 800; border: 0; border-radius: 10px; background: var(--rose-soft); cursor: pointer; }
.breadcrumb-current { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; }
.breadcrumb-current b { max-width: 190px; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; }
.folder-view { animation: folder-in .26s ease both; }
.folder-view[hidden] { display: none; }
@keyframes folder-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view-intro { min-height: 77px; margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.view-intro h2 { margin: 5px 0 0; font-family: "Manrope", sans-serif; font-size: 29px; letter-spacing: -1.3px; }
.view-intro p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.folder-tile { min-height: 148px; padding: 18px; position: relative; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); text-align: left; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,245,247,.88)); cursor: pointer; transition: transform .22s, box-shadow .22s, border-color .22s; }
.folder-tile:hover { transform: translateY(-4px); border-color: rgba(244,71,112,.3); box-shadow: 0 17px 34px rgba(91,42,57,.1); }
.folder-copy { min-width: 0; margin-top: auto; display: flex; flex-direction: column; gap: 3px; }
.folder-copy strong { overflow: hidden; font-family: "Manrope", sans-serif; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.folder-copy small { color: var(--muted); font-size: 11px; }
.folder-arrow { position: absolute; right: 16px; bottom: 18px; color: var(--rose); font-weight: 800; }
.add-folder-tile { justify-content: center; border-style: dashed; background: rgba(255,248,250,.5); }
.add-folder-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--rose); font-size: 25px; border-radius: 15px; background: var(--rose-soft); }
.add-folder-tile .folder-copy { margin-top: 13px; }
.subsection-folders { margin-bottom: 30px; }
.products-shelf { padding-top: 23px; border-top: 1px solid var(--border); }
.shelf-heading { margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.shelf-heading h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 16px; }
.shelf-heading span { padding: 3px 7px; color: var(--rose); font-size: 10px; font-weight: 800; border-radius: 999px; background: var(--rose-soft); }
.subsection-products { grid-template-columns: repeat(4, minmax(0,1fr)); }
.bunny-empty { min-height: 340px; }
.bunny-empty .button { margin-top: 20px; }

.lovecart-dialog { width: min(480px, calc(100% - 28px)); padding: 38px; position: fixed; overflow: visible; color: var(--ink); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; outline: none; background: #fffdfc; box-shadow: 0 35px 90px rgba(75,30,45,.25); }
.lovecart-dialog[open] { animation: dialog-in .23s ease both; }
.lovecart-dialog::backdrop { background: rgba(46,22,30,.38); backdrop-filter: blur(7px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.lovecart-dialog h2 { margin: 8px 0 7px; font-family: "Manrope", sans-serif; font-size: 27px; letter-spacing: -1px; }
.lovecart-dialog > .muted, .product-form-state > .muted { margin: 0 0 23px; }
.dialog-close { width: 34px; height: 34px; position: absolute; top: 15px; right: 15px; z-index: 3; color: var(--muted); font-size: 23px; border: 0; border-radius: 50%; background: var(--rose-soft); cursor: pointer; }
.invite-bunnies { margin-bottom: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 36px; }
.invite-bunnies b { color: var(--rose); font-size: 20px; animation: heart-pulse 1.25s ease-in-out infinite; }
@keyframes heart-pulse { 50% { transform: scale(1.2); } }
.loading-state { padding: 30px 0 10px; text-align: center; }
.loading-state[hidden] { display: none; }
.loading-state h2 { margin-top: 25px; }
.loading-state p { color: var(--muted); }
.is-loading .dialog-close { display: none; }
.jumping-bunny { width: 150px; height: 90px; margin: 0 auto; position: relative; }
.jumping-bunny i { width: 105px; height: 12px; position: absolute; left: 24px; bottom: 5px; border-radius: 50%; background: rgba(91,42,57,.13); animation: bunny-shadow 1s ease-in-out infinite; }
@keyframes bunny-hop { 0%,100% { transform: translateY(0) rotate(-3deg) scaleY(.94); } 45% { transform: translateY(-32px) rotate(4deg) scaleY(1.04); } }
@keyframes bunny-shadow { 0%,100% { opacity: .7; transform: scaleX(1); } 45% { opacity: .25; transform: scaleX(.55); } }
.loading-dots { display: flex; justify-content: center; gap: 6px; }
.loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); animation: dot-bounce .9s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .12s; }.loading-dots i:nth-child(3) { animation-delay: .24s; }
@keyframes dot-bounce { 50% { transform: translateY(-6px); opacity: .5; } }

@media (max-width: 900px) {
  .folder-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .subsection-products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .browser-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .relationship-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .relationship-actions .button, .relationship-actions .connection-card { width: 100%; }
  .folder-browser { padding: 17px; border-radius: 21px; }
  .folder-grid { grid-template-columns: 1fr; }
  .folder-tile { min-height: 128px; }
  .view-intro { align-items: flex-start; flex-direction: column; }
  .view-intro > .button { width: 100%; }
  .subsection-products { grid-template-columns: 1fr; }
  .breadcrumb-current b { max-width: 115px; }
  .lovecart-dialog { padding: 32px 22px 25px; }
}

/* Polished raster identity and sortable collections */
.brand-mark {
  width: 48px;
  height: 48px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 9px rgba(111, 55, 71, .16)); }
.browser-toolbar { min-height: 45px; }
.breadcrumbs button { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.74); border: 1px solid var(--border); }
.breadcrumbs button img { width: 24px; height: 24px; object-fit: contain; }
.folder-grid { align-items: stretch; }
.folder-tile {
  min-height: 176px;
  padding: 0;
  position: relative;
  overflow: visible;
  background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(255,248,247,.91));
}
.folder-open {
  width: 100%;
  min-height: 174px;
  padding: 15px 18px 17px;
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  text-align: left;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.folder-image { width: 92px; height: 86px; margin: -7px 0 1px -7px; object-fit: contain; filter: drop-shadow(0 9px 10px rgba(100,53,66,.13)); }
.folder-image.subsection-image { width: 78px; height: 78px; margin-top: -3px; }
.folder-open .folder-copy { padding-right: 22px; }
.add-folder-tile { padding: 20px; overflow: hidden; }
.add-folder-tile .add-folder-icon { margin-top: auto; }
.drag-handle {
  width: 35px;
  height: 35px;
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  color: #a77e89;
  font-size: 20px;
  line-height: 1;
  border: 1px solid rgba(94,48,62,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 14px rgba(72,34,46,.06);
  cursor: grab;
  touch-action: none;
}
.drag-handle:active { cursor: grabbing; }
.sortable-item { transition: transform .2s, opacity .2s, box-shadow .2s; }
.sortable-item.is-dragging { opacity: .5; transform: scale(.97); box-shadow: 0 22px 45px rgba(91,42,57,.18); }
.product-card { position: relative; overflow: visible; }
.product-card .product-image { border-radius: 16px 16px 0 0; }
.product-drag-handle { top: 8px; left: 8px; right: auto; width: 32px; height: 32px; color: var(--ink); background: rgba(255,255,255,.93); }
.item-menu { position: absolute; z-index: 12; top: 10px; right: 51px; }
.item-menu[open] { z-index: 30; }
.item-menu summary {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #8f7079;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  list-style: none;
  border: 1px solid rgba(94,48,62,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 14px rgba(72,34,46,.06);
  cursor: pointer;
}
.item-menu summary::-webkit-details-marker { display: none; }
.item-menu-popover {
  width: 164px;
  padding: 6px;
  position: absolute;
  top: 42px;
  right: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fffdfc;
  box-shadow: 0 16px 40px rgba(66,31,42,.17);
}
.item-menu-popover button {
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.item-menu-popover button:hover { background: var(--rose-soft); }
.item-menu-popover button.danger { color: #b72e4c; }
.product-item-menu { top: 8px; right: 8px; }
.product-item-menu summary { width: 32px; height: 32px; background: rgba(255,255,255,.94); }
.compact-dialog { width: min(440px, calc(100% - 28px)); }
.delete-item-name { margin: -12px 0 18px; color: var(--ink); font-weight: 800; }
.delete-warning { padding: 15px 16px; color: #784052; font-size: 13px; line-height: 1.55; border: 1px solid #f0c4cf; border-radius: 14px; background: #fff2f5; }
.delete-warning strong { color: #a92647; }
.dialog-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.danger-button { color: white; background: #bb3152; box-shadow: 0 10px 22px rgba(160,35,67,.18); }
.purchase-item-name { margin: -12px 0 18px; color: var(--ink); font-weight: 800; }
.purchase-warning { padding: 15px 16px; color: #66535a; font-size: 13px; line-height: 1.58; border: 1px solid #e9c7d0; border-radius: 14px; background: #fff4f6; }
.purchase-warning strong { display: block; margin-bottom: 3px; color: #ac2949; }
.purchase-confirm-button { color: white; background: linear-gradient(145deg, #f15f80, #c82d54); box-shadow: 0 10px 22px rgba(175,38,72,.2); }
.add-product-tile {
  min-height: 244px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--rose-dark);
  font-weight: 800;
  border: 1px dashed #e7b8c4;
  border-radius: 16px;
  background: rgba(255,249,249,.7);
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.add-product-tile:hover { transform: translateY(-2px); border-color: var(--rose); background: rgba(255,244,246,.9); }
.add-product-tile img { width: 100px; height: 100px; object-fit: contain; filter: drop-shadow(0 10px 11px rgba(91,42,57,.12)); }
.empty-bunny-image { width: 170px; height: 150px; object-fit: contain; filter: drop-shadow(0 13px 14px rgba(91,42,57,.13)); }
.dialog-asset { width: 88px; height: 76px; margin: -7px 0 12px -10px; object-fit: contain; filter: drop-shadow(0 9px 10px rgba(91,42,57,.13)); }
.invite-bunnies img { width: 70px; height: 70px; object-fit: contain; }
.invite-bunnies img:last-child { transform: scaleX(-1); }
.jumping-bunny img { width: 94px; height: 94px; position: absolute; z-index: 2; left: 28px; bottom: 12px; object-fit: contain; animation: bunny-hop 1s cubic-bezier(.4,0,.2,1) infinite; transform-origin: bottom; }
.sort-status {
  padding: 11px 17px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 28px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: #315f50;
  box-shadow: 0 12px 30px rgba(29,58,48,.22);
  opacity: 0;
  transform: translate(-50%, 15px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.sort-status.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sort-status.is-error { background: #a92f4c; }
.live-status {
  padding: 11px 17px;
  position: fixed;
  z-index: 1200;
  left: 50%;
  bottom: 28px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  background: #6f6266;
  box-shadow: 0 12px 30px rgba(49,42,44,.2);
  opacity: 0;
  transform: translate(-50%, 15px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
}
.live-status.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Comparador de tiendas sin API */
.product-card .comparison-image-button {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.product-info > .compare-button {
  width: 100%;
  padding: 8px 10px;
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #edc2cc;
  border-radius: 10px;
  background: #fff5f7;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.product-info > .compare-button:hover { transform: translateY(-1px); border-color: var(--rose); background: #ffecef; }
.product-owner-links { display: grid; gap: 7px; }
.product-owner-links > a { color: var(--rose-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.product-owner-links .compare-button {
  width: 100%;
  padding: 8px 10px;
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #edc2cc;
  border-radius: 10px;
  background: #fff5f7;
  cursor: pointer;
}
.comparison-dialog.lovecart-dialog {
  width: min(720px, calc(100% - 28px));
  max-width: 720px;
  max-height: min(86vh, 780px);
  padding: 32px;
  overflow-x: hidden;
  overflow-y: auto;
}
.comparison-dialog [data-comparison-results] { width: 100%; min-width: 0; }
.comparison-loading { padding: 40px 0 28px; text-align: center; }
.comparison-loading[hidden], .comparison-error[hidden] { display: none; }
.comparison-loading h2 { margin-top: 25px; }
.comparison-loading p, .comparison-summary { color: var(--muted); font-size: 13px; }
.comparison-summary { margin: 0 0 18px; }
.comparison-offers { display: grid; gap: 11px; }
.comparison-offer {
  min-height: 112px;
  padding: 12px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: white;
}
.comparison-offer.original-offer {
  border-color: #efaabc;
  background: linear-gradient(135deg, #fff3f6, #fffdfc);
  box-shadow: 0 10px 25px rgba(150,55,80,.08);
}
.comparison-offer-image {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--rose);
  font-size: 27px;
  border-radius: 13px;
  background: #f8f0f2;
}
.comparison-offer-image img { width: 100% !important; max-width: 88px; height: 100% !important; max-height: 88px; object-fit: contain; }
.comparison-offer-copy { min-width: 0; }
.comparison-store-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.comparison-store-row strong { font-family: "Manrope", sans-serif; font-size: 14px; }
.comparison-store-row span { padding: 3px 7px; color: #a42146; font-size: 9px; font-weight: 800; border-radius: 999px; background: #ffdce5; }
.comparison-offer-copy p { margin: 5px 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.comparison-price { display: block; color: var(--ink); font-family: "Manrope", sans-serif; font-size: 18px; }
.comparison-price:not(:empty) { letter-spacing: -.4px; }
.comparison-shop-link { padding: 9px 13px; font-size: 10px; white-space: nowrap; text-decoration: none; }
.comparison-footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.comparison-footer p { max-width: 490px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.comparison-refresh { flex: 0 0 auto; }
.comparison-error { padding: 14px 0 4px; text-align: center; }
.comparison-error .dialog-asset { margin-inline: auto; }
.comparison-error p { color: var(--muted); }
.comparison-error .button { margin-top: 8px; }

/* List switcher and boyfriend mirror theme */
.list-switcher {
  padding: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 9px 24px rgba(65,32,43,.07);
}
.list-switcher a {
  padding: 9px 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
}
.list-switcher a.active { color: white; background: linear-gradient(145deg, #ef5d7c, #c62c52); }

.spider-dashboard,
.spider-partner-dashboard { --spider-navy: #172448; --spider-red: #bd2945; --spider-blue: #334576; }
body:has(.spider-dashboard),
body:has(.spider-partner-dashboard) {
  --ink: #121b35;
  --muted: #59657d;
  --rose: #d22543;
  --rose-dark: #a91531;
  --rose-soft: #e9eef9;
  --cream: #f7f9fd;
  --card: rgba(248,250,255,.94);
  --border: rgba(27,43,82,.15);
  --shadow: 0 20px 55px rgba(16,29,66,.13);
  background-color: #e8edf7;
  background-image:
    url("spider-web-pattern.svg?v=2"),
    radial-gradient(circle at 14% 12%, rgba(189,41,69,.12), transparent 30%),
    radial-gradient(circle at 85% 24%, rgba(51,69,118,.18), transparent 29%),
    linear-gradient(145deg, #f4f6fb 0%, #e9edf6 52%, #f5f7fb 100%);
  background-position: center top, center, center, center;
  background-size: 560px 560px, auto, auto, auto;
  background-attachment: fixed;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}
.spider-dashboard::before,
.spider-partner-dashboard::before {
  content: none;
}
.spider-welcome,
.spider-partner-welcome {
  min-height: 0;
  padding: 0;
  position: static;
  overflow: visible;
  align-items: flex-end;
  color: inherit;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.spider-welcome > div:first-child,
.spider-partner-welcome > div:first-child { max-width: none; position: static; }
.spider-welcome h1,
.spider-partner-welcome h1 { color: var(--ink); text-shadow: none; }
.spider-welcome p,
.spider-partner-welcome p { color: var(--muted); }
.spider-welcome .eyebrow,
.spider-partner-welcome .eyebrow { color: var(--spider-red); }
.spider-welcome .relationship-actions,
.spider-partner-welcome .relationship-actions {
  position: static;
}
.spider-welcome .connection-card,
.spider-partner-welcome .connection-card { border-color: var(--border); background: rgba(248,250,255,.82); backdrop-filter: blur(12px); }
.spider-welcome .connection-card span,
.spider-partner-welcome .connection-card span { color: var(--muted); }
.spider-welcome .connection-card strong,
.spider-partner-welcome .connection-card strong { color: var(--ink); }
.spider-dashboard .folder-browser { border-color: rgba(51,69,118,.18); background: rgba(250,250,253,.78); }
.spider-dashboard .eyebrow { color: var(--spider-red); }
.spider-dashboard .count-pill,
.spider-dashboard .shelf-heading span { color: var(--spider-red); background: #e7ecf7; }
.spider-dashboard .breadcrumbs button { color: var(--spider-navy); border-color: rgba(51,69,118,.2); }
.spider-dashboard .folder-tile { border-color: rgba(51,69,118,.17); background: linear-gradient(150deg, #fff, #f3f5fa); }
.spider-dashboard .folder-tile:hover { border-color: rgba(189,41,69,.42); box-shadow: 0 17px 34px rgba(23,36,72,.13); }
.spider-dashboard .folder-arrow,
.spider-dashboard .add-folder-icon { color: var(--spider-red); }
.spider-dashboard .button.primary { background: linear-gradient(145deg, #d83c58, #99213d); box-shadow: 0 12px 26px rgba(153,33,61,.2); }
.spider-dashboard .product-owner-links .compare-button { color: var(--spider-navy); border-color: #bdc4d8; background: #f2f4fa; }
.spider-dashboard .product-owner-links > a { color: var(--spider-red); }
.spider-dashboard .add-product-tile { color: var(--spider-navy); border-color: #aeb8d3; background: rgba(245,247,252,.78); }
.spider-dashboard .add-product-tile:hover { border-color: var(--spider-red); background: #f8edf0; }
.spider-partner-dashboard .section-dot { background: var(--spider-red); }
.spider-partner-dashboard .compare-button { color: var(--spider-navy); border-color: #bdc4d8; background: #f2f4fa; }
.spider-partner-dashboard .list-switcher a.active,
.spider-dashboard .list-switcher a.active { background: linear-gradient(145deg, #d83c58, #991f3d); }

body:has(.spider-dashboard) .user-pill,
body:has(.spider-partner-dashboard) .user-pill { color: #31405f; background: rgba(246,249,255,.78); }
body:has(.spider-dashboard) .site-footer,
body:has(.spider-partner-dashboard) .site-footer { color: #66718a; }
body:has(.spider-dashboard) .folder-browser,
body:has(.spider-partner-dashboard) .wishlist { background: rgba(247,249,254,.84); box-shadow: 0 24px 70px rgba(15,29,66,.13); backdrop-filter: blur(18px); }
.spider-dashboard .breadcrumbs button { background: rgba(239,243,251,.94); }
.spider-dashboard .add-folder-tile { background: rgba(239,243,251,.78); }
.spider-dashboard .add-folder-icon { color: var(--spider-red); background: #e2e8f5; }
.spider-dashboard .empty-state,
.spider-partner-dashboard .empty-state { border-color: #aeb9d0; background: rgba(242,245,251,.82); }
.spider-dashboard .product-image,
.spider-partner-dashboard .product-image { background: linear-gradient(145deg, #eef2f9, #e1e7f2); }
.spider-dashboard .image-placeholder,
.spider-partner-dashboard .image-placeholder { color: #7b8baa; }
.spider-dashboard .drag-handle,
.spider-dashboard .item-menu summary { color: #4b5b7b; border-color: rgba(27,43,82,.14); background: rgba(248,250,255,.94); }
.spider-dashboard .item-menu-popover { background: #f8faff; }
.spider-dashboard .item-menu-popover button:hover { background: #e7ecf7; }
.spider-dashboard .section-empty,
.spider-partner-dashboard .section-empty { background: rgba(232,237,248,.75); }
.spider-dashboard .product-owner-links .compare-button:hover,
.spider-partner-dashboard .compare-button:hover { border-color: var(--spider-red); background: #e5eaf5; }
.spider-dashboard .lovecart-dialog,
.spider-partner-dashboard .lovecart-dialog { background: #f8faff; box-shadow: 0 35px 90px rgba(12,24,57,.3); }
.spider-dashboard .dialog-close,
.spider-partner-dashboard .dialog-close { background: #e4eaf6; }
img[src*="spider-bunny-mark.png"] {
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(16,29,66,.16);
}
img[src*="spider-loading-bunny.png"] {
  border-radius: 24%;
  background: #f4f6fb;
  box-shadow: 0 10px 24px rgba(16,29,66,.12);
}
.spider-dashboard .jumping-bunny img,
.spider-partner-dashboard .jumping-bunny img { box-shadow: 0 9px 20px rgba(16,29,66,.16); }

@media (max-width: 640px) {
  body { background-attachment: scroll; background-position: center top, center, center, center, center; background-size: 620px 620px, auto, auto, auto, auto; }
  .folder-tile, .folder-open { min-height: 152px; }
  .folder-image { width: 80px; height: 72px; }
  .add-product-tile { min-height: 190px; }
  .add-product-tile img { width: 82px; height: 82px; }
  .comparison-dialog.lovecart-dialog { padding: 30px 17px 22px; }
  .comparison-offer { grid-template-columns: 70px minmax(0,1fr); gap: 11px; }
  .comparison-offer-image { width: 70px; height: 70px; }
  .comparison-offer-image img { max-width: 70px; max-height: 70px; }
  .comparison-shop-link { grid-column: 1 / -1; text-align: center; }
  .comparison-footer { align-items: flex-start; flex-direction: column; }
  .relationship-actions { flex-wrap: wrap; }
  .list-switcher { width: 100%; }
  .list-switcher a { flex: 1; text-align: center; }
  body:has(.spider-dashboard), body:has(.spider-partner-dashboard) { background-size: 430px 430px, auto, auto, auto; background-position: center top, center, center, center; }
}
