/* =========================================================================
   Sheri Negri Design: bindings between the React design (main.css) and
   WordPress / WooCommerce / Contact Form 7 markup, plus new components
   (carousels, size dropdown, hover video, filters, account, notices).
   ========================================================================= */

body.app { min-height: 100vh; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.product-meta h3 a { color: inherit; }
a.art-image { display: block; }
.sn-drawer-inner { display: contents; }
.icon-button { color: inherit; }
.bag-button { position: relative; }

/* ---------- Hover video on product cards ---------- */
.product-image .sn-hover-video {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; pointer-events: none; transform: scale(1.02);
  transition: opacity 0.6s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-image.is-playing .sn-hover-video { opacity: 1; transform: none; }
.product-image .view-label { z-index: 2; }
.mini-swatches span { cursor: pointer; transition: transform 0.25s; }
.mini-swatches span:hover { transform: scale(1.25); }

/* ---------- Accordion icons ---------- */
.accordion .sn-acc-minus, .accordion.open .sn-acc-plus { display: none; }
.accordion.open .sn-acc-minus { display: block; }
.accordion i { display: block; }
.accordion > div p + p { margin-top: 10px; }

/* ---------- Lightbox navigation ---------- */
.lightbox img { animation: crossfade 0.45s both; }
.lightbox .sn-lb-nav { top: 50%; right: auto; left: 25px; transform: translateY(-50%); padding: 10px; }
.lightbox .sn-lb-next { left: auto; right: 25px; }
.lightbox .sn-lb-nav svg { width: 30px; }

/* ---------- Size dropdown (client request) ---------- */
.sn-select { position: relative; }
.sn-select-toggle {
  width: 100%; display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 15px;
  padding: 15px 18px; border: 1px solid var(--line); background: transparent; font-size: 14px; cursor: pointer; text-align: left;
  transition: border-color 0.3s;
}
.sn-select-toggle:hover, .sn-select.open .sn-select-toggle { border-color: var(--ink); }
.sn-select-toggle svg { width: 16px; transition: transform 0.3s; }
.sn-select.open .sn-select-toggle svg { transform: rotate(180deg); }
.sn-select-price { color: #777168; font-size: 14px; }
.sn-select-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 1px);
  background: var(--paper); border: 1px solid var(--ink); max-height: 340px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: 0.25s;
}
.sn-select.open .sn-select-list { opacity: 1; visibility: visible; transform: none; }
.sn-select-list button {
  width: 100%; display: flex; justify-content: space-between; padding: 13px 18px; font-size: 14px; cursor: pointer;
  border-bottom: 1px solid var(--line); text-align: left;
}
.sn-select-list li:last-child button { border-bottom: 0; }
.sn-select-list button span:last-child { color: #777168; font-size: 14px; }
.sn-select-list button:hover, .sn-select-list button.active { background: var(--ink); color: white; }
.sn-select-list button:hover span:last-child, .sn-select-list button.active span:last-child { color: #d8d1c5; }
.add-button:disabled { opacity: 0.45; cursor: not-allowed; }
.add-button:disabled:hover { background: var(--ink); color: white; }
.product-description p + p { margin-top: 12px; }
.product-detail .swatches button { transition: outline-color 0.25s, transform 0.25s; }
.product-detail .swatches button:hover { transform: scale(1.06); }

/* ---------- Shop filters ---------- */
.filters > div { align-items: center; }
.filters a.sn-filter-link { font-size: 12px; letter-spacing: 0.14em; color: #777168; text-transform: uppercase; }
.filters a.sn-filter-link.active { color: var(--ink); border-bottom: 1px solid; }
.sn-dropdown > button { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; }
.sn-dropdown > button svg { width: 12px; transition: transform 0.25s; }
.sn-dropdown.open > button svg { transform: rotate(180deg); }
.sn-dropdown { position: relative; }
.sn-dropdown-panel {
  position: absolute; z-index: 60; left: -20px; top: calc(100% + 18px); min-width: 240px; max-height: 60vh; overflow-y: auto; padding: 10px 0;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(20, 18, 15, 0.12);
  display: none; animation: snDrop 0.25s both;
}
@keyframes snDrop { from { opacity: 0; transform: translateY(-6px); } }
.filters .sn-dropdown-panel { display: none; }
.filters .sn-dropdown.open .sn-dropdown-panel { display: block; }
.sn-dropdown-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; font-size: 14px; letter-spacing: 0.04em; color: #5f5a52; white-space: nowrap; }
.sn-dropdown-panel a:hover, .sn-dropdown-panel a.current { background: var(--ivory); color: var(--ink); }
.sn-dropdown-panel i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.16); flex: none; }
.sn-empty { grid-column: 1 / -1; text-align: center; padding: 60px 0; }
.sn-empty a { border-bottom: 1px solid; }
.navigation.pagination { padding: 0 5vw 120px; text-align: center; font-size: 14px; letter-spacing: 0.1em; }
.navigation.pagination .nav-links { display: flex; justify-content: center; gap: 18px; }
.navigation.pagination .current { border-bottom: 1px solid; }

/* ---------- Carousels (colourways on Home, related on product) ---------- */
.sn-colorways { padding: 90px 0 105px 5vw; background: var(--paper); overflow: hidden; }
.sn-colorways .section-heading { padding-right: 5vw; align-items: end; }
.sn-carousel-nav { display: flex; gap: 10px; }
.sn-carousel-nav button {
  width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer; transition: 0.3s;
}
.sn-carousel-nav button:hover { background: var(--ink); color: white; border-color: var(--ink); }
.sn-carousel-nav svg { width: 18px; }
.sn-carousel { position: relative; }
.sn-carousel-track {
  display: grid !important; grid-auto-flow: column; grid-template-columns: none !important;
  grid-auto-columns: clamp(250px, 26vw, 420px); gap: 22px !important;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  overscroll-behavior-x: contain; cursor: grab; padding-right: 5vw;
}
.sn-carousel-track::-webkit-scrollbar { display: none; }
.sn-carousel-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.sn-carousel-track > * { scroll-snap-align: start; }
.sn-carousel-progress { position: relative; height: 1px; margin: 45px 5vw 0 0; background: var(--line); overflow: hidden; }
.sn-carousel-progress i { position: absolute; left: 0; top: 0; height: 100%; width: 20%; background: var(--ink); transition: transform 0.25s linear, width 0.25s; }
.sn-slide { display: block; user-select: none; }
.sn-slide-image { display: block; height: clamp(320px, 33vw, 540px); overflow: hidden; background: #ddd7cc; }
.sn-slide-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.sn-slide:hover .sn-slide-image img { transform: scale(1.04); }
.sn-slide-meta { display: grid; grid-template-columns: 13px 1fr; column-gap: 12px; align-items: center; padding: 18px 2px 0; }
.sn-slide-meta i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.16); grid-row: span 2; }
.sn-slide-meta strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.sn-slide-meta small { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #777066; margin-top: 4px; }

.related { overflow: hidden; }
.related .sn-related-heading { display: flex !important; justify-content: space-between; align-items: end; }
.related .sn-carousel-track { grid-auto-columns: calc((100% - 6vw) / 3); gap: 3vw !important; padding-right: 0; }
.related .sn-carousel-progress { margin-right: 0; }
.related .product-card { margin-top: 0 !important; }

/* ---------- Checkout steps tabs ---------- */
.steps button { font-size: 12px; letter-spacing: 0.12em; color: #aaa398; cursor: pointer; text-transform: uppercase; }
.steps button.active { color: var(--ink); }

/* ---------- Contact Form 7 inside the design ---------- */
.wpcf7 { width: 100%; }
.wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7 form .hidden-fields-container, .wpcf7 fieldset.hidden-fields-container { display: none; }
.contact-layout .wpcf7-form, .sn-fallback-form--contact { display: flex; flex-direction: column; gap: 30px; }
.contact-layout label, .sn-fallback-form label { display: flex; flex-direction: column; gap: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-layout textarea { resize: vertical; border: 0; border-bottom: 1px solid var(--line); }
.contact-layout select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252421' stroke-width='1.35'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; }
.contact-layout input.add-button, .inquiry-panel input.add-button, .sn-fallback-form .add-button,
.contact-layout .wpcf7-submit, .inquiry-panel .wpcf7-submit {
  width: 100%; padding: 19px 22px; border: 1px solid var(--ink); background: var(--ink); color: white;
  font-size: 13px; letter-spacing: 0.16em; text-align: left; cursor: pointer; transition: 0.3s;
}
.contact-layout .wpcf7-submit:hover, .inquiry-panel .wpcf7-submit:hover { background: transparent; color: var(--ink); }
.wpcf7-spinner { display: none !important; }
.wpcf7 form.submitting .wpcf7-submit { opacity: 0.6; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; letter-spacing: 0.04em; text-transform: none; color: #9a5037; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 14px 16px; border: 1px solid var(--line); font-size: 14px; line-height: 1.6; letter-spacing: 0.02em; }
.wpcf7 form.init .wpcf7-response-output, .wpcf7 form.resetting .wpcf7-response-output, .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #7b8f6a; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: #b97a5f; }
.inquiry-panel .wpcf7-form, .inquiry-panel .sn-fallback-form { display: flex; flex-direction: column; gap: 24px; }
.inquiry-panel form > .wpcf7-response-output, .inquiry-panel form > fieldset { display: block; grid-template-columns: none; }
.inquiry-panel form > fieldset.hidden-fields-container { display: none; }
.inquiry-panel .sn-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.inquiry-panel .wpcf7-submit { margin-top: 18px; }
.inquiry-panel textarea { resize: vertical; }
.sn-newsletter-form .wpcf7-form, .sn-newsletter-form .sn-fallback-form {
  display: flex; flex-wrap: wrap; max-width: 520px; margin: auto; border-bottom: 1px solid #777168;
}
.sn-newsletter-form .wpcf7-form-control-wrap { flex: 1; width: auto; }
.sn-newsletter-form input[type="email"] { width: 100%; border: 0; padding: 15px 0; background: transparent; color: white; outline: 0; }
.sn-newsletter-form input[type="email"]::placeholder { color: #8f8a82; }
.sn-newsletter-form .wpcf7-submit, .sn-newsletter-form button {
  flex: none; width: auto; padding: 0 0 0 20px; border: 0; background: transparent; color: white; font-size: 12px; letter-spacing: 0.16em; cursor: pointer;
}
.sn-newsletter-form .wpcf7-response-output { flex-basis: 100%; order: 3; margin: 0 0 -1px !important; border: 0 !important; padding: 12px 0 !important; color: #c9c3b8; text-align: center; }
.sn-newsletter-form .wpcf7-not-valid-tip { position: absolute; color: #d9a48c; }
.sn-form-sent { margin-bottom: 20px; font-size: 14px; }
.inquiry-modal[hidden] { display: none !important; }

/* ---------- WooCommerce notices ---------- */
.woocommerce-notices-wrapper:empty, .sn-notices:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info {
  list-style: none; margin: 0 0 25px; padding: 16px 20px; border: 1px solid var(--line); background: var(--ivory);
  font-size: 14px; line-height: 1.6;
}
.woocommerce-error { border-color: #c9a08b; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message .button, .woocommerce-info .button { float: right; font-size: 12px; letter-spacing: 0.14em; border-bottom: 1px solid; text-transform: uppercase; }
.product-page > .woocommerce-notices-wrapper, .product-page > .woocommerce-message, .product-page > .woocommerce-error { margin: 0 5vw 20px; }
.sn-notices { padding: 0 8vw; }
.woocommerce > .woocommerce-notices-wrapper, .woocommerce > .woocommerce-NoticeGroup { padding: 0 8vw; }
.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle { display: none; }

/* ---------- Cart page extras ---------- */
.cart-page-line > a { display: block; }
.cart-page-line .remove { margin-top: 14px; }
.sn-cart-empty { padding: 30px 0; font-family: var(--serif); font-size: 30px; }
.sn-cart-empty a { border-bottom: 1px solid; }
.cart-page-line strong .amount, .cart-line strong .amount { font-weight: 400; }
.order-summary .checkout-button + .view-cart { margin-top: 18px; }
.order-summary .view-cart { text-decoration: underline; }

/* ---------- Checkout (standalone) ---------- */
body.sn-standalone .woocommerce { min-height: 100vh; }
.checkout-page .woocommerce-billing-fields > h3, .checkout-page .woocommerce-additional-fields > h3,
.checkout-page .woocommerce-shipping-fields > h3 { display: none; }
.checkout-page .woocommerce-billing-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px 25px;
}
.checkout-page .form-row { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checkout-page .form-row-wide, .checkout-page .form-row.notes { grid-column: 1 / -1; }
.checkout-page .form-row > label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.checkout-page .form-row label .required { color: #9a5037; text-decoration: none; border: 0; }
.checkout-page .form-row label .optional { text-transform: none; letter-spacing: 0; color: #9a948b; }
.checkout-page .woocommerce-input-wrapper { display: block; width: 100%; }
.checkout-page input.input-text, .checkout-page select, .checkout-page textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none;
  transition: border-color 0.25s;
}
.checkout-page select { appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252421' stroke-width='1.35'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 16px; }
.checkout-page input.input-text:focus, .checkout-page select:focus { border-bottom-color: var(--ink); }
.checkout-page .woocommerce-invalid input.input-text, .checkout-page .woocommerce-invalid select { border-bottom-color: #b2593a; }
.checkout-page .sn-hidden-country, .checkout-page #billing_country_field { display: none !important; }
.checkout-page .woocommerce-account-fields { margin-top: 28px; }
.checkout-page .woocommerce-account-fields .create-account { margin-top: 20px; }
.checkout-page .woocommerce-form__label-for-checkbox, .sn-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; font-size: 14px !important; letter-spacing: 0.04em !important; text-transform: none !important; cursor: pointer; }
.checkout-page input[type="checkbox"], .checkout-page input[type="radio"], .sn-check input { width: 16px; height: 16px; accent-color: var(--ink); }
.checkout-step .usa-note { margin: 28px 0 0; }
.checkout-step > .add-button { margin-top: 35px; }
.sn-login-note { margin: -20px 0 35px !important; }
.sn-login-note a { border-bottom: 1px solid; color: var(--ink); }
.checkout-step .back-link { margin-top: 22px; }
.sn-shipping-methods .radio-line { cursor: pointer; transition: border-color 0.25s; }
.sn-shipping-methods .radio-line:has(input:checked) { border-color: var(--ink); }
.sn-shipping-methods .radio-line strong { font-weight: 400; font-size: 15px; }
.sn-no-rates { padding: 30px; border: 1px dashed var(--line); text-align: center; }

#payment .wc_payment_methods { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
#payment .wc_payment_method { border: 1px solid var(--line); padding: 20px; transition: border-color 0.25s; }
#payment .wc_payment_method:has(input:checked) { border-color: var(--ink); }
#payment .wc_payment_method > input { margin-right: 12px; vertical-align: middle; }
#payment .wc_payment_method > label { font-size: 14px; font-weight: 500; cursor: pointer; }
#payment .wc_payment_method > label img { display: inline-block; max-height: 22px; margin-left: 8px; vertical-align: middle; }
#payment .payment_box { margin-top: 14px; font-size: 14px; line-height: 1.7; color: #777066; }
#payment .payment_box fieldset { border: 0; }
#payment .payment_box input.input-text { border-bottom: 1px solid var(--line); }
#payment .place-order { display: flex; flex-direction: column; gap: 18px; }
#payment .woocommerce-privacy-policy-text { font-size: 13px; line-height: 1.7; color: #777066; }
#payment .woocommerce-privacy-policy-text a, #payment .woocommerce-terms-and-conditions-link { border-bottom: 1px solid; color: var(--ink); }
#payment .woocommerce-terms-and-conditions-wrapper .form-row { flex-direction: row; }
#payment #place_order {
  width: 100%; padding: 19px 22px; border: 1px solid var(--ink); background: var(--ink); color: white;
  font-size: 13px; letter-spacing: 0.16em; text-align: left; cursor: pointer; transition: 0.3s;
}
#payment #place_order:hover { background: transparent; color: var(--ink); }
.checkout-page .blockUI.blockOverlay { background: rgba(248, 246, 241, 0.6) !important; }
.checkout-summary .woocommerce-checkout-review-order-table { position: sticky; top: 30px; }
.checkout-item strong .amount { font-weight: 400; }
.summary-total b { font-weight: 400; }
.summary-total .grand-total b { font-weight: 500; }
.summary-total .grand-total small { font-size: 13px; letter-spacing: 0.1em; color: #777066; margin-right: 4px; }
.woocommerce-checkout > .woocommerce-NoticeGroup, form.checkout > .woocommerce-NoticeGroup { padding: 30px 8vw 0; }

/* ---------- Thank you ---------- */
.sn-thankyou { padding: 170px 8vw 140px; max-width: 1100px; margin: 0 auto; }
.sn-thankyou h1 { font-family: var(--serif); font-size: clamp(50px, 6vw, 92px); font-weight: 400; line-height: 0.95; margin: 22px 0 25px; }
.sn-thankyou-lead { max-width: 560px; line-height: 1.8; color: #666158; }
.sn-thankyou .add-button { width: auto; display: inline-flex; margin-top: 30px; }
.sn-order-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 55px 0; background: var(--line); border: 1px solid var(--line); }
.sn-order-overview li { background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.sn-order-overview span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #777066; }
.sn-order-overview strong { font-weight: 400; font-size: 14px; }
.sn-thankyou-details h2, .sn-account h2, .woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font-family: var(--serif); font-size: 34px; font-weight: 400; margin: 40px 0 20px; }
.sn-thankyou-details table, .woocommerce-MyAccount-content table { width: 100%; font-size: 14px; border-collapse: collapse; }
.sn-thankyou-details th, .sn-thankyou-details td, .woocommerce-MyAccount-content th, .woocommerce-MyAccount-content td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.sn-thankyou-details thead th, .woocommerce-MyAccount-content thead th { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #777066; }
.sn-thankyou-details address, .woocommerce-MyAccount-content address { font-style: normal; line-height: 1.8; font-size: 14px; }
.sn-thankyou-details .wc-item-meta { margin-top: 6px; font-size: 14px; color: #777066; }
.sn-thankyou-details .wc-item-meta p { display: inline; }
.sn-thankyou-details .woocommerce-bacs-bank-details, .sn-thankyou-details > p { font-size: 14px; line-height: 1.7; }

/* ---------- Account ---------- */
.account-page .sn-account-tabs { display: flex; justify-content: center; gap: 30px; margin-bottom: 35px; }
.account-page .sn-account-tabs button { font-size: 12px; letter-spacing: 0.15em; color: #aaa398; padding-bottom: 4px; border-bottom: 1px solid transparent; cursor: pointer; }
.account-page .sn-account-tabs button.active { color: var(--ink); border-color: var(--ink); }
.account-page label { display: flex; flex-direction: column; gap: 10px; }
.account-page form .add-button { margin-top: 5px; }
.account-page .sn-lost { font-size: 13px; color: #777066; text-align: center; border-bottom: 0 !important; text-decoration: underline; }
.account-page .sn-small { font-size: 14px; margin: 0 !important; }
.account-page .woocommerce-privacy-policy-text p { font-size: 13px; line-height: 1.6; margin: 0; }
.account-page .woocommerce-error, .account-page .woocommerce-message { text-align: left; }
.sn-account { padding: 150px 8vw 140px; }
.sn-account-head h1 { font-family: var(--serif); font-size: clamp(50px, 6vw, 92px); font-weight: 400; line-height: 0.95; margin: 22px 0 60px; }
.sn-account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 6vw; align-items: start; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #777066; transition: color 0.2s, padding 0.3s; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover { color: var(--ink); padding-left: 8px; }
.woocommerce-MyAccount-content { font-size: 15px; line-height: 1.8; color: #4f4b45; }
.woocommerce-MyAccount-content > p:first-child { margin-top: 0; }
.woocommerce-MyAccount-content p + p { margin-top: 12px; }
.woocommerce-MyAccount-content a { border-bottom: 1px solid; color: var(--ink); }
.woocommerce-MyAccount-content .button, .woocommerce-MyAccount-content button[type="submit"] {
  display: inline-flex; padding: 14px 22px; border: 1px solid var(--ink); background: var(--ink); color: white;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.woocommerce-MyAccount-content .form-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.woocommerce-MyAccount-content label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.woocommerce-MyAccount-content input.input-text, .woocommerce-MyAccount-content select { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; outline: none; }
.woocommerce-MyAccount-content fieldset { border: 0; margin-top: 30px; }
.woocommerce-MyAccount-content legend { font-family: var(--serif); font-size: 26px; margin-bottom: 15px; }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* ---------- Information pages (block content) ---------- */
.sn-entry > * + * { margin-top: 18px; }
.sn-entry ul, .sn-entry ol { padding-left: 20px; line-height: 1.9; color: #625d55; }
.sn-entry ul { list-style: disc; }
.sn-entry ol { list-style: decimal; }
.sn-entry a { border-bottom: 1px solid; }
.policy-content h2:not(:first-child) { margin-top: 70px; }
.policy-content .wp-block-details { border-top: 1px solid var(--line); margin: 0; }
.policy-content .wp-block-details + :not(.wp-block-details) { border-top: 1px solid var(--line); padding-top: 40px; }
.policy-content .wp-block-details:last-child { border-bottom: 1px solid var(--line); }
.policy-content .wp-block-details summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
}
.policy-content .wp-block-details summary::-webkit-details-marker { display: none; }
.policy-content .wp-block-details summary::after {
  content: ""; width: 16px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252421' stroke-width='1.35'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s;
}
.policy-content .wp-block-details[open] summary::after { transform: rotate(45deg); }
.policy-content .wp-block-details > p { padding: 0 30px 24px 0; margin: 0; font-size: 15px; line-height: 1.8; }
.about-long .sn-entry p { margin-bottom: 25px; line-height: 1.85; color: #666158; }

/* ---------- Art ---------- */
.art-info .sn-art-details { margin-top: 4px; font-size: 13px; color: #8d8579; }
.art-disclaimer a { border-bottom: 1px solid; }
.art-image img { transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
a.art-image:hover img { transform: scale(1.03); }
.project .image-reveal { cursor: zoom-in; }
.portfolio-section .project .image-reveal { cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .sn-colorways { padding: 80px 0 90px 20px; }
  .sn-colorways .section-heading { padding-right: 20px; }
  .sn-carousel-nav { display: none; }
  .sn-carousel-track { grid-auto-columns: 74vw; gap: 14px !important; padding-right: 20px; }
  .sn-carousel-progress { margin-right: 20px; }
  .related .sn-carousel-track { grid-auto-columns: 78vw; }
  .related .product-image { height: 95vw !important; }
  .sn-slide-image { height: 92vw; }
  .filters { backdrop-filter: none; background: var(--paper); }
  .filters .sn-dropdown-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; max-height: 70vh; border-left: 0; border-right: 0; animation-name: snSheet; }
  @keyframes snSheet { from { transform: translateY(100%); } }
  .checkout-page .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
  .sn-order-overview { grid-template-columns: 1fr 1fr; }
  .sn-account-layout { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-navigation ul { flex-direction: row; overflow-x: auto; border: 0; gap: 20px; }
  .woocommerce-MyAccount-navigation li a { white-space: nowrap; border: 0; }
  .woocommerce-Addresses { grid-template-columns: 1fr; }
  .checkout-summary .woocommerce-checkout-review-order-table { position: static; }
  .lightbox .sn-lb-nav { left: 8px; }
  .lightbox .sn-lb-next { left: auto; right: 8px; }
}
@media (max-width: 520px) {
  .inquiry-panel .sn-field-row { grid-template-columns: 1fr; }
  .checkout-page .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
  .sn-thankyou { padding: 130px 20px 100px; }
  .sn-account { padding: 120px 20px 100px; }
}
.about-image, .about-portrait, .product-story-image { overflow: hidden; }
.sn-order-overview strong * { font-size: inherit; color: inherit; }
.sn-colorways .section-heading { display: flex; justify-content: space-between; gap: 30px; }

/* =========================================================================
   v1.1: larger type fixes, rug carousel, quick add, masonry grids,
   art showcase, image reveal animations
   ========================================================================= */
.bag-button span { width: 18px !important; height: 18px !important; font-size: 10px !important; }
.checkout-qty { font-size: 11px !important; }

/* ---------- Product card: colors + quick add ---------- */
.sn-card-media { position: relative; overflow: hidden; }
.sn-card-media .view-label { bottom: auto; top: 18px; left: 18px; }
.product-meta { gap: 18px; }
.product-meta .sn-card-colors { margin-top: 6px; font-size: 13px; line-height: 1.5; color: #8d8579; }
.mini-swatches { flex-wrap: wrap; justify-content: flex-end; max-width: 90px; }
.mini-swatches span { width: 16px; height: 16px; outline: 1px solid transparent; outline-offset: 2px; transition: transform 0.25s, outline-color 0.25s; }
.mini-swatches span.active { outline-color: var(--ink); }
.sn-quick {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
  display: grid; grid-template-columns: 1fr auto; background: rgba(248, 246, 241, 0.97);
  box-shadow: 0 12px 30px rgba(20, 18, 15, 0.16);
  opacity: 0; transform: translateY(calc(100% + 24px));
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .sn-quick, .sn-quick:focus-within, .sn-quick.is-busy { opacity: 1; transform: none; }
.sn-quick select {
  width: 100%; min-width: 0; padding: 15px 34px 15px 16px; border: 0; font-size: 13px; letter-spacing: 0.02em; cursor: pointer; appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23252421' stroke-width='1.35'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
}
.sn-quick-add {
  display: flex; align-items: center; gap: 9px; padding: 0 18px; background: var(--ink); color: white;
  font-size: 12px; letter-spacing: 0.14em; white-space: nowrap; cursor: pointer; transition: background 0.3s;
}
.sn-quick-add:hover { background: #4a463f; }
.sn-quick-add svg { width: 17px; flex: none; }
.sn-quick-add:disabled { opacity: 0.6; cursor: wait; }
@media (hover: none) {
  .sn-quick { position: static; opacity: 1; transform: none; box-shadow: none; border: 1px solid var(--line); border-top: 0; }
}

/* ---------- Home: rug collection carousel ---------- */
.sn-collection-carousel { overflow: hidden; padding-right: 0; }
.sn-collection-carousel .section-heading { margin-right: 5vw; }
.sn-heading-side { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.sn-heading-side > p { max-width: 430px; font-size: 15px; line-height: 1.8; color: #625d54; }
.sn-product-track { grid-auto-columns: clamp(280px, 28vw, 430px); gap: 2.4vw !important; }
.sn-product-track .product-card { margin-top: 0 !important; }
.sn-product-track .product-image { height: clamp(360px, 33vw, 520px) !important; }
.sn-collection-carousel .sn-carousel-progress { margin-right: 5vw; }

/* ---------- Masonry grids ---------- */
.sn-masonry { display: block !important; column-gap: 2.2vw; }
.portfolio-section.sn-masonry { column-count: 2; }
.portfolio-page-grid.sn-masonry, .collection-page-grid.sn-masonry, .art-grid.sn-masonry { column-count: 3; }
.sn-masonry > .sn-m {
  display: inline-block; width: 100% !important; vertical-align: top; break-inside: avoid;
  margin: 0 0 2.6vw !important; grid-column: auto !important;
}
.collection-page-grid.sn-masonry > .sn-m { margin-bottom: 3.4vw !important; }
.sn-m--0 { --h: min(360px, 25vw); } .sn-m--1 { --h: min(270px, 19vw); } .sn-m--2 { --h: min(320px, 22vw); }
.sn-m--3 { --h: min(285px, 20vw); } .sn-m--4 { --h: min(380px, 26vw); } .sn-m--5 { --h: min(300px, 21vw); }
.portfolio-section .sn-m--0 { --h: min(400px, 30vw); } .portfolio-section .sn-m--1 { --h: min(300px, 23vw); } .portfolio-section .sn-m--2 { --h: min(340px, 26vw); }
.portfolio-section .sn-m--3 { --h: min(300px, 23vw); } .portfolio-section .sn-m--4 { --h: min(440px, 33vw); } .portfolio-section .sn-m--5 { --h: min(300px, 23vw); }
.sn-masonry .project img, .sn-masonry .art-image img { height: var(--h) !important; max-height: none !important; }
.sn-masonry .product-image { height: calc(var(--h) + 60px) !important; }
.portfolio-page-grid.sn-masonry { padding-top: 10px; }
.art-page .art-grid.sn-masonry .art-item { margin-top: 0; }
.sn-masonry .art-info h3, .sn-masonry .project-caption h3 { font-size: 22px; }

/* ---------- Image reveal (wipe) on scroll ---------- */
.sn-masonry .reveal .image-reveal, .sn-masonry .reveal .art-image, .sn-masonry .reveal .sn-card-media,
.sn-product-track .reveal .sn-card-media, .about-image.reveal img, .product-story-image.reveal img, .service-list .reveal .service-image {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s cubic-bezier(0.77, 0, 0.18, 1);
  transition-delay: inherit;
}
.sn-masonry .reveal.is-visible .image-reveal, .sn-masonry .reveal.is-visible .art-image, .sn-masonry .reveal.is-visible .sn-card-media,
.sn-product-track .reveal.is-visible .sn-card-media, .about-image.reveal.is-visible img, .product-story-image.reveal.is-visible img, .service-list .reveal.is-visible .service-image {
  clip-path: inset(0 0 0 0);
}
.section-heading h2, .intro-section h2 { transition: letter-spacing 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal:not(.is-visible) .section-heading h2, .intro-section .reveal:not(.is-visible) h2 { letter-spacing: 0.02em; }

/* ---------- Home: art showcase ---------- */
.sn-art-showcase { padding: 110px 6vw 120px; background: #141311; color: #f1ede6; overflow: hidden; }
.sn-art-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 70px; }
.sn-art-eyebrow { font-size: 14px; letter-spacing: 0.06em; color: #a9a399; }
.sn-art-head h2 { margin-top: 16px; font-family: var(--serif); font-size: clamp(40px, 4.4vw, 68px); font-weight: 400; line-height: 1.08; }
.sn-outline-btn {
  display: inline-flex; align-items: center; gap: 12px; flex: none; padding: 17px 26px; border: 1px solid rgba(255, 255, 255, 0.55);
  color: white; font-size: 14px; letter-spacing: 0.02em; transition: background 0.35s, color 0.35s, gap 0.35s;
}
.sn-outline-btn svg { width: 18px; }
.sn-outline-btn:hover { background: white; color: #141311; gap: 18px; }
.sn-art-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2vw; align-items: center; }
.sn-art-card { position: relative; display: block; overflow: hidden; height: min(29vw, 410px); color: white; }
.sn-art-card--1, .sn-art-card--3 { height: min(31.5vw, 450px); }
.sn-art-card--2 { height: min(34vw, 490px); }
.sn-art-card.reveal { transform: translateY(90px); }
.sn-art-card.reveal.is-visible { transform: none; }
.sn-art-media { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(0.77, 0, 0.18, 1); transition-delay: inherit; }
.sn-art-card.is-visible .sn-art-media { clip-path: inset(0); }
.sn-art-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: inherit; }
.sn-art-card.is-visible .sn-art-media img { transform: scale(1); }
.sn-art-card.is-visible:hover .sn-art-media img { transform: scale(1.07); transition-delay: 0s; }
.sn-art-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(10, 9, 8, 0.78), transparent); pointer-events: none; transition: opacity 0.5s; }
.sn-art-caption { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.sn-art-card:hover .sn-art-caption { transform: translateY(-6px); }
.sn-art-caption small { font-size: 13px; letter-spacing: 0.04em; color: #ddd6cb; }
.sn-art-caption strong { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); font-weight: 400; line-height: 1.2; }

/* ---------- Responsive (v1.1) ---------- */
@media (max-width: 1100px) {
  .portfolio-page-grid.sn-masonry, .collection-page-grid.sn-masonry, .art-grid.sn-masonry { column-count: 2; }
  .sn-m--0, .sn-m--1, .sn-m--2, .sn-m--3, .sn-m--4, .sn-m--5 { --h: 34vw; }
  .sn-m--1, .sn-m--3 { --h: 26vw; }
}
@media (max-width: 900px) {
  .sn-heading-side { align-items: flex-start; }
  .sn-collection-carousel .section-heading { margin-right: 20px; }
  .sn-product-track { grid-auto-columns: 78vw; gap: 14px !important; }
  .sn-product-track .product-image { height: 98vw !important; max-height: 560px; }
  .sn-masonry { column-gap: 12px; }
  .sn-masonry > .sn-m { margin-bottom: 14px !important; }
  .collection-page-grid.sn-masonry > .sn-m { margin-bottom: 40px !important; }
  .portfolio-section .sn-m--0, .portfolio-section .sn-m--4 { --h: 58vw; }
  .portfolio-section .sn-m--1, .portfolio-section .sn-m--2, .portfolio-section .sn-m--3, .portfolio-section .sn-m--5 { --h: 42vw; }
  .sn-masonry .art-info { display: block; }
  .sn-masonry .art-info h3 { font-size: 18px; }
  .sn-masonry .art-info button { margin-top: 8px; }
  .sn-art-showcase { padding: 85px 20px 90px; }
  .sn-art-head { flex-direction: column; align-items: flex-start; margin-bottom: 45px; }
  .sn-art-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 64vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .sn-art-row::-webkit-scrollbar { display: none; }
  .sn-art-card, .sn-art-card--1, .sn-art-card--2, .sn-art-card--3 { height: 88vw; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .collection-page-grid.sn-masonry { column-count: 1; }
  .collection-page-grid.sn-masonry .product-image { height: 105vw !important; }
  .portfolio-page-grid.sn-masonry .sn-m, .art-grid.sn-masonry .sn-m { --h: 46vw; }
  .portfolio-page-grid.sn-masonry .sn-m--0, .portfolio-page-grid.sn-masonry .sn-m--4, .art-grid.sn-masonry .sn-m--0, .art-grid.sn-masonry .sn-m--4 { --h: 62vw; }
}

/* =========================================================================
   v1.2
   ========================================================================= */
/* Lightbox: image at 70% of the screen. */
.lightbox img { width: auto; height: auto; max-width: 70vw; max-height: 70vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
@media (max-width: 900px) { .lightbox img { max-width: 86vw; max-height: 70vh; } }

/* Home header over the hero: soft dark gradient so the menu always reads. */
.site-header--hero { background: linear-gradient(to bottom, rgba(14, 13, 11, 0.62) 0%, rgba(14, 13, 11, 0.32) 55%, rgba(14, 13, 11, 0) 100%); border-color: rgba(255, 255, 255, 0.16); }
.site-header--hero .desktop-nav a, .site-header--hero .wordmark { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 220px; background: linear-gradient(to bottom, rgba(14, 13, 11, 0.35), transparent); pointer-events: none; }
/* Stripe payment element inside the design */
#payment .payment_box.payment_method_stripe, #payment .payment_box[class*="stripe"] { font-size: 14px; color: var(--ink); }
#payment .wc-stripe-upe-element, #payment .wc-upe-form { margin-top: 10px; }
#payment .woocommerce-SavedPaymentMethods-saveNew { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: 13px; }

/* =========================================================================
   v1.3: client feedback round
   ========================================================================= */

/* ---------- Readable product & art names ---------- */
.product-meta h3 { font-size: 31px; line-height: 1.1; color: #12110f; -webkit-text-stroke: 0.45px currentColor; letter-spacing: 0.005em; }
.product-meta h3 a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .product-meta h3 a { background-size: 100% 1px; }
.product-meta p { color: #57524a; font-size: 15px; }
.product-meta .sn-card-colors { color: #6f685e; font-size: 13px; }
.art-info h3, .sn-masonry .art-info h3 { font-size: 26px; line-height: 1.15; color: #12110f; -webkit-text-stroke: 0.4px currentColor; }
.art-info p { color: #57524a; font-size: 15px; }
.sn-art-caption strong { -webkit-text-stroke: 0.35px currentColor; font-size: clamp(22px, 1.8vw, 28px); }
.sn-slide-meta strong, .cart-line h3, .cart-page-line h2, .checkout-item b { -webkit-text-stroke: 0.3px currentColor; }

/* ---------- Product page readability ---------- */
.product-description { font-family: var(--sans, "DM Sans", sans-serif); font-size: 16px; line-height: 1.8; color: #3c3832; }
.accordion > div { font-size: 15px; line-height: 1.8; color: #4a453e; }
.gallery-main span { display: none; }

/* ---------- Smooth color circles ---------- */
.swatches button, .mini-swatches span {
  border: 0 !important; outline: none !important; border-radius: 50%;
  background-clip: padding-box; -webkit-mask-image: radial-gradient(circle, #000 70%, #000 71%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.swatches { gap: 16px; padding: 5px; }
.swatches button { width: 30px; height: 30px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 4px var(--paper), 0 0 0 5px transparent; -webkit-mask-image: none; }
.swatches button.active { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 0 4px var(--paper), 0 0 0 5px var(--ink); }
.mini-swatches { gap: 9px; padding: 3px; }
.mini-swatches span { width: 17px; height: 17px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 2px var(--paper), 0 0 0 3px transparent; -webkit-mask-image: none; }
.mini-swatches span.active { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14), 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.mini-swatches span:hover { transform: scale(1.15); }

/* ---------- Stable hover video (no crossfade fight) ---------- */
.product-image.has-video .alternate { display: none; }
.product-image .sn-hover-video { transition: opacity 0.5s ease; transform: none; }
.product-image.is-playing .sn-hover-video { transform: none; }

/* ---------- Card size dropdown ---------- */
.sn-quick { overflow: visible; }
.sn-select--card { position: relative; min-width: 0; }
.sn-select--card .sn-select-toggle { height: 100%; border: 0; padding: 14px 14px 14px 16px; grid-template-columns: 1fr auto 14px; gap: 10px; font-size: 14px; background: transparent; }
.sn-select--card .sn-select-toggle svg { width: 14px; }
.sn-select--card .sn-select-price { font-size: 13px; color: #6f685e; }
.sn-select--card .sn-select-list { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; width: max(100%, 230px); max-height: 270px; border-color: var(--line); box-shadow: 0 14px 34px rgba(20, 18, 15, 0.18); transform: translateY(6px); }
.sn-select--card.open .sn-select-list { transform: none; }
.sn-select--card .sn-select-list button { padding: 11px 16px; font-size: 14px; }
.sn-quick-add { font-size: 13px; }

/* ---------- Product page size list: sq ft ---------- */
.sn-select-list button span:first-child small { display: block; margin-top: 2px; font-size: 12px; color: #8a8378; }
.sn-select-list button.active span:first-child small, .sn-select-list button:hover span:first-child small { color: #cfc8bc; }
.sn-size-guide-link { font-size: 13px; letter-spacing: 0.04em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Size guide ---------- */
.sn-size-table { width: 100%; margin: 14px 0 10px; border-collapse: collapse; font-size: 14px; }
.sn-size-table th { padding: 10px 8px 10px 0; text-align: left; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: #6f685e; font-weight: 400; border-bottom: 1px solid var(--ink); }
.sn-size-table td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); color: #2c2925; }
.sn-size-table tr:hover td { background: rgba(37, 36, 33, 0.03); }
.sn-size-note { font-size: 13px; line-height: 1.7; color: #6f685e; }
.sn-size-guide { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; }
.sn-size-guide[hidden] { display: none !important; }
.sn-size-guide-backdrop { position: absolute; inset: 0; border: 0; background: rgba(20, 18, 15, 0.55); backdrop-filter: blur(3px); cursor: pointer; animation: modalFade 0.3s both; }
.sn-size-guide-panel { position: relative; width: min(640px, 100%); max-height: 88vh; overflow-y: auto; padding: 50px 48px 40px; background: var(--paper); animation: panelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both; }
.sn-size-guide-panel h2 { font-family: var(--serif); font-size: 46px; font-weight: 400; margin: 10px 0 14px; }
.sn-size-guide-close { position: absolute; top: 18px; right: 18px; }

/* ---------- Rugs page: livelier states ---------- */
.collection-page-grid .product-card, .sn-product-track .product-card { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s, filter 1s; }
.collection-page-grid .product-card.is-visible:hover { transform: translateY(-6px); }
.sn-card-media { transition: box-shadow 0.6s ease; }
.product-card:hover .sn-card-media { box-shadow: 0 24px 50px rgba(20, 18, 15, 0.14); }
.product-image img:first-child { transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover .product-image img:first-child { transform: scale(1.045); }
.product-image .view-label { transition: opacity 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.filters a.sn-filter-link, .sn-dropdown > button { position: relative; padding: 9px 16px !important; border: 1px solid transparent; border-radius: 40px; transition: border-color 0.3s, background 0.3s, color 0.3s; }
.filters a.sn-filter-link:hover, .sn-dropdown > button:hover { border-color: var(--line); color: var(--ink); }
.filters a.sn-filter-link.active, .sn-dropdown > button.active { border-color: var(--ink); background: var(--ink); color: white !important; border-bottom: 1px solid var(--ink); }
.sn-dropdown-panel a { transition: background 0.2s, padding 0.3s; }
.sn-dropdown-panel a:hover { padding-left: 26px; }

/* ---------- Scroll to top ---------- */
.sn-to-top {
  position: fixed; z-index: 70; right: 26px; bottom: 26px; width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(37, 36, 33, 0.18); border-radius: 50%; background: rgba(248, 246, 241, 0.92); color: var(--ink);
  backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(20, 18, 15, 0.12); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.4s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s, background 0.3s, color 0.3s;
}
.sn-to-top.show { opacity: 1; visibility: visible; transform: none; }
.sn-to-top:hover { background: var(--ink); color: white; }
.sn-to-top svg { width: 20px; transition: transform 0.3s; }
.sn-to-top:hover svg { transform: translateY(-3px); }

/* ---------- Floating hover image (services) ---------- */
.sn-hover-float {
  position: fixed; z-index: 90; left: 0; top: 0; width: 230px; height: 290px; pointer-events: none; overflow: hidden;
  opacity: 0; clip-path: inset(100% 0 0 0); box-shadow: 0 30px 60px rgba(20, 18, 15, 0.25);
  transition: opacity 0.35s ease, clip-path 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}
.sn-hover-float.show { opacity: 1; clip-path: inset(0 0 0 0); }
.sn-hover-float img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
.sn-hover-float.show img { transform: scale(1); }
.sn-hover-float.swap img { animation: snSwap 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes snSwap { from { transform: scale(1.18); filter: brightness(1.15); } to { transform: scale(1); filter: none; } }
[data-hover-img] { cursor: pointer; }

/* ---------- Home services rows ---------- */
.sn-service-rows { margin-top: 70px; border-top: 1px solid var(--line); }
.sn-service-row {
  display: grid; grid-template-columns: 70px minmax(200px, 1fr) 1.3fr 28px; align-items: center; gap: 24px;
  padding: 30px 6px; border-bottom: 1px solid var(--line); transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
}
.sn-service-row:hover { padding-left: 22px; padding-right: 18px; background: rgba(37, 36, 33, 0.035); }
.sn-service-num { font-size: 13px; color: #8a8378; letter-spacing: 0.1em; }
.sn-service-row strong { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 42px); font-weight: 400; -webkit-text-stroke: 0.3px currentColor; }
.sn-service-text { font-size: 15px; line-height: 1.6; color: #5d584f; }
.sn-service-row svg { width: 22px; transition: transform 0.4s; }
.sn-service-row:hover svg { transform: translateX(6px); }
.consult-grid > div { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s, opacity 1s; }
.consult-grid > div.is-visible:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 18, 15, 0.1); }

/* ---------- Art: hover description ---------- */
.sn-art-frame { position: relative; overflow: hidden; }
.sn-art-frame .art-image img { transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease; }
.sn-art-hover {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px;
  padding: 24px; text-align: center; color: var(--ink); pointer-events: none;
  opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sn-art-hover h3 { font-family: var(--serif); font-size: clamp(24px, 2vw, 32px); font-weight: 400; line-height: 1.15; -webkit-text-stroke: 0.4px currentColor; }
.sn-art-hover p { max-width: 280px; font-size: 14px; line-height: 1.6; color: #3c3832; }
.sn-art-hover strong { font-size: 16px; font-weight: 500; letter-spacing: 0.04em; }
.sn-art-hover button { pointer-events: auto; margin-top: 8px; padding: 12px 18px; border: 1px solid var(--ink); background: transparent; font-size: 12px; letter-spacing: 0.14em; cursor: pointer; transition: background 0.3s, color 0.3s; }
.sn-art-hover button:hover { background: var(--ink); color: white; }
.sn-art-hover em { font-style: normal; font-size: 12px; color: #6f685e; letter-spacing: 0.06em; }
.sn-art-frame:hover .art-image img { opacity: 0.16; transform: scale(1.04); }
.sn-art-frame:hover .sn-art-hover { opacity: 1; transform: none; }
.art-item.is-unavailable .art-info p { color: #8d4a35; }
@media (hover: none) { .sn-art-hover { display: none; } }

/* ---------- CAPTCHA (CF7 quiz) ---------- */
.sn-quiz .wpcf7-quiz-label { display: block; margin: 4px 0 2px; font-size: 14px; letter-spacing: 0.02em; text-transform: none; color: var(--ink); }
.sn-quiz input { max-width: 160px; }

@media (max-width: 900px) {
  .sn-service-row { grid-template-columns: 44px 1fr 22px; gap: 14px; padding: 24px 0; }
  .sn-service-text { grid-column: 2 / 3; }
  .sn-service-row svg { grid-row: 1; grid-column: 3; }
  .sn-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  .sn-size-guide-panel { padding: 44px 22px 28px; }
  .sn-size-table { font-size: 13px; }
  .product-meta h3 { font-size: 26px; }
}
#payment .sn-test-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 14px; }
#payment .sn-test-card .form-row-wide { grid-column: 1 / -1; }
#payment .payment_box p { font-size: 14px; color: #4a453e; }

/* =========================================================================
   v1.4: no hover video, smooth zoom, natural-height (uncropped) images
   ========================================================================= */
.sn-zoom img { transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1) !important; will-change: transform; }
.product-card:hover .sn-zoom img, .product-card:hover .product-image img:first-child { transform: scale(1.08); }
.product-image .alternate, .product-image .sn-hover-video { display: none !important; }

/* Rugs + Interiors (and home Interiors): show the whole photo, height follows the image. */
.collection-page-grid.sn-masonry .product-image { height: auto !important; aspect-ratio: auto; }
.collection-page-grid.sn-masonry .product-image img { display: block; height: auto !important; object-fit: initial; }
.sn-masonry .project img { height: auto !important; max-height: none !important; object-fit: initial; }
.sn-masonry .project .image-reveal { background: #ddd7cc; }

/* ---------- v1.5: Load more + home interiors grid ---------- */
.sn-more-hidden { display: none !important; }
.sn-load-more-wrap { display: flex; justify-content: center; padding: 30px 5vw 110px; }
.sn-load-more {
  display: inline-flex; align-items: center; gap: 10px; padding: 18px 38px; border: 1px solid var(--ink);
  background: transparent; color: var(--ink); font-size: 13px; letter-spacing: 0.16em; cursor: pointer;
  transition: background 0.35s, color 0.35s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sn-load-more:hover { background: var(--ink); color: white; transform: translateY(-2px); }
.sn-load-more span { color: inherit; opacity: 0.6; }
.art-page .sn-load-more-wrap { padding-bottom: 40px; }
.portfolio-section.sn-home-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2.2vw; }
.portfolio-section.sn-home-grid .project { margin: 0 !important; width: auto !important; grid-column: auto !important; }
.portfolio-section.sn-home-grid .project img { width: 100%; height: clamp(260px, 30vw, 470px) !important; max-height: none !important; object-fit: cover; }
.portfolio-section.sn-home-grid .reveal .image-reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.25s cubic-bezier(0.77, 0, 0.18, 1); transition-delay: inherit; }
.portfolio-section.sn-home-grid .reveal.is-visible .image-reveal { clip-path: inset(0); }
@media (max-width: 600px) {
  .portfolio-section.sn-home-grid { gap: 10px; }
  .portfolio-section.sn-home-grid .project img { height: 44vw !important; }
}

/* ===== v1.6: one-line logo, Home Collection logo, Interiors grouped by project ===== */
.wordmark, .footer-brand, .menu-wordmark, .checkout-logo a { white-space: nowrap; line-height: 1; }
.wordmark span, .footer-brand span, .menu-wordmark span, .checkout-logo span {
  display: inline; margin: 0; font: inherit; letter-spacing: inherit; font-size: inherit; font-weight: inherit;
}
.wordmark { font-size: clamp(15px, 1.45vw, 21px); }
.footer-brand { font-size: clamp(20px, 2.2vw, 30px); }
@media (max-width: 520px) {
  .wordmark { font-size: 14px; letter-spacing: 0.08em; }
  .site-header .header-actions { gap: 6px; }
}
@media (max-width: 360px) { .wordmark { font-size: 12.5px; letter-spacing: 0.06em; } }

.sn-collection-logo { display: block; margin: 0 0 22px; }
.sn-collection-logo img { display: block; width: auto; height: auto; max-height: 120px; max-width: min(320px, 70vw); object-fit: contain; }
.page-hero .sn-collection-logo, .sn-collection-logo--hero { margin-left: auto; margin-right: auto; }
.sn-collection-logo--product img { max-height: 80px; }
.sn-collection-logo--home img { max-height: 96px; }

.sn-projects { padding: 0 7vw 40px; }
.sn-project { padding: 70px 0 30px; border-top: 1px solid var(--line); }
.sn-project:first-child { border-top: 0; padding-top: 20px; }
.sn-project-head { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end; margin-bottom: 34px; }
.sn-project-num { font-family: var(--serif); font-size: 46px; line-height: 0.9; opacity: 0.35; }
.sn-project-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; margin: 0; }
.sn-project-head p { margin: 10px 0 0; font-size: 15px; opacity: 0.7; }
.sn-project-count { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; white-space: nowrap; }
.sn-project .portfolio-page-grid { padding: 0; }
@media (max-width: 700px) {
  .sn-projects { padding: 0 20px 30px; }
  .sn-project { padding: 50px 0 20px; }
  .sn-project-head { grid-template-columns: 1fr; gap: 8px; }
  .sn-project-num { font-size: 32px; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  .wordmark { font-size: 15px; letter-spacing: 0.08em; margin-right: 18px; }
  .desktop-nav { gap: 16px; }
  .desktop-nav a { font-size: 12px; letter-spacing: 0.1em; }
}

/* ===== v1.7: Interiors as project cards (opens a project page) + Gallery ===== */
.portfolio-section.sn-home-grid .project img { height: clamp(300px, 36vw, 600px) !important; }
.sn-home-grid-name { display: inline-block; margin-top: 16px; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); }
.sn-home-grid-name::after { content: " →"; font-family: var(--sans); font-size: 0.6em; opacity: 0.6; }

.sn-project-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 70px 3.2vw; padding: 20px 8vw 120px; }
.sn-project-cards--3 { grid-template-columns: repeat(3, 1fr); gap: 40px 2.4vw; padding: 0; }
.sn-project-card { display: block; color: inherit; text-decoration: none; text-align: center; }
.sn-project-card-img { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: #e9e4dc; }
.sn-project-card-img img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.sn-project-card:hover .sn-project-card-img img { transform: scale(1.05); }
.sn-project-card-title { display: block; margin-top: 22px; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; }
.sn-project-cards--3 .sn-project-card-title { font-size: clamp(20px, 1.7vw, 26px); }
.sn-project-card-meta { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.55; }

.sn-gallery { padding: 100px 8vw 120px; border-top: 1px solid var(--line); }
.sn-gallery-head { text-align: center; margin-bottom: 50px; }
.sn-gallery-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 58px); margin: 0; }
.sn-gallery-head p { margin: 12px 0 0; opacity: 0.7; }
.sn-gallery .portfolio-page-grid { padding: 0; }

.sn-project-page { padding-top: 140px; }
.sn-project-hero { text-align: center; padding: 30px 8vw 60px; position: relative; }
.sn-project-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 6vw, 92px); line-height: 1; margin: 14px 0 0; }
.sn-project-sub { margin: 18px auto 0; max-width: 560px; font-size: 17px; opacity: 0.75; }
.sn-project-back { display: inline-block; margin-bottom: 34px; font-size: 11px; letter-spacing: 0.24em; opacity: 0.65; color: inherit; text-decoration: none; }
.sn-project-back:hover { opacity: 1; }
.sn-project-photos { column-count: 2; column-gap: 2.4vw; padding: 0 8vw 60px; }
.sn-project-photos .project { break-inside: avoid; margin: 0 0 2.4vw; }
.sn-project-photos .project.sn-project-photo--lead { column-span: all; margin-bottom: 2.4vw; }
.sn-project-photos img { width: 100%; height: auto !important; display: block; }
.sn-project-more { padding: 90px 8vw 130px; border-top: 1px solid var(--line); }
.sn-project-more-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.sn-project-more-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 50px); margin: 0; }
.sn-project-more-head a { font-size: 12px; letter-spacing: 0.24em; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: 4px; text-decoration: none; }

@media (max-width: 900px) {
  .sn-project-cards--3 { grid-template-columns: 1fr 1fr; }
  .sn-project-cards--3 .sn-project-card:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
  .sn-project-cards { grid-template-columns: 1fr; gap: 50px; padding: 10px 20px 80px; }
  .sn-project-cards--3 { grid-template-columns: 1fr 1fr; gap: 24px 12px; padding: 0; }
  .sn-gallery { padding: 70px 20px 80px; }
  .sn-project-page { padding-top: 100px; }
  .sn-project-hero { padding: 20px 20px 40px; }
  .sn-project-photos { column-count: 1; padding: 0 20px 40px; }
  .sn-project-photos .project { margin-bottom: 14px; }
  .sn-project-more { padding: 60px 20px 90px; }
  .portfolio-section.sn-home-grid { grid-template-columns: 1fr; }
  .portfolio-section.sn-home-grid .project img { height: 110vw !important; max-height: 520px !important; }
}
