/* Literature.ph nou theme adapted to OpenCart 4 / Bootstrap 5.
   Original palette, type, rounded search, book cards and footer; native OC4 forms. */
.litph-store {
  --litph-navy: #232f3f;
  --litph-footer: #1a2433;
  --litph-accent: #ff3b24;
  --bs-primary: #d92d19;
  --bs-link-color: #b82b1a;
  --bs-link-hover-color: #8c2114;
  font-family: 'Lato', sans-serif;
  color: #111;
  background: #fff;
  padding-top: 0;
}
.litph-store #container { min-height: 100vh; display: flex; flex-direction: column; }
.litph-store main { flex: 1 0 auto; }
.litph-store h1, .litph-store h2, .litph-store h3, .litph-store h4,
.litph-store h5, .litph-store h6 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 700;
  color: #444;
}
.litph-store a { text-decoration: none; }
.litph-store a:focus-visible, .litph-store button:focus-visible {
  outline: 3px solid #ffad54; outline-offset: 3px;
}
.litph-header { background: var(--litph-navy); position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px #0002; }
.litph-toolbar { display: flex; align-items: center; gap: 24px; padding: 20px 0 12px; }
.litph-header #logo { flex: 0 0 220px; margin: 0; padding: 0; }
.litph-header #logo img { width: 220px; max-height: 70px; object-fit: contain; object-position: left center; }
.litph-wordmark { font: 700 32px 'EB Garamond', Georgia, serif; color: #fff; }
.litph-search { flex: 1 1 auto; min-width: 0; }
.litph-store #search { margin: 0; border-radius: 100px; background: #fff; border: 2px solid transparent; box-shadow: 0 2px 10px #0001; }
.litph-store #search:focus-within { border-color: var(--litph-accent); }
.litph-store #search .form-control { min-width: 0; border: 0; border-radius: 100px 0 0 100px; box-shadow: none; height: 46px; font-size: 14px; padding-left: 20px; }
.litph-store #search button { background: linear-gradient(135deg,#ff4a33,#e82c18); color: #fff; border: 0; border-radius: 0 100px 100px 0; min-width: 48px; }
.litph-actions { display: flex; align-items: center; gap: 16px; }
.litph-header #cart { margin: 0; width: auto; }
.litph-header #cart > .dropdown > button {
  background: transparent; border: 1px solid #ffffff30; border-radius: 8px;
  color: #fff; font-size: 13px; min-height: 46px; max-width: 230px; white-space: normal;
}
.litph-header #cart .dropdown-menu { max-width: calc(100vw - 24px); color: #333; }
.litph-account-toggle { background: transparent; color: #fff; border: 0; display: flex; align-items: center; gap: 10px; min-height: 46px; text-align: left; }
.litph-account-toggle > i { font-size: 29px; }
.litph-account-toggle strong { font-size: 14px; display: block; }
.litph-account-toggle small { display: block; font-size: 11px; color: #c9d3da; }
.litph-account .dropdown-menu { min-width: 220px; padding: 10px 0; border: 0; border-radius: 10px; box-shadow: 0 8px 30px #0002; }
.litph-account .dropdown-item { padding: 9px 20px; }
.litph-account .dropdown-item:hover { background: #fff3f0; color: #b82b1a; }
.litph-store #top { background: var(--litph-navy); border: 0; margin: 0; padding: 0 0 4px; min-height: 0; }
.litph-preferences .btn-link { color: #dce3eb; font-size: 11px; text-decoration: none; }
.litph-preferences .dropdown-menu { color: #333; }
.litph-store #menu { background: var(--litph-navy) !important; border: 0; border-radius: 0 0 8px 8px; margin: 0 0 28px; padding: 0 12px; }
.litph-store #menu .navbar-nav > li > a { color: #fff; padding: 13px 18px; font-size: 14px; }
.litph-store #menu .navbar-nav > li > a:hover,
.litph-store #menu .navbar-nav > li > a.show { background: #ffffff12; color: #ffad54; }
.litph-store #menu .dropdown-menu { border: 0; border-radius: 8px; box-shadow: 0 10px 24px #0002; }
.litph-store #menu .dropdown-menu a { color: #333; }
.litph-store #menu .dropdown-menu a:hover { color: #b82b1a; background: #fff3f0; }
.litph-store #menu .navbar-toggler, .litph-store #menu #category { color: #fff; }
.litph-store .breadcrumb { background: #f7f8fa; border: 0; padding: 12px 18px; border-radius: 8px; }
.litph-store .btn-primary { background: #d92d19; border-color: #d92d19; background-image: none; }
.litph-store .btn-primary:hover { background: #b62515; border-color: #b62515; }
.litph-store .form-control:focus, .litph-store .form-select:focus { border-color: #eb8c7f; box-shadow: 0 0 0 .2rem #ff3b241a; }
.litph-store #content { min-height: 470px; }
.litph-store #content > h3 { font-size: 30px; margin: 24px 0; }
.litph-store .product-thumb {
  background: #fff; border: 1px solid #00000014; border-radius: 12px; overflow: hidden;
  height: 100%; margin-bottom: 0; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.litph-store .product-thumb:hover { transform: translateY(-5px); box-shadow: 0 12px 28px -6px #0002; }
.litph-store .product-thumb .image { padding: 20px 18px 8px; text-align: center; }
.litph-store .product-thumb .image img { width: 100%; height: 220px; object-fit: contain; margin: 0 auto; transition: transform .3s ease; }
.litph-store .product-thumb:hover .image img { transform: scale(1.035); }
.litph-store .product-thumb .content { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.litph-store .product-thumb .description { padding: 16px 18px; flex: 1; }
.litph-store .product-thumb h4 { font-size: 19px; line-height: 1.3; margin: 0 0 10px; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.litph-store .product-thumb h4 a { color: #263548; }
.litph-store .litph-book-description { color: #68717d; font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; min-height: 3.2em; -webkit-box-orient: vertical; overflow: hidden; }
.litph-store .product-thumb .price { color: #b82b1a; font-weight: 700; font-size: 17px; }
.litph-store .product-thumb .price-old { color: #84909d; font-size: 13px; font-weight: 400; }
.litph-store .product-thumb .price-tax { color: #68717d; font-size: 11px; font-weight: 400; }
.litph-store .product-thumb .rating { color: #e5a323; }
.litph-store .product-thumb .button { display: flex; background: #f7f8fa; border-top: 1px solid #edf0f2; }
.litph-store .product-thumb .button button { border: 0; border-radius: 0; min-height: 46px; background: transparent; color: #405067; flex: 0 0 44px; }
.litph-store .product-thumb .button button:first-child { flex: 1; font-size: 12px; font-weight: 700; }
.litph-store .product-thumb .button button:hover { background: #d92d19; color: #fff; }
.litph-store #product-list.product-list .product-thumb { flex-direction: row; }
.litph-store #product-list.product-list .product-thumb .image { flex: 0 0 240px; }
.litph-store .list-group-item { border-color: #e7ebef; }
.litph-store .list-group-item.active { background: var(--litph-navy); border-color: var(--litph-navy); }
.litph-store .carousel { overflow: hidden; border-radius: 12px; }
.litph-store .litph-footer { margin-top: 48px; padding: 48px 0 0; background: var(--litph-footer); color: #c9d3da; border: 0; }
.litph-footer h5 { font: 700 13px 'Lato',sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; border-bottom: 1px solid #ffffff1a; padding-bottom: 12px; margin-bottom: 16px; }
.litph-store .litph-footer a { color: #a8b8c4; font-size: 13.5px; }
.litph-store .litph-footer a:hover { color: #ff725f; }
.litph-footer li { margin-bottom: 9px; }
.litph-footer hr { border-color: #ffffff1a; margin: 32px 0 0; }
.litph-footer-bottom { padding: 20px 0 24px; }
.litph-footer-bottom p { margin: 0; font-size: 12px; color: #a8b8c4; }
@media (max-width: 991.98px) {
  .litph-toolbar { flex-wrap: wrap; gap: 12px; }
  .litph-header #logo { flex-basis: 170px; }
  .litph-header #logo img { width: 170px; }
  .litph-search { flex: 1 0 100%; order: 3; }
  .litph-actions { margin-left: auto; gap: 8px; }
  .litph-account-toggle small { display: none; }
  .litph-store #menu { padding: 8px 12px; }
  .litph-store #menu .dropdown-menu { position: static; }
}
@media (max-width: 575.98px) {
  .litph-toolbar { padding-top: 12px; }
  .litph-header #logo { flex-basis: 130px; }
  .litph-header #logo img { width: 130px; }
  .litph-account-toggle > span, .litph-account-toggle::after { display: none; }
  .litph-header #cart > .dropdown > button { max-width: 145px; font-size: 11px; padding: 8px; }
  .litph-account-toggle { padding: 0 4px; }
  .litph-store .product-thumb .image img { height: 220px; }
  .litph-store #product-list.product-list .product-thumb { flex-direction: column; }
  .litph-store #product-list.product-list .product-thumb .image { flex-basis: auto; }
  .litph-footer-grid > div { width: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .litph-store .product-thumb, .litph-store .product-thumb img { transition: none; transform: none !important; }
}

/* Explicit module grid also supports migrated OC3 settings without axis. */
.litph-book-section { margin: 32px 0; }
.litph-book-section > h3 { font-size: 30px; margin: 0 0 24px; }
.litph-book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.litph-book-grid > div { min-width: 0; }
.litph-book-grid .product-thumb > .image { flex: 0 0 auto; }
.litph-book-grid .product-thumb form { margin-top: auto; }
.litph-book-grid .product-thumb .button button { min-width: 0; }
.litph-book-grid .product-thumb .button button:first-child { white-space: normal; }
.litph-book-grid.is-vertical { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1199.98px) { .litph-book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 991.98px) { .litph-book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 575.98px) {
  .litph-book-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .litph-book-grid .product-thumb .image img { height: 240px; }
}

.litph-cart-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  max-width: 230px;
  padding: 5px 12px;
  color: #fff;
  text-align: left;
  white-space: normal;
  background: transparent;
  border: 1px solid #ffffff30;
  border-radius: 8px;
}
.litph-cart-toggle:hover, .litph-cart-toggle:focus { color: #fff; background: #ffffff12; }
.litph-cart-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; }
.litph-cart-icon > i { font-size: 19px; }
.litph-cart-count { position: absolute; top: -4px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; color: #fff; background: var(--litph-accent); border: 1px solid var(--litph-navy); border-radius: 10px; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.litph-cart-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.litph-cart-label strong { color: #fff; font-size: 13px; }
.litph-cart-label small { color: #c9d3da; font-size: 11px; }
.litph-cart .dropdown-menu { width: min(520px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; color: #263548; }
.litph-cart .table { font-size: 13px; }
.litph-cart .table img { max-width: 58px; }
.litph-cart .cart-dropdown-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 4px 2px 2px; }
.litph-cart .cart-dropdown-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 575.98px) {
  .litph-cart-toggle { max-width: 145px; padding: 6px 8px; }
  .litph-cart-label small { display: none; }
}

.litph-store #product-product .pd-product-layout { align-items: flex-start; gap: 0; }
.litph-store #product-product .pd-gallery { position: sticky; top: 120px; display: flex; gap: 14px; align-items: flex-start; }
.litph-store #product-product .pd-gallery-thumbs { display: flex; flex: 0 0 68px; flex-direction: column; gap: 9px; max-height: 560px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.litph-store #product-product .pd-thumb a { display: flex; align-items: center; justify-content: center; width: 64px; height: 74px; padding: 4px; background: #fff; border: 1px solid #e3e7eb; border-radius: 7px; }
.litph-store #product-product .pd-thumb.active a, .litph-store #product-product .pd-thumb a:hover { border-color: var(--litph-accent); box-shadow: 0 0 0 2px #ff3b2415; }
.litph-store #product-product .pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.litph-store #product-product .pd-gallery-main { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 420px; padding: 28px; background: #f7f8fa; border: 1px solid #edf0f2; border-radius: 12px; }
.litph-store #product-product .pd-gallery-zoom { position: relative; display: flex; width: 100%; height: 100%; min-height: 360px; align-items: center; justify-content: center; }
.litph-store #product-product .pd-gallery-main img { max-width: 100%; max-height: 520px; object-fit: contain; }
.litph-store #product-product .pd-gallery-zoom-hint { position: absolute; right: 0; bottom: 0; display: grid; width: 38px; height: 38px; place-items: center; color: #405067; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px #0002; }
.litph-store #product-product .pd-info { padding: 26px; background: #fff; border: 1px solid #e7ebef; border-radius: 12px; box-shadow: 0 8px 26px #1623340c; }
.litph-store #product-product .pd-icon-actions { display: flex; justify-content: flex-end; gap: 7px; margin-bottom: 12px; }
.litph-store #product-product .pd-icon-actions .btn { width: 40px; height: 40px; padding: 0; color: #526174; border: 1px solid #e7ebef; border-radius: 8px; }
.litph-store #product-product .pd-icon-actions .btn:hover { color: #b82b1a; background: #fff3f0; border-color: #f4c9c2; }
.litph-store #product-product .pd-title { margin: 0 0 16px; color: #263548; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; overflow-wrap: anywhere; }
.litph-store #product-product .pd-meta { display: grid; gap: 9px; margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #edf0f2; }
.litph-store #product-product .pd-meta-item { display: flex; align-items: baseline; gap: 10px; color: #68717d; font-size: 13px; }
.litph-store #product-product .pd-meta-icon { width: 18px; color: #8793a1; text-align: center; }
.litph-store #product-product .pd-meta-item a { color: #b82b1a; font-weight: 600; }
.litph-store #product-product .pd-rating-summary { margin: 0 0 14px; color: #e5a323; }
.litph-store #product-product .pd-rating-summary p { margin: 0; }
.litph-store #product-product .pd-rating-summary a { color: #68717d; font-size: 13px; }
.litph-store #product-product .pd-price-block { margin: 0 0 18px; padding: 16px; background: #fff8f6; border: 1px solid #fae4df; border-radius: 9px; }
.litph-store #product-product .pd-price { margin: 0; color: #b82b1a; font-family: 'Lato', sans-serif; font-size: 30px; font-weight: 700; }
.litph-store #product-product .pd-price-old { color: #84909d; font-size: 14px; }
.litph-store #product-product .pd-price-block li:not(:first-child) { color: #68717d; font-size: 12px; }
.litph-store #product-product .pd-buy { margin-top: 20px; }
.litph-store #product-product .pd-qty-label { color: #405067; font-size: 13px; font-weight: 700; }
.litph-store #product-product .pd-buy-row { display: flex; gap: 10px; }
.litph-store #product-product .pd-qty { display: flex; flex: 0 0 132px; align-items: center; overflow: hidden; border: 1px solid #dfe4e9; border-radius: 8px; }
.litph-store #product-product .pd-qty-btn { width: 36px; height: 48px; flex: 0 0 36px; color: #405067; background: #f7f8fa; border: 0; font-size: 18px; }
.litph-store #product-product .pd-qty-btn:hover { color: #b82b1a; background: #fff3f0; }
.litph-store #product-product .pd-qty input { min-width: 0; height: 48px; padding: 4px; text-align: center; border: 0; border-radius: 0; box-shadow: none; appearance: textfield; }
.litph-store #product-product .pd-qty input::-webkit-inner-spin-button,
.litph-store #product-product .pd-qty input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.litph-store #product-product .pd-cart-btn { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 9px; min-height: 48px; white-space: normal; font-size: 14px; font-weight: 700; }
.litph-store #product-product .pd-tabs { gap: 4px; margin-top: 24px; border-bottom: 1px solid #e7ebef; }
.litph-store #product-product .pd-tabs .nav-link { color: #68717d; border: 0; border-bottom: 3px solid transparent; font-weight: 600; }
.litph-store #product-product .pd-tabs .nav-link.active { color: #b82b1a; background: transparent; border-bottom-color: var(--litph-accent); }
.litph-store #product-product .pd-tab-content { padding: 24px; border: 1px solid #e7ebef; border-top: 0; border-radius: 0 0 10px 10px; }
.litph-store #product-product .pd-description { color: #4b5563; line-height: 1.8; }
.litph-store #product-product .pd-description img { max-width: 100%; height: auto; }
.litph-store #product-product .pr-review-form { margin-top: 26px; padding: 22px; background: #f8f9fa; border: 1px solid #e7ebef; border-radius: 10px; }
.litph-store #product-product .pr-review-form h2 { margin: 0 0 18px; color: #263548; font-size: 24px; }
.litph-store #product-product .pr-field .form-label { color: #405067; font-size: 13px; font-weight: 700; }
.litph-store #product-product .pr-field .form-control { border-color: #dfe4e9; border-radius: 7px; }
.litph-store #product-product .pr-field-foot { display: flex; justify-content: space-between; gap: 14px; margin-top: 7px; color: #7a8794; font-size: 12px; }
.litph-store #product-product .pr-field-foot .pr-note { color: #68717d; }
.litph-store #product-product .pr-star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 5px; }
.litph-store #product-product .pr-star-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.litph-store #product-product .pr-star-picker label { margin: 0; color: #cbd2d9; cursor: pointer; font-size: 28px; line-height: 1; transition: color .15s, transform .15s; }
.litph-store #product-product .pr-star-picker label:hover,
.litph-store #product-product .pr-star-picker label:hover ~ label,
.litph-store #product-product .pr-star-picker input:checked ~ label { color: #e5a323; }
.litph-store #product-product .pr-star-picker label:hover { transform: scale(1.12); }
.litph-store #product-product .pr-star-picker input:focus-visible + label { outline: 3px solid #ffad54; outline-offset: 3px; border-radius: 3px; }
.litph-store #product-product .pr-review-actions { margin-top: 18px; }
.litph-store #product-product .pr-review-actions .btn { min-width: 150px; }
.litph-store #product-product .pr-list { display: grid; gap: 14px; }
.litph-store #product-product .pr-card { padding: 18px; background: #fff; border: 1px solid #e7ebef; border-radius: 9px; }
.litph-store #product-product .pr-card-head { display: flex; align-items: center; gap: 12px; }
.litph-store #product-product .pr-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; color: #7d2a20; background: #fff0ec; border-radius: 50%; font-weight: 700; }
.litph-store #product-product .pr-author { color: #263548; }
.litph-store #product-product .pr-card-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 3px; }
.litph-store #product-product .pr-stars { color: #e5a323; font-size: 13px; }
.litph-store #product-product .pr-date { color: #8994a1; font-size: 12px; }
.litph-store #product-product .pr-card-body { padding: 14px 0 0 52px; color: #4b5563; line-height: 1.65; }
.litph-store #product-product .pr-empty { padding: 30px 18px; color: #68717d; background: #f8f9fa; border: 1px dashed #dfe4e9; border-radius: 9px; text-align: center; }
.litph-store #product-product .pr-empty-icon { margin-bottom: 8px; color: #aab4bf; font-size: 24px; }
.litph-store #product-product .pr-empty-title { margin: 0; }
.litph-store #product-product .pr-pagination { margin-top: 16px; }
.litph-store #checkout-checkout #content,
.litph-store #checkout-cart #content { min-width: 0; }
.litph-store #checkout-checkout fieldset,
.litph-store #checkout-checkout #checkout-confirm,
.litph-store #checkout-cart #shopping-cart { padding: 22px; background: #fff; border: 1px solid #e7ebef; border-radius: 10px; box-shadow: 0 6px 20px #1623340a; }
.litph-store #checkout-checkout fieldset { margin-bottom: 16px; }
.litph-store #checkout-checkout fieldset legend { float: none; width: auto; margin: 0 0 18px; padding: 0 0 12px; color: #263548; border-bottom: 1px solid #edf0f2; font-family: 'EB Garamond', Georgia, serif; font-size: 23px; font-weight: 700; }
.litph-store #checkout-checkout .form-label { color: #405067; font-size: 13px; font-weight: 600; }
.litph-store #checkout-checkout .form-control,
.litph-store #checkout-checkout .form-select { min-height: 42px; border-color: #dfe4e9; border-radius: 7px; }
.litph-store #checkout-checkout .form-check { padding: 10px 12px 10px 2rem; background: #f8f9fa; border: 1px solid #edf0f2; border-radius: 7px; }
.litph-store #checkout-checkout .form-check:has(input:checked) { background: #fff8f6; border-color: #f4c9c2; }
.litph-store #checkout-checkout .table,
.litph-store #checkout-cart .table { --bs-table-border-color: #e7ebef; }
.litph-store #checkout-checkout .table thead th,
.litph-store #checkout-cart .table thead th { color: #405067; background: #f7f8fa; font-size: 13px; }
@media (max-width: 767.98px) {
  .litph-store #product-product .pd-gallery { position: static; flex-direction: column-reverse; }
  .litph-store #product-product .pd-gallery-thumbs { flex-direction: row; max-width: 100%; max-height: none; overflow-x: auto; }
  .litph-store #product-product .pd-gallery-main { width: 100%; min-height: 320px; padding: 18px; }
  .litph-store #product-product .pd-gallery-zoom { min-height: 280px; }
  .litph-store #product-product .pd-info { margin-top: 20px; padding: 20px; }
  .litph-store #product-product .pd-buy-row { flex-wrap: wrap; }
  .litph-store #product-product .pd-cart-btn { flex-basis: 100%; }
  .litph-store #product-product .pr-review-form { padding: 16px; }
  .litph-store #product-product .pr-card-body { padding-left: 0; }
  .litph-store #checkout-checkout fieldset,
  .litph-store #checkout-checkout #checkout-confirm,
  .litph-store #checkout-cart #shopping-cart { padding: 16px; }
}
