/* =============================================================
   Shop page (Hiệu sách) styles
   Scoped under .shop-section to avoid leaking into other pages.
   ============================================================= */

:root {
    --shop-accent: #c8102e;
    --shop-accent-dark: #8a0a1e;
    --shop-yellow: #FFD728;
    --shop-ink: #1a1a1a;
    --shop-muted: #6b7280;
    --shop-line: #e5e7eb;
    --shop-surface: #ffffff;
    --shop-soft: #f3f4f5;
}

.shop-section {
    background: var(--shop-surface);
    color: var(--shop-ink);
    font-family: 'Be Vietnam Pro', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.shop-section .container > .section {
    margin: 0 auto;
}
.shop-section .section-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}
.shop-section .section-content.full-width {
    max-width: 100%;
}
.shop-section .section-bg.fill { display: none; }
.shop-section .gap-element { display: none !important; }

/* ---------- Section 1: Hero "Lịch sử FIFA World Cup" ---------- */
.shop-section .section-lich-su {
    background: linear-gradient(180deg, #fff 0%, #faf7ef 100%);
    padding: 64px 0 56px;
}
.shop-section .section-lich-su .row-large {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.shop-section .section-lich-su .col {
    flex: 1 1 360px;
}
.shop-section .section-lich-su .section-title-container {
    padding-left: 0;
}
.shop-section .section-lich-su .sub-title {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--shop-accent);
    font-weight: 700;
    margin-bottom: 16px;
}
.shop-section .section-lich-su .section-title-main {
    display: block;
    font-size: clamp(36px, 5vw, 64px) !important;
    font-weight: 900;
    line-height: 1.05;
    color: var(--shop-ink);
    margin: 0 0 8px;
}
.shop-section .section-lich-su .section-title-main span span {
    display: block;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    color: var(--shop-accent);
    letter-spacing: 0.04em;
    margin-top: 4px;
}
.shop-section .section-lich-su p {
    color: #444;
    font-size: 17px;
    line-height: 1.7;
    margin: 18px 0 28px;
    max-width: 540px;
}
.shop-section .az-button.primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--shop-yellow);
    color: var(--shop-ink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 14px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 8px 22px rgba(255, 215, 40, 0.35);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.shop-section .az-button.primary:hover {
    transform: translateY(-2px);
    background: #ffce00;
    box-shadow: 0 12px 28px rgba(255, 215, 40, 0.45);
}

.shop-section .box-bia-sach {
    position: relative;
    padding: 20px;
}
.shop-section .box-bia-sach .wrap-image {
    margin: 0;
    position: relative;
}
.shop-section .box-bia-sach .wrap-image img {
    display: block;
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.35),
                0 12px 24px -10px rgba(200, 16, 46, 0.25);
    transform: rotate(-2deg);
    transition: transform .3s ease;
}
.shop-section .box-bia-sach .wrap-image img:hover {
    transform: rotate(0deg) scale(1.02);
}
.shop-section .box-bia-sach .review {
    margin-top: 28px;
    font-size: 14px;
    color: var(--shop-muted);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 460px;
    margin-left: auto;
}
.shop-section .box-bia-sach .review img {
    flex: none;
    height: 18px;
    width: auto;
}

/* ---------- Section 2: Quote ---------- */
.shop-section .section-kham-pha {
    background: var(--shop-soft);
    padding: 72px 0;
}
.shop-section .section-kham-pha .section-title-center {
    text-align: center;
}
.shop-section .section-kham-pha .section-title-main {
    font-size: clamp(26px, 3vw, 40px) !important;
    font-weight: 800;
    color: var(--shop-ink);
    line-height: 1.2;
}
.shop-section .section-kham-pha blockquote {
    position: relative;
    max-width: 820px;
    margin: 28px auto 0;
    padding: 8px 24px;
    border: 0;
    text-align: center;
    color: #333;
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
}
.shop-section .section-kham-pha blockquote::before,
.shop-section .section-kham-pha blockquote::after {
    content: '“';
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 80px;
    color: var(--shop-accent);
    opacity: 0.18;
    position: absolute;
    line-height: 1;
}
.shop-section .section-kham-pha blockquote::before { top: -10px; left: 0; }
.shop-section .section-kham-pha blockquote::after  { content: '”'; bottom: -40px; right: 0; }
.shop-section .section-kham-pha blockquote + p {
    margin-top: 18px;
    text-align: center;
    font-style: normal;
    font-size: 15px;
    color: var(--shop-accent);
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ---------- Section 3: Book info + Table of contents ---------- */
.shop-section .section-thong-tin-sach {
    background: var(--shop-surface);
    padding: 72px 0;
}
.shop-section .section-thong-tin-sach .row-large {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}
.shop-section .section-thong-tin-sach .col {
    flex: 1 1 320px;
}
.shop-section .section-thong-tin-sach .section-title-main {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--shop-ink);
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--shop-accent);
    margin-bottom: 22px;
}

