:root {
    --brand: #a65f32;
    --brand-dark: #71381f;
    --brand-light: #d9a36f;
    --accent: #42634c;
    --accent-dark: #294334;
    --ink: #211c18;
    --muted: #746a62;
    --soft: #f4eadf;
    --paper: #fbf7f1;
    --surface: #fffdf9;
    --line: rgba(98, 67, 46, .14);
    --white: #fff;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --shadow-sm: 0 10px 30px rgba(71, 43, 25, .07);
    --shadow-md: 0 22px 55px rgba(71, 43, 25, .12);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: "Open Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 12%, rgba(217, 163, 111, .11), transparent 26rem),
        var(--paper);
    letter-spacing: 0;
    overflow-x: hidden;
}
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; }

.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: 0;
    transition: transform .22s var(--ease-out), background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(166, 95, 50, .22); outline-offset: 3px; }
.btn-sm { min-height: 40px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding-inline: 26px; border-radius: 15px; }
.btn-brand { color: #fff; background: linear-gradient(135deg, var(--brand), #b87343); border-color: transparent; box-shadow: 0 10px 24px rgba(166, 95, 50, .2); }
.btn-brand:hover { color: #fff; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); box-shadow: 0 14px 30px rgba(113, 56, 31, .25); }
.btn-soft { color: var(--ink); background: rgba(255, 255, 255, .78); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-soft:hover, .btn-outline-dark:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn-icon { width: 42px; min-width: 42px; padding: 0; color: var(--brand); background: #fff; border: 1px solid var(--line); }

.site-header {
    background: rgba(251, 247, 241, .82);
    border-bottom: 1px solid rgba(113, 56, 31, .09);
    backdrop-filter: blur(20px) saturate(140%);
    box-shadow: 0 6px 30px rgba(66, 39, 22, .035);
}
.navbar { min-height: 94px; }
.brand-lockup { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.brand-lockup img { width: 84px; height: 74px; object-fit: contain; object-position: left center; transition: transform .4s var(--ease-out); }
.brand-lockup:hover img { transform: rotate(-5deg) scale(1.06); }
.navbar-nav .nav-link { position: relative; padding: .65rem .85rem !important; border-radius: 11px; color: #40362f; font-size: .86rem; font-weight: 700; text-transform: uppercase; transition: color .2s ease, background-color .2s ease; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--brand-dark); background: rgba(166, 95, 50, .08); }
.btn-nav { min-height: 42px; padding: .55rem 1.1rem; }
.navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: 9px; }

.vinfur-hero { position: relative; overflow: hidden; padding: 70px 0 64px; background: linear-gradient(145deg, #fffaf4 0%, #f2e4d5 100%); }
.vinfur-hero::before, .vinfur-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(2px); }
.vinfur-hero::before { right: -10%; bottom: -45%; width: 620px; height: 620px; background: rgba(166, 95, 50, .1); }
.vinfur-hero::after { left: 42%; top: -48%; width: 520px; height: 520px; background: rgba(66, 99, 76, .08); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 540px); align-items: center; gap: 58px; }
.hero-copy { padding: 0; background: transparent; border: 0; box-shadow: none; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--brand); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { max-width: 790px; margin: 0 0 20px; font-size: clamp(2.5rem, 5.2vw, 5rem); font-weight: 800; line-height: 1.025; letter-spacing: -.035em; }
.hero-copy p { max-width: 640px; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 680px; margin-top: 36px; }
.hero-meta div { padding: 18px; background: rgba(255, 255, 255, .68); border: 1px solid rgba(255, 255, 255, .82); border-radius: var(--radius-md); backdrop-filter: blur(14px); box-shadow: 0 10px 35px rgba(75, 46, 27, .05); }
.hero-meta strong { display: block; font-size: 1.05rem; }
.hero-meta span { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.hero-media { position: relative; }
.hero-media::before { content: ""; position: absolute; inset: 8% -5% -5% 12%; z-index: -1; border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(166, 95, 50, .2), rgba(66, 99, 76, .16)); transform: rotate(3deg); }
.hero-media img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #eee; border: 12px solid rgba(255, 255, 255, .9); border-radius: var(--radius-xl); box-shadow: 0 30px 90px rgba(84, 49, 28, .2); }
.hero-float-card { position: absolute; bottom: 26px; left: -36px; width: min(315px, 82%); padding: 20px 22px; background: rgba(255, 253, 249, .78); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-md); backdrop-filter: blur(20px); box-shadow: 0 20px 55px rgba(60, 39, 24, .14); }
.hero-float-card span, .hero-float-card small { display: block; color: var(--muted); font-size: .84rem; }
.hero-float-card strong { display: block; margin: 6px 0; font-size: 1.08rem; }

.portal-section { position: relative; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.section-title.centered { display: block; max-width: 760px; margin: 0 auto 32px; text-align: center; }
.section-title h1, .section-title h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 800; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(5px); }

.category-tile, .product-card, .content-card, .form-panel, .stat-box, .cta-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.category-tile { position: relative; display: block; min-height: 180px; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); transition: transform .28s var(--ease-out), border-color .28s ease, box-shadow .28s ease; }
.category-tile::after { content: "→"; position: absolute; right: 24px; bottom: 20px; display: grid; width: 38px; height: 38px; place-items: center; color: var(--brand); background: var(--soft); border-radius: 50%; transition: transform .28s var(--ease-out), background-color .28s ease; }
.category-tile:hover { transform: translateY(-7px); border-color: rgba(166, 95, 50, .34); box-shadow: var(--shadow-md); }
.category-tile:hover::after { color: #fff; background: var(--brand); transform: rotate(-10deg); }
.category-tile > span { display: block; margin-bottom: 18px; color: #c39266; font-weight: 800; }
.category-tile strong { display: block; margin-bottom: 8px; font-size: 1.32rem; }
.category-tile small { display: block; padding-right: 30px; color: var(--muted); line-height: 1.55; }

.product-card { display: block; height: 100%; overflow: hidden; border-radius: var(--radius-lg); transition: transform .28s var(--ease-out), box-shadow .28s ease, border-color .28s ease; }
.product-card:hover { transform: translateY(-7px); border-color: rgba(166, 95, 50, .25); box-shadow: var(--shadow-md); }
.product-media { position: relative; display: block; overflow: hidden; aspect-ratio: 1/1; background: var(--soft); }
.product-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease-out); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-badge { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 11px; color: #fff; background: var(--accent-dark); border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(41, 67, 52, .22); }
.product-body { padding: 19px; }
.product-category { margin-bottom: 7px; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.product-body h3 { min-height: 46px; margin: 0 0 10px; font-size: 1rem; font-weight: 800; line-height: 1.45; }
.product-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.product-price strong { color: var(--brand); font-size: 1rem; }
.product-price span { color: #9c938b; font-size: .82rem; text-decoration: line-through; }
.product-status { margin-top: 8px; font-size: .8rem; font-weight: 700; }
.product-status.is-stock { color: #2f7d4b; }
.product-status.is-out { color: #bc3d3d; }
.product-actions { display: grid; grid-template-columns: 1fr 42px; gap: 8px; margin-top: 14px; }

.deal-strip { padding: 38px 0 48px; }
.deal-panel { display: grid; grid-template-columns: minmax(0, 420px) 1fr; align-items: center; gap: 38px; overflow: hidden; padding: 46px; color: #fff; background: linear-gradient(135deg, #24170f, #563323 58%, #31503b); border-radius: var(--radius-xl); box-shadow: 0 28px 80px rgba(49, 31, 20, .18); }
.deal-panel p { margin: 0; color: rgba(255, 255, 255, .72); line-height: 1.7; }
.deal-panel h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.deal-panel .eyebrow { color: #edc49d; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-grid div { min-height: 138px; padding: 21px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-md); backdrop-filter: blur(14px); transition: transform .25s var(--ease-out), background-color .25s ease; }
.feature-grid div:hover { background: rgba(255, 255, 255, .14); transform: translateY(-4px); }
.feature-grid strong { display: block; font-size: 1.08rem; }
.feature-grid span { display: block; margin-top: 8px; color: rgba(255, 255, 255, .7); font-size: .88rem; }

.content-card, .form-panel, .stat-box { display: block; overflow: hidden; border-radius: var(--radius-lg); }
.stat-box { min-height: 150px; padding: 25px; }
.stat-box strong { display: block; margin-bottom: 8px; color: var(--brand-dark); font-size: 1.15rem; }
.stat-box span { color: var(--muted); line-height: 1.65; }
.content-card { height: 100%; transition: transform .28s var(--ease-out), box-shadow .28s ease; }
.content-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.content-card img, .detail-media img, .post-hero { display: block; width: 100%; height: 100%; object-fit: cover; }
.content-card img { aspect-ratio: 16/10; transition: transform .55s var(--ease-out); }
.content-card:hover img { transform: scale(1.035); }
.content-card p { color: var(--muted); }
.detail-media { overflow: hidden; aspect-ratio: 4/3; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.thumb-row { display: flex; gap: 10px; }
.thumb-row img { width: 78px; height: 62px; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
.display-price { color: var(--brand); font-size: 2rem; font-weight: 800; }

.filter-bar { display: grid; grid-template-columns: 1fr 220px 180px auto; gap: 12px; padding: 14px; background: rgba(255, 255, 255, .68); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.form-control, .form-select { min-height: 46px; padding-inline: 14px; background-color: rgba(255, 255, 255, .9); border-color: var(--line); border-radius: var(--radius-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.form-control:focus, .form-select:focus { border-color: rgba(166, 95, 50, .55); box-shadow: 0 0 0 .22rem rgba(166, 95, 50, .1); }
.form-label { color: #51463e; font-size: .88rem; font-weight: 700; }
.empty-state { padding: 44px; color: var(--muted); text-align: center; background: rgba(255, 255, 255, .74); border: 1px dashed rgba(166, 95, 50, .3); border-radius: var(--radius-lg); }
.cta-band { padding: 46px 0 30px; }
.cta-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); align-items: center; gap: 38px; padding: 38px; border-radius: var(--radius-xl); background: linear-gradient(145deg, #fffdf9, #f7eee4); }
.glass-form { padding: 0; background: transparent; border: 0; box-shadow: none; }
.form-panel { padding: 26px; }
.narrow { max-width: 900px; }
.post-hero { height: 380px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.site-footer { flex-shrink: 0; margin-top: auto !important; color: #fff; background: linear-gradient(135deg, #17110e, #2d2119); border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.floating-contact { position: fixed; z-index: 20; right: 18px; bottom: 18px; display: grid; gap: 8px; }
.floating-contact a { display: grid; width: 46px; height: 46px; padding: 0; place-items: center; background: rgba(255, 253, 249, .86); border: 1px solid rgba(255, 255, 255, .9); border-radius: 999px; backdrop-filter: blur(16px); box-shadow: 0 10px 28px rgba(0, 0, 0, .13); font-size: 0; transition: transform .2s var(--ease-out), background-color .2s ease; }
.floating-contact a i { font-size: 1rem; }
.floating-contact a:hover { color: #fff; background: var(--accent-dark); transform: translateX(-4px); }
.cart-line { display: grid; grid-template-columns: 72px 1fr 110px 110px 46px; align-items: center; gap: 14px; padding: 14px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.cart-line img { width: 72px; height: 58px; object-fit: cover; background: var(--soft); border-radius: 10px; }
.cart-total { font-size: 1.25rem; text-align: right; }
.content-html { line-height: 1.85; }
.content-html img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.product-description-section { margin-top: 12px; }
.product-description-section h2 { margin: 30px 0 12px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; letter-spacing: -.015em; }
.product-description-section p { color: #51483f; }
.product-description-section ul, .product-description-section ol { display: grid; gap: 8px; padding-left: 1.25rem; color: #51483f; }
.product-specification-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0 !important; list-style: none; }
.product-specification-list li { padding: 13px 15px; background: var(--soft); border-radius: var(--radius-sm); }
.table-thumb { width: 60px; height: 48px; object-fit: cover; border-radius: 10px; }
.pagination { gap: 7px; }
.page-link { color: var(--ink); border-color: var(--line); border-radius: 10px !important; }
.active > .page-link { background: var(--brand); border-color: var(--brand); }
.swal2-popup { border-radius: var(--radius-lg) !important; }

.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.motion-ready .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.motion-ready .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.motion-ready .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.motion-ready .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.hero-copy { animation: hero-enter .8s var(--ease-out) both; }
.hero-media { animation: hero-enter .9s .1s var(--ease-out) both; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 992px) {
    .hero-grid, .deal-panel, .cta-panel { grid-template-columns: 1fr; }
    .hero-media { max-width: 560px; }
    .hero-float-card { left: 20px; }
    .feature-grid, .hero-meta { grid-template-columns: 1fr; }
    .navbar-collapse { margin-top: 10px; padding: 12px; background: rgba(255, 253, 249, .96); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
}
@media (max-width: 768px) {
    .vinfur-hero { padding: 46px 0; }
    .filter-bar { grid-template-columns: 1fr; }
    .section-title { display: block; }
    .section-title .link-arrow { margin-top: 12px; }
    .hero-copy h1 { font-size: 2.45rem; }
    .hero-media img { border-width: 8px; border-radius: var(--radius-lg); }
    .cart-line { grid-template-columns: 58px 1fr; gap: 10px; }
    .cart-line .line-actions, .cart-line .line-price, .cart-line .line-qty { grid-column: 2; }
    .floating-contact { position: static; grid-template-columns: repeat(2, 1fr); margin: 24px 16px; }
    .floating-contact a { display: flex; width: auto; height: auto; min-height: 44px; padding: 10px 15px; font-size: .85rem; }
    .brand-lockup img { width: 70px; height: 62px; }
    .product-body h3 { min-height: auto; }
    .cta-panel, .deal-panel { padding: 26px; border-radius: var(--radius-lg); }
    .feature-grid { grid-template-columns: 1fr; }
    .product-specification-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .motion-ready .reveal, .motion-ready .reveal-stagger > * { opacity: 1; transform: none; }
}
