/* ===== REVIANA DESIGN SYSTEM — Dark Green + Gold ===== */

/* NZ Origin Announcement Bar */
.rv-nz-bar { background: var(--rv-green, #2D5A27); color: #fff; text-align: center; padding: 8px 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; position: relative; z-index: 1001; }
.rv-nz-bar-inner { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.rv-nz-bar-sep { opacity: 0.4; }
@media (max-width: 640px) { .rv-nz-bar { font-size: 0.65rem; padding: 6px 12px; } .rv-nz-bar-sep:last-of-type, .rv-nz-bar-inner > span:last-child { display: none; } }

:root {
    --rv-black: #1A2E1A;
    --rv-charcoal: #243524;
    --rv-dark: #2E3F2E;
    --rv-green: #2D5A27;
    --rv-green-hover: #245020;
    --rv-green-light: #3A7233;
    --rv-green-soft: rgba(45,90,39,0.06);
    --rv-gold: #C5993A;
    --rv-gold-hover: #B08830;
    --rv-gold-light: #D4AD54;
    --rv-gold-soft: rgba(197,153,58,0.08);
    --rv-cream: #F7F5EF;
    --rv-cream-warm: #F2EFE5;
    --rv-warm-white: #FDFCF8;
    --rv-white: #FFFFFF;
    --rv-text: #2A2E2A;
    --rv-text-light: #5A6158;
    --rv-text-muted: #919A8E;
    --rv-border: #DED9CE;
    --rv-border-light: #EBE7DD;
    --rv-sage: #6B9E5B;
    --rv-error: #C44;
    --rv-radius: 12px;
    --rv-radius-lg: 18px;
    --rv-shadow-sm: 0 2px 12px rgba(26,46,26,0.04);
    --rv-shadow-md: 0 8px 28px rgba(26,46,26,0.07);
    --rv-shadow-lg: 0 20px 48px rgba(26,46,26,0.10);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--rv-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0; padding: 0;
    background: var(--rv-warm-white);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0; color: var(--rv-black); }
h4, h5, h6 { font-family: 'DM Sans', sans-serif; margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; }
button { font-family: inherit; }
.d-none { display: none !important; }

/* ===== HEADER ===== */
.rv-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.rv-header.scrolled { border-bottom-color: var(--rv-border-light); box-shadow: 0 1px 24px rgba(0,0,0,0.03); }
.rv-header-inner { max-width: 1240px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; }
.rv-logo { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 600; letter-spacing: 0.2em; color: var(--rv-black); }
.rv-nav { display: flex; gap: 36px; }
.rv-nav a { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; color: var(--rv-text-light); transition: color 0.25s; text-transform: uppercase; }
.rv-nav a:hover { color: var(--rv-green); }
.rv-header-actions { display: flex; align-items: center; gap: 14px; }
.rv-cart-trigger { position: relative; color: var(--rv-black); transition: color 0.25s; cursor: pointer; background: none; border: none; padding: 4px; }
.rv-cart-trigger:hover { color: var(--rv-green); }
.rv-cart-badge {
    position: absolute; top: -5px; right: -8px;
    background: var(--rv-green); color: var(--rv-white);
    font-size: 0.58rem; font-weight: 800; width: 17px; height: 17px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.rv-menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 26px; height: 18px; position: relative; padding: 0; }
.rv-menu-toggle span { display: block; width: 100%; height: 1.5px; background: var(--rv-black); transition: all 0.3s; position: absolute; left: 0; }
.rv-menu-toggle span:first-child { top: 0; }
.rv-menu-toggle span:last-child { bottom: 0; }
.rv-menu-toggle.open span:first-child { top: 50%; transform: rotate(45deg) translateY(-50%); }
.rv-menu-toggle.open span:last-child { bottom: 50%; transform: rotate(-45deg) translateY(50%); }

.rv-mobile-menu { display: none; position: fixed; inset: 0; z-index: 998; background: var(--rv-white); padding: 100px 40px 40px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.rv-mobile-menu.open { opacity: 1; pointer-events: auto; }
.rv-mobile-menu nav { display: flex; flex-direction: column; gap: 28px; }
.rv-mobile-menu nav a { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--rv-black); }

/* ===== SLIDE-OUT AJAX CART ===== */
.rv-cart-overlay { position: fixed; inset: 0; z-index: 9998; background: rgba(26,46,26,0.3); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.rv-cart-overlay.open { opacity: 1; pointer-events: auto; }
.rv-cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999;
    width: 420px; max-width: 92vw; background: var(--rv-white);
    box-shadow: -8px 0 40px rgba(26,46,26,0.1);
    transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
}
.rv-cart-drawer.open { transform: translateX(0); }
.rv-drawer-header { padding: 20px 24px; border-bottom: 1px solid var(--rv-border-light); display: flex; align-items: center; justify-content: space-between; }
.rv-drawer-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--rv-black); }
.rv-drawer-count { font-size: 0.78rem; color: var(--rv-text-muted); font-weight: 500; }
.rv-drawer-close { background: none; border: none; cursor: pointer; color: var(--rv-text-muted); padding: 4px; transition: color 0.2s; }
.rv-drawer-close:hover { color: var(--rv-black); }
.rv-drawer-items { flex: 1; overflow-y: auto; padding: 0; }
.rv-drawer-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 16px 24px; border-bottom: 1px solid var(--rv-border-light); align-items: center; }
.rv-drawer-item-img { width: 56px; height: 56px; border-radius: 8px; background: var(--rv-cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rv-drawer-item-img img { width: 80%; height: 80%; object-fit: contain; }
.rv-drawer-item-name { font-weight: 600; font-size: 0.85rem; color: var(--rv-black); margin-bottom: 2px; }
.rv-drawer-item-meta { font-size: 0.73rem; color: var(--rv-text-muted); }
.rv-drawer-item-right { text-align: right; }
.rv-drawer-item-price { font-weight: 700; font-size: 0.85rem; color: var(--rv-black); margin-bottom: 6px; }
.rv-drawer-item-actions { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.rv-drawer-qty-btn { width: 22px; height: 22px; border: 1px solid var(--rv-border); background: var(--rv-white); border-radius: 4px; cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--rv-text); }
.rv-drawer-qty-btn:hover { border-color: var(--rv-green); color: var(--rv-green); }
.rv-drawer-qty-val { min-width: 18px; text-align: center; font-weight: 700; font-size: 0.78rem; }
.rv-drawer-remove { background: none; border: none; cursor: pointer; color: var(--rv-text-muted); padding: 0; margin-left: 8px; opacity: 0.4; transition: opacity 0.2s, color 0.2s; }
.rv-drawer-remove:hover { opacity: 1; color: var(--rv-error); }
.rv-drawer-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; }
.rv-drawer-empty p { font-size: 0.92rem; color: var(--rv-text-muted); }
.rv-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--rv-border-light); background: var(--rv-cream); }
.rv-drawer-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.rv-drawer-subtotal-label { font-size: 0.85rem; color: var(--rv-text-light); }
.rv-drawer-subtotal-val { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; color: var(--rv-black); }
.rv-drawer-shipping-note { font-size: 0.72rem; color: var(--rv-text-muted); margin-bottom: 14px; }
.rv-drawer-checkout-btn { width: 100%; background: var(--rv-green); color: var(--rv-white); border: none; padding: 15px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em; cursor: pointer; transition: all 0.3s; }
.rv-drawer-checkout-btn:hover:not(:disabled) { background: var(--rv-green-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,90,39,0.25); }
.rv-drawer-checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rv-drawer-continue { display: block; width: 100%; text-align: center; margin-top: 10px; font-size: 0.82rem; color: var(--rv-text-muted); font-weight: 500; background: none; border: none; cursor: pointer; padding: 8px; }
.rv-drawer-continue:hover { color: var(--rv-black); }

