/* ==================================================
   SANCTUARY PUBLISHING - BOOKSTORE - FULL FILE
   Layout Only - NO typography here
   Typography comes from common.css:
   main-heading, main-heading-2, main-sub-heading,
   sub-heading, sub-heading-2, para-text,
   small-text, smallest-text,
   abril-font, gordita-font, green-text, white-text,
   uppercase-text, letter-spacing-small, main-cta
   Colors: OUR OWN - do NOT use yellow-text from common.css
   ================================================== */

/* ==================================================
   0A. BRAND COLORS - Same format as common.css
   .sb-peach = #CF8C55 - lighter, for kickers, labels, logo
   .sb-clay  = #C86F36 - darker, for prices, links, buttons, strong accents
   ================================================== */

body .sb-peach,
body .sb-peach p,
body .sb-peach p>*,
body .sb-peach h1,
body .sb-peach h2,
body .sb-peach h3,
body .sb-peach li,
body #mk-theme-container .sb-peach p,
body #mk-theme-container .sb-peach li,
body #mk-theme-container .sb-peach strong{
    color: #CF8C55
}

body .sb-clay,
body .sb-clay p,
body .sb-clay p>*,
body .sb-clay h1,
body .sb-clay h2,
body .sb-clay h3,
body .sb-clay li,
body #mk-theme-container .sb-clay p,
body #mk-theme-container .sb-clay li,
body #mk-theme-container .sb-clay strong{
    color: #C86F36
}

body .sb-grey,
body .sb-grey p,
body .sb-grey p>*,
body .sb-grey h1,
body .sb-grey h2,
body .sb-grey h3,
body .sb-grey li,
body #mk-theme-container .sb-grey p,
body #mk-theme-container .sb-grey li,
body #mk-theme-container .sb-grey strong{
    color: #F3ECE0E0
}

body .sb-darkgrey,
body .sb-darkgrey p,
body .sb-darkgrey p>*,
body .sb-darkgrey h1,
body .sb-darkgrey h2,
body .sb-darkgrey h3,
body .sb-darkgrey li,
body #mk-theme-container .sb-darkgrey p,
body #mk-theme-container .sb-darkgrey li,
body #mk-theme-container .sb-darkgrey strong{
    color: #5F6B67;
}

body .sb-no-margin,
body .sb-no-margin p,
body .sb-no-margin p>*,
body .sb-no-margin h1,
body .sb-no-margin h2,
body .sb-no-margin h3,
body .sb-no-margin li,
body #mk-theme-container .sb-no-margin p,
body #mk-theme-container .sb-no-margin li,
body #mk-theme-container .sb-no-margin strong{
    margin-bottom: 0px !important;
}

body > .mk-post-nav{
    display: none !important;
}

.sb-bg-peach {
    background-color: #CF8C55;
}

.sb-bg-clay {
    background-color: #C86F36;
}

/* If yellow-text is still in PHP by mistake, force it to our clay inside bookstore */
body .sanctuary-book .yellow-text,
body .sb-site-header .yellow-text,
body .sb-site-footer .yellow-text,
body .sb-cart-checkout-wrapper .yellow-text {
    color: #C86F36;
}

/* ==================================================
   0B. FIX: common.css margin-bottom override
   common.css adds margin-bottom: 15-20px + line-height: 200%
   to every p / h1 / h2 / h3. That breaks the bookstore layout.
   We reset it ONLY inside .sanctuary-book, header, footer, cart/checkout.
   Font-size / font-family STILL come from common.css - we only fix spacing.
   ================================================== */

/* --- Reset all common.css margins inside bookstore --- */
body .sanctuary-book .main-heading h1,
body .sanctuary-book .main-heading h2,
body .sanctuary-book .main-heading h3,
body .sanctuary-book .main-heading-2 h1,
body .sanctuary-book .main-heading-2 h2,
body .sanctuary-book .main-heading-2 h3,
body .sanctuary-book .mega-main-heading h1,
body .sanctuary-book .mega-main-heading h2,
body .sanctuary-book .mega-main-heading h3,
body .sanctuary-book .mega-mega-main-heading h1,
body .sanctuary-book .mega-mega-main-heading h2,
body .sanctuary-book .mega-mega-main-heading h3,
body .sanctuary-book .main-sub-heading h2,
body .sanctuary-book .sub-heading h2,
body .sanctuary-book .sub-heading-2 h3,
body .sanctuary-book .para-text p,
body .sanctuary-book .small-text p,
body .sanctuary-book .smallest-text p,
body .sb-site-header .main-heading-2 h2,
body .sb-site-header .para-text p,
body .sb-site-footer .main-heading-2 h3,
body .sb-site-footer .small-text p,
body .sb-site-footer .smallest-text p,
body .sb-cart-checkout-wrapper .main-heading h1,
body .sb-cart-checkout-wrapper .para-text p {
    margin-bottom: 0;
}

