/* REDIGI marketplace refinement — scoped additions, original theme preserved. */

/* Home category and popular sliders */
.home-auto-slider{position:relative;min-width:0}.home-slider-viewport{min-width:0}.home-slider-controls{display:none;align-items:center;justify-content:center;gap:12px;margin-top:16px}.home-slider-controls>button{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:#fff;font-size:24px;line-height:1;transition:border-color .2s ease,background .2s ease,transform .2s ease}.home-slider-controls>button:active{transform:scale(.94)}.home-slider-controls>div{display:flex;align-items:center;justify-content:center;gap:6px;min-width:42px}.home-slider-controls>div button{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:#555b68;transition:width .25s ease,background .25s ease}.home-slider-controls>div button.active{width:22px;background:var(--primary-2)}.home-auto-slider:not(.is-scrollable) .home-slider-controls{display:none!important}
.category-auto-slider .category-card,.popular-auto-slider .trend-item{transition:border-color .28s ease,background .28s ease,transform .28s ease,box-shadow .28s ease}.category-auto-slider .home-slide.is-active,.popular-auto-slider .home-slide.is-active{border-color:rgba(239,35,60,.42);box-shadow:0 16px 42px rgba(0,0,0,.2),0 0 0 1px rgba(239,35,60,.06) inset}

/* Order detail */
.order-detail-hero h1{overflow-wrap:anywhere}.order-detail-section{overflow:hidden}.order-detail-section .order-detail-grid,.order-detail-section .order-main-column,.order-detail-section .store-order-card,.order-detail-section .order-summary-card,.order-detail-section .timeline-card{min-width:0}.order-detail-section .order-detail-grid{grid-template-columns:minmax(0,1fr) minmax(290px,340px);gap:22px;align-items:start}.order-detail-section .order-main-column{display:grid;gap:18px}.order-detail-section .store-order-card{padding:0;overflow:visible;background:linear-gradient(145deg,rgba(24,27,35,.98),rgba(15,17,23,.98));box-shadow:0 18px 52px rgba(0,0,0,.16)}.order-detail-section .order-store-head{padding:19px 20px 16px;border-bottom:1px solid var(--line);border-radius:18px 18px 0 0}.order-detail-section .order-store-head>div:first-child{min-width:0}.order-detail-section .order-store-head h2{overflow-wrap:anywhere}.order-detail-section .order-store-head>div:last-child{min-width:145px;text-align:right}.order-store-items{padding:0 18px}.order-detail-section .order-product-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;justify-content:initial;gap:13px;padding:16px 0}.order-product-thumb{width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:radial-gradient(circle,color-mix(in srgb,var(--accent),transparent 72%),#0d0f14);font-size:22px}.order-product-thumb img,.order-product-image{display:block;width:100%;height:100%;object-fit:contain;padding:3px}.order-product-copy{min-width:0}.order-product-copy strong{overflow-wrap:anywhere;line-height:1.35}.order-product-total{white-space:nowrap;text-align:right}.order-detail-section .delivery-vault,.order-detail-section .manual-delivery-form,.order-detail-section .review-form{margin-inline:0}.order-detail-section .delivery-secret{min-width:0}.order-detail-section .delivery-secret pre{min-width:0}.order-store-finance{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0!important;padding:0!important;border-top:1px solid var(--line-soft);color:inherit!important}.order-store-finance>span{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px}.order-store-finance>span+span{border-left:1px solid var(--line-soft)}.order-store-finance small{color:var(--muted)}.order-store-finance b{white-space:nowrap;color:#fff}.order-detail-section .store-order-actions{margin:0;padding:15px 18px;border-top:1px solid var(--line-soft);background:rgba(255,255,255,.012)}.order-detail-section .store-order-actions>form,.order-detail-section .store-order-actions>.btn,.order-detail-section .store-order-actions>details{min-width:0}.order-detail-section .store-order-actions .btn{min-height:40px}.order-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:17px}.order-card-title h2{margin:4px 0 0}.order-card-title>span{color:var(--muted);font-size:10px;white-space:nowrap}.order-detail-section .timeline-card{margin-top:0;padding:21px}.order-detail-section .timeline-row{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr)!important;gap:13px;padding:12px 0}.order-detail-section .timeline-row:before{grid-column:1;grid-row:1;z-index:1}.order-detail-section .timeline-row:after{content:"";position:absolute;left:4px;top:27px;bottom:-10px;width:1px;background:var(--line)}.order-detail-section .timeline-row:last-child:after{display:none}.order-detail-section .timeline-row>div{grid-column:2;min-width:0}.order-detail-section .timeline-row p{margin:2px 0;color:#d5d8df;overflow-wrap:anywhere}.order-detail-section .timeline-row small{overflow-wrap:anywhere}.order-empty-copy{margin:0}.order-detail-section .order-summary-card{padding:21px;overflow:hidden}.order-summary-lines{display:grid;margin:0 0 16px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:rgba(0,0,0,.1)}.order-summary-lines>span{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid var(--line-soft)}.order-summary-lines>span:last-child{border-bottom:0}.order-summary-lines small{color:var(--muted)}.order-summary-lines b{white-space:nowrap}.order-summary-lines .summary-total{padding-block:15px;background:rgba(239,35,60,.055)}.order-summary-lines .summary-total small,.order-summary-lines .summary-total b{color:#fff;font-size:15px}.order-summary-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:15px}.order-summary-status-grid>span{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#101218}.order-summary-status-grid small{color:var(--muted)}.order-detail-section .order-summary-card>.btn{margin-top:9px}.order-detail-section .inline-dispute form{z-index:50}

/* Support page compact mobile alignment */
.support-layout{min-width:0}.support-layout>*{min-width:0}.support-layout .form-card>.btn{min-height:44px}.support-layout .ticket-list .muted-copy{padding:18px;margin:0}.support-layout .table-card{overflow:hidden}

@media(max-width:1100px){.order-detail-section .order-detail-grid{grid-template-columns:1fr}.order-detail-section .order-summary-card{position:static}.order-summary-lines{grid-template-columns:repeat(2,minmax(0,1fr))}.order-summary-lines>span:nth-child(odd){border-right:1px solid var(--line-soft)}.order-summary-lines>span:nth-last-child(-n+2){border-bottom:0}}

@media(max-width:900px){
  .home-slider-viewport{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior-inline:contain;padding:2px 2px 12px}.home-slider-viewport::-webkit-scrollbar{display:none}.home-slider-track{width:max-content;min-width:100%}.home-slider-controls{display:flex}.category-auto-slider .category-grid,.popular-auto-slider .trend-list{display:flex;grid-template-columns:none;gap:12px}.category-auto-slider .category-card{flex:0 0 min(82vw,350px);width:min(82vw,350px);min-height:118px;scroll-snap-align:start;scroll-snap-stop:always;padding:18px}.category-auto-slider .category-card small{display:block;white-space:normal}.category-auto-slider .category-icon{width:52px;height:52px;font-size:25px}.popular-auto-slider .trend-item{flex:0 0 min(88vw,410px);width:min(88vw,410px);min-height:142px;scroll-snap-align:start;scroll-snap-stop:always;grid-template-columns:38px 60px minmax(0,1fr);grid-template-rows:auto auto;padding:18px 16px}.popular-auto-slider .trend-item>b{grid-column:3;justify-self:start;font-size:18px}.popular-auto-slider .trend-icon{width:58px;height:58px}.trend-layout{gap:28px}
}

@media(max-width:720px){
  .order-detail-hero{padding-bottom:34px}.order-detail-hero h1{font-size:30px!important}.order-detail-section{padding-top:22px;padding-bottom:110px}.order-detail-section .container{width:min(calc(100% - 18px),var(--container))}.order-detail-section .order-summary-card,.order-detail-section .timeline-card{padding:17px;border-radius:16px}.order-detail-section .order-store-head{align-items:flex-start;padding:16px}.order-detail-section .order-store-head>div:last-child{min-width:0}.order-detail-section .order-store-head>div:last-child small{font-size:9px}.order-store-items{padding:0 14px}.order-detail-section .order-product-row{grid-template-columns:46px minmax(0,1fr);gap:11px}.order-product-thumb{width:46px;height:46px}.order-product-total{grid-column:2;text-align:left;font-size:13px}.order-detail-section .delivery-vault{padding:12px}.order-detail-section .delivery-secret{grid-template-columns:auto minmax(0,1fr);gap:8px}.order-detail-section .delivery-secret .copy-button{grid-column:2;justify-self:start}.order-store-finance{grid-template-columns:1fr}.order-store-finance>span{padding:12px 15px}.order-store-finance>span+span{border-left:0;border-top:1px solid var(--line-soft)}.order-detail-section .store-order-actions{display:grid;grid-template-columns:1fr;padding:13px 14px}.order-detail-section .store-order-actions>form,.order-detail-section .store-order-actions>.btn,.order-detail-section .store-order-actions>details,.order-detail-section .store-order-actions form .btn{width:100%}.order-detail-section .inline-dispute form{position:static;width:100%;margin-top:9px}.order-summary-lines{grid-template-columns:1fr}.order-summary-lines>span,.order-summary-lines>span:nth-child(odd){border-right:0;border-bottom:1px solid var(--line-soft)}.order-summary-lines>span:last-child{border-bottom:0}.order-summary-status-grid{grid-template-columns:1fr 1fr}.order-card-title{margin-bottom:13px}.order-card-title h2{font-size:21px}.order-detail-section .timeline-row p{font-size:12px}.support-layout{padding-bottom:76px}.support-layout .form-card>.btn{width:100%}.support-layout .ticket-list>a{align-items:flex-start;flex-direction:column}.support-layout .ticket-list>a .badge{align-self:flex-start}
}

@media(max-width:430px){.category-auto-slider .category-card{flex-basis:86vw;width:86vw}.popular-auto-slider .trend-item{flex-basis:88vw;width:88vw}.order-summary-status-grid{grid-template-columns:1fr}.home-slider-controls{margin-top:10px}.home-slider-controls>button{width:36px;height:36px}}

@media(prefers-reduced-motion:reduce){.home-slider-viewport{scroll-behavior:auto}.category-auto-slider .category-card,.popular-auto-slider .trend-item,.home-slider-controls button{transition:none}}

/* Public seller profile alignment */
.store-profile .store-profile-main{min-width:0}.store-profile .store-profile-main>div{min-width:0}.store-profile .store-name-line h1{overflow-wrap:anywhere}.store-profile .growth-store-actions{justify-content:flex-end}
@media(max-width:720px){.store-profile .store-cover{height:210px}.store-profile .store-profile-main{grid-template-columns:88px minmax(0,1fr);gap:13px;align-items:start;margin-top:-44px;padding:0 4px 20px}.store-profile .store-profile-logo{width:86px;height:86px;border-width:4px;border-radius:21px;font-size:30px}.store-profile .store-profile-main>div:nth-child(2){padding-top:52px}.store-profile .store-name-line{align-items:flex-start;gap:7px}.store-profile .store-name-line h1{font-size:27px}.store-profile .verified-pill{margin-top:3px}.store-profile .store-profile-main p{font-size:13px;line-height:1.55}.store-profile .store-profile-stats{gap:8px 14px;flex-wrap:wrap}.store-profile .growth-store-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;width:100%;margin-top:4px}.store-profile .growth-store-actions .btn,.store-profile .growth-store-actions form,.store-profile .growth-store-actions form button{width:100%}}
@media(max-width:430px){.store-profile .store-name-line{flex-direction:column}.store-profile .growth-store-actions{grid-template-columns:1fr}}

/* REDIGI hotfix — keep mobile auto sliders inside the page width. */
html,body,main{max-width:100%}
html,body{overflow-x:hidden}
@supports(overflow:clip){html,body{overflow-x:clip}}
.trend-layout,.trend-layout>*,.trend-products,.home-auto-slider,.home-slider-viewport{min-width:0;max-width:100%}
@media(max-width:900px){
  .trend-layout{max-width:100%;min-width:0}
  .trend-products,.trend-layout>.trend-products,.trend-layout>.live-panel{width:100%;max-width:100%;min-width:0}
  .home-auto-slider{display:block;width:100%;max-width:100%;min-width:0;overflow:hidden}
  .home-slider-viewport{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;contain:inline-size}
  .home-slider-track{display:grid!important;grid-auto-flow:column;width:100%!important;min-width:0!important;max-width:100%!important}
  .category-auto-slider .category-grid{grid-template-columns:none!important;grid-auto-columns:calc(50% - 6px);gap:12px}
  .popular-auto-slider .trend-list{grid-template-columns:none!important;grid-auto-columns:100%;gap:12px}
  .category-auto-slider .category-card,.popular-auto-slider .trend-item{width:100%!important;max-width:none!important;min-width:0!important;flex:none!important}
  .popular-auto-slider .trend-item{grid-template-columns:38px 60px minmax(0,1fr);grid-template-rows:auto auto}
}
@media(max-width:600px){
  .category-auto-slider .category-grid{grid-auto-columns:calc(100% - 14px)}
  .popular-auto-slider .trend-list{grid-auto-columns:calc(100% - 8px)}
}
