:root {
    --bookshop-primary: #FAECD1;
    --bookshop-primary-soft: #fff9ee;
    --bookshop-primary-deep: #ead6ad;
    --bookshop-secondary: #4C4C1A;
    --bookshop-secondary-2: #6c6b2d;
    --bookshop-ink: #24251d;
    --bookshop-muted: #747568;
    --bookshop-line: #e9e6dc;
    --bookshop-surface: #ffffff;
    --bookshop-warm: #f7f5ef;
    --bookshop-success: #25845f;
    --bookshop-danger: #d84a4a;
    --bookshop-warning: #f0a427;
    --bookshop-radius: 18px;
    --bookshop-radius-sm: 12px;
    --bookshop-shadow-sm: 0 8px 24px rgba(55, 53, 34, .07);
    --bookshop-shadow: 0 18px 55px rgba(55, 53, 34, .10);
    --bookshop-transition: 180ms ease;
    --bookshop-font: "Vazirmatn", "Vazir", "IRANSans", Tahoma, Arial, sans-serif;
}

.bookshop-pro-active,
.bookshop-pro-active button,
.bookshop-pro-active input,
.bookshop-pro-active select,
.bookshop-pro-active textarea {
    font-family: var(--bookshop-font) !important;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bookshop-page-shell,
.bookshop-page-shell *,
.bookshop-quick-view-modal,
.bookshop-quick-view-modal *,
.bookshop-toast-stack,
.bookshop-toast-stack * {
    box-sizing: border-box;
    font-family: var(--bookshop-font) !important;
}

.bookshop-page-shell ::selection,
.bookshop-quick-view-modal ::selection,
.bookshop-toast-stack ::selection {
    background: rgba(76, 76, 26, .20);
    color: var(--bookshop-ink);
}

.bookshop-page-shell ::-moz-selection,
.bookshop-quick-view-modal ::-moz-selection,
.bookshop-toast-stack ::-moz-selection {
    background: rgba(76, 76, 26, .20);
    color: var(--bookshop-ink);
}

.bookshop-page-shell button,
.bookshop-page-shell a,
.bookshop-quick-view-modal button,
.bookshop-quick-view-modal a {
    -webkit-tap-highlight-color: rgba(76, 76, 26, .12);
}

.bookshop-page-shell a:focus-visible,
.bookshop-page-shell button:focus-visible,
.bookshop-quick-view-modal a:focus-visible,
.bookshop-quick-view-modal button:focus-visible {
    outline: 2px solid var(--bookshop-primary-deep) !important;
    outline-offset: 2px;
}

.bookshop-page-shell {
    width: 100%;
    background: linear-gradient(180deg, #fbfaf7 0, #fff 340px);
    color: var(--bookshop-ink);
    line-height: 1.75;
    padding: 24px 0 72px;
    overflow: clip;
}

.bookshop-container {
    width: min(1540px, calc(100% - 48px));
    margin-inline: auto;
}

.bookshop-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    flex: 0 0 auto;
}

.bookshop-breadcrumb {
    min-height: 32px;
    margin: 0 2px 18px;
    font-size: 13px;
    color: #929286;
}

.bookshop-breadcrumb .woocommerce-breadcrumb {
    margin: 0;
    color: inherit;
}

.bookshop-breadcrumb a {
    color: #646559;
    text-decoration: none;
}

.bookshop-breadcrumb a:hover { color: var(--bookshop-secondary); }
.bookshop-breadcrumb span { margin-inline: 7px; opacity: .55; }

.bookshop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--bookshop-secondary);
    background: var(--bookshop-primary);
    border: 1px solid rgba(76, 76, 26, .09);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
}

.bookshop-btn {
    appearance: none;
    border: 0;
    border-radius: 13px;
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform var(--bookshop-transition), box-shadow var(--bookshop-transition), background var(--bookshop-transition);
}

