/* Shared cream and purple design, based on the approved feed reference. */
html:root,body.social-theme{--cream:#fff8ef;--ink:#291b30;--wine:#631174;--accent:#7b168d;--green:#631174;--muted:#75687c;--line:#eadfe9;--brand-primary:#631174;--brand-border:#eadfe9;--brand-soft:#efe2ef}
body,.social-theme{background:var(--cream);color:var(--ink)}
.boutique-header,.commerce-top,.commerce-nav,.admin-topbar{background:var(--cream)}
:is(.primary,.primary-button,.reel-shop,.account-primary,.chat-dock-launcher){background:var(--accent);border-radius:16px;color:white}
:is(.secondary-button,.seller-mode-link){background:var(--brand-soft);border:1px solid transparent;border-radius:24px;color:var(--wine)}
.seller-mode-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 16px;font-weight:700;white-space:nowrap}.seller-mode-link svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7}
:is(.product-card,.cart-summary,.checkout-summary,.delivery-card,.profile-card,.admin-panel,.account-panel){border-radius:20px}
:is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:12px}
:is(button,a,input,textarea,select):focus-visible{outline:3px solid #b17cbe;outline-offset:3px}
:is(.mobile-bottom-nav,.customer-bottom-nav,.social-bottom-nav){background:var(--cream);border-top:1px solid var(--line)}
:is(.mobile-bottom-nav,.customer-bottom-nav,.social-bottom-nav) svg{width:27px;height:27px}
:is([data-bag-count],#bag-count,.nav-badge){background:#f04444;color:white}
/* The feed story remains media-first, with controls outside the product copy. */
.social-theme .social-main{max-width:600px}
.social-theme .social-feed-tabs{display:flex;align-items:center;justify-content:center;gap:0;padding:5px;margin:10px 24px 18px;background:var(--brand-soft);border:0;border-radius:36px;isolation:isolate}
.social-theme .social-feed-tabs button{flex:1;min-width:0;padding:12px 14px;border:0;border-radius:30px;font:600 15px/1.3 var(--brand-font);color:var(--muted);background:transparent}
.social-theme .social-feed-tabs button.is-active{background:var(--accent);color:white}
.social-theme .social-feed-tabs button:after{display:none}
.social-theme .reel-card{position:relative;overflow:hidden;isolation:isolate;border:0;border-radius:22px;margin-bottom:22px;background:#39232f}
.social-theme .reel-media{height:min(790px,calc(100dvh - 190px));min-height:520px;aspect-ratio:auto;max-height:none;background:#39232f}
.social-theme .reel-media:after{content:'';position:absolute;inset:30% 0 0;background:linear-gradient(transparent,rgba(62,30,51,.15) 30%,rgba(58,25,47,.94));pointer-events:none;z-index:1}
.social-theme .reel-story{position:absolute;left:16px;right:16px;bottom:18px;z-index:3;display:flex;flex-direction:column;gap:12px;pointer-events:none}
.social-theme .reel-story>*{pointer-events:auto}
.social-theme .reel-header{padding:0;display:flex;align-items:center;gap:10px;border:0;background:none;color:white}
.social-theme .reel-portrait-link{flex-shrink:0;line-height:0}.social-theme .reel-avatar{width:42px;height:42px;border:2px solid white;background:var(--accent);color:white;object-fit:cover;border-radius:50%}
.social-theme .reel-seller{color:white;font:700 16px/1.3 var(--brand-font);min-width:0;overflow-wrap:anywhere}
.social-theme .reel-follow{margin-left:auto;flex-shrink:0;background:transparent;color:white;border:1px solid #ffffffba;border-radius:12px;padding:9px 16px;font-weight:650}
.social-theme .reel-caption{margin:0;padding:0 56px 0 0;color:white;font-size:14px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.social-theme .reel-caption strong{display:none}
.social-theme .reel-product{padding:12px;gap:12px;background:#fff8eff7;border:0;border-radius:20px;display:flex;align-items:center;box-shadow:0 5px 24px #28102a15}
.social-theme .reel-product>img{width:54px;height:60px;object-fit:cover;border-radius:12px}
.social-theme .reel-product-copy{flex:1;min-width:0;color:var(--ink)}.social-theme .reel-product-copy strong{font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.social-theme .reel-product-copy span{display:block;font-size:17px;font-weight:750;margin-top:5px;color:var(--ink)}
.social-theme .reel-shop{background:var(--accent);color:white;border:0;border-radius:15px;padding:14px;font-weight:700;font-size:13px;flex-shrink:0;min-height:46px}
.social-theme .reel-actions{position:absolute;right:12px;top:86px;bottom:245px;z-index:4;width:48px;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;border:0}
.social-theme .reel-actions::-webkit-scrollbar{display:none}
.social-theme .reel-actions :is(button,a){flex:0 0 auto;display:flex;align-items:center;justify-content:center;position:relative;width:46px;height:46px;min-height:46px;padding:10px;border:0;border-radius:50%;background:#352e2bbf;color:white;font-size:10px}
.social-theme .reel-actions svg{width:26px;height:26px;flex-shrink:0}.social-theme .reel-actions span{position:absolute;bottom:0;right:-2px;background:#352e2b;border-radius:8px;padding:1px 4px;color:white;font-size:9px}.social-theme .reel-actions span:empty{display:none}
.social-theme .reel-actions .reel-like{color:#f04444!important}
.social-theme .reel-mute{position:absolute;top:18px;right:12px;z-index:4;width:46px;height:46px;border:0;border-radius:50%;background:#352e2bbf;color:white;padding:10px;font-size:0}.social-theme .reel-mute svg{width:26px;height:26px}
.social-theme .reel-notice{position:absolute;top:16px;left:12px;right:74px;z-index:5;border-radius:12px;background:var(--cream);color:var(--ink);padding:10px}.social-theme .reel-notice:empty{display:none}
/* Grid tabs keep image-first previews; expanding a tile restores the story. */
.social-theme .social-feed.is-grid .reel-media{height:auto;min-height:0;aspect-ratio:3/4}.social-theme .social-feed.is-grid .reel-media:after{display:none}.social-theme .social-feed.is-grid .reel-story{position:static;padding:10px}.social-theme .social-feed.is-grid .reel-header{color:var(--ink)}.social-theme .social-feed.is-grid .reel-seller{color:var(--ink);font-size:12px}.social-theme .social-feed.is-grid .reel-avatar{width:26px;height:26px}.social-theme .social-feed.is-grid .reel-card{background:var(--cream);border:1px solid var(--line)}
.social-theme .social-feed.is-grid .reel-actions{display:none}.social-theme .social-feed.is-grid .is-expanded .reel-media{min-height:560px}.social-theme .social-feed.is-grid .is-expanded .reel-story{position:absolute;padding:0;bottom:58px}.social-theme .social-feed.is-grid .is-expanded .reel-seller{color:white}.social-theme .social-feed.is-grid .is-expanded .reel-media:after{display:block}.social-theme .social-feed.is-grid .is-expanded .reel-actions{display:flex}
@media(max-width:650px){.social-theme .social-intro{display:none}.social-theme .social-main{padding-top:0;max-width:none}.social-theme .social-feed-tabs{margin:10px 32px 14px;top:var(--social-header-height,68px)}.social-theme .reel-card{border-radius:0;margin-bottom:2px}.social-theme .reel-media{height:calc(100svh - var(--social-header-height,68px) - 138px);min-height:530px}.social-theme .reel-product{gap:8px;padding:10px}.social-theme .reel-product-copy strong{font-size:13px}.social-theme .reel-shop{padding:13px 10px;font-size:12px}.social-theme .reel-story{left:14px;right:14px}.commerce-top .seller-mode-link{display:inline-flex!important;font-size:12px;min-height:36px;padding:8px 10px}.commerce-top .seller-mode-link svg{width:18px;height:18px}.social-theme .chat-dock-launcher{display:none}.social-theme .social-feed-tabs button{font-size:14px;padding:10px 8px}}
@media(max-width:360px){.commerce-top .seller-mode-link{font-size:11px;padding:7px}.social-theme .reel-product>img{width:42px;height:50px}.social-theme .reel-shop{font-size:11px}.social-theme .reel-seller{font-size:14px}.social-theme .reel-follow{padding:8px 10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

.password-control{position:relative;display:block}.password-control input{padding-right:54px!important;width:100%}.password-toggle{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border:0!important;background:transparent!important;color:var(--wine,#631174);cursor:pointer;padding:0!important}.password-toggle:focus-visible{outline:2px solid #7B168D;outline-offset:1px;border-radius:8px}

.chat-avatar img,.chat-dock-thread-avatar img,.topbar-thread-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.chat-avatar,.chat-dock-thread-avatar{overflow:hidden;flex-shrink:0}.chat-peer-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;float:left;margin-right:10px}