/* ===== FOOTER ===== */
.rv-footer { background: var(--rv-black); color: rgba(255,255,255,0.7); padding: 64px 40px 0; }
.rv-footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr; gap: 64px; padding-bottom: 48px; }
.rv-footer-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.2em; color: var(--rv-white); display: block; margin-bottom: 14px; }
.rv-footer-tagline { font-size: 0.86rem; line-height: 1.65; margin-bottom: 12px; }
.rv-footer-origin { font-size: 0.76rem; color: rgba(255,255,255,0.35); }
.rv-footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.rv-footer-col h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--rv-gold); margin-bottom: 16px; }
.rv-footer-col a { display: block; font-size: 0.84rem; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: color 0.25s; }
.rv-footer-col a:hover { color: var(--rv-white); }
.rv-footer-bottom { max-width: 1240px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.07); padding: 20px 0; text-align: center; }
.rv-footer-bottom p { font-size: 0.7rem; color: rgba(255,255,255,0.25); }

/* ===== BUTTONS ===== */
.rv-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--rv-green); color: var(--rv-white); padding: 15px 32px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.03em; border: none; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.rv-btn-primary:hover { background: var(--rv-green-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,90,39,0.25); color: var(--rv-white); }
.rv-btn-gold { display: inline-flex; align-items: center; gap: 8px; background: var(--rv-gold); color: var(--rv-white); padding: 15px 32px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.03em; border: none; cursor: pointer; transition: all 0.3s; text-decoration: none; }
.rv-btn-gold:hover { background: var(--rv-gold-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(197,153,58,0.25); color: var(--rv-white); }
.rv-btn-outline { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--rv-black); padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 0.88rem; border: 2px solid var(--rv-border); cursor: pointer; transition: all 0.3s; text-decoration: none; }
.rv-btn-outline:hover { border-color: var(--rv-green); background: var(--rv-green); color: var(--rv-white); }
.rv-btn-primary svg, .rv-btn-gold svg, .rv-btn-outline svg { width: 16px; height: 16px; transition: transform 0.3s; }
.rv-btn-primary:hover svg, .rv-btn-gold:hover svg { transform: translateX(3px); }

/* ===== UTILITY ===== */
.rv-container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.rv-section { padding: 96px 0; }
.rv-label { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--rv-gold); }

/* ===== ANIMATIONS ===== */
@keyframes rv-fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.rv-animate { animation: rv-fadeUp 0.55s ease both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .rv-header-inner { padding: 14px 24px; }
    .rv-nav { display: none; }
    .rv-menu-toggle { display: block; }
    .rv-mobile-menu { display: block; }
    .rv-container { padding: 0 24px; }
    .rv-section { padding: 64px 0; }
    .rv-footer { padding: 48px 24px 0; }
    .rv-footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .rv-header-inner { padding: 12px 18px; }
    .rv-logo { font-size: 1.25rem; }
    .rv-container { padding: 0 18px; }
    .rv-section { padding: 48px 0; }
    .rv-footer-links { grid-template-columns: 1fr 1fr; }
    .rv-mobile-menu { padding: 88px 24px 40px; }
    .rv-mobile-menu nav a { font-size: 1.4rem; }
    .rv-cart-drawer { width: 100%; max-width: 100vw; }
}