.bookshop-btn:hover { transform: translateY(-1px); }
.bookshop-btn-primary { background: var(--bookshop-secondary); color: #fff; box-shadow: 0 10px 24px rgba(76,76,26,.18); }
.bookshop-btn-primary:hover { background: #3e3e14; color: #fff; box-shadow: 0 14px 28px rgba(76,76,26,.24); }
.bookshop-btn-secondary { background: var(--bookshop-primary); color: var(--bookshop-secondary); }

.bookshop-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--bookshop-columns, 3), minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.bookshop-product-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bookshop-surface);
    border: 1px solid var(--bookshop-line);
    border-radius: var(--bookshop-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(55,53,34,.035);
    transition: transform var(--bookshop-transition), box-shadow var(--bookshop-transition), border-color var(--bookshop-transition);
}

.bookshop-product-card:hover {
    transform: translateY(-3px);
    border-color: #ddd6c3;
    box-shadow: var(--bookshop-shadow);
}

.bookshop-product-card__media {
    position: relative;
    background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,.95), transparent 34%),
        linear-gradient(145deg, var(--bookshop-primary-soft), #f2efe7);
    aspect-ratio: 1.35 / 1;
    min-height: 205px;
    overflow: hidden;
}

.bookshop-product-card__media::after {
    content: "";
    position: absolute;
    inset: auto 18% 16px;
    height: 16px;
    background: rgba(32,31,20,.16);
    filter: blur(12px);
    border-radius: 50%;
    transition: transform 260ms ease, opacity 260ms ease;
}

.bookshop-product-card__image {
    position: absolute;
    inset: 16px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.bookshop-product-card__image img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 72% !important;
    max-height: 170px !important;
    object-fit: contain;
    margin: 0 !important;
    filter: drop-shadow(0 14px 13px rgba(38,36,22,.18));
    transition: transform 320ms cubic-bezier(.2,.7,.2,1), filter 320ms ease;
}

.bookshop-product-card:hover .bookshop-product-card__image img {
    transform: translateY(-6px) rotate(-1.2deg) scale(1.025);
    filter: drop-shadow(0 20px 17px rgba(38,36,22,.24));
}

.bookshop-product-card:hover .bookshop-product-card__media::after { transform: scale(.88); opacity: .72; }

.bookshop-product-badges {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
}

.bookshop-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 7px 16px rgba(0,0,0,.12);
}

