/* Keep editable controls at their native readable size to avoid mobile focus zoom. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html body input, html body textarea, html body select, html body [contenteditable="true"] { font-size: max(16px, 1rem) !important; }
html body input:focus, html body textarea:focus, html body select:focus { transform: none !important; }
.product-detail-card { position: relative; }
.detail-toolbar { position: absolute; top: 12px; right: 12px; z-index: 8; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 0; background: transparent; border: 0; }
.detail-icon-actions { display: flex; gap: 8px; }
.detail-toolbar .icon-button { position: static; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; margin: 0; padding: 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #eef2f4; background: rgba(12,20,29,.76); box-shadow: 0 3px 12px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.detail-toolbar .detail-close, .product-detail-modal .viewer-close { display: grid; place-items: center; box-sizing: border-box; padding: 0; line-height: 1; }
.detail-toolbar .detail-close svg, .product-detail-modal .viewer-close svg { display: block; width: 22px; height: 22px; margin: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.detail-toolbar svg,.product-favorite svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.detail-toolbar .detail-favorite.active,.product-favorite.active { color: #ff6485; }
.detail-favorite.active svg,.product-favorite.active svg { fill: currentColor; }
.product-favorite { display: grid; place-items: center; }
.product-favorite.active { background: #fff0f3; color: #cc224d; border-color: #ffc3cf; }
.detail-toolbar .copied { color: var(--lime); }
.detail-toolbar button:hover { border-color: var(--cyan); }
.storewide-sale-banner strong { overflow-wrap: anywhere; }
.tracking-section { padding: 70px max(5vw,20px); background: #0d151d; color: #eef4f8; }
.tracking-intro { max-width: 760px; margin: 0 auto 24px; }
.tracking-intro h2 { margin: 8px 0 12px; font: 600 clamp(30px,5vw,46px)/1.12 var(--display); }
.tracking-intro p { color: #aabac6; font-size: 16px; line-height: 1.6; }
.tracking-card { max-width: 760px; margin: auto; padding: clamp(18px,4vw,30px); border-radius: 20px; border: 1px solid rgba(108,230,239,.23); background: #141f2a; }
#order-tracking-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; }
#order-tracking-form label { display: grid; gap: 8px; font-size: 16px; }
#order-tracking-form input { width: 100%; min-width: 0; min-height: 48px; text-transform: uppercase; background: #0c151e; color: #fff; }
#order-tracking-form button { min-height: 48px; }
#order-tracking-form button.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mc-spin .7s linear infinite; }
#order-tracking-message { margin: 16px 0 0; color: #aebec9; font-size: 14px; line-height: 1.6; }
#order-tracking-result { margin-top: 24px; }
#order-tracking-result > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 14px; }
#order-tracking-result h3 { margin: 6px 0; font-size: 18px; overflow-wrap: anywhere; }
.tracking-status { padding: 8px 13px; border-radius: 24px; background: rgba(199,255,61,.13); color: var(--lime); font-size: 14px; }
.tracking-status.cancelled { color: #ff8b7d; background: rgba(255,100,100,.1); }
.order-timeline { list-style: none; padding: 0; margin: 25px 0 15px; display: grid; gap: 0; }
.order-timeline li { position: relative; display: flex; gap: 15px; padding-bottom: 28px; min-width: 0; }
.order-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 38px; left: 18px; bottom: 0; width: 2px; background: #324350; }
.order-timeline li.reached:not(:last-child)::after { background: #789b33; }
.timeline-marker { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #415261; background: #1b2a36; color: #aec0cd; border-radius: 50%; font-size: 14px; }
.timeline-marker svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reached .timeline-marker { color: #142007; background: var(--lime); border-color: var(--lime); }
.current .timeline-marker { box-shadow: 0 0 0 5px rgba(199,255,61,.13); }
.order-timeline strong { display: block; margin-top: 2px; font-size: 16px; }
.order-timeline small { display: block; margin-top: 4px; color: #a4b5c3; font-size: 14px; }
.tracking-updated { color: #a4b5c3; font-size: 14px; }
.admin-feedback { position: fixed; inset: 0; margin: auto; padding: 30px 24px; width: min(400px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid #3b5260; border-radius: 22px; text-align: center; background: #101b26; color: #f2f6f7; box-shadow: 0 25px 90px #0008; }
.admin-feedback::backdrop { background: rgba(3,8,14,.72); backdrop-filter: blur(6px); }
.feedback-symbol { display: grid; place-items: center; height: 62px; margin-bottom: 18px; }
.feedback-spinner { width: 50px; height: 50px; border: 3px solid #354750; border-top-color: var(--lime); border-radius: 50%; animation: mc-spin .8s linear infinite; }
.feedback-symbol svg { display: none; width: 54px; height: 54px; fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin-feedback:not([data-state="loading"]) .feedback-spinner { display: none; }
.admin-feedback:not([data-state="loading"]) .feedback-symbol svg { display: block; }
.admin-feedback[data-state="error"] svg { stroke: #ff8976; }
.admin-feedback h2 { margin: 0 0 12px; font: 600 23px var(--display); }
.feedback-message { font-size: 16px; line-height: 1.5; color: #b5c5d0; overflow-wrap: anywhere; }
.admin-feedback progress { width: 100%; accent-color: #c7ff3d; }
.feedback-dismiss { margin-top: 15px; color: #111b0a; background: #c7ff3d; }
html[data-theme="light"] .detail-toolbar { background: transparent; }
html[data-theme="light"] .detail-toolbar .icon-button { background: rgba(255,255,255,.9); color: #1a2b38; border-color: rgba(255,255,255,.6); }
html[data-theme="light"] .detail-toolbar .detail-favorite.active { color: #d92a55; }
html[data-theme="light"] .detail-toolbar .copied { color: #45721e; }
html[data-theme="light"] .tracking-section { background: #ecf3f6; color: #172d3b; }
html[data-theme="light"] .tracking-card { background: #fff; border-color: #cedee5; }
html[data-theme="light"] #order-tracking-form input { background: #f4f7f9; color: #172d3b; }
html[data-theme="light"] .tracking-intro p,html[data-theme="light"] #order-tracking-message,html[data-theme="light"] .tracking-updated,html[data-theme="light"] .order-timeline small { color: #506675; }
html[data-theme="light"] .tracking-status { background: #e2f5bc; color: #335d19; }
html[data-theme="light"] .tracking-status.cancelled { background: #ffe5df; color: #9c3626; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
@media(max-width:600px){#order-tracking-form{grid-template-columns:1fr}.tracking-section{padding:45px 16px}.detail-toolbar{top:10px;right:10px;gap:6px}.detail-icon-actions{gap:6px}}
@media(prefers-reduced-motion:reduce){.feedback-spinner,#order-tracking-form button.is-loading::before{animation-duration:2s}}