.shop-section .thong-tin-sach {
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-section .thong-tin-sach li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--shop-line);
    font-size: 15px;
}
.shop-section .thong-tin-sach li br { display: none; }
.shop-section .thong-tin-sach .text-on-surface-variant {
    color: var(--shop-muted);
    flex: 0 0 auto;
}
.shop-section .thong-tin-sach .font-bold {
    color: var(--shop-ink);
    font-weight: 700;
    text-align: right;
}
.shop-section .thong-tin-sach .text-primary {
    color: var(--shop-ink) !important;
}

.shop-section .ux-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}
@media (max-width: 540px) {
    .shop-section .ux-menu {
        grid-template-columns: 1fr;
    }
}
.shop-section .ux-menu-link {
    background: #fafafa;
    border: 1px solid var(--shop-line);
    border-radius: 8px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.shop-section .ux-menu-link:hover {
    background: #fffaf0;
    border-color: var(--shop-yellow);
    transform: translateX(4px);
}
.shop-section .ux-menu-link__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    color: var(--shop-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.shop-section .ux-menu-link__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}
.shop-section .ux-menu-link__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.shop-section .ux-menu-link__text {
    color: var(--shop-ink);
}
.shop-section .ux-menu-link:hover .ux-menu-link__text {
    color: var(--shop-accent);
}

/* ---------- Section 4: Đăng ký mua sách (2-step form) ---------- */
.shop-section .section-dang-ky-mua {
    background: rgb(243, 244, 245);
    padding: 72px 0;
    margin-bottom: 200px !important;
}
.shop-section .dk-card {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--shop-line);
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.15);
}
.shop-section .dk-header {
    text-align: center;
    margin-bottom: 28px;
}
.shop-section .dk-title {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    color: var(--shop-ink);
    margin: 0 0 6px;
}
.shop-section .dk-subtitle {
    color: var(--shop-muted);
    font-size: 14px;
    margin: 0;
}

.shop-section .dk-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}
.shop-section .dk-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--shop-muted);
    font-size: 14px;
    font-weight: 600;
    background: #f5f5f5;
    transition: background .2s ease, color .2s ease;
}
.shop-section .dk-step.is-active {
    background: var(--shop-accent);
    color: #fff;
}
.shop-section .dk-step.is-done {
    background: #e6f7ed;
    color: #1f8a4c;
}
.shop-section .dk-step__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.shop-section .dk-step:not(.is-active):not(.is-done) .dk-step__num {
    background: #fff;
    color: var(--shop-muted);
    border: 1px solid var(--shop-line);
}

.shop-section .dk-step-panel { display: none; }
.shop-section .dk-step-panel.is-active { display: block; }

.shop-section .dk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.shop-section .dk-field--full { grid-column: 1 / -1; }
.shop-section .dk-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--shop-ink);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.shop-section .dk-req { color: var(--shop-accent); }
.shop-section .dk-optional {
    color: var(--shop-muted, #8a8f99);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85em;
}
.shop-section .dk-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--shop-line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--shop-ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.shop-section .dk-input:focus {
    outline: 0;
    border-color: var(--shop-accent);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}
.shop-section .dk-input.is-invalid {
    border-color: var(--shop-accent);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}
.shop-section #dk-coupon {
    text-transform: uppercase;
}
.shop-section #dk-coupon::placeholder {
    text-transform: none;
}
.shop-section textarea.dk-input {
    resize: vertical;
    min-height: 64px;
}

