/* ==========================================================================
   RAVELA — custom styles (complements theme.json)
   ========================================================================== */
:root{
  --rv-ink:var(--wp--preset--color--ink);
  --rv-paper:var(--wp--preset--color--paper);
  --rv-surface:var(--wp--preset--color--surface);
  --rv-line:var(--wp--preset--color--line);
  --rv-graphite:var(--wp--preset--color--graphite);
  --rv-accent:var(--wp--preset--color--accent);
  --rv-mono:var(--wp--preset--font-family--mono);
  --rv-display:var(--wp--preset--font-family--display);
  --rv-ease:cubic-bezier(.2,.7,.2,1);
}
::selection{background:var(--rv-accent);color:var(--rv-ink)}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{text-underline-offset:.2em;text-decoration-thickness:1px}
:where(.wp-site-blocks) > *{margin-block-start:0}

/* ---------- Header ---------- */
.rv-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--rv-paper) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.admin-bar .rv-header{top:32px}
@media (max-width:782px){.admin-bar .rv-header{top:46px}}
.rv-header .wp-block-site-title a{text-decoration:none}
.rv-header .wp-block-navigation a{text-decoration:none;position:relative}
.rv-header .wp-block-navigation a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--rv-accent);transform:scaleX(0);transform-origin:left;transition:transform .25s var(--rv-ease)}
.rv-header .wp-block-navigation a:hover{color:var(--rv-ink)}
.rv-header .wp-block-navigation a:hover::after{transform:scaleX(1)}
.rv-topbar p{margin:0;letter-spacing:.08em}
.wc-block-mini-cart__badge{background:var(--rv-accent)!important;color:var(--rv-ink)!important;border:0!important;font-family:var(--rv-mono)}

/* ---------- Generic helpers ---------- */
.rv-eyebrow,.rv-label{font-family:var(--rv-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--rv-graphite)}
.rv-eyebrow::before{content:"";display:inline-block;width:.6em;height:.6em;background:var(--rv-accent);margin-right:.7em;vertical-align:.05em}
.rv-footer .rv-label{color:var(--rv-line);opacity:.7}
.rv-grid-bg{background-image:linear-gradient(to right,rgba(17,18,20,.05) 1px,transparent 1px),linear-gradient(to bottom,rgba(17,18,20,.05) 1px,transparent 1px);background-size:56px 56px}

/* ---------- Hero ---------- */
.rv-hero{border-bottom:1px solid var(--rv-line)}
.rv-hero h1{font-size:clamp(2.75rem,7.2vw,6.25rem)!important;line-height:.95!important;letter-spacing:-.04em!important;margin-block:1.25rem 1.5rem}
.rv-hero h1 em{font-style:normal;color:var(--rv-accent)}
.rv-hero .rv-lead{max-width:34rem;color:var(--rv-graphite);font-size:1.15rem}
.rv-hero-figure{position:relative;margin:0}
.rv-hero-figure img{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border:1px solid var(--rv-line)}
.rv-hero-figure figcaption{position:absolute;left:0;bottom:0;margin:0;padding:.5rem .75rem;background:var(--rv-ink);color:var(--rv-paper);font-family:var(--rv-mono);font-size:.72rem;letter-spacing:.08em;text-transform:uppercase}
.wp-block-button.is-style-outline>.wp-block-button__link{border:1px solid var(--rv-ink);background:transparent;color:var(--rv-ink)}
.wp-block-button.is-style-outline>.wp-block-button__link:hover{background:var(--rv-ink);color:var(--rv-paper)}

/* ---------- Spec strip ---------- */
.rv-specs .wp-block-column{border-left:1px solid rgba(242,242,239,.18);padding-left:1.25rem}
.rv-specs .wp-block-column:first-child{border-left:0;padding-left:0}
.rv-specs .rv-num{font-family:var(--rv-display);font-size:clamp(1.6rem,3vw,2.3rem);line-height:1;margin:0 0 .4rem;letter-spacing:-.02em}
.rv-specs .rv-cap{font-family:var(--rv-mono);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;opacity:.7;margin:0}
@media (max-width:781px){.rv-specs .wp-block-column{border-left:0;padding-left:0;border-top:1px solid rgba(242,242,239,.18);padding-top:1rem}.rv-specs .wp-block-column:first-child{border-top:0;padding-top:0}}

/* ---------- Section headings ---------- */
.rv-section-head{border-bottom:1px solid var(--rv-ink);padding-bottom:1rem;margin-bottom:2.5rem!important}
.rv-section-head h2{margin:0}
.rv-section-head a{font-family:var(--rv-mono);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;text-decoration:none}
.rv-section-head a:hover{color:var(--rv-accent)}