.bookshop-badge--discount {
    background: var(--bookshop-secondary);
    color: #fffaf0;
    box-shadow: 0 7px 16px rgba(76,76,26,.18);
}
.bookshop-badge--new { background: var(--bookshop-success); }
.bookshop-badge--featured { background: var(--bookshop-secondary); }
.bookshop-badge--popular { background: #bd7b20; }

.bookshop-product-card__actions {
    position: absolute;
    z-index: 4;
    top: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(-7px);
    transition: var(--bookshop-transition);
}

.bookshop-product-card:hover .bookshop-product-card__actions,
.bookshop-product-card:focus-within .bookshop-product-card__actions {
    opacity: 1;
    transform: none;
}

.bookshop-card-action,
.bookshop-icon-button {
    appearance: none;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(76,76,26,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.94);
    color: var(--bookshop-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(51,49,30,.09);
    transition: var(--bookshop-transition);
}

.bookshop-card-action:hover,
.bookshop-icon-button:hover,
.bookshop-card-action.is-active,
.bookshop-icon-button.is-active {
    background: var(--bookshop-secondary);
    color: #fff;
    transform: translateY(-2px);
}

.bookshop-card-action .bookshop-icon,
.bookshop-icon-button .bookshop-icon { width: 18px; height: 18px; }
.bookshop-card-action.is-active .bookshop-icon { fill: currentColor; }

.bookshop-product-card__body {
    min-height: 188px;
    flex: 1;
    padding: 13px 15px 14px;
    display: flex;
    flex-direction: column;
}

.bookshop-product-card__meta {
    min-height: 21px;
    color: var(--bookshop-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookshop-product-card__meta span { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.bookshop-product-card__meta .bookshop-icon { width: 15px; height: 15px; color: var(--bookshop-secondary-2); }

.bookshop-product-card__title {
    margin: 5px 0 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    letter-spacing: 0 !important;
    min-height: 51px;
    color: var(--bookshop-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bookshop-product-card__title a { color: inherit !important; text-decoration: none !important; }
.bookshop-product-card__title a:hover { color: var(--bookshop-secondary) !important; }

.bookshop-product-card__excerpt {
    display: none;
    color: var(--bookshop-muted);
    font-size: 13px;
    line-height: 1.9;
}

.bookshop-product-card__rating {
    margin-top: auto;
    padding-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--bookshop-muted);
}

.bookshop-rating-star { color: var(--bookshop-warning); font-size: 15px; }
.bookshop-product-card__rating strong { color: var(--bookshop-ink); }
.bookshop-product-card__rating em { font-style: normal; margin-right: 1px; }
.bookshop-stock-dot { width: 7px; height: 7px; border-radius: 50%; margin-right: auto; }
.bookshop-stock-dot.is-in-stock { background: var(--bookshop-success); box-shadow: 0 0 0 4px rgba(37,132,95,.1); }
.bookshop-stock-dot.is-out-of-stock { background: var(--bookshop-danger); box-shadow: 0 0 0 4px rgba(216,74,74,.1); }

.bookshop-product-card__footer {
    border-top: 1px dashed var(--bookshop-line);
    margin-top: 7px;
    padding-top: 9px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.bookshop-product-price,
.bookshop-product-price .price {
    min-width: 0;
    color: var(--bookshop-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.bookshop-product-price del,
.bookshop-purchase-price del,
.bookshop-mobile-buybar del {
    display: block;
    color: #aaa99e;
    font-size: 11px;
    font-weight: 500;
    opacity: 1;
    line-height: 1.2;
}

.bookshop-product-price ins,
.bookshop-purchase-price ins,
.bookshop-mobile-buybar ins { text-decoration: none; }

.bookshop-product-price .woocommerce-Price-currencySymbol { font-size: .72em; margin-right: 3px; }

.bookshop-add-to-cart-btn {
    appearance: none;
    border: 0;
    min-width: 42px;
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 12px;
    background: var(--bookshop-primary);
    color: var(--bookshop-secondary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    transition: var(--bookshop-transition);
}

.bookshop-add-to-cart-btn:hover,
.bookshop-add-to-cart-btn.is-loading {
    background: var(--bookshop-secondary);
    color: #fff !important;
    transform: translateY(-2px);
}

.bookshop-add-to-cart-btn.is-loading .bookshop-icon { animation: bookshop-spin 800ms linear infinite; }
.bookshop-add-to-cart-btn .bookshop-icon { width: 17px; height: 17px; }

.bookshop-products-grid.is-list-view { grid-template-columns: 1fr !important; }
.bookshop-products-grid.is-list-view .bookshop-product-card { display: grid; grid-template-columns: 220px minmax(0,1fr); min-height: 275px; }
.bookshop-products-grid.is-list-view .bookshop-product-card__media { aspect-ratio: auto; min-height: 275px; }
.bookshop-products-grid.is-list-view .bookshop-product-card__body { padding: 22px 24px; min-height: 0; }
.bookshop-products-grid.is-list-view .bookshop-product-card__title { font-size: 18px !important; min-height: auto; }
.bookshop-products-grid.is-list-view .bookshop-product-card__excerpt { display: block; }
.bookshop-products-grid.is-list-view .bookshop-product-card__rating { margin-top: 12px; }

.bookshop-empty-state {
    grid-column: 1 / -1;
    padding: 70px 24px;
    border: 1px dashed #dcd7c9;
    border-radius: var(--bookshop-radius);
    background: #fff;
    text-align: center;
    color: var(--bookshop-muted);
}
.bookshop-empty-state > .bookshop-icon { width: 58px; height: 58px; color: var(--bookshop-primary-deep); }
.bookshop-empty-state h3 { color: var(--bookshop-ink); margin: 15px 0 3px; font-size: 20px; }
.bookshop-empty-state p { margin: 0 0 18px; }

.bookshop-toast-stack {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999999;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
}

.bookshop-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #292a22;
    color: #fff;
    padding: 13px 16px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
    opacity: 0;
    transform: translateY(12px);
    transition: 220ms ease;
    font-size: 13px;
}
.bookshop-toast.is-visible { opacity: 1; transform: none; }
.bookshop-toast::before { content: "✓"; width: 23px; height: 23px; border-radius: 50%; background: var(--bookshop-success); display: grid; place-items: center; font-weight: 800; }
.bookshop-toast.is-error::before { content: "!"; background: var(--bookshop-danger); }

body.bookshop-pro-active .woocommerce-notices-wrapper {
    width: min(1540px, calc(100% - 48px));
    margin: 0 auto 12px;
    text-align: right;
}

body.bookshop-pro-active .woocommerce-message,
body.bookshop-pro-active .woocommerce-info,
body.bookshop-pro-active .woocommerce-error {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    max-width: min(100%, 560px);
    min-height: 46px;
    margin: 8px 0 12px !important;
    padding: 9px 12px !important;
    border: 1px solid var(--bookshop-primary-deep) !important;
    border-radius: 12px !important;
    background: #fffaf0 !important;
    color: var(--bookshop-ink) !important;
    box-shadow: 0 8px 24px rgba(55,53,34,.07) !important;
    font-family: var(--bookshop-font) !important;
    font-size: 11px !important;
    line-height: 1.8 !important;
    list-style: none !important;
}

body.bookshop-pro-active .woocommerce-error {
    border-color: rgba(216,74,74,.24) !important;
    background: #fff8f7 !important;
}

body.bookshop-pro-active .woocommerce-message::before,
body.bookshop-pro-active .woocommerce-info::before,
body.bookshop-pro-active .woocommerce-error::before {
    position: static !important;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bookshop-secondary);
    color: #fff !important;
    font-family: var(--bookshop-font) !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

body.bookshop-pro-active .woocommerce-message::before { content: "✓" !important; }
body.bookshop-pro-active .woocommerce-info::before { content: "i" !important; }
body.bookshop-pro-active .woocommerce-error::before {
    content: "!" !important;
    background: var(--bookshop-danger);
}

body.bookshop-pro-active .woocommerce-message .button,
body.bookshop-pro-active .woocommerce-info .button,
body.bookshop-pro-active .woocommerce-error .button,
body.bookshop-pro-active a.added_to_cart.wc-forward {
    float: none !important;
    order: 2;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 31px !important;
    margin: 0 8px 0 0 !important;
    padding: 5px 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: var(--bookshop-secondary) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: var(--bookshop-font) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

body.bookshop-pro-active a.added_to_cart.wc-forward {
    margin-top: 6px !important;
}

.bookshop-quick-view-modal {
    position: fixed;
    inset: 0;
    z-index: 999990;
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}
.bookshop-quick-view-modal.is-open { pointer-events: auto; opacity: 1; }
.bookshop-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(28,28,19,.55);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.bookshop-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.24);
    transform: translateY(16px) scale(.985);
    transition: transform 220ms ease;
}
.bookshop-quick-view-modal.is-open .bookshop-modal-dialog { transform: none; }
.bookshop-modal-close {
    position: absolute;
    z-index: 4;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--bookshop-ink);
    box-shadow: var(--bookshop-shadow-sm);
    cursor: pointer;
    display: grid;
    place-items: center;
}
.bookshop-modal-content.is-loading { min-height: 440px; display: grid; place-items: center; }
.bookshop-modal-content.is-loading::before { content: ""; width: 42px; height: 42px; border: 3px solid var(--bookshop-primary); border-top-color: var(--bookshop-secondary); border-radius: 50%; animation: bookshop-spin 800ms linear infinite; }

.bookshop-quick-view { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(380px, 1.1fr); min-height: 510px; direction: rtl; }
.bookshop-quick-view__image { position: relative; background: linear-gradient(145deg, #fff9ed, #f0eee7); display: grid; place-items: center; padding: 48px; }
.bookshop-quick-view__image img { width: auto; height: 390px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 24px 20px rgba(35,33,20,.22)); }
.bookshop-quick-view__image .bookshop-badge { position: absolute; top: 20px; right: 20px; }
.bookshop-quick-view__content { padding: 44px 38px 34px; }
.bookshop-quick-view__content h2 { margin: 12px 0 4px; font-size: 25px; line-height: 1.75; color: var(--bookshop-ink); font-weight: 700; letter-spacing: 0; }
.bookshop-quick-view__author { margin: 0; color: var(--bookshop-muted); }
.bookshop-quick-view__rating { display: flex; align-items: center; gap: 7px; margin: 15px 0; color: var(--bookshop-muted); font-size: 13px; }
.bookshop-quick-view__rating span { color: var(--bookshop-warning); font-size: 18px; }
.bookshop-quick-view__rating strong { color: var(--bookshop-ink); }
.bookshop-quick-view__description { color: #606157; font-size: 14px; line-height: 2; max-height: 124px; overflow: hidden; }
.bookshop-quick-view__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.bookshop-quick-view__specs span { background: var(--bookshop-warm); border-radius: 11px; padding: 9px 10px; }
.bookshop-quick-view__specs small { display: block; color: var(--bookshop-muted); font-size: 10px; }
.bookshop-quick-view__specs strong { display: block; color: var(--bookshop-secondary); font-size: 12px; margin-top: 2px; }
.bookshop-quick-view__purchase { border-top: 1px solid var(--bookshop-line); padding-top: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; }
.bookshop-quick-view__purchase small { color: var(--bookshop-success); }
.bookshop-quick-view__purchase .bookshop-btn { min-width: 180px; }
.bookshop-quick-view__details { display: inline-block; margin-top: 18px; color: var(--bookshop-secondary); text-decoration: none; font-weight: 700; font-size: 13px; }

@keyframes bookshop-spin { to { transform: rotate(360deg); } }

@media (max-width: 1250px) {
    .bookshop-products-grid { --bookshop-columns: 3; }
}

@media (max-width: 900px) {
    .bookshop-container { width: min(100% - 28px, 1540px); }
    .bookshop-products-grid { --bookshop-columns: 2; gap: 14px; }
    .bookshop-quick-view { grid-template-columns: 1fr; }
    .bookshop-quick-view__image { min-height: 340px; padding: 35px; }
    .bookshop-quick-view__image img { height: 300px; }
    .bookshop-quick-view__content { padding: 30px 25px; }
}

@media (max-width: 600px) {
    .bookshop-page-shell { padding-top: 14px; }
    .bookshop-container { width: min(100% - 20px, 1540px); }
    .bookshop-products-grid { gap: 10px; }
    .bookshop-product-card__media { min-height: 165px; }
    .bookshop-product-card__image { inset: 12px 10px 16px; }
    .bookshop-product-card__image img { max-width: 82% !important; max-height: 138px !important; }
    .bookshop-product-card__body { min-height: 178px; padding: 11px; }
    .bookshop-product-card__title { font-size: 13px !important; min-height: 49px; line-height: 1.85 !important; }
    .bookshop-product-card__meta { font-size: 10px; }
    .bookshop-product-card__actions { opacity: 1; transform: none; top: 9px; left: 9px; }
    .bookshop-card-action { width: 33px; height: 33px; }
    .bookshop-card-action:nth-child(2) { display: none; }
    .bookshop-badge { font-size: 9px; min-height: 23px; padding: 3px 7px; }
    .bookshop-product-badges { top: 9px; right: 9px; }
    .bookshop-add-to-cart-btn span { display: none; }
    .bookshop-product-price { font-size: 12px; }
    .bookshop-product-card__rating em { display: none; }
    .bookshop-products-grid.is-list-view .bookshop-product-card { grid-template-columns: 120px minmax(0,1fr); min-height: 190px; }
    .bookshop-products-grid.is-list-view .bookshop-product-card__media { min-height: 190px; }
    .bookshop-products-grid.is-list-view .bookshop-product-card__body { padding: 13px; }
    .bookshop-products-grid.is-list-view .bookshop-product-card__excerpt { display: none; }
    .bookshop-products-grid.is-list-view .bookshop-product-card__title { font-size: 14px !important; }
    .bookshop-quick-view-modal { padding: 8px; }
    .bookshop-modal-dialog { border-radius: 18px; }
    .bookshop-quick-view__image { min-height: 280px; padding: 28px; }
    .bookshop-quick-view__image img { height: 235px; }
    .bookshop-quick-view__specs { grid-template-columns: repeat(2,1fr); }
    .bookshop-quick-view__purchase { align-items: stretch; flex-direction: column; }
    .bookshop-quick-view__purchase .bookshop-btn { width: 100%; }
    .bookshop-toast-stack { left: 10px; bottom: 10px; }
    body.bookshop-pro-active .woocommerce-notices-wrapper { width: min(100% - 20px, 1540px); }
    body.bookshop-pro-active .woocommerce-message,
    body.bookshop-pro-active .woocommerce-info,
    body.bookshop-pro-active .woocommerce-error { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .bookshop-page-shell *,
    .bookshop-quick-view-modal *,
    .bookshop-toast-stack * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Strong, scoped states prevent theme button/link colors from leaking in. */
body.bookshop-pro-active .bookshop-product-card__title a,
body.bookshop-pro-active .bookshop-product-card__title a:visited {
    color: var(--bookshop-ink) !important;
}
body.bookshop-pro-active .bookshop-product-card__title a:hover,
body.bookshop-pro-active .bookshop-product-card__title a:focus-visible {
    color: var(--bookshop-secondary) !important;
}

body.bookshop-pro-active .bookshop-card-action,
body.bookshop-pro-active .bookshop-icon-button,
body.bookshop-pro-active .bookshop-modal-close {
    background: rgba(255,255,255,.95) !important;
    color: var(--bookshop-secondary) !important;
}
body.bookshop-pro-active .bookshop-card-action:hover,
body.bookshop-pro-active .bookshop-card-action:focus-visible,
body.bookshop-pro-active .bookshop-icon-button:hover,
body.bookshop-pro-active .bookshop-icon-button:focus-visible,
body.bookshop-pro-active .bookshop-card-action.is-active,
body.bookshop-pro-active .bookshop-icon-button.is-active {
    border-color: var(--bookshop-secondary) !important;
    background: var(--bookshop-secondary) !important;
    color: #fff !important;
}

body.bookshop-pro-active .bookshop-add-to-cart-btn,
body.bookshop-pro-active .bookshop-btn-secondary {
    border: 0 !important;
    background: var(--bookshop-primary) !important;
    color: var(--bookshop-secondary) !important;
    box-shadow: none !important;
}
body.bookshop-pro-active .bookshop-add-to-cart-btn:hover,
body.bookshop-pro-active .bookshop-add-to-cart-btn:focus-visible,
body.bookshop-pro-active .bookshop-add-to-cart-btn.is-loading {
    background: var(--bookshop-secondary) !important;
    color: #fff !important;
}