/* --- Fix line-height: 200% is too tall for cards / cart / small text --- */
body .sanctuary-book .para-text p,
body .sanctuary-book .small-text p,
body .sanctuary-book .smallest-text p,
body .sanctuary-book .sub-heading h2,
body .sanctuary-book .sub-heading-2 h3 {
    line-height: 1.5;
}

body .sanctuary-book .main-heading h1,
body .sanctuary-book .main-heading h2,
body .sanctuary-book .main-heading h3,
body .sanctuary-book .main-heading-2 h1,
body .sanctuary-book .main-heading-2 h2,
body .sanctuary-book .main-heading-2 h3 {
    line-height: 1.25;
}

.sb-site-header .small-text p{
    font-size: 14px;
}

#mk-theme-container .main-cta a{
    box-shadow: none !important;
    border: 1px solid transparent;
}

#mk-theme-container .main-cta a:hover{
    border: 1px solid #E6DDCF !important;
}

/* --- Now add back ONLY the spacing we actually want --- */

/* Title -> byline: was 20px + 15px = 35px gap, now 8px */
body .sanctuary-book .sb-center .main-heading h1 {
    margin-bottom: 8px;
}

/* Byline -> FORMATS label */
body .sanctuary-book .sb-by {
    margin-bottom: 18px;
}

/* FORMATS label -> cards */
body .sanctuary-book .sb-formats-label {
    margin-bottom: 8px;
}

/* About this book heading -> body */
body .sanctuary-book .sb-center .main-heading-2 {
    margin-top: 24px;
    margin-bottom: 10px;
}

/* About body paragraphs - normal book spacing, not 200% */
body .sanctuary-book .sb-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* Format cards: title / price / label tight */
body .sanctuary-book .sb-format .para-text p {
    margin-bottom: 2px;
    line-height: 1.4;
}

body .sanctuary-book .sb-format .small-text p {
    margin-bottom: 0;
    line-height: 1.4;
}

/* Cart: Price -> description */
body .sanctuary-book .sb-cart .main-heading-2 {
    margin-bottom: 6px;
}

body .sanctuary-book .sb-cart .small-text p {
    margin-bottom: 0 !important;
    line-height: 1.5;
}

/* Cart trust list: was 15px per li, now 4px */
body .sanctuary-book .sb-trust li {
    margin-bottom: 5px !important;
    line-height: 1.6 !important; 
}