/* ---------- Process ---------- */
.rv-steps .wp-block-column{border-top:1px solid var(--rv-ink);padding-top:1.25rem}
.rv-steps .rv-step-no{font-family:var(--rv-mono);color:var(--rv-accent);font-size:.85rem;letter-spacing:.1em;margin:0 0 2.5rem}
.rv-steps h3{margin:0 0 .75rem}
.rv-steps p{color:var(--rv-graphite)}

/* ---------- CTA ---------- */
.rv-cta{border:1px solid var(--rv-ink);position:relative}
.rv-cta::before{content:"";position:absolute;top:-1px;left:-1px;width:56px;height:6px;background:var(--rv-accent)}
.rv-cta h2{margin:0}

/* ==========================================================================
   WooCommerce
   ========================================================================== */
/* Classic product grid (shortcode / legacy) */
ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem 1.75rem;margin:0!important;padding:0}
ul.products::before,ul.products::after{display:none!important}
ul.products li.product{width:auto!important;margin:0!important;float:none!important;position:relative}
@media (max-width:900px){ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){ul.products{grid-template-columns:1fr}}
ul.products li.product a{text-decoration:none}
ul.products li.product a img,
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img{background:var(--rv-surface);aspect-ratio:1/1;object-fit:cover;margin:0 0 1rem!important;border:1px solid var(--rv-line);transition:transform .5s var(--rv-ease),filter .3s}
ul.products li.product:hover a img,
.wc-block-product:hover .wc-block-components-product-image img{filter:contrast(1.05)}
ul.products li.product .woocommerce-loop-product__title,
.wc-block-product .wp-block-post-title{font-family:var(--rv-display)!important;font-weight:500;font-size:1.25rem!important;letter-spacing:-.01em;padding:0!important;margin:0 0 .25rem!important;color:var(--rv-ink)}
.wc-block-product .wp-block-post-title a{text-decoration:none}
ul.products li.product .price,
.wc-block-components-product-price,
.wc-block-product .wp-block-woocommerce-product-price{font-family:var(--rv-mono)!important;color:var(--rv-ink)!important;font-size:.95rem!important}
ul.products li.product .button,
.wc-block-components-product-button .wp-block-button__link,
.wc-block-components-product-button__button{display:inline-block;margin-top:.75rem!important;border-radius:0!important;background:transparent!important;color:var(--rv-ink)!important;border:1px solid var(--rv-ink)!important;font-family:var(--rv-mono)!important;font-size:.75rem!important;text-transform:uppercase;letter-spacing:.08em;padding:.6rem 1rem!important;font-weight:400!important}
ul.products li.product .button:hover,
.wc-block-components-product-button .wp-block-button__link:hover,
.wc-block-components-product-button__button:hover{background:var(--rv-ink)!important;color:var(--rv-paper)!important}
ul.products li.product .added_to_cart{font-family:var(--rv-mono);font-size:.75rem;margin-left:.75rem;text-transform:uppercase}
.woocommerce span.onsale,.wc-block-components-product-sale-badge{background:var(--rv-accent)!important;color:var(--rv-ink)!important;border-radius:0!important;min-height:0!important;min-width:0!important;line-height:1!important;padding:.4rem .6rem!important;font-family:var(--rv-mono);font-weight:400!important;text-transform:uppercase;font-size:.7rem!important;border:0!important}

/* SKU / spec labels (product cards) */
.rv-sku{font-family:var(--rv-mono);font-size:.7rem;letter-spacing:.1em;color:var(--rv-graphite);text-transform:uppercase}

/* Block product grid */
.wc-block-product-template{gap:2.5rem 1.75rem!important}
.wc-block-product{text-align:left!important}
.wc-block-product .wc-block-components-product-image{margin-bottom:0!important}

/* Archive title / breadcrumbs / result count */
.woocommerce-breadcrumb,.wc-block-breadcrumbs,.woocommerce-result-count,.wc-block-product-results-count{font-family:var(--rv-mono);font-size:.75rem!important;letter-spacing:.06em;text-transform:uppercase;color:var(--rv-graphite)}
.woocommerce-breadcrumb a,.wc-block-breadcrumbs a{color:var(--rv-graphite)}
.wp-block-query-title,.woocommerce-products-header__title{font-size:clamp(2.5rem,6vw,4.5rem)!important;letter-spacing:-.04em}
.wc-block-catalog-sorting select,.woocommerce-ordering select{border:1px solid var(--rv-line);background:var(--rv-paper);padding:.5rem .75rem;font-family:var(--rv-mono);font-size:.75rem;border-radius:0}

