/*!
 * Sandesh — storefront stylesheet
 *
 * Plain CSS, loaded directly by the browser. There is no build step: colours,
 * fonts and rounding all come from the CSS custom properties that the theme
 * settings inject into <head>, so re-branding never requires recompiling.
 */

/* ==========================================================================
   1. Tokens and Bootstrap bridge
   ========================================================================== */

:root {
    /* Fallbacks only — Theme::inlineCss() overrides these at runtime. */
    --sd-primary: #c63427;
    --sd-primary-rgb: 198, 52, 39;
    --sd-primary-dark: #a32b20;
    --sd-primary-light: #f7e3e1;
    --sd-primary-contrast: #ffffff;
    --sd-secondary: #1f2937;
    --sd-accent: #e8a33d;
    --sd-body-bg: #ffffff;
    --sd-footer-bg: #1f2937;
    --sd-radius: 0.5rem;
    --sd-font: "Hind Siliguri", system-ui, sans-serif;

    --sd-ink: #1a1a1a;
    --sd-muted: #6b7280;
    --sd-border: #e5e7eb;
    --sd-surface: #f8f8f7;
    --sd-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06);
    --sd-shadow-lg: 0 8px 32px rgba(16, 24, 40, 0.12);

    /* Hand Bootstrap the same palette so its own components inherit the brand. */
    --bs-primary: var(--sd-primary);
    --bs-primary-rgb: var(--sd-primary-rgb);
    --bs-link-color: var(--sd-primary);
    --bs-link-color-rgb: var(--sd-primary-rgb);
    --bs-link-hover-color: var(--sd-primary-dark);
    --bs-border-radius: var(--sd-radius);
    --bs-body-font-family: var(--sd-font);
    --bs-body-color: var(--sd-ink);
    --bs-body-bg: var(--sd-body-bg);
    --bs-focus-ring-color: rgba(var(--sd-primary-rgb), 0.25);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sd-font);
    background-color: var(--sd-body-bg);
    color: var(--sd-ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Bengali sits lower in its em box than Latin; nudge the line height so mixed
   Bangla/Latin lines do not look cramped. */
:lang(bn) body,
html[lang="bn"] body {
    line-height: 1.75;
}

/* Anything focused by keyboard keeps a visible ring, including custom cards. */
:focus-visible {
    outline: 2px solid var(--sd-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--sd-primary);
    color: var(--sd-primary-contrast);
    border-radius: 0 0 var(--sd-radius) 0;
}

.skip-link:focus {
    left: 0;
}

/* ==========================================================================
   3. Utilities
   ========================================================================== */

.text-brand { color: var(--sd-primary) !important; }
.bg-brand { background-color: var(--sd-primary) !important; color: var(--sd-primary-contrast); }
.bg-brand-soft { background-color: var(--sd-primary-light) !important; }
.bg-surface { background-color: var(--sd-surface) !important; }
.border-brand { border-color: var(--sd-primary) !important; }

.section {
    padding: 3.5rem 0;
}

.section-sm {
    padding: 2rem 0;
}

.section-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
}

.section-subtitle {
    margin: 0.25rem 0 0;
    color: var(--sd-muted);
    font-size: 0.95rem;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

/* A short brand-coloured rule under section headings. */
.section-head .section-title::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.6rem;
    border-radius: 3px;
    background: var(--sd-primary);
}

.divider-dot::before {
    content: "•";
    margin: 0 0.4rem;
    color: var(--sd-muted);
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.btn {
    --bs-btn-border-radius: var(--sd-radius);
    font-weight: 500;
}

.btn-brand {
    background-color: var(--sd-primary);
    border-color: var(--sd-primary);
    color: var(--sd-primary-contrast);
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--sd-primary-dark);
    border-color: var(--sd-primary-dark);
    color: var(--sd-primary-contrast);
}

.btn-outline-brand {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
    background-color: transparent;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--sd-primary);
    border-color: var(--sd-primary);
    color: var(--sd-primary-contrast);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.topbar {
    background: var(--sd-secondary);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.topbar a {
    color: rgba(255, 255, 255, 0.85);
}

.topbar a:hover {
    color: #fff;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--sd-border);
}

.site-header.is-sticky {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.site-header .navbar-brand img {
    display: block;
    width: auto;
}

.brand-name {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--sd-ink);
}

.brand-tagline {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--sd-muted);
}