/* Breadcrumb */
body .sanctuary-book .sb-breadcrumb p {
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Left column: The authors heading */
body .sanctuary-book .sb-mini-authors .sub-heading-2 {
    margin-bottom: 8px;
}

body .sanctuary-book .sb-mini-author p {
    margin-bottom: 0;
}

/* Book Details rows */
body .sanctuary-book .sb-d-row p {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Authors section */
body .sanctuary-book .sb-author-body .smallest-text p {
    margin-bottom: 4px;
}

body .sanctuary-book .sb-author-body .main-heading-2 {
    margin-bottom: 4px;
}

body .sanctuary-book .sb-author-body .sb-bio p {
    margin-bottom: 12px;
    line-height: 1.7;
}

/* More From Author */
body .sanctuary-book .sb-more-head .main-heading-2,
body .sanctuary-book .sb-more-head .para-text p {
    margin-bottom: 0;
}

body .sanctuary-book .sb-more-card .para-text p,
body .sanctuary-book .sb-more-card .smallest-text p {
    margin-bottom: 0;
    line-height: 1.4;
}

body .sanctuary-book .sb-more-meta .sub-heading-2 {
    margin-bottom: 4px;
}

body .sanctuary-book .sb-more-meta .small-text p {
    margin-bottom: 4px;
    line-height: 1.5;
}

body .sanctuary-book .sb-more-meta .para-text p {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Clinics */
body .sanctuary-book .sb-clinics .main-heading {
    margin-bottom: 8px;
}

body .sanctuary-book .sb-clinics .main-heading-2 {
    margin-bottom: 18px;
}

body .sanctuary-book .sb-clinics-text p {
    margin-bottom: 12px;
    line-height: 1.7;
}

body .sanctuary-book .sb-clinic-card .sub-heading-2 {
    margin-bottom: 2px;
}

/* Header / Footer */
body .sb-site-header .main-heading-2 h2,
body .sb-site-header .para-text p {
    margin-bottom: 0;
    line-height: 1.2;
}

body .sb-site-footer .main-heading-2 h3 {
    margin-bottom: 10px;
}

body .sb-site-footer .small-text p {
    margin-bottom: 5px !important;
    line-height: 1.6;
}

body .sb-site-footer .smallest-text p {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Gift modal */
body .sanctuary-book .sb-gift-modal-box .main-heading-2 {
    margin-bottom: 6px;
}

body .sanctuary-book .sb-gift-modal-box .small-text p {
    margin-bottom: 0;
}

body .sanctuary-book .sb-gift-modal-box .smallest-text p {
    margin-bottom: 4px;
}

/* ==================================================
   1. BASE
   ================================================== */

.sanctuary-book {
    width: 100%;
    color: #2b2b2b;
    background: #fff;
    margin: 0;
    padding: 0;
}

.sanctuary-book img {
    max-width: 100%;
}

.sanctuary-book a {
    color: #C86F36;
}

/* ==================================================
   2. HERO
   ================================================== */

.sb-main {
    width: 100%;
    background: #fbf8f0;
    margin: 0;
    padding: 0;
}

.sb-main-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.sb-breadcrumb p {
    color: #888;
    margin-bottom: 16px;
}

.sb-grid {
    display: grid;
    grid-template-columns: 280px 1fr 252px;
    gap: 40px;
    align-items: start;
}

/* ==================================================
   3. LEFT - COVER + GALLERY
   ================================================== */

.sb-cover img {
    border-radius: 12px;
    width: 100%;
    display: block;
}

.sb-label p {
    opacity: 0.6;
    margin: 8px 0;
}

.sb-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.sb-thumb {
    width: 40px;
    height: 56px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: white;
}

.sb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 2px;
    border-radius: 6px;
}

.sb-thumb.active {
    border: 1px solid #C86F36;
    box-shadow: 0 0 0 0.5px #C86F36;
}

.sb-sample-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 6px 20px;
    border: 1px solid #CF8C55;
    border-radius: 999px;
    background: transparent;
    color: #5a3e2b;
    text-decoration: none;
}

.sb-sample-btn:hover {
    border-color: #203a3b;
}

.sb-sample-btn p {
    margin: 0 !important;
    font-weight: 500 !important;
}

.sb-mini-authors {
    margin-top: 20px;
}

.sb-mini-author {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 10px 0;
}

.sb-mini-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.sb-mini-author p {
    margin: 0;
}

/* ==================================================
   4. CENTER - TITLE + FORMATS + ABOUT
   ================================================== */

.sb-title {
    margin: 0;
}

.sb-by {
    margin: 10px 0 0;
}

.sb-formats-label {
    margin: 20px 0 8px;
}

.sb-formats-label p {
    margin: 0;
}

.sb-formats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sb-format {
    border: 1px solid #e5ddd3;
    border-radius: 8px;
    padding: 10px;
    background: transparent;
    text-decoration: none;
    color: #222;
    position: relative;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.sb-format.active {
    border-color: #203a3b;
    background: #FFFDF9;
}

.sb-format.active i {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border: 2px solid #203a3b;
    background: #CF8C55;
    border-radius: 50%;
    display: block;
}

.sb-format i {
    display: none;
}

.sb-format p {
    margin: 0 !important;
}

.sb-format .abril-font h2{
    line-height: 120% !important;
    padding-top: 5px;
}

.sb-content {
    color: #444;
}

.sb-content h1,
.sb-content h2,
.sb-content h3,
.sb-content p {
    margin: 0 0 15px !important;
}

/* ==================================================
   5. RIGHT - STICKY CART
   ================================================== */

.sb-cart {
    border: 1px solid #E9E2D6;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
    background: #FFFDF9;
    box-shadow: 0px 14px 34px 0px rgba(25, 44, 38, 0.1);

}

.sb-cart .variations_form {
    margin-top: 10px;
}

.sb-cart .variations {
    width: 100%;
    margin: 0;
    border: none;
}

.sb-cart .variations tbody{
    width: 100%;
}

.sb-cart .variations tbody tr{
    margin-bottom: 5px;
}

.sb-cart .variations td,
.sb-cart .variations th {
    padding: 0;
    border: none;
    vertical-align: middle;
    width: 100%;
}

.sb-cart .variations label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin: 0 0 6px;
    display: none;
}

.sb-cart .variations select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: 'gordita-font', sans-serif;
    font-weight: 500;
    max-width: 100%;
    min-width: 210px;
}

.sb-cart .variations .reset_variations {
    display: none !important;
}

.sb-cart .woocommerce-variation-price,
.sb-cart .woocommerce-variation-availability {
    display: none;
}

.sb-cart .single_variation_wrap {
    margin-top: 12px;
}

.sb-cart .woocommerce-variation-add-to-cart {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.sb-cart .quantity {
    margin: 0 !important;
}

.sb-cart .quantity input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 60px;
    text-align: center;
}

.sb-cart .single_add_to_cart_button {
    flex: 1;
    width: 100% !important;
    background: #C86F36 !important;
    border-radius: 999px !important;
    padding: 14px 20px !important;
    margin-top: 0 !important;
    font-weight: 400;
    text-transform: initial;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    color: #fff !important;
    font-family: 'abril-font',sans-serif;
    font-size: 16px;
    margin-bottom: 14px;
}

.sb-cart .single_add_to_cart_button:hover {
    background: #CF8C55 !important;
}

.sb-cart .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sb-trust {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.sb-trust li {
    margin-bottom: 4px;
}

.sb-trust li::before {
    content: "• ";
    color: #C86F36;
    font-weight: 700;
}

.sb-gift {
    width: 100%;
    background: transparent;
    border: 1px solid #CF8C55;
    border-radius: 999px;
    padding: 12px 20px;
    cursor: pointer;
    font-family: 'gordita-font', sans-serif;
}

.sb-gift:hover {
    border-color: #203a3b;
}

.sb-gift p {
    margin: 0px!important;
    line-height: 100% !important;
    font-weight: 500 !important;
}

.sb-print {
    margin-top: 16px;
}

.sb-print p {
    margin: 0;
    line-height: 180% !important;
}

.sb-print a {
    color: #CF8C55;
    font-weight: 500;
    text-decoration: underline !important
}

/* ==================================================
   6. GIFT MODAL
   ================================================== */

.sb-gift-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.sb-gift-modal-box {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    text-align: left;
}

.sb-gift-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 1;
    font-size: 26px;
}

.sb-gift-modal-box label {
    display: block;
    font-weight: 700;
    margin: 12px 0 4px;
    color: #203a3b;
}

.sb-gift-modal-box input,
.sb-gift-modal-box textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

.sb-gift-modal-box .main-cta {
    margin-top: 16px;
}

.sb-gift-modal-box .main-cta a {
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    background-color: #C86F36 !important;
}

.sb-gift-modal-box .main-cta a:hover {
    background-color: #CF8C55 !important;
    color: #fff !important;
}

.sb-gift-note p {
    color: #888;
    text-align: center;
    margin-top: 10px;
}

/* ==================================================
   7. BOOK DETAILS - FULL WIDTH DARK
   ================================================== */

.sb-details {
    width: 100%;
    background: #203a3b;
    color: #fff;
    margin: 0;
    padding: 50px 0;
}

.sb-details-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.sb-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 60px;
}

