/* ==========================================================================
   Ebookpro — site-wide UI layer
   Loaded after the theme's Bootstrap stylesheet. Tokens are injected by the
   public layout from the active theme skin; the fallbacks match theme-black.
   ========================================================================== */

:root {
    --site-primary: #333645;
    --site-primary-hover: #494d62;
    --site-ink: #333645;
    --site-muted: #626060;
    --site-line: #e9e9e9;
    --site-line-strong: #d9d9d9;
    --site-surface: #ffffff;
    --site-soft: #f7f7f8;
    --site-radius: 10px;
    --site-shadow: 0 1px 2px rgba(51, 54, 69, .04), 0 18px 40px -30px rgba(51, 54, 69, .35);
}

/* ---------- Base ---------- */
body {
    font-family: "Open Sans", sans-serif;
    color: var(--site-ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: "Rubik", sans-serif; color: var(--site-ink); }

a { color: var(--site-primary); transition: color .16s ease; }
a:hover, a:focus { color: var(--site-primary-hover); text-decoration: none; }

.content-wrapper { padding-bottom: 56px; }

/* ---------- Top bar ---------- */
.top-nav { padding: 7px 0; font-size: 12.5px; }
.top-nav ul { margin: 0; }
.top-nav ul li { color: rgba(255, 255, 255, .72); }
.top-nav ul li a { color: rgba(255, 255, 255, .72); }
.top-nav ul li a:hover,
.top-nav ul li a:focus { color: #ffffff; text-decoration: none; }
.top-nav .btn {
    padding: 2px 6px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-family: "Open Sans", sans-serif;
    font-size: 12.5px;
}
.top-nav .btn:hover { color: #ffffff; }
.top-nav .social-links li a { font-size: 12px; }
.top-nav .dropdown-menu { margin-top: 8px; border: 0; border-radius: 8px; box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .45); }

/* ---------- Header ---------- */
.header-wrapper { height: auto; }
.header-inner { padding: 15px 0; }
.website-logo { height: 56px; width: auto; }
.website-logo h2 {
    margin: 0;
    font-family: "Rubik", sans-serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: #ffffff;
}
.website-logo img { max-height: 52px; width: auto; }

.search-area { margin-top: 6px; }
.search-box {
    height: 44px;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.search-box-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px !important;
    border: 0 !important;
    border-left: 0 !important;
    background: #ffffff !important;
    padding: 0 14px;
    font-size: 14px;
    color: var(--site-ink);
    box-shadow: none;
}
.search-box-input:focus { outline: 0; box-shadow: none; }
.search-box-input::placeholder { color: #9a9aa5; }
.search-box-button { display: flex; align-items: stretch; flex: 0 0 auto; }
.search-box .search-box-button .search-box-btn {
    float: none;
    width: 50px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--site-primary);
    color: #ffffff;
}
.search-box .search-box-button .search-box-btn i { font-size: 16px; }
.search-box .search-box-button .search-box-btn:hover,
.search-box .search-box-button .search-box-btn:focus { background: var(--site-primary-hover); color: #ffffff; }
.search-box .search-box-button .search-box-select {
    flex: 0 0 auto;
    width: auto;
    min-width: 128px;
    max-width: 160px;
    height: 44px;
    margin: 0;
    padding: 0 28px 0 12px;
    border: 0;
    border-left: 1px solid var(--site-line);
    border-radius: 0;
    background-color: var(--site-soft);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23626060' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 9px 5px;
    color: var(--site-ink);
    font-size: 12.5px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.cart-icon,
.profile-icon > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #ffffff !important;
    font-size: 17px;
    transition: background .16s ease;
}
.cart-icon:hover,
.profile-icon > .btn:hover { background: rgba(255, 255, 255, .16); }
.cart-icon { margin: 0 8px 0 0 !important; position: relative; }
.cart-icon .cart-badge { position: absolute; top: -4px; right: -4px; }
.avatar-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.profile-icon .dropdown-menu { right: 0; left: auto; margin-top: 10px; border: 0; border-radius: 10px; box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .4); padding: 8px; }
.profile-icon .dropdown-menu > li > a { padding: 9px 12px; border-radius: 7px; font-size: 13.5px; color: var(--site-ink); }
.profile-icon .dropdown-menu > li > a:hover { background: var(--site-soft); }
.profile-icon .dropdown-menu .divider { margin: 6px 4px; }

/* ---------- Main navigation ---------- */
.navbar-default { border: 0; border-radius: 0; min-height: 54px; margin: 0; }
.navbar-default .navbar-nav > li > a {
    padding: 17px 14px;
    font-family: "Rubik", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .85);
    transition: background .16s ease, color .16s ease;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .open > a {
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}
.category-menu-dropdown {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 18px;
    border-radius: 0;
    background: rgba(0, 0, 0, .16);
    color: #ffffff;
    font-family: "Rubik", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
}
.category-menu-dropdown:hover { background: rgba(0, 0, 0, .24); color: #ffffff; }
.navbar-default .dropdown-menu { border: 0; border-radius: 10px; box-shadow: 0 22px 50px -26px rgba(0, 0, 0, .45); padding: 8px 0; }
.navbar-default .dropdown-menu > li > a { padding: 9px 18px; font-size: 13.5px; color: var(--site-ink); }
.navbar-default .dropdown-menu > li > a:hover { background: var(--site-soft); color: var(--site-primary); }
.vertical-mega-menu { border-radius: 0 0 10px 10px !important; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { background: transparent; padding: 0; margin: 0 0 20px; }
.breadcrumb > li { font-size: 12.5px; color: var(--site-muted); }
.breadcrumb > li > a { color: var(--site-muted); }
.breadcrumb > li > a:hover { color: var(--site-primary); }
.breadcrumb > .active { color: var(--site-ink); }
.breadcrumb > li + li:before { content: "/"; color: var(--site-line-strong); padding: 0 8px; }

/* ---------- Section headers ---------- */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}
.section-header h3 {
    position: relative;
    display: block;
    float: none !important;
    margin: 0;
    padding: 0 0 12px;
    font-family: "Rubik", sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--site-ink);
}
.section-header h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: var(--site-primary);
}
.section-wrapper,
.ebook-slider-wrapper { margin-top: 48px; }

/* ---------- Book cards ---------- */
.ebook-card,
.ebook-card:before { margin: 0; padding: 0; height: auto; }
.ebook-card:before { content: none; display: none; }
.ebook-card { display: block; position: relative; }
.ebook-card-inner { position: relative; }
.ebook-cover-link { display: block; }

.ebook-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--site-soft);
    box-shadow: 0 1px 2px rgba(51, 54, 69, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ebook-card:hover .ebook-image {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px -26px rgba(51, 54, 69, .55);
}
.ebook-card .image-holder,
.ebook-card .base-image-inner { width: 100%; height: auto; aspect-ratio: 2 / 3; }
.ebook-card .image-holder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebook-card .image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    color: var(--site-muted);
    font-size: 28px;
}