.header-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 34rem;
}

.header-search .form-control {
    border-radius: var(--sd-radius);
    padding-inline-end: 3rem;
}

.header-search .btn {
    position: absolute;
    inset-inline-end: 4px;
    top: 4px;
    bottom: 4px;
    border-radius: calc(var(--sd-radius) - 2px);
}

/* Type-ahead panel */
.search-suggestions {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.35rem);
    z-index: 1040;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    box-shadow: var(--sd-shadow-lg);
    max-height: 26rem;
    overflow-y: auto;
    display: none;
}

.search-suggestions.is-open {
    display: block;
}

.search-suggestion {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.6rem 0.85rem;
    color: inherit;
    border-bottom: 1px solid var(--sd-border);
}

.search-suggestion:last-child {
    border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion:focus,
.search-suggestion.is-active {
    background: var(--sd-surface);
}

.search-suggestion img {
    width: 34px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
    flex: none;
}

.search-suggestion__title {
    font-weight: 500;
    line-height: 1.3;
}

.search-suggestion__meta {
    font-size: 0.8rem;
    color: var(--sd-muted);
}

/* Header action icons (cart, wishlist, account) */
.header-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.55rem;
    border-radius: var(--sd-radius);
    color: var(--sd-ink);
}

.header-action:hover {
    background: var(--sd-surface);
    color: var(--sd-primary);
}

.header-action .badge {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    transform: translate(35%, -25%);
    background: var(--sd-primary);
    color: var(--sd-primary-contrast);
    font-size: 0.68rem;
    padding: 0.2em 0.45em;
}

/* Main navigation */
.main-nav {
    background: var(--sd-surface);
    border-bottom: 1px solid var(--sd-border);
}

.main-nav .nav-link {
    color: var(--sd-ink);
    font-weight: 500;
    padding: 0.7rem 0.9rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--sd-primary);
}

.main-nav .dropdown-menu {
    border-radius: var(--sd-radius);
    border-color: var(--sd-border);
    box-shadow: var(--sd-shadow-lg);
    padding: 0.4rem;
}

.main-nav .dropdown-item {
    border-radius: calc(var(--sd-radius) - 3px);
    padding: 0.45rem 0.7rem;
}

.main-nav .dropdown-item:active {
    background: var(--sd-primary);
    color: var(--sd-primary-contrast);
}

/* Two-level dropdown, opened on hover at desktop widths only. */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        inset-inline-start: 100%;
        margin-top: -0.4rem;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .main-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* ==========================================================================
   6. Hero slider
   ========================================================================== */

.hero-slide {
    position: relative;
    min-height: clamp(18rem, 42vw, 30rem);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-slide__content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 34rem;
    padding: 2rem 0;
}

.hero-slide__content h2 {
    font-size: clamp(1.6rem, 4vw, 2.75rem);
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-slide--center .hero-slide__content { margin-inline: auto; text-align: center; }
.hero-slide--end .hero-slide__content { margin-inline-start: auto; text-align: end; }

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
}

/* ==========================================================================
   7. Book card
   ========================================================================== */

.book-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    overflow: hidden;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.book-card:hover {
    box-shadow: var(--sd-shadow);
    border-color: rgba(var(--sd-primary-rgb), 0.35);
    transform: translateY(-2px);
}

.book-card__media {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    background: var(--sd-surface);
    overflow: hidden;
}

.book-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-card__media img {
    transform: scale(1.03);
}

.book-card__badges {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 2;
}

.book-card__badges .badge {
    font-weight: 600;
    font-size: 0.7rem;
}

.book-card__wish {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--sd-muted);
    box-shadow: var(--sd-shadow);
}

.book-card__wish:hover,
.book-card__wish.is-active {
    color: var(--sd-primary);
}

.book-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 0.85rem;
    gap: 0.35rem;
}