.sb-d-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.sb-d-row p {
    margin: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.sb-d-row span {
    /* opacity: 0.9; */
    min-width: 130px;
    color: #FDEED3 !important
}

.sb-d-row strong {
    font-weight: 400 !important;
    text-align: right;
}

/* ==================================================
   8. ABOUT THE AUTHORS
   ================================================== */

.sb-authors {
    width: 100%;
    background: #fff;
    margin: 0;
    padding: 40px 0;
}

.sb-authors-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-author-full {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid #DED5C7;
}

.sb-author-full:last-child {
    border-bottom: none;
}

.sb-author-img {
    flex-shrink: 0;
}

.sb-author-img img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.sb-author-body .para-text p {
    margin: 12px 0;
}

.sb-see p {
    margin-top: 10px;
}

/* ==================================================
   9. MORE FROM AUTHOR - FULL WIDTH BEIGE
   Outer = 100% beige, full-bleed. Inner = boxed, NO background, NO radius.
   Card image = white box only. Title / authors / price / link = BELOW on beige.
   ================================================== */

.sb-more {
    width: 100%;
    background: #FDEED3;
    margin: 0;
    padding: 50px 0 60px;
}

.sb-more-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    background: transparent;
    border-radius: 0;
    box-sizing: border-box;
}

.sb-more-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.sb-more-head a {
    text-decoration: none;
    white-space: nowrap;
}

.sb-more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 0;
}

/* Whole item is a link */
.sb-more-item {
    text-decoration: none;
    color: #222;
    display: block;
}