.shop-section .dk-qty {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.shop-section .dk-qty__btn {
    flex: 0 0 44px;
    border: 1px solid var(--shop-line);
    background: #fafafa;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--shop-ink);
    cursor: pointer;
    transition: background .15s ease;
}
.shop-section .dk-qty__btn:hover { background: var(--shop-yellow); }
.shop-section .dk-qty__input { text-align: center; }

.shop-section .dk-payment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.shop-section .dk-payment__opt { cursor: pointer; }
.shop-section .dk-payment__opt input { position: absolute; opacity: 0; pointer-events: none; }
.shop-section .dk-payment__card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--shop-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.shop-section .dk-payment__opt:hover .dk-payment__card { transform: translateY(-1px); }
.shop-section .dk-payment__opt input:checked + .dk-payment__card {
    border-color: var(--shop-accent);
    background: #fff4f4;
}
.shop-section .dk-payment__icon {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--shop-yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.shop-section .dk-payment__body { display: flex; flex-direction: column; gap: 2px; }
.shop-section .dk-payment__body strong { color: var(--shop-ink); font-size: 15px; }
.shop-section .dk-payment__body em { font-style: normal; color: var(--shop-accent); font-weight: 700; }
.shop-section .dk-payment__body small { color: var(--shop-muted); font-size: 12px; }

.shop-section .dk-coupon {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.shop-section .dk-coupon .dk-input {
    flex: 1 1 auto;
}
.shop-section .dk-coupon__apply {
    flex: 0 0 auto;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    background: var(--shop-ink);
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: background .15s ease;
}
.shop-section .dk-coupon__apply:hover { background: #000; }
.shop-section .dk-coupon__apply:disabled { background: #999; cursor: wait; }

.shop-section .dk-coupon-msg {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    min-height: 1.5em;
}
.shop-section .dk-coupon-msg--success { color: #1f8a4c; }
.shop-section .dk-coupon-msg--error   { color: var(--shop-accent); }

.shop-section .dk-input.is-valid {
    border-color: #1f8a4c;
    box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.15);
}

.shop-section .dk-summary {
    background: var(--shop-soft);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 24px;
}
.shop-section .dk-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    color: var(--shop-muted);
    font-size: 14px;
}
.shop-section .dk-summary__row strong { color: var(--shop-ink); font-weight: 600; }
.shop-section .dk-summary__row--discount strong { color: #1f8a4c; }
.shop-section .dk-summary__row--discount small {
    color: var(--shop-muted);
    font-weight: 600;
    margin-left: 4px;
}

.shop-section .dk-summary__row--total {
    border-top: 1px dashed var(--shop-line);
    margin-top: 6px;
    padding-top: 12px;
    font-size: 16px;
}
.shop-section .dk-summary__row--total span { color: var(--shop-ink); font-weight: 700; }
.shop-section .dk-summary__row--total strong { color: var(--shop-accent); font-size: 20px; font-weight: 800; }

.shop-section .dk-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}
.shop-section .dk-btn {
    padding: 12px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
    font-family: inherit;
}
.shop-section .dk-btn--primary {
    background: var(--shop-accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(200, 16, 46, 0.25);
}
.shop-section .dk-btn--primary:hover {
    background: var(--shop-accent-dark);
    transform: translateY(-2px);
}
.shop-section .dk-btn--ghost {
    background: transparent;
    color: var(--shop-muted);
    border: 1px solid var(--shop-line);
}
.shop-section .dk-btn--ghost:hover { color: var(--shop-ink); background: #fafafa; }
.shop-section .dk-btn:disabled,
.shop-section .dk-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    filter: grayscale(0.2);
}
.shop-section .dk-btn:disabled:hover,
.shop-section .dk-btn[disabled]:hover {
    transform: none;
}

/* Step 2 — payment */
.shop-section .dk-pay-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: center;
}
.shop-section .dk-pay-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--shop-ink);
    margin: 0 0 16px;
}
.shop-section .dk-pay-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}
.shop-section .dk-pay-meta li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed var(--shop-line);
    font-size: 14px;
}
.shop-section .dk-pay-meta li span { color: var(--shop-muted); }
.shop-section .dk-pay-meta li strong { color: var(--shop-ink); font-weight: 700; }
.shop-section .dk-pay-meta__highlight strong { color: var(--shop-accent); font-size: 20px; font-weight: 800; }
.shop-section .dk-pay-note {
    background: #fffaf0;
    border-left: 3px solid var(--shop-yellow);
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.shop-section .dk-pay-note__hint {
    display: inline-block;
    margin-top: 6px;
    color: var(--shop-accent);
    font-size: 12.5px;
}
.shop-section .dk-pay-qr {
    text-align: center;
}
.shop-section .dk-pay-qr img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--shop-line);
    padding: 8px;
    background: #fff;
    box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.15);
}
.shop-section .dk-qr-download {
    display: inline-block;
    margin-top: 14px;
    color: var(--shop-accent);
    text-decoration: underline;
    font-size: 13px;
    font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .shop-section .section-lich-su,
    .shop-section .section-kham-pha,
    .shop-section .section-thong-tin-sach {
        padding: 48px 0;
    }
    .shop-section .box-bia-sach .wrap-image img {
        transform: none;
        margin: 0 auto;
    }
    .shop-section .box-bia-sach .review {
        margin: 20px auto 0;
    }
    .shop-section .section-thong-tin-sach .row-large {
        gap: 32px;
    }
    .shop-section .dk-card { padding: 24px 18px; }
    .shop-section .dk-grid { grid-template-columns: 1fr; }
    .shop-section .dk-payment { grid-template-columns: 1fr; }
    .shop-section .dk-pay-grid { grid-template-columns: 1fr; gap: 24px; }
    .shop-section .dk-steps { flex-direction: column; gap: 6px; }
    .shop-section .dk-step { width: 100%; justify-content: center; }
    .shop-section .dk-actions { flex-direction: column-reverse; align-items: stretch; }
    .shop-section .dk-actions .dk-btn { width: 100%; }
}