.book-card__title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    /* Two-line clamp keeps every card in a row the same height. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-card__title a {
    color: var(--sd-ink);
}

.book-card__title a:hover {
    color: var(--sd-primary);
}

.book-card__author {
    font-size: 0.82rem;
    color: var(--sd-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-card__price {
    margin-top: auto;
    padding-top: 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.price-current {
    font-weight: 700;
    color: var(--sd-primary);
    font-size: 1.05rem;
}

.price-old {
    text-decoration: line-through;
    color: var(--sd-muted);
    font-size: 0.85rem;
}

.book-card__actions {
    display: flex;
    gap: 0.4rem;
    padding: 0 0.85rem 0.85rem;
}

.book-card__actions .btn {
    flex: 1;
    font-size: 0.86rem;
    padding: 0.4rem 0.5rem;
}

/* Partner buttons on an affiliate title */
.partner-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.btn-partner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 500;
    color: #fff;
    border: 0;
}

.btn-partner:hover {
    color: #fff;
    filter: brightness(0.92);
}

.btn-partner img {
    height: 16px;
    width: auto;
}

.rating-stars {
    color: var(--sd-accent);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.rating-stars .bi-star {
    color: #d8d5d0;
}

/* List layout variant of the same card */
.book-card--list {
    flex-direction: row;
}

.book-card--list .book-card__media {
    width: 8.5rem;
    flex: none;
    aspect-ratio: 2 / 3;
}

.book-card--list .book-card__body {
    padding: 1rem;
}

@media (max-width: 575.98px) {
    .book-card--list .book-card__media {
        width: 6.5rem;
    }
}

/* ==========================================================================
   8. Category & author tiles
   ========================================================================== */

.category-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    color: var(--sd-ink);
    height: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.category-tile:hover {
    border-color: var(--sd-primary);
    box-shadow: var(--sd-shadow);
    color: var(--sd-primary);
}

.category-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: none;
    border-radius: var(--sd-radius);
    background: var(--sd-primary-light);
    color: var(--sd-primary);
    font-size: 1.2rem;
    overflow: hidden;
}

.category-tile__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-tile {
    display: block;
    text-align: center;
    color: var(--sd-ink);
}

.author-tile img,
.author-tile .author-tile__initials {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.6rem;
    border: 3px solid #fff;
    box-shadow: var(--sd-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sd-primary-light);
    color: var(--sd-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.author-tile:hover {
    color: var(--sd-primary);
}

.partner-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 100%;
    min-height: 5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    color: var(--sd-ink);
    font-weight: 500;
}

.partner-tile img {
    max-height: 2.25rem;
    max-width: 100%;
    object-fit: contain;
}

.partner-tile:hover {
    border-color: var(--sd-primary);
    color: var(--sd-primary);
}

/* ==========================================================================
   9. Shop layout
   ========================================================================== */

.filter-panel {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    padding: 1rem;
}

.filter-group + .filter-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sd-border);
}

.filter-group__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sd-muted);
    margin-bottom: 0.6rem;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 15rem;
    overflow-y: auto;
}

.filter-list a {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.28rem 0;
    color: var(--sd-ink);
    font-size: 0.92rem;
}

.filter-list a:hover,
.filter-list a.is-active {
    color: var(--sd-primary);
}

.filter-list a.is-active {
    font-weight: 600;
}

.filter-list ul {
    list-style: none;
    padding-inline-start: 0.9rem;
}

.active-filters .badge {
    background: var(--sd-primary-light);
    color: var(--sd-primary);
    font-weight: 500;
    padding: 0.45em 0.7em;
}