/* Single product */
.single-product .woocommerce-product-gallery img,
.wp-block-woocommerce-product-image-gallery img,
.wp-block-woocommerce-product-gallery img{background:var(--rv-surface);border:1px solid var(--rv-line)}
.single-product h1.wp-block-post-title,.single-product .product_title{font-size:clamp(2.25rem,4.5vw,3.5rem)!important;letter-spacing:-.035em;margin-bottom:.75rem!important}
.single-product .wp-block-woocommerce-product-price,.single-product p.price{font-family:var(--rv-mono);font-size:1.4rem!important;color:var(--rv-ink)!important}
.single-product .wp-block-post-excerpt,.woocommerce-product-details__short-description{color:var(--rv-graphite)}
.single_add_to_cart_button,.wc-block-components-product-add-to-cart-button,.wp-block-woocommerce-add-to-cart-form .button{background:var(--rv-ink)!important;color:var(--rv-paper)!important;border-radius:0!important;font-family:var(--rv-mono)!important;text-transform:uppercase;letter-spacing:.08em;font-weight:400!important;padding:1rem 1.75rem!important;font-size:.85rem!important}
.single_add_to_cart_button:hover,.wp-block-woocommerce-add-to-cart-form .button:hover{background:var(--rv-accent)!important;color:var(--rv-ink)!important}
.quantity .qty,.wc-block-components-quantity-selector{border:1px solid var(--rv-ink)!important;border-radius:0!important;font-family:var(--rv-mono)}
.quantity .qty{padding:.85rem .5rem;width:4.5em}
.variations select{border:1px solid var(--rv-ink);border-radius:0;padding:.6rem .75rem;background:var(--rv-paper);font-family:var(--rv-mono);font-size:.85rem}
.variations th label{font-family:var(--rv-mono);text-transform:uppercase;letter-spacing:.08em;font-size:.75rem}
.product_meta,.wp-block-woocommerce-product-meta{font-family:var(--rv-mono);font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--rv-graphite);border-top:1px solid var(--rv-line);padding-top:1rem}
.woocommerce-tabs .tabs,.wc-tabs,.wp-block-woocommerce-product-details ul.tabs{border-bottom:1px solid var(--rv-ink)!important;padding:0!important}
.woocommerce-tabs .tabs li,.wp-block-woocommerce-product-details ul.tabs li{border:0!important;background:none!important;border-radius:0!important;margin:0 1.5rem 0 0!important;padding:0!important}
.woocommerce-tabs .tabs li::before,.woocommerce-tabs .tabs li::after,.wp-block-woocommerce-product-details ul.tabs li::before,.wp-block-woocommerce-product-details ul.tabs li::after{display:none!important}
.woocommerce-tabs .tabs li a,.wp-block-woocommerce-product-details ul.tabs li a{font-family:var(--rv-mono);text-transform:uppercase;letter-spacing:.08em;font-size:.8rem;font-weight:400!important;padding:.75rem 0!important;text-decoration:none;color:var(--rv-graphite)!important}
.woocommerce-tabs .tabs li.active a,.wp-block-woocommerce-product-details ul.tabs li.active a{color:var(--rv-ink)!important;box-shadow:inset 0 -3px 0 var(--rv-accent)}
.woocommerce table.shop_attributes,.woocommerce table.shop_attributes th,.woocommerce table.shop_attributes td{border:0!important;border-bottom:1px solid var(--rv-line)!important;background:none!important;font-style:normal!important}
.woocommerce table.shop_attributes th{font-family:var(--rv-mono);font-weight:400;text-transform:uppercase;font-size:.75rem;letter-spacing:.08em;width:30%;text-align:left;padding:.75rem 0}
.woocommerce table.shop_attributes td p{padding:.75rem 0!important;margin:0}

/* Notices */
.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-block-components-notice-banner{border-radius:0!important;border:1px solid var(--rv-ink)!important;border-left:6px solid var(--rv-accent)!important;background:var(--rv-paper)!important;color:var(--rv-ink)!important}
.woocommerce-message::before,.woocommerce-info::before{color:var(--rv-accent)!important}