/* White box - image ONLY, like design */
.sb-more-card {
    background: white;
    border-radius: 12px;
    padding: 24px 20px;
    text-decoration: none;
    color: #222;
    display: block;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.sb-more-card img {
    width: 100%;
    max-width: 180px;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0;
}

.sb-more-card .sb-more-cover-fallback {
    width: 100%;
    max-width: 180px;
    height: 220px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Meta BELOW the white box, on beige */
.sb-more-meta {
    margin-top: 16px;
    text-align: left;
}

.sb-more-meta p {
    margin: 0;
}

.sb-more-meta .sb-more-authors {
    color: #666;
}

.sb-more-meta .sb-more-price {
    color: #C86F36;
}

.sb-more-meta .sb-more-view {
    display: inline-block;
    margin-top: 6px;
    color: #C86F36;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sb-more-meta .sb-more-view:hover {
    color: #CF8C55;
}

/* ==================================================
   10. WHO WE ARE - SANCTUARY CLINICS
   ================================================== */

.sb-clinics {
    width: 100%;
    background: #fffdf8;
    margin: 0;
    padding: 60px 0 40px;
    text-align: center;
}

.sb-clinics-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

body #mk-theme-container .sb-clinics-kicker {
    margin-bottom: 10px;
    
}

body #mk-theme-container .smallest-text.uppercase-text p{
    font-weight: 500;
}

.sb-clinics-text {
    color: #444;
    max-width: 760px;
    margin: 0 auto 15px;
    text-align: left;
}

.sb-clinics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.sb-clinic-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    margin-bottom: 15px;
}

.sb-clinic-card p {
    margin: 0;
}

.sb-clinics-grid .sb-clinic-card{
    text-align: center;
}

/* ==================================================
   12. HELP SECTION
   ================================================== */

.sb-help {
    width: 100%;
    background: #fffdf8;
    margin: 0;
    padding: 0 0 60px;
}
.sb-help-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}
.sb-admissions {
    width: 100%;
    max-width: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    /* border: 1px dashed #9db8c0; */
    padding: 20px;
    box-sizing: border-box;
}
.sb-admissions .main-cta a {
    background-color: #C86F36 !important;
    color: #fff;
}
.sb-admissions .para-text a {
    color: #C86F36;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.sb-crisis {
    width: 100%;
    max-width: 640px;
    text-align: center;
    border: 1px solid #CF8C55;
    border-radius: 20px;
    padding: 28px 20px;
    box-sizing: border-box;
    background: #FBFBFB
}
.sb-crisis .main-heading-2 a {
    color: #C86F36;
    text-decoration: none;
}

/* ==================================================
   13. BOOKSTORE HEADER
   ================================================== */

body.bookstore-page {
    margin: 0;
    background: #fff;
}

.sb-site-header {
    background: #173330;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.sb-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sb-logo {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.sb-logo span {
    color: #CF8C55;
}

.sb-logo h2 {
    margin: 0;
    color: #fff;
}

.sb-header-nav {
    display: flex;
    gap: 24px;
}

.sb-header-nav a {
    color: #e8e2d9;
    text-decoration: none;
}

.sb-header-nav p {
    margin: 0;
}

.sb-header-nav a:hover {
    color: #fff;
}

.sb-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sb-header-search input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    border-radius: 999px;
    padding: 8px 14px;
    color: #fff;
    width: 140px;
    font-family: 'gordita-font', sans-serif;
    padding-left: 35px !important;
    margin-bottom: 0px !important;
}

.sb-header-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.sb-header-search{
    position: relative;
}

.sb-header-search svg{
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.sb-header-cart {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.sb-header-cart p {
    margin: 0;
    color: #fff;
}

/* ==================================================
   14. BOOKSTORE FOOTER
   ================================================== */

.sb-site-footer {
    background: #173330;
    color: #e8e2d9;
    width: 100%;
    margin: 0;
}

.sb-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 50px 20px 30px;
}

.sb-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 60px;
}

.sb-footer-col p {
    margin: 0 0 10px;
    color: #e8e2d9;
}

.sb-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-footer-col ul li {
    margin-bottom: 5px !important;
    margin-left: 0px;
}

.sb-footer-col a {
    color: #fff;
    text-decoration: none;
}

.sb-footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.sb-footer-admissions {
    text-align: center;
    color: #fff;
    margin: 40px 0 20px;
}

.sb-footer-admissions a {
    color: #CF8C55;
    text-decoration: none;
}

.sb-footer-crisis {
    background: #FFFFFFCC;
    color: #2b2b2b;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
}

.sb-footer-crisis p {
    margin: 0;
    margin-bottom: 0px !important;
}

