/*
Theme Name: Open Shelf Bookstore
Author: Your Store Team
Description: An original responsive storefront theme for bookshops, with optional WooCommerce product integration.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: open-shelf-storefront
*/

:root {
  --ab-ink: #183641;
  --ab-muted: #60777a;
  --ab-paper: #fcfbf7;
  --ab-warm: #f0f5ef;
  --ab-line: #dce7df;
  --ab-accent: #147d70;
  --ab-accent-dark: #0c5c53;
  --ab-navy: #163f49;
  --ab-gold: #f2ad53;
  --ab-radius: 18px;
  --ab-shadow: 0 16px 38px rgba(21, 58, 60, .11);
  --ab-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ab-paper);
  color: var(--ab-ink);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ab-accent); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.ab-container { width: min(var(--ab-width), calc(100% - 48px)); margin-inline: auto; }
.ab-skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; padding: 12px 18px; background: #fff; color: #000; }
.ab-skip-link:focus { left: 12px; top: 12px; }

/* Announcement and main header */
.ab-announcement { background: #164d49; color: #fff; font-size: 12px; letter-spacing: .025em; }
.ab-announcement__inner { min-height: 35px; display: flex; align-items: center; justify-content: center; text-align: center; }
.ab-announcement a { color: #f2d9a1; text-decoration: underline; text-underline-offset: 3px; }
.ab-header { background: #fff; border-bottom: 1px solid var(--ab-line); position: relative; z-index: 20; }
.ab-header__main { display: grid; grid-template-columns: 245px minmax(240px, 1fr) 250px; align-items: center; gap: 32px; min-height: 100px; }
.ab-brand { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--ab-ink); }
.ab-brand img { max-height: 60px; max-width: 220px; width: auto; }
.ab-brand__mark { width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--ab-accent); border-radius: 13px 4px 13px 4px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: 22px; font-weight: 800; }
.ab-brand__name { display: block; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.05; letter-spacing: -.045em; }
.ab-brand__tag { display: block; margin-top: 4px; color: var(--ab-muted); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.ab-search { display: flex; height: 46px; border: 1px solid #d5e3dc; border-radius: 999px; overflow: hidden; background: #fff; }
.ab-search:focus-within { border-color: var(--ab-accent); box-shadow: 0 0 0 3px rgba(20,125,112,.1); }
.ab-search input[type="search"] { min-width: 0; flex: 1; padding: 0 16px; border: 0; outline: 0; color: var(--ab-ink); background: transparent; }
.ab-search input::placeholder { color: #92979b; }
.ab-search button { width: 52px; border: 0; background: var(--ab-accent); color: #fff; display: grid; place-items: center; transition: background .2s; }
.ab-search button:hover { background: var(--ab-accent-dark); }
.ab-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.ab-header__action { display: inline-flex; align-items: center; gap: 8px; color: var(--ab-ink); font-size: 12px; white-space: nowrap; }
.ab-header__action svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.ab-cart-count { min-width: 18px; height: 18px; margin-left: -5px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 20px; background: var(--ab-accent); color: white; font-size: 10px; }
.ab-mobile-search { display: none; }

/* Navigation */
.ab-nav-wrap { border-top: 1px solid #f3f0eb; }
.ab-nav-row { min-height: 48px; display: flex; align-items: center; gap: 27px; }
.ab-primary-nav { flex: 1; }
.ab-primary-nav ul { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 27px; }
.ab-primary-nav li { position: relative; }
.ab-primary-nav > div > ul > li > a, .ab-primary-nav > ul > li > a { display: block; padding: 14px 0; color: #363c42; font-size: 12px; font-weight: 650; white-space: nowrap; }
.ab-primary-nav a:hover { color: var(--ab-accent); }
.ab-primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: -18px; z-index: 30; width: 230px; padding: 8px 0; background: #fff; border: 1px solid var(--ab-line); box-shadow: var(--ab-shadow); }
.ab-primary-nav li:hover > .sub-menu, .ab-primary-nav li:focus-within > .sub-menu { display: block; }
.ab-primary-nav .sub-menu li a { display: block; padding: 8px 18px; font-size: 12px; }
.ab-nav-special { color: var(--ab-accent) !important; }
.ab-trade-link { color: var(--ab-muted); font-size: 11px; white-space: nowrap; }
.ab-menu-toggle { display: none; }

/* Hero */
.ab-hero { padding: 31px 0 0; }
.ab-hero__panel { position: relative; min-height: 390px; overflow: hidden; display: flex; align-items: center; border-radius: 24px 6px 24px 6px; background: #eef5ed; box-shadow: 0 14px 35px rgba(21,58,60,.08); }
.ab-hero__panel::before { content: none; }
.ab-hero__image, .ab-hero__art { position: absolute; inset: 0 0 0 49%; width: 51%; height: 100%; object-fit: cover; object-position: center; border-radius: 0 6px 24px 0; }
.ab-hero__art { overflow: hidden; background: radial-gradient(circle at 73% 23%, rgba(255,255,255,.65) 0 5%, transparent 5.4%), radial-gradient(circle at 77% 25%, rgba(255,255,255,.35) 0 13%, transparent 13.4%), linear-gradient(145deg, #c9e1cf, #9dcbb9 55%, #80b6a9); }
.ab-hero__orb { position: absolute; width: 310px; height: 310px; right: -85px; top: -125px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; box-shadow: 0 0 0 25px rgba(255,255,255,.11), 0 0 0 52px rgba(255,255,255,.08); }
.ab-hero__book { position: absolute; bottom: 18%; display: grid; place-items: center; width: 26%; height: 60%; border-radius: 3px 9px 9px 3px; color: rgba(255,255,255,.92); box-shadow: 10px 18px 24px rgba(22,62,57,.24); font-size: 12px; font-weight: 800; letter-spacing: .13em; writing-mode: vertical-rl; text-transform: uppercase; }
.ab-hero__book--one { left: 13%; transform: rotate(-12deg); background: linear-gradient(90deg,#146c62 0 8%,#25877a 8% 100%); }
.ab-hero__book--two { left: 39%; bottom: 13%; height: 70%; transform: rotate(5deg); background: linear-gradient(90deg,#d67d47 0 8%,#efaa5e 8% 100%); }
.ab-hero__book--three { left: 64%; height: 56%; transform: rotate(13deg); background: linear-gradient(90deg,#315e7b 0 8%,#5488a1 8% 100%); }
.ab-hero__content { position: relative; z-index: 2; width: 53%; max-width: 620px; padding: 48px 54px; color: var(--ab-ink); }
.ab-eyebrow { margin: 0 0 12px; color: var(--ab-accent); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.ab-hero h1 { max-width: 530px; margin: 0; color: var(--ab-ink); font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-size: clamp(36px, 4vw, 54px); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; }
.ab-hero__copy { max-width: 445px; margin: 18px 0 26px; color: #526b70; font-size: 14px; }
.ab-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid var(--ab-accent); border-radius: 999px; background: var(--ab-accent); color: #fff; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s; }
.ab-button:hover { transform: translateY(-1px); background: var(--ab-accent-dark); color: #fff; }
.ab-button--light { border-color: #fff; background: #fff; color: var(--ab-ink); }
.ab-button--light:hover { border-color: #e5efe9; background: #e5efe9; color: var(--ab-ink); }

/* Promise strip */
.ab-promises { margin: 24px auto 0; padding: 17px 0; border-block: 1px solid var(--ab-line); }
.ab-promises__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ab-promise { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px 14px; border-right: 1px solid var(--ab-line); }
.ab-promise:last-child { border-right: 0; }
.ab-promise__icon { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border-radius: 11px 4px 11px 4px; background: #e7f2e9; color: var(--ab-accent); }
.ab-promise__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.ab-promise strong { display: block; font-size: 11px; }
.ab-promise span { display: block; color: var(--ab-muted); font-size: 10px; }

/* Sections and product cards */
.ab-section { padding: 46px 0 12px; }
.ab-section--tinted { margin-top: 42px; padding: 42px 0 30px; background: var(--ab-warm); }
.ab-section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.ab-section__kicker { margin: 0 0 4px; color: var(--ab-accent); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.ab-section h2 { margin: 0; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.04em; }
.ab-view-all { color: var(--ab-accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ab-view-all span { padding-left: 5px; font-size: 16px; }
.ab-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.ab-product-card { position: relative; min-width: 0; padding: 14px; border: 1px solid var(--ab-line); border-radius: 14px 5px 14px 5px; background: #fff; transition: box-shadow .2s, transform .2s; }
.ab-product-card:hover { transform: translateY(-3px); box-shadow: var(--ab-shadow); }
.ab-product-card__image { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; margin-bottom: 13px; overflow: hidden; border-radius: 9px 3px 9px 3px; background: #f3f7f2; }
.ab-product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.ab-book-placeholder { position: relative; width: 142px; height: 196px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 19px 15px 15px 21px; color: #fff; background: var(--book-color, #2a786c); box-shadow: 5px 8px 14px rgba(30,35,38,.20); text-align: left; border-radius: 2px 7px 7px 2px; }
.ab-book-placeholder::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: rgba(0,0,0,.16); border-right: 1px solid rgba(255,255,255,.18); }
.ab-book-placeholder::after { content: ""; position: absolute; right: -22px; top: -28px; width: 94px; height: 94px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; box-shadow: 0 0 0 13px rgba(255,255,255,.06), 0 0 0 26px rgba(255,255,255,.04); }
.ab-book-placeholder__label { position: relative; z-index: 1; font-family: Georgia, serif; font-size: 15px; font-weight: 700; line-height: 1.1; }
.ab-book-placeholder__author { position: relative; z-index: 1; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.ab-sale { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 7px; border-radius: 2px; background: #f3e6cb; color: #795820; font-size: 9px; font-weight: 750; }
.ab-wishlist { position: absolute; top: 8px; right: 8px; z-index: 2; width: 29px; height: 29px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ab-muted); }
.ab-wishlist svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.ab-wishlist.is-saved { color: var(--ab-accent); }
.ab-wishlist.is-saved svg { fill: currentColor; }
.ab-product-card__title { min-height: 40px; margin: 0 0 5px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: var(--ab-ink); font-family: Georgia, serif; font-size: 14px; line-height: 1.35; }
.ab-product-card__author { margin: 0 0 10px; overflow: hidden; color: var(--ab-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ab-product-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; color: var(--ab-accent); font-size: 14px; font-weight: 750; }
.ab-product-card__price del { color: #93989c; font-size: 10px; font-weight: 400; }
.ab-product-card .ab-button { width: 100%; min-height: 36px; padding-inline: 10px; font-size: 10px; }
.ab-product-empty { padding: 25px; border: 1px dashed var(--ab-line); color: var(--ab-muted); text-align: center; }

/* Discovery categories */
.ab-category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.ab-category-tile { min-height: 115px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid transparent; border-radius: 15px 5px 15px 5px; background: linear-gradient(145deg, #f4f8f2, #e5f0e8); transition: transform .2s, border-color .2s; }
.ab-category-tile:hover { transform: translateY(-3px); border-color: #cfbda4; }
.ab-category-tile__icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: #d6e9db; color: var(--ab-accent); font-family: "Trebuchet MS", Arial, sans-serif; font-size: 15px; font-weight: 800; line-height: 1; }
.ab-category-tile strong { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 13px; line-height: 1.2; }
.ab-category-tile span:last-child { color: var(--ab-muted); font-size: 10px; }

/* Editorial collection banner */
.ab-collection-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.ab-collection { position: relative; min-height: 190px; display: flex; align-items: end; overflow: hidden; padding: 24px; border-radius: 20px 5px 20px 5px; background: var(--collection-bg, #28776d); color: #fff; }
.ab-collection::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,18,20,.76), rgba(12,18,20,0) 80%); }
.ab-collection::after { content: ""; position: absolute; right: -30px; top: -35px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,.05), 0 0 0 42px rgba(255,255,255,.04); }
.ab-collection__content { position: relative; z-index: 1; }
.ab-collection__content p { margin: 0 0 4px; color: #f0d99e; font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.ab-collection h3 { margin: 0 0 10px; color: #fff; font-family: Georgia, serif; font-size: 23px; line-height: 1.1; }
.ab-collection a { color: #fff; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ab-collection--1 { --collection-bg: linear-gradient(135deg,#26786e,#164b58); }
.ab-collection--2 { --collection-bg: linear-gradient(135deg,#d27c4d,#a74e3d); }
.ab-collection--3 { --collection-bg: linear-gradient(135deg,#5d8c75,#286158); }

/* Editorial note and newsletter */
.ab-about-band { margin-top: 48px; padding: 38px 0; background: #edf4ed; }
.ab-about-band__inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 55px; }
.ab-about-band h2 { margin: 0 0 10px; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -.04em; }
.ab-about-band p { max-width: 670px; margin: 0; color: var(--ab-muted); font-size: 13px; }
.ab-about-stat { display: flex; justify-content: space-around; gap: 20px; }
.ab-about-stat strong { display: block; color: var(--ab-accent); font-family: Georgia, serif; font-size: 24px; }
.ab-about-stat span { color: var(--ab-muted); font-size: 10px; }
.ab-newsletter { padding: 47px 0; background: #164d49; color: #fff; }
.ab-newsletter__inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.ab-newsletter h2 { margin: 0 0 5px; color: #fff; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-size: 26px; font-weight: 800; }
.ab-newsletter p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; }
.ab-newsletter form { width: min(430px, 100%); display: flex; min-height: 46px; border-radius: 4px; overflow: hidden; background: #fff; }
.ab-newsletter input { min-width: 0; flex: 1; padding: 0 14px; border: 0; outline: 0; }
.ab-newsletter button { padding: 0 19px; border: 0; background: var(--ab-accent); color: #fff; font-size: 11px; font-weight: 700; }

/* Footer */
.ab-footer { padding: 44px 0 18px; background: #153a3b; color: rgba(255,255,255,.79); }
.ab-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; padding-bottom: 34px; }
.ab-footer .ab-brand { margin-bottom: 15px; color: #fff; }
.ab-footer .ab-brand__tag { color: rgba(255,255,255,.55); }
.ab-footer__about { max-width: 290px; color: rgba(255,255,255,.62); font-size: 11px; }
.ab-footer h3 { margin: 4px 0 14px; color: #fff; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.ab-footer ul { margin: 0; padding: 0; list-style: none; }
.ab-footer li { margin: 0 0 8px; font-size: 11px; }
.ab-footer a:hover { color: #f0d99e; }
.ab-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 10px; }
.ab-footer__bottom p { margin: 0; }

/* WordPress and WooCommerce pages */
.ab-content { min-height: 50vh; padding: 48px 0 64px; }
.ab-content h1, .ab-content h2, .ab-content h3 { font-family: Georgia, serif; }
.ab-content .entry-content { max-width: 850px; }
.ab-content .entry-title { margin: 0 0 18px; font-size: 36px; }
.ab-content .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.ab-content .woocommerce ul.products::before, .ab-content .woocommerce ul.products::after { display: none; }
.ab-content .woocommerce ul.products li.product { width: auto; float: none; margin: 0; padding: 14px; border: 1px solid var(--ab-line); border-radius: 5px; }
.ab-content .woocommerce ul.products li.product img { height: 220px; object-fit: contain; }
.ab-content .woocommerce ul.products li.product .button { display: block; text-align: center; }
.ab-content .woocommerce a.button, .ab-content .woocommerce button.button, .ab-content .woocommerce input.button { border-radius: 4px; background: var(--ab-accent); color: #fff; }
.ab-content .woocommerce a.button:hover, .ab-content .woocommerce button.button:hover { background: var(--ab-accent-dark); color: #fff; }
.ab-content .woocommerce div.product div.images img { max-height: 560px; width: auto; margin-inline: auto; }

@media (max-width: 1100px) {
  .ab-container { width: min(var(--ab-width), calc(100% - 36px)); }
  .ab-header__main { grid-template-columns: 210px minmax(220px,1fr) 180px; gap: 18px; }
  .ab-header__actions { gap: 15px; }
  .ab-header__action span.ab-action-label { display: none; }
  .ab-primary-nav ul { gap: 19px; }
  .ab-primary-nav > div > ul > li > a, .ab-primary-nav > ul > li > a { font-size: 11px; }
  .ab-product-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .ab-product-grid .ab-product-card:nth-child(5) { display: none; }
  .ab-category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .ab-container { width: calc(100% - 30px); }
  .ab-announcement { font-size: 10px; }
  .ab-announcement__inner { min-height: 32px; padding: 5px 0; }
  .ab-header__main { min-height: 70px; grid-template-columns: 1fr auto; gap: 12px; }
  .ab-brand__mark { width: 36px; height: 36px; font-size: 19px; }
  .ab-brand__name { font-size: 20px; }
  .ab-brand__tag { font-size: 8px; }
  .ab-brand img { max-height: 48px; max-width: 180px; }
  .ab-search--desktop { display: none; }
  .ab-header__actions { gap: 15px; }
  .ab-header__action svg { width: 22px; height: 22px; }
  .ab-header__action--account { display: none; }
  .ab-mobile-search { display: block; padding: 0 0 12px; }
  .ab-mobile-search .ab-search { height: 40px; }
  .ab-mobile-search .ab-search--desktop { display: flex; }
  .ab-menu-toggle { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ab-line); border-radius: 4px; background: #fff; color: var(--ab-ink); }
  .ab-menu-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .ab-nav-wrap { border: 0; }
  .ab-nav-row { min-height: 0; display: block; }
  .ab-primary-nav { display: none; padding: 6px 0 15px; }
  .ab-primary-nav.is-open { display: block; }
  .ab-primary-nav ul { display: block; }
  .ab-primary-nav > div > ul > li > a, .ab-primary-nav > ul > li > a { padding: 11px 2px; border-bottom: 1px solid var(--ab-line); font-size: 13px; }
  .ab-primary-nav .sub-menu { position: static; display: block; width: auto; padding: 0 0 6px 13px; border: 0; box-shadow: none; }
  .ab-primary-nav .sub-menu li a { padding: 6px 8px; }
  .ab-trade-link { display: none; }
  .ab-hero { padding-top: 14px; }
  .ab-hero__panel { min-height: 390px; border-radius: 5px; }
  .ab-hero__panel::before { background: linear-gradient(90deg, rgba(23,33,43,.82), rgba(23,33,43,.36)); }
  .ab-hero__image { object-position: 62% center; }
  .ab-hero__content { max-width: 100%; padding: 35px 25px; }
  .ab-hero h1 { max-width: 410px; font-size: clamp(36px, 10vw, 48px); }
  .ab-hero__copy { max-width: 370px; font-size: 13px; }
  .ab-promises { margin-top: 14px; padding: 10px 0; }
  .ab-promises__grid { grid-template-columns: repeat(2,1fr); }
  .ab-promise { justify-content: flex-start; padding: 9px 6px; border-right: 0; }
  .ab-promise:nth-child(odd) { border-right: 1px solid var(--ab-line); }
  .ab-promise__icon { width: 30px; height: 30px; flex-basis: 30px; }
  .ab-promise strong { font-size: 10px; }
  .ab-promise span { font-size: 9px; }
  .ab-section { padding-top: 34px; }
  .ab-section--tinted { margin-top: 30px; padding: 32px 0 24px; }
  .ab-section__head { margin-bottom: 17px; }
  .ab-section h2 { font-size: 25px; }
  .ab-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
  .ab-product-grid .ab-product-card:nth-child(5) { display: block; }
  .ab-product-card { padding: 9px; }
  .ab-product-card__image { height: 175px; margin-bottom: 10px; }
  .ab-book-placeholder { width: 116px; height: 158px; padding: 16px 12px 12px 18px; }
  .ab-book-placeholder__label { font-size: 13px; }
  .ab-product-card__title { min-height: 37px; font-size: 13px; }
  .ab-product-card__author { margin-bottom: 6px; font-size: 9px; }
  .ab-product-card__price { gap: 5px; margin-bottom: 9px; font-size: 12px; }
  .ab-product-card__price del { font-size: 9px; }
  .ab-category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .ab-category-tile { min-height: 100px; padding: 14px; }
  .ab-category-tile strong { font-size: 13px; }
  .ab-collection-grid { grid-template-columns: 1fr; gap: 10px; }
  .ab-collection { min-height: 150px; padding: 20px; }
  .ab-collection h3 { font-size: 21px; }
  .ab-about-band { margin-top: 32px; padding: 30px 0; }
  .ab-about-band__inner { grid-template-columns: 1fr; gap: 22px; }
  .ab-about-band h2 { font-size: 23px; }
  .ab-about-stat { justify-content: flex-start; gap: 40px; }
  .ab-newsletter { padding: 32px 0; }
  .ab-newsletter__inner { align-items: stretch; flex-direction: column; gap: 20px; }
  .ab-newsletter h2 { font-size: 23px; }
  .ab-newsletter form { width: 100%; }
  .ab-footer { padding-top: 33px; }
  .ab-footer__grid { grid-template-columns: repeat(2,1fr); gap: 24px 18px; }
  .ab-footer__grid > div:first-child { grid-column: 1 / -1; }
  .ab-footer__bottom { flex-direction: column; }
  .ab-content { padding: 32px 0 45px; }
  .ab-content .entry-title { font-size: 30px; }
  .ab-content .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
}
@media (max-width: 380px) {
  .ab-header__actions { gap: 10px; }
  .ab-brand__name { font-size: 18px; }
  .ab-product-card__image { height: 155px; }
  .ab-product-card .ab-button { font-size: 9px; }
  .ab-section__head { align-items: start; }
}

/* Original Open Shelf identity and page templates */
.ab-header { border-bottom-color: #d8e6df; }
.ab-header__main { min-height: 94px; }
.ab-nav-wrap { border-top: 0; background: #f1f6f1; }
.ab-nav-row { min-height: 50px; }
.ab-primary-nav > div > ul > li > a, .ab-primary-nav > ul > li > a { color: #31575a; font-weight: 750; }
.ab-trade-link { color: #1c756b; font-weight: 700; }
.ab-search button { border-radius: 0 999px 999px 0; }
.ab-product-card__title { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-weight: 750; letter-spacing: -.02em; }
.ab-sale { border-radius: 999px; background: #f4dca7; color: #72521e; }
.ab-collection::after { width: 105px; height: 105px; right: -19px; top: -17px; border-radius: 18px 4px 18px 4px; transform: rotate(24deg); box-shadow: 0 0 0 14px rgba(255,255,255,.07); }
.ab-collection__content p { color: #ffe2a0; }
.ab-footer__bottom { border-color: rgba(255,255,255,.17); }
.ab-content--woocommerce { padding-top: 36px; }
.ab-page-heading { margin: 0 0 28px; }
.ab-page-heading .entry-title { margin: 0; color: var(--ab-ink); font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.05em; line-height: 1.08; }
.ab-content .entry-content { max-width: none; }
.ab-container--reading { max-width: 870px; }
.ab-article__meta, .ab-article__meta a { color: var(--ab-muted); font-size: 12px; }
.ab-article__image { margin: 0 0 28px; overflow: hidden; border-radius: 20px 5px 20px 5px; }
.ab-article__image img { display: block; width: 100%; max-height: 540px; object-fit: cover; }
.ab-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.ab-post-card { padding: 14px; border: 1px solid var(--ab-line); border-radius: 16px 5px 16px 5px; background: #fff; }
.ab-post-card__image { height: 190px; margin-bottom: 14px; display: grid; place-items: center; overflow: hidden; border-radius: 10px 3px 10px 3px; background: linear-gradient(145deg,#d8ecdc,#a9d0c0); color: #176b5b; font-size: 24px; font-weight: 800; }
.ab-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.ab-post-card h2 { margin: 4px 0 8px; font-size: 19px; line-height: 1.2; }
.ab-post-card p:not(.ab-section__kicker) { color: var(--ab-muted); font-size: 12px; }
.ab-search-result { margin: 0 0 20px; padding: 20px; border: 1px solid var(--ab-line); border-radius: 13px 4px 13px 4px; }
.ab-search-result h2 { margin: 4px 0 8px; font-size: 21px; }
.ab-search-result p { color: var(--ab-muted); }
.ab-search-result__type { margin: 0; color: var(--ab-accent) !important; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ab-empty-state { max-width: 590px; margin: 25px auto; padding: 42px 24px; border-radius: 20px 5px 20px 5px; background: #eff5ef; text-align: center; }
.ab-empty-state > span:first-child { display: inline-grid; width: 58px; height: 58px; place-items: center; border-radius: 17px 5px 17px 5px; background: #dceee2; color: var(--ab-accent); font-size: 22px; font-weight: 800; }
.ab-empty-state h1, .ab-empty-state h2 { margin: 15px 0 8px; font-size: 27px; }
.ab-empty-state p { margin: 0 0 20px; color: var(--ab-muted); }
.ab-empty-state .ab-search { max-width: 460px; margin: 20px auto 12px; }
.ab-archive-description { margin-top: 12px; color: var(--ab-muted); }
.os-book-details { margin: 18px 0; padding: 14px 18px; border-radius: 12px 4px 12px 4px; background: #f0f5ef; }
.os-book-details p { display: grid; grid-template-columns: 105px 1fr; gap: 10px; margin: 0; padding: 7px 0; border-bottom: 1px solid #dce7df; font-size: 12px; }
.os-book-details p:last-child { border: 0; }
.os-book-details strong { color: #31575a; }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 20px; color: var(--ab-muted); font-size: 11px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ab-accent); }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 18px; color: var(--ab-muted); font-size: 12px; }
.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .quantity .qty, .woocommerce-page form .form-row input.input-text, .woocommerce-page form .form-row textarea, .woocommerce-page form .form-row select { min-height: 44px; padding: 9px 12px; border: 1px solid #d7e2dc; border-radius: 8px; background: #fff; color: var(--ab-ink); }
.woocommerce div.product div.images { padding: 12px; border: 1px solid var(--ab-line); border-radius: 20px 5px 20px 5px; background: #f4f7f2; }
.woocommerce div.product div.images img { max-height: 520px; object-fit: contain; }
.woocommerce div.product div.summary { padding: 4px 0 0 18px; }
.woocommerce div.product .product_title { color: var(--ab-ink); font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; font-size: clamp(28px, 3.5vw, 42px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ab-accent); font-size: 23px; font-weight: 800; }
.woocommerce div.product p.price del { color: #88989a; font-size: 15px; font-weight: 400; }
.woocommerce div.product .woocommerce-product-rating { color: #997126; font-size: 12px; }
.woocommerce div.product .stock { color: #17805f; font-size: 12px; font-weight: 700; }
.woocommerce div.product form.cart { display: flex; align-items: center; gap: 10px; margin: 20px 0; }
.woocommerce div.product form.cart .quantity { margin: 0; }
.woocommerce div.product form.cart .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { min-height: 43px; padding: 0 21px; border: 0; border-radius: 999px; background: var(--ab-accent); color: #fff; font-size: 12px; font-weight: 750; }
.woocommerce div.product form.cart .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--ab-accent-dark); color: #fff; }
.woocommerce div.product .product_meta { color: var(--ab-muted); font-size: 11px; }
.woocommerce div.product .woocommerce-tabs { margin-top: 40px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; border-bottom: 1px solid var(--ab-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--ab-line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0 5px 0 0; padding: 0; border: 0; border-radius: 10px 10px 0 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 16px; color: var(--ab-muted); font-size: 12px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--ab-accent); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ab-accent); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 12px 4px; color: #526b70; font-size: 13px; }
.woocommerce .related > h2, .woocommerce .upsells > h2 { margin: 36px 0 18px; font-size: 26px; }
.woocommerce ul.products li.product { border-radius: 14px 5px 14px 5px; }
.woocommerce span.onsale { min-height: 0; padding: 7px 11px; border-radius: 999px; background: #f4dca7; color: #72521e; line-height: 1.2; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--ab-accent); border-radius: 10px; background: #edf6ef; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--ab-accent); }
.woocommerce-error { border-radius: 10px; }
.woocommerce table.shop_table { border: 1px solid var(--ab-line); border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 12px; }
.woocommerce table.shop_table th { color: #31575a; background: #eff5ef; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 13px; border-color: var(--ab-line); }
.woocommerce-cart table.cart img { width: 66px; border-radius: 5px; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 130px; min-height: 43px; padding: 8px 11px; border: 1px solid #d7e2dc; border-radius: 999px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout #customer_details { padding: 20px; border: 1px solid var(--ab-line); border-radius: 14px 5px 14px 5px; background: #fff; }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout #order_review_heading { margin: 0 0 15px; font-size: 22px; }
.woocommerce-checkout #payment { border: 1px solid var(--ab-line); border-radius: 12px; background: #eff5ef; }
.woocommerce-checkout #payment div.payment_box { border-radius: 8px; background: #e3eee5; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #e3eee5; }
.woocommerce-checkout #place_order { min-height: 48px; }
.woocommerce-account .woocommerce-MyAccount-navigation { width: 25%; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 10px; border-radius: 13px; background: #eff5ef; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 12px; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { background: #dceee2; color: var(--ab-accent); font-weight: 800; }
.woocommerce-account .woocommerce-MyAccount-content { width: 71%; padding: 20px; border: 1px solid var(--ab-line); border-radius: 13px; }
.wc-block-components-button:not(.is-link) { min-height: 44px; border-radius: 999px; background: var(--ab-accent); color: #fff; }
.wc-block-components-text-input input, .wc-block-components-combobox .components-combobox-control__input, .wc-block-components-textarea { border-color: #d7e2dc !important; border-radius: 8px !important; }
.wc-block-cart, .wc-block-checkout { color: var(--ab-ink); }

@media (max-width: 760px) {
  .ab-hero__panel { min-height: 555px; display: block; }
  .ab-hero__content { width: 100%; max-width: 100%; padding: 34px 26px 20px; }
  .ab-hero__image, .ab-hero__art { inset: auto 0 0; width: 100%; height: 245px; border-radius: 0 0 24px 6px; }
  .ab-hero__book { height: 73%; bottom: 9%; width: 23%; }
  .ab-hero__book--one { left: 17%; }
  .ab-hero__book--two { left: 40%; height: 80%; }
  .ab-hero__book--three { left: 63%; }
  .ab-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ab-post-card { padding: 10px; }
  .ab-post-card__image { height: 135px; }
  .woocommerce div.product div.summary { padding: 25px 0 0; }
  .woocommerce div.product div.images { float: none; width: 100%; }
  .woocommerce div.product div.summary { float: none; width: 100%; }
  .woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: 100%; }
  .woocommerce-account .woocommerce-MyAccount-content { margin-top: 15px; }
  .woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; }
  .woocommerce-cart table.cart td.actions .coupon .input-text { width: min(55%, 170px); }
}
@media (max-width: 480px) {
  .ab-post-grid { grid-template-columns: 1fr; }
  .ab-post-card__image { height: 180px; }
  .woocommerce table.shop_table_responsive tr td { text-align: right; }
  .woocommerce div.product form.cart { flex-wrap: wrap; }
}
