/*
Theme Name: Ruou Vang Chile SEO 2026
Theme URI: https://ruouvangchile.vn
Author: Ruou Vang Chile
Description: Theme WordPress/WooCommerce cao cấp, nhẹ, chuẩn Core Web Vitals, tối ưu SEO 2026 cho website rượu vang Chile tại Việt Nam.
Version: 3.0.0
Text Domain: ruouvangchile
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/

:root{
  --rvc-primary:#8f0e22;
  --rvc-primary-2:#650817;
  --rvc-wine:#3a0712;
  --rvc-gold:#b9975b;
  --rvc-gold-2:#e7d4a2;
  --rvc-ink:#151515;
  --rvc-muted:#686868;
  --rvc-border:#eadfce;
  --rvc-bg:#fffaf3;
  --rvc-soft:#f7efe3;
  --rvc-white:#fff;
  --rvc-radius:24px;
  --rvc-shadow:0 24px 70px rgba(48,18,22,.10);
  --rvc-container:1220px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--rvc-ink);background:#fff;line-height:1.65;text-rendering:optimizeLegibility}
body.rvc-menu-open{overflow:hidden}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
.rvc-container{width:min(var(--rvc-container),calc(100% - 32px));margin-inline:auto}
.rvc-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.rvc-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:999px;border:1px solid transparent;font-size:14px;font-weight:900;line-height:1;cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,background .22s ease,border-color .22s ease}
.rvc-btn:hover{transform:translateY(-2px)}
.rvc-btn-primary{color:#fff;background:linear-gradient(135deg,var(--rvc-primary),var(--rvc-primary-2));box-shadow:0 16px 35px rgba(143,14,34,.22)}
.rvc-btn-outline{color:var(--rvc-primary);background:#fff;border-color:rgba(143,14,34,.18)}
.rvc-btn-gold{color:#1d1010;background:linear-gradient(135deg,var(--rvc-gold-2),var(--rvc-gold))}
.rvc-section{padding:76px 0}
.rvc-section-soft{background:var(--rvc-bg)}
.rvc-section-head{max-width:790px;margin:0 auto 36px;text-align:center}
.rvc-eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;color:var(--rvc-primary);background:rgba(143,14,34,.08);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.045em}
.rvc-section-head h2{margin:13px 0 8px;font-size:clamp(30px,4vw,48px);line-height:1.08;letter-spacing:-.045em}
.rvc-section-head p{margin:0;color:var(--rvc-muted)}

/* Header */
.rvc-topbar{background:#f4ede3;border-bottom:1px solid rgba(185,151,91,.25);font-size:13px;color:#52483e}
.rvc-topbar-inner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.rvc-topbar a{color:var(--rvc-primary);font-weight:800}
.rvc-topbar-links{display:flex;gap:16px;white-space:nowrap}
.rvc-header{position:sticky;top:0;z-index:9999;background:rgba(255,255,255,.98);backdrop-filter:blur(14px);border-bottom:1px solid rgba(185,151,91,.22)}
.admin-bar .rvc-header{top:32px}
.rvc-mainbar{min-height:86px;display:grid;grid-template-columns:250px minmax(280px,1fr) auto;align-items:center;gap:22px}
.rvc-logo{display:inline-flex;align-items:center;gap:12px;color:var(--rvc-primary);font-size:22px;font-weight:950;letter-spacing:-.035em;white-space:nowrap}
.rvc-logo img{max-height:58px;width:auto}
.rvc-logo-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;color:#fff;background:radial-gradient(circle at 30% 20%,var(--rvc-gold),var(--rvc-primary));box-shadow:0 12px 28px rgba(143,14,34,.2)}
.rvc-search-form{display:grid;grid-template-columns:1fr 50px;height:50px;border:1px solid rgba(185,151,91,.4);border-radius:999px;background:#fff;overflow:hidden;box-shadow:0 10px 24px rgba(30,10,12,.045)}
.rvc-search-form input[type=search]{border:0;outline:0;padding:0 18px;min-width:0;background:transparent}
.rvc-search-form button{border:0;color:#fff;background:var(--rvc-primary);cursor:pointer;font-size:18px}
.rvc-search-tips{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:7px;color:var(--rvc-muted);font-size:12px}
.rvc-search-tips a:hover{color:var(--rvc-primary)}
.rvc-main-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
.rvc-cart-count{min-width:18px;height:18px;display:inline-grid;place-items:center;margin-left:2px;border-radius:50%;background:#fff;color:var(--rvc-primary);font-size:11px}
.rvc-mobile-toggle{display:none;width:42px;height:42px;padding:0}
.rvc-nav-wrap{border-top:1px solid rgba(185,151,91,.18)}
.rvc-nav-inner{min-height:50px;display:flex;align-items:center;justify-content:center}
.rvc-menu-list,.rvc-menu-list ul{list-style:none!important;margin:0!important;padding:0!important}
.rvc-menu-list{display:flex;align-items:center;justify-content:center;gap:7px}
.rvc-menu-list>li{position:relative}
.rvc-menu-list>li>a,.rvc-mega-trigger{min-height:50px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;color:#313131;font-size:14px;font-weight:950;text-transform:uppercase;letter-spacing:.02em}
.rvc-menu-list>li:hover>a,.rvc-menu-list>li.current-menu-item>a,.rvc-mega-parent:hover .rvc-mega-trigger{color:var(--rvc-primary)}
.rvc-mega{position:absolute;left:50%;top:100%;width:min(1120px,calc(100vw - 40px));transform:translateX(-50%) translateY(12px);padding:28px;border-radius:0 0 28px 28px;background:rgba(255,255,255,.99);border:1px solid rgba(185,151,91,.24);box-shadow:0 30px 80px rgba(22,8,12,.16);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,transform .2s ease,visibility .2s ease}
.rvc-mega-parent:hover .rvc-mega{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.rvc-mega-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.rvc-mega-col{border-right:1px solid rgba(185,151,91,.18);padding-right:20px}
.rvc-mega-col:last-child{border-right:0;padding-right:0}
.rvc-mega-title{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--rvc-primary);font-size:14px;font-weight:950;text-transform:uppercase}
.rvc-mega-col a{display:flex;align-items:center;justify-content:space-between;padding:7px 0;color:#3d3d3d;font-size:14px;font-weight:650}
.rvc-mega-col a:hover{color:var(--rvc-primary)}
.rvc-mega-feature{padding:22px;border-radius:22px;background:radial-gradient(circle at 80% 20%,rgba(185,151,91,.28),transparent 32%),linear-gradient(135deg,#2a0e15,#7c0a1c);color:#fff}
.rvc-mega-feature strong{display:block;font-size:21px;line-height:1.18;margin-bottom:8px}
.rvc-mega-feature p{margin:0 0 14px;color:rgba(255,255,255,.8);font-size:13px}

/* Hero */
.rvc-hero{position:relative;overflow:hidden;background:#12070b}
.rvc-slide{display:none;position:relative;min-height:560px;overflow:hidden}
.rvc-slide.is-active{display:block}
.rvc-slide-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(18,5,8,.9),rgba(18,5,8,.46) 52%,rgba(18,5,8,.12)),var(--rvc-slide-image,linear-gradient(135deg,#300b15,#b9975b));background-size:cover;background-position:center;transform:scale(1.045);animation:rvcHeroZoom 6s ease forwards}
@keyframes rvcHeroZoom{to{transform:scale(1)}}
.rvc-slide-content{position:relative;z-index:2;min-height:560px;display:flex;flex-direction:column;justify-content:center;max-width:650px;padding:72px 0 84px;color:#fff}
.rvc-slide-kicker{display:inline-flex;width:fit-content;align-items:center;gap:8px;margin-bottom:14px;padding:7px 13px;border-radius:999px;color:#fff;background:rgba(255,255,255,.14);backdrop-filter:blur(10px);font-size:12px;font-weight:950;text-transform:uppercase}
.rvc-slide h1,.rvc-slide h2{margin:0 0 16px;font-size:clamp(38px,5vw,68px);line-height:1.04;letter-spacing:-.055em}
.rvc-slide p{max-width:580px;margin:0 0 26px;color:rgba(255,255,255,.83);font-size:18px}
.rvc-slider-controls{position:absolute;left:50%;bottom:24px;z-index:4;transform:translateX(-50%);display:flex;gap:8px}
.rvc-slider-dot{width:34px;height:6px;border:0;border-radius:999px;background:rgba(255,255,255,.35);cursor:pointer}
.rvc-slider-dot.is-active{background:var(--rvc-gold)}
.rvc-hero-trust{position:absolute;right:max(24px,calc((100vw - var(--rvc-container))/2));bottom:36px;z-index:3;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.rvc-hero-trust-item{min-width:105px;padding:14px;border-radius:16px;background:rgba(255,255,255,.12);backdrop-filter:blur(12px);color:#fff;border:1px solid rgba(255,255,255,.16)}
.rvc-hero-trust-item strong{display:block;color:var(--rvc-gold-2);font-size:20px}
.rvc-hero-trust-item span{font-size:12px;color:rgba(255,255,255,.78)}

/* Banners & cards */
.rvc-mini-banners{padding:18px 0;background:#fff}
.rvc-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.rvc-mini-banner{position:relative;overflow:hidden;min-height:178px;border-radius:26px;padding:28px;color:#fff;background:linear-gradient(90deg,rgba(22,8,12,.9),rgba(22,8,12,.36)),var(--rvc-mini-image,linear-gradient(135deg,#6b1020,#c1a15f));background-size:cover;background-position:center;box-shadow:var(--rvc-shadow)}
.rvc-mini-banner h3{max-width:380px;margin:0 0 8px;font-size:26px;line-height:1.13}
.rvc-mini-banner p{max-width:360px;margin:0 0 16px;color:rgba(255,255,255,.8)}
.rvc-category-panel{padding:28px;border-radius:30px;background:#fff;border:1px solid rgba(185,151,91,.24);box-shadow:var(--rvc-shadow)}
.rvc-cat-icons{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}
.rvc-cat-icon-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:130px;padding:15px 10px;border-radius:20px;background:#fffaf4;border:1px solid rgba(185,151,91,.22);text-align:center;transition:transform .22s ease,box-shadow .22s ease,background .22s ease}
.rvc-cat-icon-card:hover{transform:translateY(-6px);background:#fff;box-shadow:0 16px 42px rgba(41,14,18,.1)}
.rvc-cat-icon{width:64px;height:64px;display:grid;place-items:center;margin-bottom:10px;border-radius:50%;background:linear-gradient(135deg,#fff,#f0dfc5);color:var(--rvc-primary);font-size:31px}
.rvc-cat-icon-card h3{margin:0;font-size:14px;line-height:1.25}

/* Woo loops */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:0!important;padding:0!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;padding:18px!important;border:1px solid rgba(185,151,91,.22);border-radius:24px;background:#fff;box-shadow:0 12px 35px rgba(30,10,12,.05);transition:transform .22s ease,box-shadow .22s ease}
.woocommerce ul.products li.product:hover{transform:translateY(-6px);box-shadow:var(--rvc-shadow)}
.woocommerce ul.products li.product img{aspect-ratio:1/1.18;object-fit:contain;margin:0 0 14px!important;background:#fff}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0!important;margin:0 0 8px!important;color:#171717;font-size:15px;line-height:1.35;font-weight:900}
.woocommerce ul.products li.product .price{color:var(--rvc-primary)!important;font-weight:950!important;font-size:16px!important}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{border-radius:999px!important;color:#fff!important;background:var(--rvc-primary)!important;font-weight:900!important;border:0!important;padding:12px 18px!important}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--rvc-primary-2)!important}

/* Collections, blog, trust */
.rvc-collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rvc-collection-card{position:relative;overflow:hidden;min-height:280px;padding:28px;border-radius:28px;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.78)),var(--rvc-card-image,linear-gradient(135deg,#3b0f1a,#9b1832));background-size:cover;background-position:center;box-shadow:var(--rvc-shadow)}
.rvc-collection-card h3{position:absolute;left:24px;right:24px;bottom:58px;margin:0;font-size:28px;line-height:1.08}
.rvc-collection-card span{position:absolute;left:24px;bottom:25px;font-weight:900;color:var(--rvc-gold-2)}
.rvc-benefits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.rvc-benefit{padding:24px;border-radius:24px;background:#fff;border:1px solid rgba(185,151,91,.22);box-shadow:0 12px 35px rgba(30,10,12,.04)}
.rvc-benefit-icon{width:50px;height:50px;display:grid;place-items:center;margin-bottom:14px;border-radius:16px;color:#fff;background:var(--rvc-primary);font-size:22px}
.rvc-benefit h3{margin:0 0 8px;font-size:18px}.rvc-benefit p{margin:0;color:var(--rvc-muted);font-size:14px}
.rvc-seo-box{display:grid;grid-template-columns:.9fr 1.1fr;gap:38px;align-items:center;padding:44px;border-radius:34px;background:#fff;box-shadow:var(--rvc-shadow)}
.rvc-seo-box h2{margin:12px 0 0;font-size:clamp(30px,4vw,46px);line-height:1.1}.rvc-seo-box p,.rvc-seo-box li{color:var(--rvc-muted)}
.rvc-knowledge-grid,.rvc-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.rvc-knowledge-card,.rvc-post-card{overflow:hidden;border-radius:26px;background:#fff;border:1px solid rgba(185,151,91,.22);box-shadow:var(--rvc-shadow);transition:transform .25s ease,box-shadow .25s ease}
.rvc-knowledge-card:hover,.rvc-post-card:hover{transform:translateY(-8px);box-shadow:0 28px 70px rgba(41,14,18,.14)}
.rvc-knowledge-thumb,.rvc-post-thumb{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,#3a0f18,#b9975b)}
.rvc-knowledge-thumb img,.rvc-post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .55s ease}
.rvc-knowledge-card:hover img,.rvc-post-card:hover img{transform:scale(1.08)}
.rvc-knowledge-badge{position:absolute;top:14px;left:14px;padding:6px 10px;border-radius:999px;color:var(--rvc-primary);background:rgba(255,255,255,.94);font-size:12px;font-weight:950}
.rvc-knowledge-content,.rvc-post-content{padding:22px}
.rvc-knowledge-meta,.rvc-post-meta{display:flex;gap:8px;margin-bottom:8px;color:var(--rvc-muted);font-size:13px}
.rvc-knowledge-content h3,.rvc-post-content h2{margin:0 0 10px;font-size:20px;line-height:1.28}
.rvc-knowledge-content p,.rvc-post-content p{margin:0 0 14px;color:var(--rvc-muted)}
.rvc-knowledge-link{color:var(--rvc-primary);font-weight:950}
.rvc-faq{max-width:900px;margin:0 auto}.rvc-faq details{margin-bottom:12px;padding:18px 22px;border-radius:18px;border:1px solid rgba(185,151,91,.22);background:#fff}.rvc-faq summary{cursor:pointer;color:#171717;font-weight:900}.rvc-faq p{margin-bottom:0;color:var(--rvc-muted)}
.rvc-empty{padding:34px;border-radius:24px;text-align:center;background:#fff;border:1px dashed rgba(185,151,91,.4)}

/* Product detail fix */
.rvc-product-page{padding:28px 0 70px;background:#fff}
.rvc-product-breadcrumb{margin-bottom:22px;color:var(--rvc-muted);font-size:13px}
.rvc-product-breadcrumb .woocommerce-breadcrumb{margin:0;padding:0;color:var(--rvc-muted)}
.rvc-product-breadcrumb a{color:var(--rvc-muted)}.rvc-product-breadcrumb a:hover{color:var(--rvc-primary)}
.rvc-single-product-wrap div.product{display:grid;grid-template-columns:minmax(320px,48%) minmax(0,52%);gap:54px;align-items:start}
.rvc-single-product-wrap div.product::before,.rvc-single-product-wrap div.product::after{display:none!important}
.rvc-single-product-wrap .woocommerce-product-gallery{width:100%!important;float:none!important;margin:0!important;opacity:1!important;position:relative}
.rvc-single-product-wrap .woocommerce-product-gallery__wrapper{margin:0}
.rvc-single-product-wrap .woocommerce-product-gallery__image{display:flex!important;align-items:center;justify-content:center;min-height:600px;padding:34px;border-radius:28px;background:radial-gradient(circle at 50% 35%,rgba(185,151,91,.13),transparent 35%),linear-gradient(180deg,#fff,#fffaf4);border:1px solid rgba(185,151,91,.22)}
.rvc-single-product-wrap .woocommerce-product-gallery__image img{width:auto!important;max-width:100%;max-height:560px;object-fit:contain;margin:0 auto}
.rvc-single-product-wrap .flex-control-thumbs{display:flex;gap:10px;margin:14px 0 0!important;padding:0!important;list-style:none}.rvc-single-product-wrap .flex-control-thumbs li{width:74px!important;height:74px;padding:6px;border-radius:14px;border:1px solid rgba(185,151,91,.25);background:#fff;overflow:hidden}
.rvc-single-product-wrap .flex-control-thumbs img{width:100%;height:100%;object-fit:contain}
.rvc-single-product-wrap .summary{width:100%!important;float:none!important;margin:0!important;padding-top:18px}
.rvc-single-product-wrap .product_title{margin:0 0 14px;color:#111;font-size:clamp(34px,4vw,58px);line-height:1.06;letter-spacing:-.055em;font-weight:950}
.rvc-single-product-wrap .summary .price{margin:0 0 22px;color:var(--rvc-primary)!important;font-size:28px!important;line-height:1.2;font-weight:950}
.rvc-single-product-wrap .woocommerce-product-details__short-description{margin:0 0 22px;color:#333;font-size:16px;line-height:1.75}
.rvc-single-product-wrap .rvc-product-info-block{margin:22px 0 26px;padding:20px 0;border-top:1px dashed rgba(143,14,34,.35);border-bottom:1px dashed rgba(143,14,34,.35)}
.rvc-single-product-wrap .rvc-product-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px}
.rvc-single-product-wrap .rvc-product-info-item{display:flex;align-items:flex-start;gap:9px}
.rvc-single-product-wrap .rvc-product-info-icon{width:24px;min-width:24px;color:var(--rvc-primary);font-size:18px;font-weight:950;line-height:1.3;text-align:center}
.rvc-single-product-wrap .rvc-product-info-label{margin-bottom:2px;color:var(--rvc-primary);font-size:12px;font-weight:950;line-height:1.2;text-transform:uppercase;letter-spacing:.02em}
.rvc-single-product-wrap .rvc-product-info-value{color:#333;font-size:13px;line-height:1.35}
.rvc-single-product-wrap .rvc-vintage-row{margin-top:18px;display:flex;align-items:center;gap:14px}.rvc-single-product-wrap .rvc-vintage-label{color:#333;font-weight:850;font-size:14px}.rvc-single-product-wrap .rvc-vintage-value{display:inline-flex;align-items:center;min-height:30px;padding:5px 12px;border-radius:5px;background:var(--rvc-primary);color:#fff;font-size:14px;font-weight:950}
.rvc-single-product-wrap form.cart{display:flex;align-items:center;gap:12px;margin:24px 0 20px!important}.rvc-single-product-wrap .quantity{margin:0!important}.rvc-single-product-wrap .quantity input.qty{width:74px;height:46px;padding:0 10px;border:1px solid rgba(185,151,91,.45);border-radius:8px;background:#fff;color:#111;text-align:center;font-weight:850}
.rvc-single-product-wrap .single_add_to_cart_button{min-height:46px;padding:0 26px!important;border-radius:999px!important;background:var(--rvc-primary)!important;color:#fff!important;font-size:14px!important;font-weight:950!important;letter-spacing:.03em;text-transform:uppercase;box-shadow:0 14px 32px rgba(143,14,34,.2)}
.rvc-single-product-wrap .single_add_to_cart_button:hover{background:var(--rvc-primary-2)!important}
.rvc-single-product-wrap .product_meta{display:none!important}
.rvc-single-product-wrap .woocommerce-tabs{grid-column:1/-1;margin-top:54px;padding-top:34px;border-top:1px solid rgba(185,151,91,.25)}
.rvc-single-product-wrap .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px!important;padding:0!important;list-style:none!important;border:0!important}
.rvc-single-product-wrap .woocommerce-tabs ul.tabs::before,.rvc-single-product-wrap .woocommerce-tabs ul.tabs::after,.rvc-single-product-wrap .woocommerce-tabs ul.tabs li::before,.rvc-single-product-wrap .woocommerce-tabs ul.tabs li::after{display:none!important}
.rvc-single-product-wrap .woocommerce-tabs ul.tabs li{margin:0!important;padding:0!important;border:0!important;background:transparent!important;list-style:none!important}
.rvc-single-product-wrap .woocommerce-tabs ul.tabs li a{display:inline-flex!important;align-items:center;min-height:42px;padding:0 18px!important;border-radius:999px;border:1px solid rgba(185,151,91,.35);background:#fff;color:#333!important;font-size:14px;font-weight:950!important}
.rvc-single-product-wrap .woocommerce-tabs ul.tabs li.active a{background:var(--rvc-primary);border-color:var(--rvc-primary);color:#fff!important}
.rvc-single-product-wrap .woocommerce-Tabs-panel{max-width:900px;color:#333;font-size:16px;line-height:1.8}
.rvc-single-product-wrap .woocommerce-Tabs-panel h2{margin:0 0 16px;color:#111;font-size:34px;line-height:1.15;letter-spacing:-.03em}
.rvc-single-product-wrap .woocommerce-product-attributes{width:100%;border-collapse:collapse;border:1px solid rgba(185,151,91,.22);border-radius:18px;overflow:hidden}.rvc-single-product-wrap .woocommerce-product-attributes th,.rvc-single-product-wrap .woocommerce-product-attributes td{padding:13px 16px;border-bottom:1px solid rgba(185,151,91,.16);text-align:left}.rvc-single-product-wrap .woocommerce-product-attributes th{width:220px;color:var(--rvc-primary);background:#fffaf4;font-weight:950}
.rvc-single-product-wrap .related.products,.rvc-single-product-wrap .upsells.products{grid-column:1/-1;margin-top:60px}.rvc-single-product-wrap .related.products>h2,.rvc-single-product-wrap .upsells.products>h2{margin:0 0 24px;font-size:34px;line-height:1.15;letter-spacing:-.03em;text-align:center}
.rvc-single-product-wrap span.onsale{position:absolute;z-index:3;top:16px;left:16px;min-height:30px;min-width:58px;padding:7px 10px;border-radius:999px;background:var(--rvc-primary);color:#fff;font-size:12px;font-weight:950;line-height:1}
.woocommerce-message,.woocommerce-info,.woocommerce-error{max-width:var(--rvc-container);margin:20px auto!important;padding:16px 18px!important;border-radius:14px;border:1px solid rgba(185,151,91,.28);background:#fffaf4;color:#333}

/* Archive and single */
.rvc-page-title{padding:56px 0;background:radial-gradient(circle at 12% 22%,rgba(185,151,91,.22),transparent 28%),linear-gradient(135deg,#fffaf4,#fff);border-bottom:1px solid rgba(185,151,91,.18)}
.rvc-page-title h1{margin:0;font-size:clamp(34px,5vw,58px);line-height:1.05;letter-spacing:-.05em}.rvc-page-title p{max-width:760px;color:var(--rvc-muted)}
.rvc-single{max-width:860px;margin:0 auto}.rvc-single h1{font-size:clamp(34px,5vw,58px);line-height:1.08;letter-spacing:-.05em}.rvc-single-content{font-size:17px}.rvc-single-content img{border-radius:18px}

/* Footer */
.rvc-footer{color:#fff;background:#13070a;padding:58px 0 28px}.rvc-footer-grid{display:grid;grid-template-columns:1.2fr repeat(3,1fr);gap:34px}.rvc-footer h3,.rvc-footer h4{margin-top:0}.rvc-footer p,.rvc-footer a,.rvc-footer li{color:rgba(255,255,255,.72);font-size:14px}.rvc-footer ul{list-style:none;padding:0;margin:0}.rvc-footer li{margin-bottom:8px}.rvc-footer a:hover{color:#fff}.rvc-footer-bottom{margin-top:34px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.6);font-size:13px}

/* Reveal */
.rvc-reveal{opacity:0;transform:translateY(20px);transition:opacity .55s ease,transform .55s ease}.rvc-reveal.is-visible{opacity:1;transform:translateY(0)}

/* Responsive */
@media (max-width:1100px){.rvc-mainbar{grid-template-columns:220px 1fr auto}.rvc-cat-icons{grid-template-columns:repeat(4,1fr)}}
@media (max-width:980px){
  .admin-bar .rvc-header{top:46px}.rvc-topbar{display:none}.rvc-mainbar{min-height:72px;grid-template-columns:1fr auto}.rvc-search{grid-column:1/-1;order:3;padding-bottom:14px;display:none}.rvc-header.is-search-open .rvc-search{display:block}.rvc-main-actions .rvc-hotline{display:none}.rvc-mobile-toggle{display:inline-flex}.rvc-nav-wrap{position:fixed;inset:72px 0 0;display:none;overflow:auto;background:#fff;border-top:1px solid var(--rvc-border)}.rvc-nav-wrap.is-open{display:block}.rvc-nav-inner{justify-content:flex-start;align-items:flex-start;padding:18px 0 40px}.rvc-menu-list{width:100%;flex-direction:column;align-items:stretch;gap:0}.rvc-menu-list>li>a,.rvc-mega-trigger{justify-content:space-between;min-height:48px;padding:0 4px;border-bottom:1px solid rgba(185,151,91,.18)}.rvc-mega{position:static;width:100%;opacity:1;visibility:visible;pointer-events:auto;transform:none;box-shadow:none;border:0;padding:18px 0 4px;border-radius:0;display:none}.rvc-mega-parent.is-open .rvc-mega{display:block}.rvc-mega-grid{grid-template-columns:1fr;gap:18px}.rvc-mega-col{border-right:0;padding-right:0}.rvc-slide,.rvc-slide-content{min-height:470px}.rvc-hero-trust{position:relative;right:auto;bottom:auto;grid-template-columns:repeat(3,1fr);padding-bottom:18px}.rvc-mini-grid,.rvc-seo-box{grid-template-columns:1fr}.woocommerce ul.products,.rvc-benefits,.rvc-collection-grid,.rvc-knowledge-grid,.rvc-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rvc-footer-grid{grid-template-columns:1fr 1fr}.rvc-single-product-wrap div.product{grid-template-columns:1fr;gap:28px}.rvc-single-product-wrap .woocommerce-product-gallery__image{min-height:420px}.rvc-single-product-wrap .woocommerce-product-gallery__image img{max-height:390px}.rvc-single-product-wrap .product_title{font-size:clamp(32px,8vw,48px)}.rvc-single-product-wrap .rvc-product-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .rvc-container{width:min(100% - 24px,var(--rvc-container))}.rvc-logo{font-size:18px}.rvc-logo-mark{width:40px;height:40px}.rvc-cart-label{display:none}.rvc-slide,.rvc-slide-content{min-height:480px}.rvc-slide-content{padding:46px 0 70px}.rvc-section{padding:54px 0}.rvc-cat-icons{grid-template-columns:repeat(2,1fr)}.woocommerce ul.products,.rvc-benefits,.rvc-collection-grid,.rvc-knowledge-grid,.rvc-post-grid,.rvc-footer-grid{grid-template-columns:1fr}.rvc-category-panel{padding:16px}.rvc-seo-box{padding:26px}.rvc-hero-trust{display:none}.rvc-single-product-wrap .woocommerce-product-gallery__image{min-height:340px;padding:22px}.rvc-single-product-wrap .woocommerce-product-gallery__image img{max-height:320px}.rvc-single-product-wrap .summary{padding-top:0}.rvc-single-product-wrap .product_title{font-size:34px}.rvc-single-product-wrap .summary .price{font-size:24px!important}.rvc-single-product-wrap .rvc-product-info-grid{grid-template-columns:1fr}.rvc-single-product-wrap form.cart{align-items:stretch;flex-direction:column}.rvc-single-product-wrap .quantity input.qty{width:100%}.rvc-single-product-wrap .single_add_to_cart_button{width:100%}.rvc-single-product-wrap .woocommerce-tabs ul.tabs{flex-direction:column}.rvc-single-product-wrap .woocommerce-tabs ul.tabs li a{width:100%;justify-content:center}
}
/* =====================================================
   FIX HIỂN THỊ SẢN PHẨM TRANG CHỦ - RVC
   Sửa ảnh chai bị crop + bỏ dấu chấm đen
   ===================================================== */

/* Bỏ dấu chấm đen trước sản phẩm */
.rvc-home-products ul,
.rvc-home-products li,
.rvc-products-section ul,
.rvc-products-section li,
.rvc-products-grid,
.rvc-products-grid li,
.woocommerce ul.products,
.woocommerce ul.products li.product {
    list-style: none !important;
}

.rvc-home-products li::marker,
.rvc-products-section li::marker,
.rvc-products-grid li::marker,
.woocommerce ul.products li.product::marker {
    content: "" !important;
    display: none !important;
}

/* Grid sản phẩm đều hơn */
.rvc-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Card sản phẩm */
.rvc-product-card,
.rvc-home-products .product,
.woocommerce ul.products li.product {
    list-style: none !important;
    position: relative;
    overflow: hidden;
    border: 1px solid #eadfd1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(48, 18, 22, .06);
}

/* Khung ảnh sản phẩm - quan trọng */
.rvc-home-products .rvc-product-image,
.rvc-home-products .woocommerce-loop-product__link,
.rvc-home-products ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 300px !important;
    padding: 22px !important;
    background: #fff !important;
    overflow: hidden !important;
}

/* Ảnh chai không bị mất đầu/đuôi */
.rvc-home-products .rvc-product-image img,
.rvc-home-products .rvc-home-product-img,
.rvc-home-products .rvc-product-card img,
.rvc-home-products ul.products li.product img,
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 260px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Phần nội dung card */
.rvc-product-info {
    padding: 16px 22px 22px;
}

.rvc-product-info h3 {
    min-height: 50px;
    margin: 0 0 12px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.rvc-product-info h3 a {
    color: #171312;
    text-decoration: none;
}

.rvc-product-info h3 a:hover {
    color: #8f0e22;
}

/* Giá + nút giỏ hàng */
.rvc-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.rvc-price,
.rvc-price .amount {
    color: #8f0e22;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.rvc-cart-btn,
.rvc-product-card .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #8f0e22, #b3122f) !important;
    color: #fff !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Tablet */
@media (max-width: 1100px) {
    .rvc-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 820px) {
    .rvc-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rvc-product-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .rvc-cart-btn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .rvc-products-grid {
        grid-template-columns: 1fr;
    }

    .rvc-home-products .rvc-product-image,
    .rvc-home-products .woocommerce-loop-product__link,
    .rvc-home-products ul.products li.product a.woocommerce-LoopProduct-link {
        height: 330px !important;
    }

    .rvc-home-products .rvc-product-image img,
    .rvc-home-products .rvc-home-product-img,
    .rvc-home-products .rvc-product-card img,
    .rvc-home-products ul.products li.product img {
        max-height: 290px !important;
    }
}
/* =====================================================
   FIX ARCHIVE PRODUCT CATEGORY - RVC
   Sửa trang /danh-muc-san-pham/ruou-vang-chile/
   ===================================================== */

/* Container chính trang shop/category */
.woocommerce.archive .site-main,
.woocommerce-page.archive .site-main,
.tax-product_cat .site-main,
.post-type-archive-product .site-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 70px;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    margin: 0 0 22px !important;
    color: #6c5b52;
    font-size: 14px;
}

/* Tiêu đề danh mục */
.woocommerce-products-header,
.tax-product_cat .woocommerce-products-header {
    margin-bottom: 24px;
}

.woocommerce-products-header__title,
.woocommerce .page-title,
.tax-product_cat .page-title {
    margin: 0 0 16px !important;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #15110f;
}

/* Dòng kết quả + sort */
.woocommerce-result-count {
    margin: 0 0 16px !important;
    color: #6c5b52;
    font-size: 15px;
}

.woocommerce-ordering {
    margin: 0 0 26px !important;
}

.woocommerce-ordering select {
    min-width: 220px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e6d8c8;
    border-radius: 10px;
    background: #fff;
    color: #2b211d;
}

/* Grid sản phẩm danh mục */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

/* Card sản phẩm */
.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: hidden;
    border: 1px solid #eadfd1;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(48, 18, 22, .06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(48, 18, 22, .10);
}

/* Link ảnh */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
}

/* Khung ảnh */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 310px !important;
    max-height: 310px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 auto !important;
    padding: 22px !important;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Tiêu đề sản phẩm */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 52px;
    margin: 0 !important;
    padding: 0 18px 10px !important;
    color: #171312;
    font-size: 17px !important;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: -0.01em;
}

/* Giá */
.woocommerce ul.products li.product .price {
    display: block;
    padding: 0 18px 14px;
    color: #8f0e22 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
}

.woocommerce ul.products li.product .price del {
    display: block;
    color: #8e7d72 !important;
    font-size: 13px;
    opacity: .72;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Nút thêm vào giỏ */
.woocommerce ul.products li.product .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0 18px 20px !important;
    padding: 10px 18px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: linear-gradient(135deg, #8f0e22, #b3122f) !important;
    color: #fff !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: 0 12px 24px rgba(143, 14, 34, .18);
}

.woocommerce ul.products li.product .button:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(143, 14, 34, .26);
}

/* Sale badge */
.woocommerce span.onsale {
    min-width: auto !important;
    min-height: auto !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    background: #8f0e22 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination {
    margin-top: 36px;
}

.woocommerce nav.woocommerce-pagination ul {
    border: 0 !important;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: 0 !important;
    margin: 0 4px !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #eadfd1;
    color: #8f0e22;
    font-weight: 800;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #8f0e22;
    color: #fff;
}

/* Tablet */
@media (max-width: 1100px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 820px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }

    .woocommerce ul.products li.product a img {
        height: 270px !important;
        max-height: 270px !important;
    }
}

@media (max-width: 560px) {
    .woocommerce.archive .site-main,
    .woocommerce-page.archive .site-main,
    .tax-product_cat .site-main,
    .post-type-archive-product .site-main {
        width: min(100% - 24px, 1180px);
        padding-top: 24px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }

    .woocommerce ul.products li.product a img {
        height: 320px !important;
        max-height: 320px !important;
    }
}