/*
Theme Name: RVC Child
Template: twentytwentyfour
Version: 1.2.0
*/
:root{
  --rvc-charcoal:#2B2B2B; --rvc-saddle:#7A5230; --rvc-sand:#E9DFD1; --rvc-sage:#6F7C68; --rvc-cream:#FAF8F5; --rvc-gold:#C6A15B;
}
body{ background:var(--rvc-cream); color:var(--rvc-charcoal); }
h1,h2,h3,h4{ font-family:"Cinzel", serif; letter-spacing:.01em; }
body, p, li, small{ font-family:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/***** Buttons *****/
.wp-element-button, .wp-block-button__link{ border-radius:999px; padding:.8rem 1.4rem; border:2px solid var(--rvc-saddle); background:var(--rvc-saddle); color:#fff; }
.wp-element-button:is(:hover,:focus){ background:var(--rvc-gold); border-color:var(--rvc-gold); color:#111; }
.is-style-outline .wp-block-button__link{ background:transparent; color:var(--rvc-saddle); }
.is-style-outline .wp-block-button__link:hover{ background:var(--rvc-sand); }

/***** Header / Mini-cart *****/
.site-header, .wp-site-blocks > header{ backdrop-filter:saturate(160%) blur(6px); background:rgb(250 248 245 / .85); border-bottom:1px solid #e8e1d7; }
.rvc-header-icons{ display:flex; align-items:center; gap:14px; }
.rvc-mini-cart .wc-block-mini-cart__button{ border:2px solid var(--rvc-saddle); }
.rvc-mini-cart .wc-block-mini-cart__button:hover{ background:var(--rvc-gold); border-color:var(--rvc-gold); color:#111; }

/***** Product tiles *****/
.wc-block-grid__product{ background:#fff; border:1px solid #eee4d9; border-radius:16px; padding:14px; }
.wc-block-components-product-summary, .wc-block-grid__product-title{ font-weight:600; }
.wc-block-components-product-badge{ background:var(--rvc-sage); }

/***** Wishlist button (YITH) *****/
.rvc-wishlist-btn .yith-wcwl-add-to-wishlist a, .rvc-wishlist-btn a.add_to_wishlist{ 
  border:2px solid var(--rvc-saddle); border-radius:999px; padding:.55rem 1rem; font-weight:600; color:var(--rvc-saddle);
}
.rvc-wishlist-btn .yith-wcwl-add-to-wishlist a:hover{ background:var(--rvc-sand); }
.single-product .rvc-wishlist-btn{ margin-top:.75rem; }

/***** Sticky Add-to-Cart (mobile) *****/
.rvc-sticky-atc{ position:fixed; left:0; right:0; bottom:0; z-index:9999; background:#fff; border-top:1px solid #e8e1d7; padding:.6rem .8rem; display:none; align-items:center; gap:.6rem; box-shadow:0 -8px 24px rgba(0,0,0,.08); }
.rvc-sticky-atc.show{ display:flex; }
.rvc-sticky-atc .title{ font-weight:700; font-size:14px; color:var(--rvc-saddle); }
.rvc-sticky-atc .price{ font-weight:600; }
.rvc-sticky-atc input.qty{ width:56px; text-align:center; padding:.4rem; border:1px solid #ddd; border-radius:8px; }
.rvc-sticky-atc .btn{ margin-left:auto; border-radius:999px; padding:.6rem 1.1rem; border:2px solid var(--rvc-saddle); background:var(--rvc-saddle); color:#fff; font-weight:700; }
@media(min-width: 768px){ .rvc-sticky-atc{ display:none !important; } }

/***** Cart Drawer (confirmation) *****/
.rvc-cart-drawer{ position:fixed; top:0; right:-420px; width:360px; height:100vh; background:#fff; box-shadow:-10px 0 30px rgba(0,0,0,.12); transition:right .28s ease; z-index:10000; display:flex; flex-direction:column; }
.rvc-cart-drawer.open{ right:0; }
.rvc-cart-drawer-header{ display:flex; justify-content:space-between; align-items:center; padding:14px; border-bottom:1px solid #eee4d9; }
.rvc-cart-drawer-body{ padding:14px; overflow:auto; }
.rvc-cart-drawer .actions{ display:flex; gap:8px; padding:14px; margin-top:auto; border-top:1px solid #eee4d9; }
.rvc-cart-drawer .actions a{ flex:1; text-align:center; border-radius:999px; padding:.7rem 1rem; font-weight:700; text-decoration:none; }
.rvc-cart-drawer .btn-primary{ background:var(--rvc-saddle); color:#fff; border:2px solid var(--rvc-saddle); }
.rvc-cart-drawer .btn-secondary{ background:#fff; color:var(--rvc-saddle); border:2px solid var(--rvc-saddle); }
.rvc-cart-drawer .thumb{ width:64px; height:64px; object-fit:cover; border:1px solid #eee4d9; border-radius:8px; margin-right:10px; }
.rvc-cart-drawer .line{ display:flex; gap:10px; align-items:center; margin-bottom:8px; }
.rvc-cart-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.28); opacity:0; visibility:hidden; transition:opacity .2s ease; z-index:9998; }
.rvc-cart-overlay.show{ opacity:1; visibility:visible; }