.sb-footer-crisis p strong{
    font-weight: 700 !important;
}

.sb-footer-copy {
    text-align: center;
    opacity: 0.7;
    margin-top: 16px;
}

.sb-footer-copy p {
    color: #e8e2d9;
    margin: 0;
}

/* ==================================================
   15. NO QUANTITY
   ================================================== */

.sb-cart .quantity,
.sb-cart .woocommerce-variation-add-to-cart .quantity,
.woocommerce-variation-add-to-cart .quantity {
    display: none !important;
}

.sb-cart .woocommerce-variation-add-to-cart {
    display: block !important;
}

.sb-cart .single_add_to_cart_button {
    width: 100% !important;
    flex: none !important;
}

.woocommerce-cart .product-quantity .quantity,
.woocommerce-cart .cart_item .quantity {
    display: none !important;
}

.woocommerce-cart .sb-qty-fixed {
    font-weight: 700;
}

/* ==================================================
   16. CART + CHECKOUT WRAPPER
   ================================================== */

.sb-cart-checkout-wrapper {
    width: 100%;
    background: #fff;
    padding: 40px 0 60px;
}

.sb-cart-checkout-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-cart-checkout-inner .woocommerce-cart-form__contents,
.sb-cart-checkout-inner .shop_table {
    border: 1px solid #e8e2d9;
    border-radius: 12px;
    overflow: hidden;
}

.sb-cart-checkout-inner .woocommerce-cart-form__contents th {
    background: #FDEED3;
}

.sb-cart-checkout-inner .woocommerce-billing-fields input,
.sb-cart-checkout-inner .woocommerce-shipping-fields input,
.sb-cart-checkout-inner .woocommerce-billing-fields select,
.sb-cart-checkout-inner .woocommerce-shipping-fields select,
.sb-cart-checkout-inner .woocommerce-form-coupon input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
}

.sb-cart-checkout-inner #place_order,
.sb-cart-checkout-inner .checkout-button,
.sb-cart-checkout-inner .wc-proceed-to-checkout .button {
    background: #C86F36 !important;
    border-radius: 999px !important;
    padding: 14px 24px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff !important;
    border: none !important;
}

.sb-cart-checkout-inner #place_order:hover,
.sb-cart-checkout-inner .checkout-button:hover,
.sb-cart-checkout-inner .wc-proceed-to-checkout .button:hover {
    background: #CF8C55 !important;
}

/* ==================================================
   17. RESPONSIVE
   ================================================== */

@media (max-width: 980px) {
    .sb-grid {
        grid-template-columns: 1fr;
    }

    .sb-cart {
        position: static;
    }

    .sb-author-full {
        flex-direction: column;
        gap: 16px;
    }

    .sb-details-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sb-details-grid {
        grid-template-columns: 1fr;
    }

    .sb-more-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sb-header-inner {
        flex-wrap: wrap;
    }

    .sb-header-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .sb-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sb-clinics {
        padding: 40px 0;
    }

    .sb-clinics-grid {
        grid-template-columns: 1fr;
    }

    .sb-clinic-card img {
        height: 220px;
    }

    .sb-more {
        padding: 40px 0 50px;
    }
}

@media (max-width: 520px) {
    .sb-footer-grid {
        grid-template-columns: 1fr;
    }

    .sb-header-search input {
        width: 130px;
    }

    .sb-more-grid {
        grid-template-columns: 1fr;
    }

    .sb-formats {
        grid-template-columns: 1fr;
    }
}

/* ==================================================
   18. MAIN STORE PAGE (archive-product.php)
   Header / Footer are the same as single product
   NOT changed here
   ================================================== */

.sb-store-hero
{
    width: 100%;
    background: #173330;
    color: #ffffff;
    margin: 0;
    padding: 60px 0;
}

.sb-store-hero-inner
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.sb-store-hero-kicker
{
    letter-spacing: 0.05em;
    margin-bottom: 5px !important;
    color: #F3ECE0E0 !important;
}

.sb-store-hero-formats
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
}

.sb-store-format
{
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    display: block;
    font-family: gordita-font
}

.sb-store-format p
{
    margin: 0;
    color: #ffffff;
    margin-bottom: 0px !important;
}

.sb-store-format.active
{
    background: #cf8c55;
    border-color: #cf8c55;
}

.sb-store-hero-ctas
{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

#mk-theme-container .sb-store-format.active .sb-grey p,
#mk-theme-container .sb-store-format.active .white-text p strong{
    color: #203a3b !important;
}

.sb-store-hero-ctas .main-cta
{
    margin: 0;
    
}

