/* Saracino collection: paper, olive botanicals and product reveals. */
:root {--saracino-shop-paper:url('../assets/images/product-catalog/olive-paper-centered.webp');}
.saracino-catalog-page #content {padding:0 !important; margin:0 !important;}
.saracino-catalog-page #content > .col-full {width:100%; max-width:none; padding:0; margin:0;}
.sar-catalog {color:#253126; margin:0; width:100%;}
.sar-catalog-hero {background:#242b22; overflow:hidden;}
.sar-catalog-hero-inner {max-width:1380px; padding:32px 30px; min-height:278px; margin:auto; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:70px;}
.sar-catalog-intro {padding:20px 0;}
.sar-catalog-eyebrow {font-size:14px; text-transform:uppercase; letter-spacing:.16em; color:#e2d1ae; margin:0 0 12px;}
.sar-catalog h1 {font-family:Georgia,'Times New Roman',serif; font-weight:500; font-size:clamp(42px,4.4vw,64px); line-height:1.1; letter-spacing:-.025em; color:#c6a56f; margin:0 0 12px;}
.sar-catalog-subtitle {font-size:clamp(20px,2vw,28px); color:#fff; margin:0; font-weight:400;}
.sar-catalog-hero-photo {height:218px; background:url('/wp-content/uploads/2025/02/nbackground-scaled.png') center center / cover no-repeat;}
.sar-catalog-paper {background:#f7f7f3 var(--saracino-shop-paper) center top / 1440px auto repeat-y; min-height:650px; padding:46px 0 86px;}
.sar-catalog-container {max-width:1440px; margin:auto; padding:0 30px;}
.sar-catalog h1.sar-category-heading {margin-bottom:20px; color:var(--saracino-ink);}
.sar-category-links {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:28px;
}
.sar-category-links a {
    display:inline-flex;
    align-items:center;
    min-height:44px;
    padding:8px 17px;
    border:1px solid #a6ac98;
    border-radius:24px;
    background:#fbfaf6;
    color:var(--saracino-ink);
    font-size:15px;
}
.sar-category-links a:hover,
.sar-category-links a[aria-current='page'] {
    border-color:#394f32;
    background:#394f32;
    color:#fff;
}
body.tax-product_cat.saracino-catalog-page #masthead + .header-width-fixer {display:none !important;}
.sar-catalog-toolbar {display:flex; justify-content:flex-end; align-items:center; gap:28px; margin:0 0 28px; flex-wrap:wrap;}
.sar-catalog-toolbar > p {font-size:16px; margin:0; color:#4c554b;}
.sar-catalog-sort {display:flex; align-items:center; margin:0; background:#f1f2ed; min-height:50px; padding:0 14px 0 18px;}
.sar-catalog-sort label {font-size:14px; font-weight:400; margin:0 10px 0 0; white-space:nowrap;}
.sar-catalog-sort select {appearance:none; color:#253126; border:0; border-radius:0; padding:12px 30px 12px 0; background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23253126' stroke-width='1.4'/%3E%3C/svg%3E") right 2px center/14px no-repeat; font-size:14px; width:auto; min-width:155px; height:auto; box-shadow:none; cursor:pointer;}
.sar-product-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:48px 30px;}
.sar-product-card {min-width:0; text-align:center; margin:0;}
.sar-product-frame {position:relative; border:2px solid #947040; background:#fff; overflow:hidden; isolation:isolate;}
.sar-product-visual {position:relative; display:block; aspect-ratio:1; background:#fff; overflow:hidden;}
.sar-product-visual > img {display:block; width:100%; height:100%; object-fit:contain; margin:0; transition:opacity .5s ease;}
.sar-product-visual .sar-product-hover {position:absolute; inset:0; opacity:0; z-index:1;}
.sar-product-frame.sar-photo-active .sar-product-hover,
.sar-product-visual:focus-visible .sar-product-hover {opacity:1;}
.sar-product-view {position:absolute; z-index:2; bottom:20px; left:50%; transform:translateX(-50%); width:42px; height:42px; background:#fff; color:#253126; border-radius:50%; display:grid; place-items:center; opacity:0; transition:opacity .3s ease;}
.sar-product-view svg {width:23px; height:23px;}
.sar-product-visual:focus-visible .sar-product-view {opacity:1;}
.sar-product-caption {padding:22px 8px 0;}
.sar-product-price {font-size:16px; line-height:1.5; font-weight:600; color:#253126; margin:0 0 5px; min-height:24px;}
.sar-product-price .price {color:inherit; font-size:inherit; font-weight:inherit;}
.sar-product-price del {opacity:.6;}
.sar-product-caption h2 {font-family:Georgia,'Times New Roman',serif; font-size:clamp(27px,2.8vw,38px); font-weight:600; line-height:1.2; margin:0 0 12px; color:#947040;}
.sar-product-caption h2 a {color:inherit; text-decoration:none;}
.sar-product-caption h2 a:hover {color:#506b3d;}
.sar-product-format {font-size:18px; font-weight:500; margin:0 0 13px; color:#3d463a;}
.sar-product-link {display:inline-block; font-size:14px; line-height:1.4; letter-spacing:.035em; color:#506b3d; border-bottom:1px solid #a8b09e; padding:2px 0 5px; text-decoration:none;}
.sar-product-link:hover {color:#947040; border-color:currentColor;}
.sar-photo-toggle {position:absolute !important; z-index:5; bottom:14px; right:14px; width:40px !important; height:40px !important; min-height:0 !important; display:grid; place-items:center; padding:10px !important; margin:0 !important; border:1px solid #d7d6ca !important; border-radius:50% !important; background:#fff !important; color:#506b3d !important; box-shadow:none; line-height:1; cursor:pointer;}
.sar-photo-toggle svg {width:18px; height:18px;}
.sar-photo-toggle[aria-pressed='true'] {background:#506b3d !important; color:#fff !important; border-color:#506b3d !important;}
.sar-catalog a:focus-visible,.sar-catalog button:focus-visible,.sar-catalog select:focus-visible,.sar-photo-toggle:focus-visible {outline:3px solid #506b3d; outline-offset:4px;}
/* The same botanical paper carries through each individual product. */
body.single-product #page .site-content {background:#f7f7f3 var(--saracino-shop-paper) center top / 1440px auto repeat-y !important;}
body.single-product .elementor-location-single {padding-top:44px;}
body.single-product .elementor-element-3db3fda {padding:0; background:#fff; box-shadow:none;}
body.single-product .woocommerce-product-gallery {min-height:0; background:#fff;}
body.single-product .woocommerce-product-gallery__wrapper {min-height:0; padding:0; background:#fff;}
body.single-product .saracino-product-photo {position:relative; background:#fff;}
body.single-product .saracino-product-photo a {position:relative; aspect-ratio:1; overflow:hidden; background:#fff;}
body.single-product .saracino-product-photo img.wp-post-image {width:100% !important; height:auto !important; max-height:none !important; object-fit:contain; box-shadow:none;}
.saracino-detail-hover {position:absolute; inset:0; z-index:4; pointer-events:none; background-color:#fff; background-position:center; background-size:contain; background-repeat:no-repeat; opacity:0; transition:opacity .5s ease;}
.saracino-product-photo.sar-photo-active .saracino-detail-hover,
.saracino-product-photo a:focus-visible .saracino-detail-hover {opacity:1;}
body.single-product .woocommerce-breadcrumb {font-size:14px;}
/* The single-product template includes static tax and quantity headings. */
.saracino-product-without-price .elementor-element-369a12d,
.saracino-product-without-price .elementor-element-13289e9,
.saracino-product-without-price .elementor-widget-woocommerce-product-price,
.saracino-product-without-price .elementor-widget-woocommerce-product-add-to-cart {display:none;}
@media (hover:hover) and (pointer:fine) {
    .sar-product-visual:hover .sar-product-hover,.sar-product-visual:hover .sar-product-view {opacity:1;}
    .saracino-product-photo a:hover .saracino-detail-hover {opacity:1;}
    .sar-product-frame .sar-photo-toggle {opacity:0; transition:opacity .2s ease;}
    .sar-product-frame:focus-within .sar-photo-toggle,.sar-product-frame:hover .sar-photo-toggle {opacity:1;}
}
@media (max-width:1024px) {
    .sar-catalog-hero-inner {gap:30px;}
    .sar-catalog-container {padding:0 24px;}
    .sar-product-grid {gap:38px 22px;}
}
@media (min-width:768px) and (max-width:991px) {
    .sar-product-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:767px) {
    .sar-catalog-hero-inner {grid-template-columns:1fr; gap:22px; padding:30px 22px;}
    .sar-catalog-intro {padding:0;}
    .sar-catalog-hero-photo {height:150px;}
    .sar-catalog h1 {font-size:44px;}
    .sar-catalog-eyebrow {font-size:13px; margin-bottom:10px;}
    .sar-catalog-paper {padding:28px 0 54px; background-size:100% auto;}
    .sar-catalog-container {padding:0 20px;}
    .sar-catalog-toolbar {justify-content:space-between; gap:14px; margin-bottom:24px;}
    .sar-catalog-toolbar > p {font-size:14px;}
    .sar-catalog-sort {width:100%; justify-content:space-between;}
    .sar-catalog-sort select {flex:1; max-width:230px;}
    .sar-product-grid {grid-template-columns:1fr; gap:42px; max-width:480px; margin:auto;}
    .sar-product-caption {padding-top:18px;}
    .sar-product-caption h2 {font-size:32px;}
    .sar-photo-toggle {width:44px !important; height:44px !important;}
    body.single-product #page .site-content {background-size:100% auto !important;}
    body.single-product .elementor-location-single {padding-top:28px;}
}
@media (prefers-reduced-motion:reduce) {
    .sar-product-visual > img,.sar-product-view,.saracino-detail-hover,.sar-photo-toggle {transition:none !important;}
}
/* WooCommerce's zoom layer must allow the product reveal and link to receive input. */
body.single-product .saracino-product-photo .zoomImg {pointer-events:none !important;}
body.single-product .saracino-product-photo img.wp-post-image {filter:none;}
@media (hover:hover) and (pointer:fine) {
    .saracino-product-photo:hover .saracino-detail-hover {opacity:1;}
}
/* Let the botanical surface meet the header and footer without white gaps. */
body.single-product #page #content {margin:0 !important; padding:0 !important;}
body.single-product #content > .col-full {width:100%; max-width:none; margin:0; padding:0;}

.sar-product-price {direction:ltr; unicode-bidi:isolate;}
.sar-product-price .woocommerce-Price-amount {display:inline-block; unicode-bidi:isolate;}

/* Restore the original full-width title photograph, a little shorter. */
.saracino-catalog-page #masthead + .header-width-fixer {display:block !important;}
body.saracino-catalog-page .elementor-273 .elementor-element.elementor-element-a4fce26,
body.woocommerce-shop .elementor-273 .elementor-element.elementor-element-a4fce26 {
    --min-height:360px; min-height:360px;
}
/* The native shop archive uses the same botanical surface and gold image frame. */
body.woocommerce-shop #page #content {
    margin:0 !important; padding-top:46px; padding-bottom:70px;
    background:#f7f7f3 var(--saracino-shop-paper) center top / 1440px auto repeat-y !important;
}
body.woocommerce-shop .products .product-transition {border:2px solid #947040; background:#fff; border-radius:0;}
body.woocommerce-shop ul.products li.product .product-block {background:transparent;}
body.woocommerce-shop .product-caption .woocommerce-loop-product__title {font-family:Georgia,'Times New Roman',serif; font-size:30px; color:#947040;}
body.woocommerce-shop .product-caption .woocommerce-loop-product__title a {color:inherit;}
/* Hover directly over any product image to reveal the contents, as in the reference. */
.sar-product-frame:hover .sar-product-hover,
.sar-product-frame.sar-pointer-hover .sar-product-hover {opacity:1 !important;}
.sar-product-frame:has(.sar-product-hover):hover .sar-product-pack,
.sar-product-frame:has(.sar-product-hover).sar-pointer-hover .sar-product-pack,
.sar-product-frame.sar-photo-active .sar-product-pack {opacity:0 !important;}
.sar-product-frame:hover .sar-product-view {opacity:1;}
.saracino-loop-photo {position:relative !important; display:block !important; width:100%; aspect-ratio:1; overflow:hidden; background:#fff; isolation:isolate;}
.product-transition .saracino-loop-photo > img {display:block !important; width:100% !important; height:100% !important; object-fit:contain !important; margin:0 !important; transform:none !important; transition:opacity .5s ease !important; pointer-events:none;}
.product-transition .saracino-loop-photo > .saracino-loop-pack {position:relative; opacity:1 !important;}
.product-transition .saracino-loop-photo > .saracino-loop-contents {position:absolute !important; inset:0; z-index:1; opacity:0 !important;}
.product-transition:hover .saracino-loop-photo > .saracino-loop-pack,
.product-transition:focus-within .saracino-loop-photo > .saracino-loop-pack,
.product-transition.sar-pointer-hover .saracino-loop-photo > .saracino-loop-pack {opacity:0 !important;}
.product-transition:hover .saracino-loop-photo > .saracino-loop-contents,
.product-transition:focus-within .saracino-loop-photo > .saracino-loop-contents,
.product-transition.sar-pointer-hover .saracino-loop-photo > .saracino-loop-contents {opacity:1 !important;}
.saracino-product-photo:hover .saracino-detail-hover {opacity:1;}
@media(max-width:767px) {
    body.saracino-catalog-page .elementor-273 .elementor-element.elementor-element-a4fce26,
    body.woocommerce-shop .elementor-273 .elementor-element.elementor-element-a4fce26 {--min-height:260px; min-height:260px;}
    body.woocommerce-shop #page #content {background-size:100% auto !important;}
}
@media(prefers-reduced-motion:reduce) {
    .product-transition .saracino-loop-photo > img {transition:none !important;}
}
body.woocommerce-shop .elementor-276 .elementor-element.elementor-element-3c6133f {--min-height:360px; min-height:360px;}
@media(max-width:767px) {
    body.woocommerce-shop .elementor-276 .elementor-element.elementor-element-3c6133f {--min-height:260px; min-height:260px;}
}
/* Keep the native cards square so the whole hover frame shows the contents. */
.product-top:has(.saracino-loop-photo) {padding-top:100% !important;}

/* Shop navigation uses the site's product photography on a warm paper panel. */
.sar-shop-toggle[hidden],
.sar-shop-panel[hidden] {display:none !important;}
.sar-shop-toggle {
    display:inline-grid;
    place-items:center;
    width:32px;
    height:44px;
    padding:0;
    margin:0;
    border:0;
    background:transparent;
    box-shadow:none;
    color:var(--saracino-ink);
    cursor:pointer;
}
.sar-shop-toggle::before {
    content:"";
    width:7px;
    height:7px;
    border:solid currentColor;
    border-width:0 1.5px 1.5px 0;
    transform:translateY(-2px) rotate(45deg);
}
.sar-shop-toggle[aria-expanded='true']::before {transform:translateY(2px) rotate(225deg);}
.sar-shop-toggle:hover,
.sar-shop-toggle:focus-visible {background:#ebeee4; color:var(--saracino-ink);}
.sar-shop-toggle:focus-visible,
.sar-shop-panel a:focus-visible {outline:2px solid #506b3d; outline-offset:2px;}
#masthead .main-navigation ul.menu > li.menu-item:has(> .sar-shop-toggle) {
    display:inline-flex;
    align-items:center;
    vertical-align:middle;
}
#masthead .main-navigation ul.menu > li.menu-item:has(> .sar-shop-toggle) > a {padding-inline-end:10px;}
#masthead .main-navigation .sar-shop-toggle {color:#fff;}
body:is(.single-product,.tax-product_cat.saracino-catalog-page) #masthead .main-navigation .sar-shop-toggle,
#masthead .main-navigation .sar-shop-toggle:hover,
#masthead .main-navigation .sar-shop-toggle:focus-visible {color:var(--saracino-ink);}
.main-navigation .sar-shop-panel {
    position:fixed;
    z-index:1100;
    inset-inline:0;
    top:var(--sar-shop-panel-top, 86px);
    max-height:calc(100dvh - var(--sar-shop-panel-top, 86px));
    overflow:auto;
    border-top:1px solid #c5ac7e;
    border-bottom:1px solid #d2c5ad;
    background:#f7f4eb;
    color:var(--saracino-ink);
    box-shadow:0 18px 34px rgb(42 45 35 / .16);
}
.sar-shop-panel-inner {
    max-width:1080px;
    margin:auto;
    padding:24px 28px 20px;
}
.sar-shop-panel-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
}
.sar-shop-panel a.sar-shop-category {
    display:flex;
    flex-direction:column;
    padding:0;
    border:1px solid #d9cdb4;
    background:#fff;
    color:var(--saracino-ink);
    text-decoration:none;
}
.sar-shop-panel a.sar-shop-category:hover,
.sar-shop-panel a.sar-shop-category[aria-current='page'] {border-color:#697f5a; color:#394f32;}
.sar-shop-category-photo {
    display:block;
    height:142px;
    background:#fff;
}
.sar-shop-category-photo img {
    display:block;
    width:100%;
    height:100%;
    margin:0;
    object-fit:contain;
}
.sar-shop-category-text {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:58px;
    padding:10px 17px;
    border-top:1px solid #ece5d6;
    background:#fbf9f3;
    font-family:Georgia,'Times New Roman',serif;
    font-size:22px;
    line-height:1.2;
}
.sar-shop-category-text::after {
    content:"→";
    flex-shrink:0;
    color:#506b3d;
}
.sar-shop-panel a.sar-shop-all {
    display:table;
    padding:5px 0;
    margin:13px auto 0;
    border-bottom:1px solid #7e8e69;
    color:#394f32;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
}
.handheld-navigation .menu > li:has(> .sar-shop-toggle) {position:relative;}
.handheld-navigation .menu > li:has(> .sar-shop-toggle) > a {padding-inline-end:52px;}
.handheld-navigation .sar-shop-toggle {
    position:absolute;
    inset-inline-end:0;
    top:0;
    width:44px;
    -webkit-tap-highlight-color:transparent;
}
.mobile-navigation .handheld-navigation .menu > li.menu-item > .sar-shop-toggle::after {content:none;}
.handheld-navigation .menu > li.menu-item > .sar-shop-toggle[aria-expanded='true'] {background:#ebeee4;}
.handheld-navigation .sar-shop-panel-inner {padding:0 0 13px;}
.handheld-navigation .sar-shop-panel-grid {grid-template-columns:1fr; gap:6px;}
.handheld-navigation .sar-shop-panel a.sar-shop-category {
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    align-items:stretch;
    min-height:48px;
    text-transform:none;
}
.handheld-navigation .sar-shop-category-photo {height:auto; min-height:48px;}
.handheld-navigation .sar-shop-category-text {
    min-height:48px;
    padding:6px 9px;
    border-top:0;
    font-size:16px;
}