/* Cart / checkout blocks */
.wc-block-cart,.wc-block-checkout{font-size:.95rem}
.wc-block-cart-items__header,.wc-block-components-totals-item__label,.wc-block-components-title,.wc-block-components-checkout-step__title{font-family:var(--rv-mono)!important;text-transform:uppercase;letter-spacing:.06em;font-weight:400!important}
.wc-block-components-checkout-step__title{font-size:.95rem!important}
.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,.wc-block-components-button:not(.is-link){background:var(--rv-ink)!important;color:var(--rv-paper)!important;border-radius:0!important;font-family:var(--rv-mono)!important;text-transform:uppercase;letter-spacing:.08em;font-weight:400!important}
.wc-block-cart__submit-button:hover,.wc-block-components-checkout-place-order-button:hover,.wc-block-components-button:not(.is-link):hover{background:var(--rv-accent)!important;color:var(--rv-ink)!important}
.wc-block-components-text-input input,.wc-block-components-combobox .components-combobox-control__input,.wc-blocks-components-select__select,.wc-block-components-textarea,
.woocommerce form .input-text,.woocommerce form select{border-radius:0!important;border:1px solid var(--rv-line)!important;background:#fff!important}
.wc-block-components-text-input input:focus,.woocommerce form .input-text:focus{border-color:var(--rv-ink)!important;box-shadow:none!important;outline:2px solid var(--rv-accent);outline-offset:-1px}
.wc-block-components-sidebar-layout .wc-block-components-main{padding-right:clamp(1rem,3vw,3rem)}
.wc-block-components-order-summary-item__quantity{background:var(--rv-ink)!important;color:var(--rv-paper)!important;border:0!important;font-family:var(--rv-mono)}
.wc-block-components-radio-control__option,.wc-block-components-radio-control-accordion-option{border-radius:0!important}
.wc-block-components-panel,.wp-block-woocommerce-checkout-order-summary-block{border-radius:0!important}
.wc-block-mini-cart__drawer .wc-block-components-drawer__content{background:var(--rv-paper)}

/* My account */
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0;border-top:1px solid var(--rv-ink)}
.woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--rv-line)}
.woocommerce-MyAccount-navigation li a{display:block;padding:.75rem 0;font-family:var(--rv-mono);text-transform:uppercase;font-size:.8rem;letter-spacing:.06em;text-decoration:none}
.woocommerce-MyAccount-navigation li.is-active a{color:var(--rv-accent)}
.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{border-radius:0;background:var(--rv-ink);color:var(--rv-paper);font-family:var(--rv-mono);font-weight:400;text-transform:uppercase;letter-spacing:.08em}
.woocommerce button.button:hover,.woocommerce a.button:hover{background:var(--rv-accent);color:var(--rv-ink)}

/* ---------- Footer ---------- */
.rv-footer a{color:var(--rv-paper);text-decoration:none}
.rv-footer a:hover{color:var(--rv-accent)}
.rv-footer-list{list-style:none;padding:0;margin:0;font-size:.9rem;line-height:2}
.rv-footer-sep{opacity:.5;border:0;height:1px}

/* ---------- Legal / text pages ---------- */
.rv-note{border-left:4px solid var(--rv-accent);padding:1rem 1.25rem;background:var(--rv-surface);font-size:.9rem}

@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* ---------- Grid fixes (block archive + related) ---------- */
.wc-block-product-template,
ul.wc-block-product-template{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2.75rem 1.75rem!important;list-style:none;padding:0}
.wc-block-product-template > li{width:auto!important;max-width:none!important;margin:0!important}
@media (max-width:900px){.wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:520px){.wc-block-product-template{grid-template-columns:1fr!important}}
.wc-block-product, .wc-block-product *{text-align:left!important}
.wc-block-product .wp-block-button, .wc-block-product .wc-block-components-product-button{justify-content:flex-start!important;align-items:flex-start!important;margin-left:0!important}
.wc-block-product .wp-block-woocommerce-product-price{margin:0!important}
ul.products li.product, ul.products li.product *{text-align:left}
.related ul.products, .upsells ul.products, .wp-block-woocommerce-related-products .wc-block-product-template{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media (max-width:900px){.related ul.products,.wp-block-woocommerce-related-products .wc-block-product-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.related > h2, .wp-block-woocommerce-related-products h2.wp-block-heading{font-size:var(--wp--preset--font-size--xl);border-bottom:1px solid var(--rv-ink);padding-bottom:1rem;margin-bottom:2rem}
.product_meta > span{display:block;margin:.25rem 0}
.product_meta{display:block}
.wc-block-product-template .wp-block-post-title,.wp-block-woocommerce-related-products .wp-block-post-title{font-family:var(--rv-display)!important;font-size:1.25rem!important;font-weight:500;text-align:left!important;margin:0 0 .25rem!important}
.wc-block-product-template .wp-block-post-title a{text-decoration:none}
