/*
 * Export UI components (Nov 2026): quote list, export specifications, B2B homepage.
 * Loaded after classic.css from resources/dhakasource/views/layouts/app.blade.php.
 */

/* Product page */
@media (min-width: 900px) {
    .ds-product { align-items: start; }
    .ds-product__info { position: sticky; top: 24px; }
}
.ds-buybox--quote { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ds-buybox--quote .ds-buybox__form, .ds-buybox--quote .ds-buybox__form .ds-btn { width: 100%; margin: 0; }
.ds-buybox--quote > .ds-btn { width: 100%; }
@media (max-width: 560px) { .ds-buybox--quote { grid-template-columns: 1fr; } }

.ds-specs { margin: 18px 0 6px; border: 1px solid var(--ds-line); border-radius: 3px; background: var(--ds-card, #fff); }
.ds-specs__t { font-size: .78rem; font-family: var(--ds-font); text-transform: uppercase; letter-spacing: .14em; margin: 0; padding: 10px 14px; border-bottom: 3px double var(--ds-accent, #C9A86A); color: var(--ds-ink); }
.ds-specs__list { margin: 0; }
.ds-specs__row { display: grid; grid-template-columns: 42% 58%; border-top: 1px solid var(--ds-line); }
.ds-specs__row:first-child { border-top: 0; }
.ds-specs__row dt { padding: 8px 14px; color: var(--ds-muted); font-size: .9rem; background: var(--ds-parchment, #F1EADB); }
.ds-specs__row dd { padding: 8px 14px; margin: 0; color: var(--ds-ink); font-weight: 500; font-size: .92rem; }

/* Cards */
.ds-card__buy { margin: 0; }
.ds-card .ds-btn--block { font-size: .72rem; }
/* Header: quote list button and WhatsApp */
.ds-header__tools { display: flex; align-items: center; gap: 10px; }
.ds-qbtn { min-height: 40px; padding: 0 14px; gap: 8px; position: relative; white-space: nowrap; }
.ds-qbtn__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 2px; background: var(--ds-accent, #C9A86A); color: var(--ds-ink); font-size: .72rem; font-weight: 700; letter-spacing: 0; }
.ds-wa { color: #1E7B4A; }
.ds-wa:hover { color: #fff; background: #1E7B4A; border-color: #1E7B4A; }
@media (max-width: 720px) { .ds-qbtn span:not(.ds-qbtn__n) { display: none; } .ds-qbtn { padding: 0 10px; } }
/* ------------------------------------------------------------------ B2B homepage (.dsx-*) */
.dsx-home .ds-main { max-width: none; }
.dsx-hero {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: center;
    background: var(--ds-ink); color: #F3EDE0; padding: 56px 56px 48px; margin: 8px 0 0;
    border-radius: 3px; outline: 1px solid rgba(217, 194, 154, .55); outline-offset: -12px;
}
.dsx-eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; color: var(--ds-accent, #C9A86A); font-weight: 600; }
.dsx-hero__t { font-family: var(--ds-serif); font-weight: 600; color: #FFFDF8; font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.15; margin: 0 0 14px; }
.dsx-hero__lead { font-size: 1.05rem; line-height: 1.65; color: #E3DACA; max-width: 620px; margin: 0 0 22px; }
.dsx-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.dsx-btn-gold { background: var(--ds-accent, #C9A86A); border-color: var(--ds-accent, #C9A86A); color: var(--ds-ink); }
.dsx-btn-gold:hover { background: #FFFDF8; border-color: #FFFDF8; color: var(--ds-ink); }
.dsx-btn-ghost { background: transparent; border-color: rgba(243, 237, 224, .55); color: #F3EDE0; }
.dsx-btn-ghost:hover { border-color: var(--ds-accent, #C9A86A); color: var(--ds-accent, #C9A86A); }
.dsx-facts { list-style: none; margin: 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid rgba(217, 194, 154, .35); }
.dsx-facts li { display: grid; gap: 2px; }
.dsx-facts strong { font-family: var(--ds-serif); font-weight: 600; color: #FFFDF8; font-size: 1.02rem; }
.dsx-facts span { font-size: .85rem; color: #CFC4AE; }
.dsx-hero__art { position: relative; min-height: 320px; }
.dsx-hero__tile { position: absolute; width: 50%; aspect-ratio: 1; border: 6px solid #FFFDF8; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); background: #FFFDF8; }
.dsx-hero__tile .ds-art { width: 100%; height: 100%; border-radius: 0 !important; }
.dsx-hero__tile--1 { top: 0; left: 4%; transform: rotate(-4deg); z-index: 1; }
.dsx-hero__tile--2 { top: 8%; right: 0; transform: rotate(3deg); z-index: 2; }
.dsx-hero__tile--3 { bottom: 0; left: 26%; transform: rotate(-1deg); z-index: 3; }

.dsx-trust { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ds-line); background: var(--ds-card, #fff); border-radius: 3px; }
.dsx-trust li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-left: 1px solid var(--ds-line); }
.dsx-trust li:first-child { border-left: 0; }
.dsx-trust .ds-i { flex: none; width: 22px; height: 22px; color: var(--ds-gold, #8A6A35); margin-top: 2px; }
.dsx-trust strong { display: block; font-family: var(--ds-serif); font-weight: 600; color: var(--ds-ink); }
.dsx-trust span { font-size: .86rem; color: var(--ds-muted); line-height: 1.45; }

.dsx-sec { margin: 56px 0 0; }
.dsx-sechead { text-align: center; margin: 0 0 24px; }
.dsx-sechead h2 { font-family: var(--ds-serif); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ds-ink); margin: 0; }
.dsx-sechead h2::after { content: ""; display: block; width: 56px; height: 0; border-top: 3px double var(--ds-accent, #C9A86A); margin: 12px auto 0; }
.dsx-sechead p { color: var(--ds-muted); margin: 10px 0 0; font-style: italic; }
.dsx-sechead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; }
.dsx-sechead--row h2::after { margin-left: 0; }

.dsx-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dsx-rangecard { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 14px; background: var(--ds-card, #fff); border: 1px solid var(--ds-line); border-radius: 3px; color: inherit; text-decoration: none; transition: border-color .15s; }
.dsx-rangecard:hover { border-color: var(--ds-accent, #C9A86A); }
.dsx-rangecard__art { width: 110px; aspect-ratio: 1; overflow: hidden; }
.dsx-rangecard__art img, .dsx-rangecard__art .ds-art { width: 100%; height: 100%; object-fit: cover; border-radius: 2px !important; }
.dsx-rangecard h3 { font-family: var(--ds-serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 4px; color: var(--ds-ink); }
.dsx-rangecard p { font-size: .88rem; color: var(--ds-muted); margin: 0 0 8px; line-height: 1.45; }
.dsx-rangecard__n { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ds-gold, #8A6A35); font-weight: 600; }

.dsx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.dsx-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: none; border-top: 1px solid var(--ds-line); }
.dsx-steps__list li { display: grid; gap: 6px; align-content: start; grid-template-rows: auto auto 1fr; padding: 22px 18px 0; position: relative; }
.dsx-steps__n { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ds-accent, #C9A86A); color: var(--ds-gold, #8A6A35); font-family: var(--ds-serif); font-size: 1.1rem; margin-top: -42px; background: var(--ds-ground, #FAF6EE); }
.dsx-steps__list strong { font-family: var(--ds-serif); font-weight: 600; color: var(--ds-ink); font-size: 1.05rem; }
.dsx-steps__list span:not(.dsx-steps__n) { color: var(--ds-muted); font-size: .9rem; line-height: 1.5; }

.dsx-ship { background: var(--ds-parchment, #F1EADB); padding: 40px 36px 28px; border-radius: 3px; border: 1px solid var(--ds-line); }
.dsx-ship__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.dsx-ship__box { background: var(--ds-card, #fff); border: 1px solid var(--ds-line); padding: 18px; border-radius: 3px; }
.dsx-ship__box h3 { font-family: var(--ds-serif); font-weight: 600; font-size: 1.08rem; margin: 0 0 8px; color: var(--ds-ink); }
.dsx-ship__box p { margin: 0; font-size: .9rem; color: var(--ds-text); line-height: 1.55; }
.dsx-more { text-align: center; margin: 18px 0 0; }
.dsx-more a { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 600; color: var(--ds-gold, #8A6A35); }

.dsx-faq__list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--ds-line); }
.dsx-faq__item { border-bottom: 1px solid var(--ds-line); }
.dsx-faq__item summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 4px; font-family: var(--ds-serif); font-weight: 600; font-size: 1.08rem; color: var(--ds-ink); position: relative; }
.dsx-faq__item summary::-webkit-details-marker { display: none; }
.dsx-faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.4rem; color: var(--ds-gold, #8A6A35); }
.dsx-faq__item[open] summary::after { content: "\2212"; }
.dsx-faq__item p { margin: 0 4px 16px; color: var(--ds-text); line-height: 1.6; }

.dsx-cta { margin: 56px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ds-ink); color: #F3EDE0; padding: 36px 40px; border-radius: 3px; outline: 1px solid rgba(217, 194, 154, .5); outline-offset: -10px; }
.dsx-cta h2 { font-family: var(--ds-serif); font-weight: 600; color: #FFFDF8; margin: 0 0 6px; font-size: 1.7rem; }
.dsx-cta p { margin: 0; color: #E3DACA; max-width: 560px; }
.dsx-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 1024px) {
    .dsx-range { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsx-grid, .dsx-ship__grid, .dsx-steps__list, .dsx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsx-trust li:nth-child(3) { border-left: 0; }
    .dsx-trust li:nth-child(n+3) { border-top: 1px solid var(--ds-line); }
    .dsx-steps__list li { padding-bottom: 18px; }
}
@media (max-width: 760px) {
    .dsx-hero { grid-template-columns: 1fr; padding: 36px 24px 30px; }
    .dsx-hero__art { display: none; }
    .dsx-facts { grid-template-columns: 1fr; }
    .dsx-range, .dsx-ship__grid, .dsx-steps__list, .dsx-trust { grid-template-columns: 1fr; }
    .dsx-trust li { border-left: 0; border-top: 1px solid var(--ds-line); }
    .dsx-trust li:first-child { border-top: 0; }
    .dsx-ship { padding: 28px 16px 20px; }
    .dsx-cta { padding: 28px 22px; }
    .dsx-sechead--row { flex-direction: column; align-items: flex-start; }
}

/* ================================================================== */
/* Bookstore classic overrides (after bookendsbd.com / uplbooks.com)  */
/* ================================================================== */
.ds-specs { border-color: var(--ds-line); border-radius: 0; }
.ds-specs__t { font-family: var(--ds-font); font-weight: 600; letter-spacing: .08em; border-bottom: 1px solid var(--ds-line); background: #FAFAFA; }
.ds-specs__row dt { background: #FAFAFA; }
.ds-qbtn { background: var(--ds-accent); border-color: var(--ds-accent); color: #1E1E1E; border-radius: 4px; }
.ds-qbtn:hover { background: #B98F50; border-color: #B98F50; color: #fff; }
.ds-qbtn__n { background: #1E1E1E; color: #fff; border-radius: 50%; }
.ds-wa { background: #E9F8EF; color: #1E9E4F; }

/* Hero: warm full-width banner like UPL */
.dsx-hero {
    width: 100vw; margin-left: calc(50% - 50vw); margin-top: 0; border-radius: 0; outline: 0;
    background: #F6E9D7; color: var(--ds-ink);
    padding: 56px max(24px, calc(50vw - 600px)) 50px;
}
.dsx-eyebrow { color: var(--ds-gold); }
.dsx-hero__t { color: #1E1E1E; font-family: var(--ds-serif); font-weight: 700; }
.dsx-hero__lead { color: #4A4A4A; }
.dsx-btn-gold { background: var(--ds-accent); border-color: var(--ds-accent); color: #1E1E1E; }
.dsx-btn-gold:hover { background: #1E1E1E; border-color: #1E1E1E; color: #fff; }
.dsx-btn-ghost { background: transparent; border-color: #1E1E1E; color: #1E1E1E; }
.dsx-btn-ghost:hover { background: #1E1E1E; color: #fff; border-color: #1E1E1E; }
.dsx-facts { border-top-color: rgba(0, 0, 0, .12); }
.dsx-facts strong { color: #1E1E1E; font-family: var(--ds-serif); }
.dsx-facts span { color: #6B6B6B; }
.dsx-hero__tile { border-color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .15); }

/* Trust strip */
.dsx-trust { background: #fff; border-color: var(--ds-line); border-radius: 0; margin-top: 30px; }
.dsx-trust .ds-i { color: var(--ds-accent); }
.dsx-trust strong { font-family: var(--ds-font); font-weight: 600; font-size: .92rem; }

/* Section headings: centred uppercase serif, no ornaments */
.dsx-sec { margin-top: 64px; }
.dsx-sechead h2 { font-family: var(--ds-serif); text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.dsx-sechead h2::after { display: none; }
.dsx-sechead p { font-style: normal; color: var(--ds-muted); }
.dsx-sechead--row { align-items: center; }

/* Product range: centred category tiles like UPL "Categories" */
.dsx-range { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.dsx-rangecard { grid-template-columns: 1fr; text-align: center; gap: 10px; padding: 0; border: 0; background: transparent; }
.dsx-rangecard:hover { border: 0; }
.dsx-rangecard:hover .dsx-rangecard__art { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); }
.dsx-rangecard__art { width: 100%; transition: box-shadow .15s; }
.dsx-rangecard h3 { font-family: var(--ds-font); text-transform: uppercase; font-weight: 500; font-size: .9rem; letter-spacing: .04em; margin: 0; }
.dsx-rangecard p { display: none; }
.dsx-rangecard__n { color: var(--ds-gold); letter-spacing: .06em; font-size: .7rem; }

/* Steps */
.dsx-steps__list { border-top-color: var(--ds-line); }
.dsx-steps__n { border-radius: 50%; border-color: var(--ds-accent); background: #fff; color: var(--ds-gold); font-family: var(--ds-serif); }
.dsx-steps__list strong { font-family: var(--ds-serif); }

/* Shipping and terms */
.dsx-ship { background: #F7F7F7; border: 0; border-radius: 0; width: 100vw; margin-left: calc(50% - 50vw); padding: 48px max(24px, calc(50vw - 600px)) 36px; }
.dsx-ship__box { border-radius: 0; border-color: #EBEBEB; }
.dsx-ship__box h3 { font-family: var(--ds-serif); }
.dsx-more a { color: var(--ds-gold); }

/* FAQ */
.dsx-faq__item summary { font-family: var(--ds-serif); font-weight: 500; }
.dsx-faq__item summary::after { color: var(--ds-accent); }

/* Closing call to action: black band like Bookends */
.dsx-cta { background: #1E1E1E; outline: 0; border-radius: 0; }
.dsx-cta h2 { font-family: var(--ds-serif); }
.dsx-cta .dsx-btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.dsx-cta .dsx-btn-ghost:hover { background: #fff; color: #1E1E1E; }
.dsx-cta .dsx-btn-gold:hover { background: #fff; border-color: #fff; color: #1E1E1E; }

@media (max-width: 1024px) { .dsx-range { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dsx-range { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dsx-hero { padding: 36px 20px 30px; } }