.ebook-ribbon,
.ebook-image .ebook-ribbon {
    position: absolute;
    left: 10px;
    right: auto;
    top: 10px;
    z-index: 2;
    margin: 0;
    padding: 0;
}
.ebook-ribbon > li,
.ebook-image .ebook-ribbon > li { display: block; margin: 0 0 6px; padding: 0; }
.ebook-ribbon .ribbon,
.ebook-image .ebook-ribbon .ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-family: "Rubik", sans-serif;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .03em;
    color: #ffffff;
}
.ebook-ribbon .bg-green { background: #0a6f75; }
.ebook-ribbon .bg-red { background: #d93025; }

.ebook-content {
    position: relative;
    overflow: visible;
    padding: 12px 2px 2px;
    margin: 0;
    background: transparent;
}
.ebook-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ebook-card .ebook-name,
.ebook-content .ebook-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--site-ink);
    text-align: left;
}
a.ebook-name:hover { color: var(--site-primary); text-decoration: none; }
.ebook-card .ebook-author,
.ebook-card .ebook-authors {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    font-weight: 400;
    color: var(--site-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ebook-card-favorite { flex: 0 0 auto; }
.ebook-fav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--site-line);
    border-radius: 50%;
    background: var(--site-surface);
    color: var(--site-muted);
    font-size: 12px;
    cursor: pointer;
    transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.ebook-fav-btn:hover { border-color: #e30047; color: #e30047; }
.ebook-fav-btn.is-active { border-color: #e30047; background: #fff0f4; color: #e30047; }
.ebook-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--site-muted);
}
.ebook-card-meta .ebook-rating i { font-size: 10.5px; }
.ebook-card-meta .ebook-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11.5px;
}
.ebook-card-owner { display: flex; gap: 6px; margin-top: 8px; }
.ebook-owner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--site-line);
    border-radius: 6px;
    background: var(--site-surface);
    color: var(--site-muted);
    font-size: 11px;
    text-decoration: none;
}
.ebook-owner-btn:hover { border-color: var(--site-primary); color: var(--site-primary); }
.ebook-owner-btn.is-danger:hover { border-color: #d93025; color: #d93025; }

.ebook-rating i { color: #f0a500; font-size: 12px; letter-spacing: 1px; }
.ebook-rating i.fa-star-o, .ebook-rating i.fa-star-half-o { color: #d9d9d9; }

/* ---------- Card grids / carousels ---------- */
.grid-ebooks,
.grid-ebooks.separator {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px 22px;
}
.grid-ebooks .ebook-card,
.grid-ebooks.separator .ebook-card,
.ebook-slider .ebook-card,
.ebook-slider.separator .ebook-card { margin: 0; padding: 0; border: 0; }
.recent-ebooks { margin-top: 4px; }
.ebook-slider { margin-top: 4px; }
.ebook-slider .col-md-3 { padding: 0 11px; }
.ebook-slider .ebook-card { margin: 0 0 8px; padding: 0; }
.ebook-slider .slick-prev,
.ebook-slider .slick-next { top: -46px; }

/* ---------- Buttons (targeted) ---------- */
.btn { transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.btn:focus-visible { outline: 3px solid rgba(51, 54, 69, .3); outline-offset: 2px; }
.ebook-action .btn {
    min-height: 42px;
    padding: 11px 20px;
    border-radius: 8px;
    font-family: "Rubik", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
}
.search-box-btn { border-radius: 0; }
.btn-login {
    width: 100%;
    height: 46px;
    border-radius: 8px;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 500;
}
.btn-slider { padding: 12px 26px; border-radius: 8px; font-family: "Rubik", sans-serif; font-size: 14px; font-weight: 500; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    margin: 0 0 7px;
    font-family: "Rubik", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--site-ink);
}
.form-control {
    height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--site-line-strong);
    border-radius: 8px;
    background: var(--site-surface);
    color: var(--site-ink);
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.form-control:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(51, 54, 69, .12);
}
textarea.form-control { height: auto; min-height: 110px; resize: vertical; }
select.form-control { height: 42px; }
.has-error .form-control { border-color: #d93025; }
.error-message { display: block; margin-top: 5px; font-size: 12px; color: #b3261e; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--site-primary); }

/* ---------- Alerts ---------- */
.alert { border-radius: 10px; border: 1px solid transparent; padding: 14px 18px; font-size: 14px; }
.alert-success { background: #f0f9f4; border-color: #cfe9da; color: #1d6b43; }
.alert-danger { background: #fdf1f0; border-color: #f3d3d0; color: #a1261d; }
.alert-info { background: #f0f6fb; border-color: #d6e6f2; color: #1f5a85; }
.alert-warning { background: #fdf7ec; border-color: #f2e3c4; color: #7a5a1e; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0; }
.pagination > li { display: inline-flex; }
.pagination > li > a,
.pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--site-line);
    border-radius: 8px;
    background: var(--site-surface);
    color: var(--site-ink);
    font-size: 13.5px;
}
.pagination > li > a:hover,
.pagination > li > a:focus { border-color: var(--site-primary); color: var(--site-primary); background: var(--site-surface); }
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover { background: var(--site-primary); border-color: var(--site-primary); color: #ffffff; }
.pagination > .disabled > a,
.pagination > .disabled > span { opacity: .5; }

/* ---------- Tabs ---------- */
.nav-tabs { display: flex; flex-wrap: wrap; gap: 4px 10px; border-bottom: 1px solid var(--site-line); }
.nav-tabs > li { float: none; margin: 0; }
.nav-tabs > li > a {
    margin: 0;
    padding: 12px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--site-muted);
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 500;
}
.nav-tabs > li > a:hover { background: transparent; border-bottom-color: var(--site-line-strong); color: var(--site-ink); }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border: 0;
    border-bottom: 2px solid var(--site-primary);
    background: transparent;
    color: var(--site-ink);
}
.tab-content { padding: 22px 0 4px; }

/* ---------- Tables ---------- */
.table { border-collapse: collapse; }
.table > thead > tr > th {
    padding: 12px 14px;
    border-bottom: 1px solid var(--site-line);
    background: var(--site-soft);
    font-family: "Rubik", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--site-muted);
}
.table > tbody > tr > td {
    padding: 14px;
    border-top: 1px solid var(--site-line);
    vertical-align: middle;
    font-size: 13.5px;
}
.table > tbody > tr:hover > td { background: #fbfbfc; }

/* ---------- Auth pages ---------- */
.form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    padding: 8px 0 32px;
}
.register-wrapper {
    max-width: none;
    padding: 8px 0 32px;
}
.register-wrapper > [class*="col-"] {
    float: none;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 15px;
}
.form-wrapper .form-page,
.register-wrapper .form-page {
    margin: 0;
    padding: 28px;
    background: var(--site-surface);
    border: 1px solid var(--site-line);
    border-radius: 14px;
    box-shadow: var(--site-shadow);
}
.register-wrapper .form-page { padding: 32px; }
.register-wrapper .form-inner h3 { margin-bottom: 22px; }
.register-wrapper .form-group { margin-bottom: 18px; }
.register-wrapper .btn-register {
    min-width: 190px;
    height: 46px;
    padding: 0 24px;
    border-radius: 8px;
    font-family: "Rubik", sans-serif;
    font-size: 14px;
    font-weight: 500;
}
.register-wrapper .captcha-input {
    display: block;
    width: 100%;
    max-width: 220px;
    height: 42px;
    margin: 10px auto 0;
    padding: 9px 12px;
    border: 1px solid var(--site-line-strong);
    border-radius: 8px;
    background: var(--site-surface);
    color: var(--site-ink);
    font-size: 14px;
    text-align: center;
    letter-spacing: .15em;
}
.register-wrapper .captcha-input:focus {
    outline: 0;
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(51, 54, 69, .12);
}
.register-wrapper .checkbox { margin: 4px 0 0; font-size: 13px; }
.form-page .top-overlay { display: none; }
.form-inner { padding: 0; }
.login-form .form-inner,
.login .form-inner { padding: 0; }
.form-page h3,
.form-inner h3 {
    margin: 0 0 20px;
    font-family: "Rubik", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--site-ink);
}
.form-page .checkbox { margin: 14px 0 0; font-size: 13px; }
.form-page .forgot-password { font-size: 13px; color: var(--site-muted); }
.form-page .forgot-password:hover { color: var(--site-primary); }

/* ---------- Ebook detail ---------- */
.ebook-details-wrapper { padding-top: 4px; }
.ebook-details-wrapper .base-image {
    border-radius: 10px;
    overflow: hidden;
    background: var(--site-soft);
    box-shadow: var(--site-shadow);
}
.ebook-details-wrapper .base-image-inner { aspect-ratio: 2 / 3; }
.ebook-details-wrapper .base-image-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ebook-details-wrapper .base-image .image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 2 / 3;
    color: var(--site-muted);
    font-size: 30px;
}
.ebook-details { margin-top: 0; }
.ebook-details h2.ebook-name {
    margin: 0 0 12px;
    font-family: "Rubik", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--site-ink);
}
.ebook-statistics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    color: var(--site-muted);
    font-size: 12.5px;
}
.ebook-review, .ebook-view { float: none !important; font-size: 12.5px; color: var(--site-muted); }
.ebook-details .ebook-other .show,
.ebook-other .show {
    display: block;
    float: none !important;
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--site-ink);
}
.ebook-other .show label {
    margin: 0 4px 0 0;
    font-family: "Rubik", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--site-muted);
}
.ebook-other .show label:after { content: ""; }
.ebook-brief { margin: 16px 0; font-size: 15px; line-height: 1.7; color: var(--site-muted); }
.ebook-action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0; }
.ebook-action form { margin: 0 !important; }
.ebook-tab { margin-top: 26px; }
.social-share-btn { margin-top: 14px; }
.social-share-btn .social-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.social-share-btn .social-links li { padding: 0; }
.social-share-btn .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--site-line);
    border-radius: 50%;
    color: var(--site-muted);
    font-size: 13px;
}
.social-share-btn .social-links a:hover { border-color: var(--site-primary); color: var(--site-primary); }

