@font-face {
  font-family: "Noto Sans Bengali";
  src: url("/fonts/noto-sans-bengali-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("/fonts/noto-sans-bengali-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("/fonts/noto-sans-bengali-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Bengali";
  src: url("/fonts/noto-sans-bengali-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    "Noto Sans Bengali",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #111827;
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: #15803d;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #15803d;
  background: #16a34a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
button:hover,
.button:hover {
  background: #15803d;
  color: white;
}
button:disabled {
  cursor: not-allowed;
  background: #e5e7eb;
  color: #6b7280;
  border-color: #e5e7eb;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  color: #111827;
  min-height: 44px;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 500;
  margin: 0 0 16px;
}
label input,
label textarea,
label select {
  margin-top: 5px;
}
h1,
h2,
h3,
p {
  margin: 0 0 12px;
}
h1 {
  font-size: 32px;
  line-height: 1.35;
}
h2 {
  font-size: 25px;
  line-height: 1.4;
}
h3 {
  font-size: 18px;
}
small {
  font-size: 14px;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
img {
  max-width: 100%;
  object-fit: contain;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #166534;
  outline-offset: 3px;
}
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.page-main {
  min-height: 55vh;
  padding-top: 24px;
  padding-bottom: 64px;
}
.top-strip {
  background: #f0fdf4;
  color: #166534;
  font-size: 14px;
  border-bottom: 1px solid #dcfce7;
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
}
.top-strip a {
  display: flex;
  gap: 6px;
  align-items: center;
}
.main-header {
  height: 94px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 700;
  color: #166534;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.1;
}
.search-form {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 700px;
}
.search-form input {
  border-radius: 7px 0 0 7px;
  height: 48px;
  background: #f8fafc;
}
.search-form button {
  border-radius: 0 7px 7px 0;
  padding: 0 16px;
}
.header-actions {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.header-actions > a,
.cart-toggle {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 14px;
  white-space: nowrap;
}
.cart-toggle {
  background: transparent;
  border: 0;
  color: #111827;
  padding: 0;
}
.cart-toggle:hover {
  background: transparent;
  color: #166534;
}
#cart-count {
  background: #dcfce7;
  color: #166534;
  border-radius: 20px;
  padding: 1px 6px;
}
.nav-wrap {
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}
.nav-links {
  height: 49px;
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 15px;
  white-space: nowrap;
  overflow: auto;
}
.nav-links a:first-child {
  color: #166534;
  font-weight: 600;
}
.discovery {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  padding: 32px 40px;
  margin: 4px 0 24px;
}
.eyebrow {
  display: block;
  color: #166534;
  letter-spacing: 0.04em;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.discovery h1 {
  font-size: 34px;
}
.discovery p {
  color: #4b5563;
}
.discovery .button {
  margin-top: 8px;
}
.discovery-note {
  border-left: 1px solid #bbd6c3;
  padding: 16px 48px;
  color: #166534;
  min-width: 320px;
}
.discovery-note strong {
  display: block;
  font-size: 25px;
  margin: 12px 0;
}
.discovery-note a {
  border-bottom: 1px solid;
  font-size: 14px;
}
.trending {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin: 20px 0;
}
.trending strong {
  margin-right: 8px;
}
.trending a,
.quick-filters a,
.tabs a {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 6px 14px;
  border-radius: 6px;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  padding: 21px 8px;
}
.trust-strip > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: center;
  border-right: 1px solid #e5e7eb;
  color: #166534;
}
.trust-strip > div > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.trust-strip svg {
  flex-shrink: 0;
}
.trust-strip > div:last-child {
  border: 0;
}
.trust-strip strong,
.trust-strip small {
  display: block;
}
.trust-strip strong {
  font-size: 16px;
  color: #374151;
}
.trust-strip small {
  font-size: 13px;
  color: #6b7280;
}
.store-section {
  margin-top: 54px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 21px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
}
.section-heading p {
  color: #6b7280;
  font-size: 14px;
  margin: 4px 0 0;
}
.section-heading > a {
  font-size: 14px;
  color: #166534;
  font-weight: 600;
  border-bottom: 1px solid #bbd6c3;
  white-space: nowrap;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.category-grid a {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #e5e7eb;
  background: #fafcfb;
  border-radius: 8px;
  padding: 16px;
  color: #166534;
}
.category-grid strong {
  color: #374151;
  font-size: 15px;
}
.category-grid a:hover {
  border-color: #16a34a;
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e5e7eb;
  border-radius: 9px;
}
.reward-grid > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-right: 1px dashed #d1d5db;
}
.reward-grid > div:last-child {
  border: 0;
}
.reward-grid p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}
.reward-grid strong {
  color: #166534;
}
.reward-grid svg {
  margin-left: auto;
  color: #166534;
}
.reward-number {
  border: 1px solid #bbd6c3;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #166534;
}
.offer-section {
  padding: 24px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}
.tabs,
.quick-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  font-size: 14px;
}
.tabs .selected {
  background: #166534;
  color: white;
  border-color: #166534;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card:hover {
  border-color: #b6c9bb;
  box-shadow: 0 3px 12px #00000007;
}
.product-media {
  height: 254px;
  padding: 24px 26px 18px;
  position: relative;
  background: #fbfcfc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media > a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge {
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-block;
}
.sale {
  background: #fef2f2;
  color: #b91c1c;
}
.product-media > .badge {
  position: absolute;
  top: 10px;
  left: 9px;
}
.icon-button {
  padding: 7px;
  border: 0;
  background: transparent;
  color: #6b7280;
}
.wish {
  position: absolute;
  right: 6px;
  top: 6px;
  background: #ffffffed;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
}
.wish:hover {
  color: #b91c1c;
  background: white;
}
.book-cover {
  height: 100%;
  width: 100%;
  max-width: 175px;
  min-height: 180px;
  margin: auto;
  background: #21473c;
  color: #f8f4e8;
  padding: 17px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-left: 5px solid #00000024;
  box-shadow: 3px 3px 5px #0002;
  border-radius: 1px;
}
.book-cover strong {
  font-size: 23px;
  line-height: 1.35;
  margin: auto 0;
  font-weight: 600;
}
.cover-publisher {
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.cover-author {
  font-size: 11px;
  margin-top: 12px;
}
.cover-edition {
  font-size: 9px;
  margin-top: 12px;
  border-top: 1px solid #ffffff40;
  padding-top: 6px;
  width: 85%;
  opacity: 0.8;
}
.tone-1 {
  background: #26334c;
  color: #eef2f8;
}
.tone-2 {
  background: #e9e1cc;
  color: #38352f;
}
.tone-3 {
  background: #55402f;
  color: #fbf1df;
}
.tone-4 {
  background: #813f42;
  color: #fff0e6;
}
.tone-5 {
  background: #54675e;
  color: #f5f5e6;
}
.product-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-tags {
  font-size: 12px;
  color: #166534;
  margin-bottom: 6px;
  min-height: 19px;
}
.warning {
  color: #a16207;
}
.product-info h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 0 0 4px;
  min-height: 49px;
}
.author {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 9px;
}
.muted {
  color: #6b7280;
}
.prices {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  margin-bottom: 11px;
}
.prices strong {
  font-size: 21px;
  color: #166534;
}
.prices del {
  font-size: 13px;
  color: #9ca3af;
}
.add-button {
  width: 100%;
  font-size: 14px;
  padding: 8px;
  min-height: 40px;
  background: #fff;
  color: #166534;
  border-color: #b4d9c0;
}
.add-button:hover {
  background: #16a34a;
  color: white;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 15px;
}
.people-grid > a {
  text-align: center;
  padding: 16px 8px;
}
.people-grid strong {
  font-size: 15px;
}
.avatar {
  margin: 0 auto 12px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #166534;
  font-size: 25px;
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.help-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 58px;
}
.help-panels article {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 28px;
  background: #f8fafc;
}
.help-panels p {
  color: #6b7280;
}
.outline {
  background: white;
  color: #166534;
  border: 1px solid #a7cbb2;
}
.ghost {
  background: transparent;
  color: #374151;
  border: 0;
  padding: 5px;
}
.ghost:hover {
  background: #f0fdf4;
  color: #166534;
}
.danger {
  color: #b91c1c;
}
footer {
  background: #111827;
  color: #d1d5db;
  padding-top: 42px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-grid .brand {
  color: #fff;
  margin-bottom: 15px;
}
.footer-grid p {
  font-size: 14px;
  max-width: 290px;
}
.footer-grid h3 {
  color: white;
  font-size: 17px;
}
.footer-grid > div > a:not(.brand) {
  display: block;
  font-size: 14px;
  padding: 4px 0;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 16px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.bottom-nav,
.mobile-only {
  display: none;
}
.panel {
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: white;
  padding: 24px;
}
.narrow {
  max-width: 700px;
  margin: 28px auto;
}
.auth-card {
  max-width: 440px;
  margin: 45px auto;
}
.auth-card h1 {
  font-size: 27px;
  margin-bottom: 24px;
}
.wide {
  width: 100%;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
}
.empty svg {
  color: #16a34a;
  margin-bottom: 15px;
}
.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 22px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 26px;
}
.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.catalog-grid .product-media {
  height: 225px;
}
.filter-panel {
  align-self: start;
  padding: 18px;
  font-size: 14px;
}
.filter-panel h2 {
  font-size: 19px;
}
.check-label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check-label input {
  width: 17px;
  min-height: 17px;
  margin: 0;
}
.pagination {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}
.pagination a {
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  padding: 6px 14px;
}
.selected {
  background: #dcfce7 !important;
  color: #166534 !important;
}
.product-detail {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 36px;
  padding-right: 36px;
}
.gallery {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 40px;
}
.large-cover {
  height: 390px;
}
.large-cover .book-cover {
  max-width: 280px;
  padding: 35px 25px;
}
.large-cover .book-cover strong {
  font-size: 38px;
}
.large-cover .book-cover .cover-author {
  font-size: 16px;
}
.large-cover img {
  width: 100%;
  height: 100%;
}
.gallery-extra {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.detail-info h1 {
  font-size: 32px;
  margin-bottom: 18px;
}
.detail-info > p {
  margin-bottom: 7px;
  color: #4b5563;
}
.detail-price {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 25px 0;
}
.detail-price strong {
  font-size: 32px;
  color: #166534;
}
.detail-price del {
  color: #9ca3af;
}
.detail-links {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.buy-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.buy-row input {
  width: 75px;
}
.detail-trust {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  color: #6b7280;
  font-size: 14px;
}
.detail-trust p {
  display: flex;
  gap: 10px;
}
.product-description {
  margin-top: 36px;
}
.preline {
  white-space: pre-line;
}
.review {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}
.review strong {
  margin: 0 10px;
}
.stars {
  color: #a16207;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-grid small {
  display: block;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}
.cart-item {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #e5e7eb;
  padding: 18px;
  margin-bottom: 14px;
  border-radius: 9px;
}
.cart-cover {
  width: 70px;
  flex-shrink: 0;
  height: 95px;
  overflow: hidden;
}
.cart-cover .book-cover {
  min-height: 0;
  padding: 5px;
}
.cart-cover .book-cover strong {
  font-size: 11px;
}
.cart-cover .cover-publisher,
.cart-cover .cover-edition,
.cart-cover .cover-author {
  display: none;
}
.cart-item > div {
  flex: 1;
}
.cart-item input {
  width: 70px;
}
.cart-item h3 {
  font-size: 17px;
}
.summary {
  height: max-content;
  position: sticky;
  top: 20px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}
.summary-total {
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
  font-size: 22px;
  color: #166534;
}
.reward-message {
  padding: 12px;
  background: #f0fdf4;
  font-size: 14px;
  border-radius: 6px;
  color: #166534;
  margin-bottom: 16px;
}
.inline-field {
  display: flex;
  gap: 6px;
}
.inline-field button {
  padding: 6px 10px;
  white-space: nowrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.payment-option {
  padding: 15px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 8px;
  margin: 20px 0;
}
.success {
  text-align: center;
}
.success-icon {
  background: #dcfce7;
  color: #166534;
  border-radius: 50%;
  padding: 22px;
  display: inline-flex;
  margin-bottom: 25px;
}
.order-number {
  font-size: 22px;
  display: block;
  margin-bottom: 20px;
}
.account-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}
.account-nav {
  height: max-content;
}
.account-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 5px;
}
.account-nav h2 {
  font-size: 20px;
}
dialog {
  border: 0;
  padding: 24px;
  box-shadow: 0 12px 50px #0004;
  border-radius: 10px;
}
dialog::backdrop {
  background: #11182766;
}
#cart-drawer {
  margin: 0 0 0 auto;
  height: 100%;
  max-height: 100%;
  width: 430px;
  border-radius: 0;
  max-width: 100vw;
}
#cart-drawer .cart-item {
  gap: 10px;
  padding: 10px;
}
#cart-drawer .wide {
  margin-top: 12px;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-head button {
  background: none;
  border: 0;
  color: #374151;
  font-size: 28px;
}
.drawer-head h2 {
  margin: 0;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #166534;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 100;
  max-width: 90vw;
  display: none;
  box-shadow: 0 5px 20px #0003;
}
#toast.show {
  display: block;
}
#suggestions {
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 5px 15px #0002;
  z-index: 30;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}
#suggestions a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.skip {
  position: absolute;
  top: -100px;
}
.skip:focus {
  top: 0;
  background: white;
  z-index: 99;
  padding: 8px;
}
.banner {
  display: block;
  margin-bottom: 22px;
}
.banner img {
  width: 100%;
  border-radius: 10px;
}
.admin-top {
  padding: 15px 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}
