@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500&display=swap');

.but-wrap { font-family:'DM Sans',-apple-system,sans-serif; max-width:900px; margin:0 auto; padding:0 32px; box-sizing:border-box; color:#2A241E; }

/* Hero */
.but-hero { display:flex; gap:40px; align-items:flex-start; padding:40px 0 32px; flex-wrap:wrap; }
.but-hero-text { flex:1; min-width:240px; }
.but-headline { font-family:'Cormorant Garamond',serif; font-size:32px; font-weight:600; line-height:1.2; color:#2A241E; margin:0 0 10px; }
.but-subhead { font-size:14px; color:#6E635A; line-height:1.65; margin:0; max-width:340px; }
.but-search-col { flex:1; min-width:260px; padding-top:4px; }
.but-search-row { display:flex; gap:8px; margin-bottom:10px; }
.but-input { flex:1; padding:12px 16px; border:1.5px solid #e8ddd5; border-radius:50px; font-size:15px; font-family:inherit; color:#2A241E; background:#fff; outline:none; transition:border-color .15s; }
.but-input:focus { border-color:#d4899a; }
.but-btn { background:#2A241E; color:#fff; border:none; border-radius:50px; padding:12px 22px; font-size:14px; font-weight:500; font-family:inherit; cursor:pointer; white-space:nowrap; transition:background .15s; }
.but-btn:hover { background:#4a3e32; }
.but-try-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.but-try-lbl { font-size:11px; font-weight:500; letter-spacing:.08em; color:#9a8f88; }
.but-try-pill { background:transparent; border:1px solid #e8ddd5; border-radius:20px; padding:4px 12px; font-size:12px; font-family:inherit; color:#6E635A; cursor:pointer; transition:all .15s; }
.but-try-pill:hover { border-color:#d4899a; color:#b07090; }

/* Error */
.but-error { background:#fff3f3; border:1px solid #f5c0c0; border-radius:10px; padding:12px 16px; font-size:13px; color:#9a2a2a; margin-bottom:16px; }

/* Loading */
.but-loading { text-align:center; padding:40px 0; color:#9a8f88; font-size:14px; }
.but-spinner { width:32px; height:32px; border:3px solid #f0e9e2; border-top-color:#d4899a; border-radius:50%; animation:but-spin 0.7s linear infinite; margin:0 auto 12px; }
@keyframes but-spin { to { transform:rotate(360deg); } }

/* Shelf header */
.but-shelf-header { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.but-shelf-label { font-size:10px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:#9a8f88; }
.but-tap-hint { font-size:11px; color:#b0a89e; }

/* Shelf */
.but-shelf-wrap { position:relative; }
.but-shelf { display:flex; align-items:flex-end; gap:3px; padding:32px 28px 0; background:linear-gradient(180deg,#FDFAF7 0%,#F5F0EA 100%); border:1px solid #e8ddd5; border-radius:12px 12px 0 0; min-height:260px; overflow-x:auto; }
.but-shelf-floor { height:10px; background:#2A241E; border-radius:0 0 4px 4px; }

/* Book spines — SVG-based realistic look */
.but-spine {
    display:inline-block !important;
    vertical-align:bottom !important;
    cursor:pointer !important;
    transition:transform .18s ease, filter .18s ease !important;
    background:none !important;
    box-shadow:none !important;
    flex-shrink:0;
}
.but-spine svg { display:block; filter:drop-shadow(2px 4px 6px rgba(42,36,30,.18)); }
.but-spine:hover { transform:translateY(-12px) !important; }
.but-spine:hover svg { filter:drop-shadow(3px 8px 14px rgba(42,36,30,.28)); }
.but-spine.active { transform:translateY(-14px) !important; }
.but-spine.active svg { filter:drop-shadow(3px 10px 18px rgba(42,36,30,.32)); }
/* Old spine styles below — kept for fallback */
.but-spine-old {
    position:relative;
    width:44px;
    min-height:180px;
    border-radius:2px 3px 3px 2px;
    cursor:pointer;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    transition:transform .18s, box-shadow .18s;
    flex-shrink:0;
    /* Left edge shadow for 3D effect */
    box-shadow: inset 3px 0 6px rgba(0,0,0,.12), inset -1px 0 3px rgba(255,255,255,.3), 2px 0 5px rgba(42,36,30,.15);
}


.but-spine:hover { transform:translateY(-10px); box-shadow:inset 3px 0 6px rgba(0,0,0,.15), inset -1px 0 3px rgba(255,255,255,.3), 4px 12px 20px rgba(42,36,30,.2); }
.but-spine.active { transform:translateY(-12px); box-shadow:inset 3px 0 6px rgba(0,0,0,.15), 4px 14px 24px rgba(42,36,30,.25); }


/* Detail panel */
.but-detail { background:#fff; border:1px solid #e8ddd5; border-radius:12px; padding:24px; margin-top:16px; }

/* Order card header */
.but-order-header { display:flex; gap:16px; align-items:flex-start; margin-bottom:16px; }
.but-order-thumb { width:52px; height:72px; border-radius:4px; flex-shrink:0; }
.but-order-meta { flex:1; }
.but-order-id { font-size:10px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:#9a8f88; margin-bottom:4px; }
.but-order-title { font-family:'Cormorant Garamond',serif; font-size:24px; font-weight:600; color:#2A241E; margin:0 0 4px; line-height:1.15; }
.but-order-route { font-size:12px; color:#9a8f88; }
.but-order-route span { color:#2A241E; }
.but-eta-badge { background:#fdf7e4; border:1px solid #f0e0a0; border-radius:10px; padding:10px 14px; text-align:center; flex-shrink:0; }
.but-eta-lbl { font-size:9px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:#9a8f88; display:block; margin-bottom:2px; }
.but-eta-date { font-family:'Cormorant Garamond',serif; font-size:18px; font-weight:600; color:#2A241E; }

/* Stage box */
.but-stage-box { background:#FDFAF7; border:1px solid #e8ddd5; border-radius:10px; padding:14px 16px; margin-bottom:16px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.but-stage-inner {}
.but-stage-meta { font-size:10px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:#9a8f88; margin-bottom:4px; }
.but-stage-current { display:flex; align-items:center; gap:8px; font-size:17px; font-weight:500; color:#2A241E; }
.but-stage-dot { width:10px; height:10px; border-radius:50%; background:#d4899a; border:2px solid #fff; box-shadow:0 0 0 2px #d4899a; flex-shrink:0; }
.but-stage-desc { font-size:12px; color:#9a8f88; margin-top:4px; padding-left:18px; }
.but-paid { text-align:right; }
.but-paid-lbl { font-size:9px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:#9a8f88; display:block; margin-bottom:4px; }
.but-paid-amt { font-size:13px; font-weight:500; color:#2A241E; padding:4px 10px; border-radius:20px; background:#f0f8f2; border:1px solid #b8dfc4; color:#1a4a2a; display:inline-block; }

/* Progress bar */
.but-progress-wrap { margin-bottom:20px; }
.but-progress-track { height:4px; background:#f0e9e2; border-radius:2px; margin-bottom:12px; position:relative; }
.but-progress-fill { height:100%; border-radius:2px; background:linear-gradient(90deg,#d4899a,#f0c0a0); transition:width .4s ease; }
.but-stages-row { display:flex; justify-content:space-between; gap:2px; }
.but-stage-step { flex:1; text-align:center; }
.but-step-dot { width:8px; height:8px; border-radius:50%; background:#e8ddd5; margin:0 auto 4px; transition:background .2s; }
.but-step-dot.done { background:#2A241E; }
.but-step-dot.current { background:#d4899a; box-shadow:0 0 0 3px #fde8ef; }
.but-step-label { font-size:8px; color:#b0a89e; line-height:1.3; text-transform:uppercase; letter-spacing:.04em; }
.but-step-label.done { color:#6E635A; }
.but-step-label.current { color:#b07090; font-weight:500; }

/* Activity log */
.but-activity-lbl { font-size:10px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:#9a8f88; margin-bottom:12px; }
.but-activity-list { display:flex; flex-direction:column; gap:0; }
.but-activity-item { display:flex; gap:16px; padding:10px 0; border-bottom:1px solid #f5f0ed; }
.but-activity-item:last-child { border-bottom:none; }
.but-act-date { font-size:11px; color:#9a8f88; white-space:nowrap; min-width:100px; }
.but-act-dot { width:6px; height:6px; border-radius:50%; background:#e8ddd5; margin-top:5px; flex-shrink:0; }
.but-act-note { font-size:13px; color:#2A241E; line-height:1.5; }

/* Photo gallery */
.but-gallery-lbl { font-size:10px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:#9a8f88; margin:20px 0 10px; }
.but-gallery { display:flex; gap:10px; flex-wrap:wrap; }
.but-gallery-item { display:flex; flex-direction:column; gap:4px; }
.but-gallery-item a {
    display:block;
    width:72px; height:72px;
    border-radius:8px; overflow:hidden;
    border:1px solid #e8ddd5;
    transition:border-color .15s, transform .15s;
}
.but-gallery-item a:hover { border-color:#d4899a; transform:scale(1.04); }
.but-gallery-item img { width:100%; height:100%; object-fit:cover; display:block; }
.but-photo-lbl { font-size:9px; font-weight:500; letter-spacing:.05em; text-transform:uppercase; color:#9a8f88; text-align:center; max-width:72px; }
/* Lightbox overlay */
.but-lightbox { position:fixed; inset:0; background:rgba(10,8,6,.85); z-index:99999; display:flex; align-items:center; justify-content:center; padding:20px; cursor:pointer; }
.but-lightbox img { max-width:90vw; max-height:88vh; border-radius:8px; object-fit:contain; box-shadow:0 20px 60px rgba(0,0,0,.5); }
.but-lightbox-close { position:absolute; top:16px; right:16px; color:#fff; font-size:28px; font-weight:300; cursor:pointer; line-height:1; opacity:.8; }
.but-lightbox-lbl { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); color:rgba(255,255,255,.7); font-size:12px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; background:rgba(0,0,0,.4); padding:6px 14px; border-radius:20px; white-space:nowrap; }

/* No activity */
.but-no-activity { font-size:12px; color:#b0a89e; padding:8px 0; }

@media(max-width:600px) {
    .but-hero { flex-direction:column; gap:20px; padding:24px 0 20px; }
    .but-headline { font-size:26px; }
    .but-stages-row { display:none; } /* hide step labels on mobile, just show bar */
    .but-gallery { grid-template-columns:repeat(2,1fr); }
    .but-order-header { flex-wrap:wrap; }
}