/* ---------- Catalog filter ---------- */
.filter-section { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid var(--site-line); }
.filter-section:last-child { padding-bottom: 0; border-bottom: 0; }
.filter-section .title,
.filter-section h4 {
    margin: 0 0 12px;
    font-family: "Rubik", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--site-muted);
}
.filter-section label { font-size: 13.5px; font-weight: 400; color: var(--site-ink); }

/* ---------- Cart / checkout refinements ---------- */
.cart-page, .checkout-page { padding-top: 4px; }
.cart-item-card {
    padding: 16px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}
.cart-item-card:hover { border-color: var(--site-line-strong); }
.cart-item-image { width: 60px; height: 86px; border-radius: 6px; object-fit: cover; }
.cart-item-name { font-family: "Rubik", sans-serif; font-size: 14px; font-weight: 500; color: var(--site-ink); }
.cart-item-price { font-family: "Rubik", sans-serif; font-size: 15px; font-weight: 500; color: var(--site-ink); }
.cart-summary-card {
    padding: 22px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.checkout-card {
    padding: 22px;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}
.checkout-card-header { margin: 0 0 18px; padding: 0 0 12px; border-bottom: 1px solid var(--site-line); }
.checkout-section-title { margin: 0; font-family: "Rubik", sans-serif; font-size: 16px; font-weight: 500; color: var(--site-ink); }
.checkout-steps .step-circle { background: var(--site-primary); border-color: var(--site-primary); color: #ffffff; }
.checkout-steps .step-connector.completed { background: var(--site-primary); }
.checkout-steps .step-label { font-family: "Rubik", sans-serif; font-size: 12px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 0; }
.footer .footer-top { padding: 48px 0 40px; }
.footer .footer-logo h2 {
    margin: 0;
    font-family: "Rubik", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
}
.footer .footer-brief {
    margin: 16px 0 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .66);
}
.footer .title {
    margin: 0 0 16px;
    font-family: "Rubik", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffffff;
}
.footer .links ul { margin: 0; padding: 0; list-style: none; }
.footer .links ul li { display: block; margin: 0; padding: 0; }
.footer .links ul li a {
    display: inline-block;
    padding: 5px 0;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .66);
}
.footer .links ul li a:hover { color: #ffffff; }
.footer .footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer .copyright { font-size: 12.5px; color: rgba(255, 255, 255, .55); }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .grid-ebooks,
    .grid-ebooks.separator { gap: 24px 18px; }
}