.admin-top .brand {
  font-size: 24px;
  margin-right: auto;
}
.admin-top .brand small {
  font-size: 14px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  min-height: calc(100vh - 75px);
}
.admin-sidebar {
  border-right: 1px solid #e5e7eb;
  padding: 22px 15px;
  background: white;
}
.admin-sidebar a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 5px;
}
.admin-sidebar .eyebrow {
  padding-left: 14px;
  font-size: 12px;
}
#admin-content {
  padding: 28px;
  min-width: 0;
  background: #f8fafc;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 24px;
}
.admin-heading h1 {
  font-size: 27px;
  margin: 0;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  font-size: 14px;
  text-align: left;
}
th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}
th {
  background: #f8fafc;
  color: #4b5563;
  font-weight: 500;
}
td a {
  color: #166534;
  text-decoration: underline;
}
td.wrap {
  white-space: normal;
  min-width: 170px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  padding: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
}
.metric p {
  color: #6b7280;
  font-size: 14px;
}
.metric strong {
  font-size: 27px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.status-label {
  padding: 3px 8px;
  border-radius: 4px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
}
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.admin-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.admin-fields .full {
  grid-column: 1/-1;
}
.admin-fields input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
.admin-fields select[multiple] {
  min-height: 120px;
}
.admin-fields label {
  font-size: 14px;
}
.notice {
  background: #fefce8;
  color: #854d0e;
  padding: 12px 16px;
  border: 1px solid #fde68a;
  border-radius: 7px;
  margin-bottom: 20px;
  font-size: 14px;
}
.error-notice {
  background: #fef2f2;
  color: #991b1b;
  padding: 16px;
  border-radius: 8px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.toolbar input {
  max-width: 340px;
}
.upload-control {
  display: flex;
  gap: 8px;
  align-items: center;
}
.upload-control input[type="file"] {
  font-size: 12px;
  padding: 5px;
}
.audit-value {
  max-width: 300px;
  white-space: pre-wrap;
  font-size: 12px;
  word-break: break-word;
}
.bar-chart {
  display: flex;
  gap: 7px;
  align-items: end;
  height: 180px;
  padding-top: 15px;
}
.bar-chart .bar {
  background: #16a34a;
  min-width: 12px;
  flex: 1;
  border-radius: 3px 3px 0 0;
}
.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}
.timeline {
  border-left: 2px solid #bbd6c3;
  margin: 25px 10px;
  padding-left: 22px;
}
.timeline p {
  padding: 8px 0;
}
.admin-order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.print-only {
  display: none;
}
@media (min-width: 1440px) {
  .product-media {
    height: 265px;
  }
}
@media (max-width: 1199px) {
  .main-header {
    gap: 20px;
  }
  .header-actions {
    gap: 15px;
  }
  .header-actions span {
    display: none;
  }
  .product-media {
    height: 220px;
    padding: 22px 17px 15px;
  }
  .product-grid {
    gap: 14px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .reward-grid > div {
    padding: 13px;
    gap: 8px;
  }
  .reward-grid svg {
    display: none;
  }
  .people-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1023px) {
  .container {
    padding-left: 22px;
    padding-right: 22px;
  }
  .main-header {
    height: 88px;
  }
  .discovery {
    padding: 28px;
  }
  .discovery h1 {
    font-size: 30px;
  }
  .discovery-note {
    min-width: 260px;
    padding: 16px 25px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .product-media {
    height: 260px;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .trust-strip > div:nth-child(2) {
    border: 0;
  }
  .reward-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reward-grid > div {
    border-bottom: 1px dashed #d1d5db;
  }
  .checkout-layout {
    grid-template-columns: 1fr 300px;
    gap: 20px;
  }
  .product-detail {
    grid-template-columns: 40% 60%;
    gap: 20px;
    padding-right: 20px;
  }
  .gallery {
    padding: 25px;
  }
  .large-cover {
    height: 340px;
  }
  .large-cover .book-cover strong {
    font-size: 30px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  #admin-content {
    padding: 20px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .catalog-grid .product-media {
    height: 210px;
  }
}
@media (max-width: 767px) {
  body {
    padding-bottom: 65px;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top-strip {
    font-size: 12px;
  }
  .top-strip .container > span {
    max-width: 190px;
  }
  .main-header {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .mobile-only {
    display: inline-flex;
  }
  .main-header .brand {
    font-size: 26px;
  }
  .brand small {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 15px;
  }
  .header-actions > a:nth-child(2) {
    display: none;
  }
  .search-form {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .search-form input {
    height: 45px;
  }
  .nav-links {
    gap: 24px;
    height: 44px;
    font-size: 14px;
  }
  .nav-wrap.menu-open .nav-links {
    white-space: normal;
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .page-main {
    padding-top: 18px;
    padding-bottom: 40px;
  }
  .discovery {
    padding: 24px 20px;
    margin-top: 0;
  }
  .discovery h1 {
    font-size: 28px;
  }
  .discovery p {
    font-size: 14px;
  }
  .discovery-note {
    display: none;
  }
  .trending {
    font-size: 12px;
  }
  .trending a {
    padding: 4px 9px;
  }
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 16px 12px;
    gap: 20px 16px;
  }
  .trust-strip > div {
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    gap: 8px;
    border: 0;
  }
  .trust-strip strong,
  .trust-strip small {
    line-height: 1.6;
  }
  .trust-strip small {
    margin-top: 4px;
  }
  .trust-strip strong {
    font-size: 13px;
  }
  .trust-strip small {
    font-size: 12px;
  }
  .trust-strip svg {
    width: 23px;
  }
  .store-section {
    margin-top: 36px;
  }
  h1 {
    font-size: 27px;
  }
  h2 {
    font-size: 22px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .category-grid a {
    padding: 12px;
    gap: 10px;
  }
  .category-grid strong {
    font-size: 14px;
  }
  .reward-grid > div {
    padding: 12px;
    gap: 8px;
  }
  .reward-grid p {
    font-size: 12px;
  }
  .reward-grid strong {
    font-size: 16px;
  }
  .reward-number {
    width: 24px;
    height: 24px;
  }
  .offer-section {
    padding: 16px;
    margin-left: -6px;
    margin-right: -6px;
  }
  .product-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-media,
  .catalog-grid .product-media {
    height: 215px;
    padding: 22px 18px 14px;
  }
  .book-cover {
    min-height: 150px;
    padding: 13px 9px;
  }
  .book-cover strong {
    font-size: 21px;
  }
  .product-info {
    padding: 10px;
  }
  .product-info h3 {
    font-size: 16px;
    min-height: 47px;
  }
  .prices strong {
    font-size: 20px;
  }
  .prices del {
    font-size: 12px;
  }
  .product-tags {
    font-size: 12px;
  }
  .tabs {
    gap: 7px;
  }
  .tabs a {
    font-size: 12px;
    padding: 5px 8px;
  }
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .people-grid strong {
    font-size: 13px;
  }
  .avatar {
    width: 55px;
    height: 55px;
  }
  .help-panels {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 35px;
  }
  .help-panels article {
    padding: 22px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-bottom {
    font-size: 12px;
    gap: 15px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 8px 0 6px;
    z-index: 40;
  }
  .bottom-nav a {
    display: flex;
    align-items: center;
    flex-direction: column;
    font-size: 12px;
    gap: 2px;
    color: #4b5563;
  }
  .catalog-layout {
    display: block;
  }
  .filter-panel {
    margin-bottom: 20px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px;
  }
  .filter-panel h2 {
    grid-column: 1/-1;
  }
  .filter-panel label {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .filter-panel input,
  .filter-panel select {
    padding: 7px;
    font-size: 14px;
  }
  .product-detail {
    display: block;
    padding: 0;
  }
  .gallery {
    padding: 25px;
    margin-bottom: 25px;
  }
  .large-cover {
    height: 330px;
  }
  .detail-info h1 {
    font-size: 27px;
  }
  .detail-price {
    gap: 10px;
  }
  .buy-row {
    gap: 8px;
  }
  .buy-row input {
    width: 58px;
  }
  .buy-row button {
    padding: 10px;
    font-size: 14px;
  }
  .detail-links {
    gap: 8px;
    font-size: 13px;
  }
  .checkout-layout {
    display: flex;
    flex-direction: column;
  }
  .summary {
    position: static;
    order: -1;
  }
  .cart-item {
    gap: 10px;
    padding: 10px;
    flex-wrap: wrap;
  }
  .cart-item h3 {
    font-size: 16px;
  }
  .cart-item input {
    width: 55px;
  }
  .cart-item > strong {
    margin-left: auto;
    font-size: 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  .account-nav h2 {
    width: 100%;
  }
  .account-nav a {
    font-size: 14px;
    padding: 7px;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .admin-top {
    padding: 12px 16px;
    gap: 12px;
  }
  .admin-top .brand {
    font-size: 21px;
  }
  .admin-top > a:not(.brand) {
    font-size: 13px;
  }
  .admin-top button {
    font-size: 13px;
  }
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    padding: 12px;
    display: flex;
    overflow: auto;
    gap: 6px;
    border-bottom: 1px solid #e5e7eb;
  }
  .admin-sidebar .eyebrow {
    display: none;
  }
  .admin-sidebar a {
    white-space: nowrap;
    padding: 7px 12px;
  }
  .admin-fields {
    grid-template-columns: 1fr;
  }
  .admin-heading {
    align-items: start;
    flex-wrap: wrap;
  }
  .admin-heading h1 {
    font-size: 24px;
  }
  .admin-order-meta {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 12px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 24px;
  }
  #admin-content {
    padding: 16px;
  }
  body[data-admin="true"] {
    padding-bottom: 0;
  }
  .admin-top .brand small {
    display: none;
  }
  #toast {
    bottom: 78px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading > span {
    font-size: 13px;
  }
  .auth-card {
    margin: 20px auto;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .narrow {
    margin: 18px auto;
  }
}
@media (max-width: 370px) {
  .product-media,
  .catalog-grid .product-media {
    height: 185px;
    padding: 24px 13px 12px;
  }
  .book-cover strong {
    font-size: 18px;
  }
  .book-cover {
    min-height: 140px;
  }
  .cover-edition {
    font-size: 8px;
  }
  .cover-publisher {
    font-size: 9px;
  }
  .product-info h3 {
    font-size: 15px;
  }
  .prices {
    gap: 4px;
  }
  .add-button {
    font-size: 13px;
  }
  .main-header .brand {
    font-size: 23px;
  }
  .header-actions {
    gap: 10px;
  }
  .discovery h1 {
    font-size: 25px;
  }
  .top-strip .container > span {
    max-width: 150px;
  }
}
@media print {
  body {
    padding: 0;
  }
  .admin-top,
  .admin-sidebar,
  button,
  .no-print,
  .bottom-nav {
    display: none !important;
  }
  .admin-layout {
    display: block;
  }
  #admin-content {
    padding: 0;
    background: white;
  }
  .panel {
    border: 0;
  }
  .print-only {
    display: block;
  }
}

.main-header .store-logo {
  width: clamp(140px, 22vw, 240px);
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.footer-logo {
  width: 240px;
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  object-position: left center;
}

.media-field {
  display: grid;
  gap: 10px;
}
.media-preview {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100px;
  object-fit: contain;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px;
}