.active-filters .badge a {
    color: inherit;
    margin-inline-start: 0.3rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.view-toggle .btn.active {
    background: var(--sd-primary);
    border-color: var(--sd-primary);
    color: var(--sd-primary-contrast);
}

/* ==========================================================================
   10. Book detail
   ========================================================================== */

.book-gallery__main {
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    overflow: hidden;
    background: var(--sd-surface);
    aspect-ratio: 2 / 3;
}

.book-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.book-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.book-gallery__thumb {
    width: 4rem;
    aspect-ratio: 2 / 3;
    border: 2px solid var(--sd-border);
    border-radius: calc(var(--sd-radius) - 2px);
    overflow: hidden;
    padding: 0;
    background: none;
}

.book-gallery__thumb.is-active {
    border-color: var(--sd-primary);
}

.book-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.price-block .price-current {
    font-size: 1.9rem;
}

.spec-table {
    width: 100%;
    font-size: 0.93rem;
}

.spec-table th {
    width: 40%;
    font-weight: 500;
    color: var(--sd-muted);
    padding: 0.45rem 0;
    vertical-align: top;
}

.spec-table td {
    padding: 0.45rem 0;
}

.quantity-input {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    overflow: hidden;
}

.quantity-input button {
    width: 2.4rem;
    border: 0;
    background: var(--sd-surface);
    color: var(--sd-ink);
    font-size: 1.1rem;
    line-height: 1;
}

.quantity-input button:hover {
    background: var(--sd-primary-light);
    color: var(--sd-primary);
}

.quantity-input input {
    width: 3.25rem;
    border: 0;
    text-align: center;
    font-weight: 600;
}

.quantity-input input:focus {
    outline: none;
}

.nav-tabs .nav-link {
    color: var(--sd-muted);
    border: 0;
    border-bottom: 2px solid transparent;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--sd-primary);
    background: none;
    border-bottom-color: var(--sd-primary);
}

.review-item + .review-item {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sd-border);
}

.rating-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--sd-border);
    overflow: hidden;
}

.rating-bar span {
    display: block;
    height: 100%;
    background: var(--sd-accent);
}

/* A star rating built from radio inputs so it works without JavaScript. */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 0.15rem;
}

.star-input input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.star-input label {
    font-size: 1.5rem;
    color: #d8d5d0;
    cursor: pointer;
    line-height: 1;
}

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: var(--sd-accent);
}

.star-input input:focus-visible + label {
    outline: 2px solid var(--sd-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   11. Cart, checkout, account
   ========================================================================== */

.summary-card {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    padding: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.summary-row--total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sd-border);
    font-size: 1.15rem;
    font-weight: 700;
}

.summary-row--total .amount {
    color: var(--sd-primary);
}

.option-card {
    display: block;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card + .option-card {
    margin-top: 0.6rem;
}

.option-card:hover {
    border-color: var(--sd-primary);
}

.option-card:has(input:checked) {
    border-color: var(--sd-primary);
    background: var(--sd-primary-light);
}

.account-nav .list-group-item {
    border: 0;
    border-radius: var(--sd-radius);
    padding: 0.6rem 0.85rem;
    color: var(--sd-ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.account-nav .list-group-item.active {
    background: var(--sd-primary);
    color: var(--sd-primary-contrast);
}

.account-nav .list-group-item:not(.active):hover {
    background: var(--sd-surface);
    color: var(--sd-primary);
}

.stat-tile {
    background: #fff;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    padding: 1.1rem;
    height: 100%;
}

.stat-tile__value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-tile__label {
    color: var(--sd-muted);
    font-size: 0.86rem;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.1rem;
    border-inline-start: 2px solid var(--sd-border);
}

.timeline li {
    position: relative;
    padding-bottom: 1.1rem;
}

.timeline li::before {
    content: "";
    position: absolute;
    inset-inline-start: -1.45rem;
    top: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--sd-primary);
    box-shadow: 0 0 0 3px #fff;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--sd-muted);
}

.empty-state i {
    font-size: 3rem;
    color: var(--sd-border);
    display: block;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
    background: var(--sd-footer-bg);
    color: rgba(255, 255, 255, 0.72);
    margin-top: 3rem;
}

.site-footer h5 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.social-links a:hover {
    background: var(--sd-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 0;
    font-size: 0.88rem;
}

/* ==========================================================================
   13. Floating controls
   ========================================================================== */

.floating-stack {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-btn {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--sd-shadow-lg);
    color: #fff;
    background: var(--sd-primary);
}

.floating-btn--whatsapp {
    background: #25d366;
}

.floating-btn:hover {
    color: #fff;
    filter: brightness(0.94);
}

#backToTop {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

#backToTop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--sd-secondary);
    color: #fff;
    padding: 0.85rem 1rem;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   14. Print
   ========================================================================== */

@media print {
    .topbar,
    .site-header,
    .main-nav,
    .site-footer,
    .floating-stack,
    .cookie-bar,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .invoice-sheet {
        border: 0 !important;
        padding: 0 !important;
    }

    a[href]::after {
        content: "";
    }
}

/* ==========================================================================
   15. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
