/* Site-specific styles layered on top of the Vineta theme. */

/* ---------- Typography ---------- */
body { font-family: "Poppins", Arial, sans-serif; }
.price-new, .price-old, .hcc-count { font-family: "Poppins", Arial, sans-serif; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.empty-note { padding: 40px 0; color: #777; }

/* ---------- Header ---------- */
.site-logo { max-height: 56px; width: auto; display: block; }
.site-logo-text { font-size: 22px; font-weight: 700; letter-spacing: .5px; color: var(--dark, #0d0d0d); }
.footer-logo .site-logo { max-height: 64px; }
.header-default .wrapper-header { min-height: 86px; }
.header-default .box-nav-menu { display: flex; justify-content: center; gap: 36px; margin: 0; padding: 0; list-style: none; }
.header-default .box-nav-menu .menu-item { position: relative; }
.header-default .box-nav-menu .item-link { font-weight: 500; font-size: 15px; }

/* Categories dropdown (scrolls when there are many categories) */
.box-nav-menu .has-dropdown { position: relative; }
.cat-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
    min-width: 240px; max-height: min(70vh, 520px); overflow-y: auto;
    margin: 0; padding: 12px 0; list-style: none; text-align: left;
    background: #fff; border: 1px solid #eee; border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
    opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 1001;
}
.cat-dropdown-wide { column-count: 2; column-gap: 0; min-width: 480px; }
.cat-dropdown li { break-inside: avoid; }
.cat-dropdown a { display: block; padding: 8px 22px; font-size: 14px; color: var(--dark, #0d0d0d); white-space: nowrap; }
.cat-dropdown a:hover { background: #f5f5f5; }
.box-nav-menu .has-dropdown:hover > .cat-dropdown,
.box-nav-menu .has-dropdown:focus-within > .cat-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Mobile menu */
.nav-ul-mb { list-style: none; margin: 0; padding: 0; }
.nav-ul-mb .menu-item { border-bottom: 1px solid #eee; }
.nav-ul-mb .item-link { display: block; padding: 14px 0; font-weight: 500; }
.mb-parent { display: flex; align-items: center; justify-content: space-between; }
.mb-parent .item-link { flex: 1; }
.mb-toggle { padding: 14px 8px; font-size: 12px; }
.mb-sub { list-style: none; margin: 0; padding: 0 0 10px 14px; max-height: 50vh; overflow-y: auto; }
.mb-sub a { display: block; padding: 7px 0; font-size: 14px; color: #555; }

/* ---------- Home hero (single image) ---------- */
.home-hero { width: 100%; max-height: 600px; overflow: hidden; background: #f3f3f3; }
.home-hero img { width: 100%; height: 600px; object-fit: cover; display: block; }
@media (max-width: 767px) { .home-hero, .home-hero img { height: 320px; max-height: 320px; } }

/* ---------- Section headings ---------- */
.heading-section { margin-bottom: 28px; }
.heading-section .heading { font-size: 28px; font-weight: 600; margin: 0; }
.section-more { margin-top: 32px; }
.flat-spacing-4.pt-0, .flat-spacing.pt-0 { padding-top: 0; }

/* ---------- Category grid (works for many categories) ---------- */
.home-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 8px; }
.home-cat-card { position: relative; display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 3 / 4; background: #f0f0f0; text-decoration: none; }
.home-cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.home-cat-card:hover img { transform: scale(1.05); }
.hcc-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, transparent 55%); }
.hcc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; display: block; }
.hcc-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.25; margin-bottom: 3px; }
.hcc-count { display: block; font-size: 13px; opacity: .85; }
.hcc-placeholder, .img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f5f5f5, #e8e8e8); color: #bbb; font-size: 44px; }
@media (max-width: 576px) { .home-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .hcc-name { font-size: 14px; } .hcc-info { padding: 12px; } }

/* ---------- Product cards ---------- */
.card-product-wrapper .product-img { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #f3f3f3; }
.card-product-wrapper .product-img img { width: 100%; height: 100%; object-fit: cover; }
.card-product .name-product { display: block; margin-bottom: 6px; }
.on-sale-item.badge-soldout { background: #6b6b6b; color: #fff; }
.on-sale-item.badge-new { background: #0d0d0d; color: #fff; }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.shop-toolbar-item select, .shop-toolbar-item input[type=search] { height: 46px; padding: 0 14px; border: 1px solid #e2e2e2; border-radius: 6px; background: #fff; font-size: 14px; min-width: 200px; max-width: 100%; }
.shop-toolbar-search { flex: 1 1 220px; }
.shop-toolbar-search input { width: 100%; }
.shop-toolbar-submit { height: 46px; }
.shop-toolbar-count { margin-left: auto; color: #777; font-size: 14px; }
.js .shop-toolbar-submit { display: none; }
.category-intro { max-width: 760px; margin: 0 auto 28px; text-align: center; color: #555; }

/* ---------- Product page ---------- */
.pd-gallery { max-width: 520px; margin: 0 auto; }
.pd-main { position: relative; aspect-ratio: 3 / 4; max-height: 78vh; background: #f3f3f3; border-radius: 8px; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-badge { position: absolute; top: 14px; left: 14px; }
.pd-thumbs { display: flex; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; overflow-x: auto; }
.pd-thumb { display: block; width: 76px; height: 100px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #f3f3f3; cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 992px) { .product-detail > .col-lg-6:first-child { position: sticky; top: 100px; align-self: flex-start; } }
.pd-thumb.active { border-color: #0d0d0d; }
.pd-category { display: inline-block; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #777; }
.pd-name { margin: 0 0 12px; font-weight: 600; }
.pd-price { font-size: 22px; margin-bottom: 16px; }
.pd-summary { color: #555; margin-bottom: 18px; }
.pd-meta { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; }
.pd-meta li { margin-bottom: 4px; }
.pd-meta span { color: #777; }
.in-stock { color: #2e7d32; }
.out-stock { color: #b71c1c; }
.pd-option { margin-bottom: 16px; }
.pd-option-label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.pd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pd-chips li { min-width: 44px; padding: 8px 14px; text-align: center; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.pd-actions { margin-top: 24px; }
.btn-order { background: #25d366; border-color: #25d366; color: #fff; display: inline-flex; align-items: center; gap: 10px; }
.btn-order:hover { background: #1da851; border-color: #1da851; color: #fff; }
.pd-description { margin-top: 56px; padding-top: 32px; border-top: 1px solid #eee; }

/* ---------- Rich text (admin-managed content) ---------- */
.rich-text { line-height: 1.75; font-size: 15px; overflow-wrap: anywhere; }
.rich-text h1, .rich-text h2, .rich-text h3, .rich-text h4 { margin: 1.4em 0 .6em; font-weight: 600; }
.rich-text p, .rich-text ul, .rich-text ol { margin-bottom: 1em; }
.rich-text ul { list-style: disc; padding-left: 22px; }
.rich-text ol { list-style: decimal; padding-left: 22px; }
.rich-text img { max-width: 100%; height: auto; border-radius: 6px; }
.rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.rich-text td, .rich-text th { border: 1px solid #e5e5e5; padding: 8px 12px; }
.rich-text a { text-decoration: underline; }
.static-page, .post-single { max-width: 820px; margin: 0 auto; }
.post-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.post-meta { color: #777; font-size: 14px; margin-bottom: 18px; }

/* ---------- Blog cards ---------- */
.s-blog-list-grid.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-item .entry_image .img-style { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #f3f3f3; }
.blog-item .entry_image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) { .s-blog-list-grid.grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .s-blog-list-grid.grid-3 { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #eee; }
.faq-item .accordion-header { margin: 0; }
.faq-item .accordion-title { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; background: none; border: 0; text-align: left; font-weight: 500; font-size: 17px; cursor: pointer; }
.faq-item .accordion-body { padding: 0 0 20px; color: #555; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.contact-list .icon { margin-top: 4px; }
.site-contact-form fieldset { margin-bottom: 16px; border: 0; padding: 0; }
.site-contact-form .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-contact-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.site-contact-form input, .site-contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #e2e2e2; border-radius: 6px; font-size: 15px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.form-alert.success, .form-status.success { background: #e8f5e9; color: #2e7d32; }
.form-alert.error, .form-status.error { background: #fdecea; color: #b71c1c; }
.form-status:not(:empty) { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.contact-map { margin-top: 40px; }
.contact-map iframe { width: 100%; height: 380px; border: 0; border-radius: 8px; }
@media (max-width: 575px) { .site-contact-form .cols { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer-hours { display: block; }
.footer-col-block.open .tf-collapse-content { display: block; }
.footer-info .item { display: flex; gap: 10px; align-items: flex-start; }
.footer-menu-list a:hover { text-decoration: underline; }

/* ---------- Page title banner ---------- */
.page-head { padding: 22px 0 6px; }
.page-head + .flat-spacing, .page-head + section { padding-top: 20px; }
.page-head .breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #8a8a8a; margin-bottom: 6px; }
.page-head .breadcrumb-item { color: #8a8a8a; text-decoration: none; }
.page-head a.breadcrumb-item:hover { color: #000; }
.page-head .breadcrumb-item.current { color: #000; }
.page-head .breadcrumb-sep { color: #c4c4c4; }
.page-head-title { font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
@media (max-width: 575px) {
    .page-head { padding: 16px 0 4px; }
    .page-head-title { font-size: 22px; }
}

/* Phones: tighter product cards */
@media (max-width: 575px) {
    .tf-grid-layout { column-gap: 12px; }
    .card-product .name-product { font-size: 14px; }
    .shop-toolbar-item, .shop-toolbar-item select { width: 100%; }
    .shop-toolbar-count { margin-left: 0; }
}