#mk-theme-container .sb-store-hero-ctas .main-cta a
{
    background: #ffffff !important;
    color: #203a3b !important;
}

#mk-theme-container .sb-store-hero-ctas .main-cta.sb-cta-outline-light a{
    background: transparent !important;
    color: #fff !important;
    border: 1px solid #FFF;
}

.sb-store-hero-sample
{
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 14px 24px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sb-store-hero-cover
{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.sb-store-hero-cover::before
{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(50% 50% at 50% 50%, #2B5450 0%, #1F3D39 100%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.sb-store-hero-cover a
{
    position: relative;
    z-index: 1;
    display: block;
}

.sb-store-hero-cover img
{
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    transform: rotate(6deg);
}

.sb-store-cover-fallback
{
    width: 100%;
    min-height: 320px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
}

.sb-store-trust
{
    background: #F5EDE1;
    padding: 28px 0;
    border: 1px solid #E6DDCF;
}

.sb-store-trust-inner
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sb-store-trust-item p
{
    margin: 4px 0 0;
}

.sb-store-collections
{
    background: #fffdf8;
    padding: 60px 0;
}

.sb-store-collections-inner
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-store-collections-head
{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.sb-store-filters
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 40px;
}

.sb-store-filter
{
    border: 1px solid #e8e2d9;
    border-radius: 999px;
    background: #ffffff;
    padding: 10px 18px;
    cursor: pointer;
    font-family: 'gordita-font', sans-serif;
}

.sb-store-filter.active
{
    background: #203a3b;
    color: #ffffff;
    border-color: #203a3b;
}

.sb-store-collection
{
    border-top: 1px solid #e8e2d9;
    padding: 40px 0;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 40px;
}

.sb-store-collection-meta p
{
    margin: 6px 0;
}

.sb-store-grid
{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.sb-store-item
{
    text-decoration: none;
    color: #222222;
    display: block;
}

.sb-store-card
{
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.sb-store-card img
{
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.sb-store-card .sb-store-cover-fallback
{
    min-height: 280px;
    aspect-ratio: 2 / 3;
}

.sb-store-meta{
    margin-top: 10px;
}

.sb-store-meta p
{
    margin: 4px 0 !important;
}

.sb-store-meta .sb-clay p
{
    color: #c86f36;
    text-decoration: underline;
    line-height: 170% !important;
}

.sb-store-author
{
    background: #F5EDE1;
    padding: 60px 0;
}

.sb-store-author-inner
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 50px;
}

.sb-store-author-left
{
    position: relative;
}

.sb-store-author-left .sb-author-image-books img
{
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.sb-store-author-left .sb-author-image-books{
    position: relative;
    margin-bottom: 50px;
}

.sb-store-author-badge
{
    position: absolute;
    left: 0;
    bottom: -20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.sb-store-author-badge p,
.sb-store-author-badge h3
{
    margin: 0;
}

.sb-store-author-start
{
    margin-top: 32px;
}

.sb-store-author-right .main-heading h2{
    margin-bottom: 10px;
}

.sb-store-start-grid
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 0px;
    max-width: 360px;
}

.sb-store-start-card
{
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0px;
    text-decoration: none;
}

.sb-store-start-card p
{
    margin: 0;
    color: #203a3b;
}

.sb-store-author-ctas
{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

.sb-store-start-card img{
    border-radius: 5px;
    height: 130px;
    object-fit: cover;
    border: 1px solid #E6DDCF;
}

.sb-store-author-ctas .main-cta
{
    margin: 0;
}

.sb-store-author-ctas .main-cta a
{
    background: #C86F36 !important;
    color: #ffffff;
}

#mk-theme-container .sb-store-author-ctas .main-cta.sb-cta-outline-dark a{
    background: transparent !important;
    color: #203a3b !important;
    border: 1px solid #E6DDCF;
    box-shadow: none;
}

#mk-theme-container .sb-store-author-ctas .main-cta.sb-cta-outline-dark a:hover{
    background: #FDEED3 !important;
}

.sb-store-author-more
{
    border: 1px solid #e8e2d9;
    border-radius: 999px;
    padding: 14px 24px;
    text-decoration: none;
    color: #203a3b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sb-store-author-bio p
{
    margin-bottom: 12px;
    line-height: 1.7;
}

.sb-store-help
{
    background: #fffdf8;
    padding: 60px 0;
}

.sb-store-help-inner
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sb-store-help-card
{
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    display: block;
    color: #203a3b;
}

.sb-store-help-card .main-heading-2 h3{
    margin-bottom: 10px;
}

.sb-store-help-card .para-text{
    min-height: 115px;
}

#mk-theme-container .sb-cta-white.main-cta a{
    background: #FFF !important;
    color: #203a3b !important;
}

#mk-theme-container .sb-cta-dark.main-cta a{
    background: #203a3b !important;
}

.sb-store-help-clay
{
    background: #C86F36;
}

.sb-store-help-beige
{
    background: #fdeed3;
}

.sb-store-help-sage
{
    background: #dce6e0;
}

.sb-store-help-card p
{
    margin: 8px 0;
}

.sb-store-help-btn
{
    display: inline-block;
    margin-top: 20px;
    background: #ffffff;
    color: #203a3b;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
}

.sb-store-help-btn-dark
{
    background: #203a3b;
    color: #ffffff;
}

.sb-store-reviews
{
    background: #fffdf8;
    padding: 40px 0 70px;
    text-align: center;
}

.sb-store-reviews-inner
{
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sb-store-reviews-grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    text-align: left;
}

.sb-store-review
{
    border: 2px dashed #D8CCB8;
    border-radius: 12px;
    padding: 24px;
}

.sb-store-review p
{
    margin: 5px 0;
}

.sb-store-review-quote p
{
    font-size: 46px;
    line-height: 1;
}

/* ==================================================
   RESPONSIVE - MAIN STORE PAGE
   Paste at the very bottom of bookstore.css
   ================================================== */

@media (max-width: 980px)
{
    /* Hero: stack text on top, cover below */
    .sb-store-hero-inner
    {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Collections: meta on top, grid below */
    .sb-store-collection
    {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sb-store-grid
    {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Author: stack photo on top, text below */
    .sb-store-author-inner
    {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Help cards: stack */
    .sb-store-help-inner
    {
        grid-template-columns: 1fr;
    }

    /* Reviews: stack */
    .sb-store-reviews-grid
    {
        grid-template-columns: 1fr;
    }

    /* Trust bar: stack */
    .sb-store-trust-inner
    {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Single Product: keep existing responsive */
    .sb-grid
    {
        grid-template-columns: 1fr;
    }

    .sb-cart
    {
        position: static;
    }

    .sb-details-inner
    {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sb-details-grid
    {
        grid-template-columns: 1fr;
    }

    .sb-header-inner
    {
        flex-wrap: wrap;
    }

    .sb-header-nav
    {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .sb-footer-grid
    {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px)
{
    /* Hero: tighter padding, smaller circle */
    .sb-store-hero
    {
        padding: 48px 0 40px;
    }

    .sb-store-hero-cover
    {
        min-height: 360px;
    }

    .sb-store-hero-cover::before
    {
        width: 340px;
        height: 340px;
    }

    .sb-store-hero-cover img
    {
        max-width: 260px;
    }

    /* Collections: tighter */
    .sb-store-collections
    {
        padding: 40px 0;
    }

    .sb-store-collection
    {
        padding: 32px 0;
    }

    /* Author: tighter */
    .sb-store-author
    {
        padding: 40px 0;
    }

    .sb-store-author-inner
    {
        gap: 24px;
    }

    /* Clinics: keep existing responsive */
    .sb-clinics
    {
        padding: 40px 0;
    }

    .sb-clinics-grid
    {
        grid-template-columns: 1fr;
    }

    .sb-clinic-card img
    {
        height: 220px;
    }
}

@media (max-width: 520px)
{
    /* Hero CTAs: full width, stacked */
    .sb-store-hero-ctas
    {
        flex-direction: column;
        align-items: stretch;
    }

    .sb-store-hero-ctas .main-cta,
    .sb-store-hero-ctas .main-cta a
    {
        width: 100%;
    }

    /* Author CTAs: full width, stacked */
    .sb-store-author-ctas
    {
        flex-direction: column;
        align-items: stretch;
    }

    .sb-store-author-ctas .main-cta,
    .sb-store-author-ctas .main-cta a
    {
        width: 100%;
    }

    /* Collections grid: 2 per row on phone */
    .sb-store-grid
    {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Good place to start: 2 per row on phone */
    .sb-store-start-grid
    {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Filters: tighter pills */
    .sb-store-filters
    {
        gap: 8px;
        margin: 16px 0 24px;
    }

    .sb-store-filter
    {
        padding: 8px 14px;
    }

    /* Footer: stack */
    .sb-footer-grid
    {
        grid-template-columns: 1fr;
    }

    .sb-header-search input
    {
        width: 130px;
    }

    /* Single Product formats: stack */
    .sb-formats
    {
        grid-template-columns: 1fr;
    }
}