@media (max-width: 991px) {
    .header-inner { padding: 12px 0; }
    .website-logo { height: 48px; }
    .website-logo h2 { font-size: 22px; }
    .section-header h3 { font-size: 20px; }
    .ebook-details h2.ebook-name { font-size: 24px; margin-top: 18px; }
    .grid-ebooks { gap: 22px 16px; }
    .form-wrapper, .register-wrapper { max-width: 100%; }
}

@media (max-width: 767px) {
    .grid-ebooks,
    .grid-ebooks.separator { gap: 20px 14px; }
    .ebook-slider .col-md-3 { padding: 0 8px; }
    .section-wrapper, .ebook-slider-wrapper { margin-top: 38px; }
    .section-header { margin-bottom: 14px; }
    .section-header h3 { font-size: 19px; padding-bottom: 10px; }
    .form-wrapper .form-page, .register-wrapper .form-page { padding: 20px; border-radius: 12px; }
    .form-page h3, .form-inner h3 { font-size: 21px; }
    .ebook-action .btn { width: 100%; justify-content: center; }
    .footer .footer-top { padding: 36px 0 28px; }
    .cart-summary-card, .checkout-card { padding: 18px; }
}

@media (max-width: 575px) {
    .grid-ebooks,
    .grid-ebooks.separator { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
}

@media (max-width: 479px) {
    .ebook-card .ebook-name { font-size: 13px; }
    .ebook-card-meta { flex-wrap: wrap; gap: 6px; }
    .ebook-card-meta .ebook-category { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ebook-card .ebook-image,
    .btn { transition: none; }
    .ebook-card:hover .ebook-image { transform: none; }
}
