:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #0e1028; background: #f5f3f6; }
* { box-sizing: border-box; }
body { margin: 0; }
button, a { font: inherit; }
button { cursor: pointer; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.favorites-shell { width: min(100%, 520px); min-height: 100vh; min-height: 100dvh; margin: auto; background: #fff; box-shadow: 0 4px 30px #2b00320b; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 18px 20px 10px; }
.icon-button { position: relative; display: grid; flex: none; place-items: center; width: 37px; height: 44px; color: #10112a; text-decoration: none; }
.icon-button svg { width: 27px; height: 27px; }
.back svg { transform: rotate(180deg); }
.brand { display: flex; align-items: center; justify-content: center; flex: 1; min-width: 0; gap: 7px; color: #4a006f; text-decoration: none; line-height: 1; }
.brand-bag { display: grid; flex: none; place-items: center; width: 37px; height: 40px; border-radius: 9px; color: #fff; background: linear-gradient(#ffa400, #ff6900); }
.brand-bag svg { width: 22px; height: 22px; }
.brand strong { display: block; font-size: clamp(20px, 6vw, 27px); letter-spacing: -.8px; }
.brand small { display: block; margin-top: 3px; color: #171126; font-size: 10px; white-space: nowrap; }
.top-actions { display: flex; flex: none; gap: 2px; }
.cart span { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 1px 3px; border-radius: 20px; color: white; background: #ff6d00; font-size: 11px; font-weight: 700; text-align: center; }
.favorites-main { padding: 16px 22px 40px; }
h1 { margin: 0; font-size: clamp(30px, 8.5vw, 38px); line-height: 1.1; letter-spacing: -1px; }
.subtitle { margin: 5px 0 22px; font-size: 16px; }
.filter-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #ecebef; }
.filter-tabs button { min-width: 0; min-height: 48px; padding: 8px 3px 12px; border: 0; border-bottom: 3px solid transparent; color: #121126; background: none; font-size: 15px; font-weight: 700; }
.filter-tabs button[aria-selected="true"] { border-color: #7800aa; color: #7800aa; }
.favorite-item { display: grid; grid-template-columns: minmax(88px, 32%) minmax(0, 1fr) 36px; gap: 12px; padding: 22px 0 16px; border-bottom: 1px solid #e8e7eb; }
.product-image { display: block; grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f8f6f7; }
.product-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-info { min-width: 0; }
.product-info h2 { margin: 0; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.product-info h2 a { color: inherit; text-decoration: none; }
.product-detail, .product-stock, .product-rating { margin: 4px 0 0; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.product-price { margin: 7px 0 0; color: #f35313; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.product-rating span { color: #f6b600; }
.product-stock { color: #168b26; font-weight: 700; }
.item-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.item-actions button { display: grid; place-items: center; width: 36px; min-height: 38px; padding: 4px; border: 0; color: #10112a; background: transparent; }
.item-actions .remove-heart { color: #ed1631; }
.remove-heart svg { width: 28px; height: 28px; fill: currentColor; stroke: currentColor; }
.more-icon { font-size: 25px; line-height: 1; }
.item-menu { position: absolute; z-index: 2; top: 78px; right: 0; width: 170px; padding: 4px; border: 1px solid #e5dfeb; border-radius: 10px; background: white; box-shadow: 0 5px 18px #24132e24; }
.item-menu button { display: block; width: 100%; min-height: 38px; padding: 8px; color: #5a007e; font-size: 13px; text-align: left; }
.add-cart { grid-column: 2 / 4; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 42px; padding: 6px 8px; border: 1.5px solid #7900ae; border-radius: 24px; color: #7600a6; background: #fff; font-size: 14px; font-weight: 700; }
.add-cart:disabled { opacity: .5; cursor: not-allowed; }
.add-cart svg { width: 22px; height: 22px; flex: none; }
.empty { padding: 58px 12px; text-align: center; }
.empty svg { width: 44px; height: 44px; margin: auto; color: #8d36ae; }
.empty p { margin: 15px 0 22px; line-height: 1.45; }
.empty a { display: inline-block; padding: 12px 20px; border-radius: 24px; color: white; background: #7800aa; font-weight: 700; text-decoration: none; }
.warning { padding: 12px; border-radius: 10px; color: #7d3b00; background: #fff1db; font-size: 13px; line-height: 1.4; }
.demo-note { margin: 20px 0 0; color: #77707d; font-size: 12px; line-height: 1.4; }
.toast { position: fixed; z-index: 5; right: 20px; bottom: 20px; left: 20px; width: fit-content; max-width: min(420px, calc(100% - 40px)); margin: auto; padding: 12px 18px; border-radius: 12px; color: #fff; background: #370050; font-size: 14px; }
@media (max-width: 340px) { .topbar { gap: 2px; padding-right: 10px; padding-left: 10px; } .favorites-main { padding-right: 15px; padding-left: 15px; } .favorite-item { grid-template-columns: minmax(78px, 30%) minmax(0, 1fr) 32px; gap: 8px; } .item-actions button { width: 32px; } .product-info h2 { font-size: 15px; } .product-price { font-size: 17px; } .filter-tabs button { font-size: 14px; } }
