/* ==========================================================================
   NearMint — tema magazinului
   ========================================================================== */
:root {
    --accent: #8cc63f;
    --accent-dark: #5b8c11;
    --ink: #1a1a1a;
    --text: #333;
    --muted: #888;
    --line: #e4e4e4;
    --bg: #f2f2f2;
    --card: #fff;
    --bar: #7a7a7a;
    --price: #e3051b;
    --danger: #c62828;
    --head: 'Oswald', 'Arial Narrow', sans-serif;
    --body: 'Open Sans', system-ui, sans-serif;
    --shadow: 0 2px 6px rgba(0, 0, 0, .12);
    --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
input, select, textarea, button { font: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1600px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }
.accent-red { color: var(--price); }
.icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- Butoane ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #000; color: #fff; border: 2px solid #000; border-radius: 0;
    padding: 10px 22px; font-family: var(--head); font-size: 17px; letter-spacing: .02em;
    text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-outline { background: transparent; color: #000; }
.btn-outline:hover { background: #000; color: #fff; border-color: #000; }
.btn-sm { padding: 6px 14px; font-size: 15px; }
.btn.big { padding: 13px 28px; font-size: 19px; }
.btn.full { width: 100%; }
.btn-buy { min-width: 160px; }
.linklike { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: underline; }
.iconbtn { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; }
.iconbtn:hover { color: var(--danger); }

/* ---------- Alerte ---------- */
.alert { padding: 12px 16px; margin: 16px 0 0; border-left: 4px solid; background: #fff; }
.alert-success { border-color: var(--accent); }
.alert-error { border-color: var(--danger); color: var(--danger); }
.alert-warning { border-color: #f0a500; }
.notice { background: #fff; padding: 10px 14px; border-left: 4px solid var(--accent); }

/* ---------- Bara de sus ---------- */
.topbar { background: #fafafa; border-top: 6px solid #222; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 15px; color: #666; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 46px; flex-wrap: wrap; }
.topbar-text { color: var(--accent-dark); }
.topbar-right { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.topbar a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Header ---------- */
.site-header { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.logo { text-decoration: none; display: block; }
.logo img { max-height: 64px; width: auto; }
.logo-text { font-family: 'Arial Black', var(--head); font-weight: 900; font-size: 30px; color: #111; letter-spacing: -1px; line-height: 1; display: inline-block; }
.logo-text b { color: var(--accent); font-size: 1.55em; }
.logo-text small { display: block; font-size: 10px; letter-spacing: 0; margin: -4px 0 0 30px; color: #333; font-family: var(--body); font-weight: 700; }
.logo-text.big { font-size: 64px; }
.logo-text.big small { font-size: 18px; margin-left: 60px; }
.main-nav { margin-left: auto; display: flex; gap: 34px; }
.main-nav a { font-family: var(--head); font-size: 19px; text-transform: uppercase; text-decoration: none; color: #222; padding: 6px 0; border-bottom: 2px solid transparent; letter-spacing: .03em; }
.main-nav a.active, .main-nav a:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.header-icons { display: flex; align-items: center; gap: 18px; padding-left: 28px; border-left: 1px solid var(--line); }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: #222; }
.cart-link { position: relative; color: #222; display: inline-flex; }
.cart-count { position: absolute; right: -6px; bottom: -4px; background: var(--accent); color: #000; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.burger { display: none; }
.search-bar { border-top: 1px solid var(--line); padding: 12px 0; background: #fff; }
.search-bar .container { display: flex; gap: 10px; }
.search-bar input { flex: 1; padding: 10px 14px; border: 1px solid #ccc; font-size: 16px; }

/* ---------- Pagina de start ---------- */
.site-main { min-height: 50vh; padding-bottom: 40px; }
.hero { margin-top: 0; }
.hero-slider { position: relative; overflow: hidden; background: #ddd; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: fade .6s; }
.hero-slide img { width: 100%; max-height: 520px; object-fit: cover; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.hero-placeholder { background: linear-gradient(90deg, #333 0 45%, #e8a72c 45%); min-height: 320px; display: flex; align-items: center; justify-content: flex-end; padding: 30px 6%; color: #fff; }
.hero-placeholder > div { text-align: center; }
.hero-claim { font-family: var(--head); font-size: 34px; text-transform: uppercase; color: #dff5b8; margin: 10px 0 18px; }

.home-section { margin-top: 26px; }
.section-bar { display: flex; align-items: center; justify-content: space-between; background: var(--bar); color: #fff; padding: 10px 14px; text-decoration: none; border-radius: 3px 3px 0 0; }
.section-bar h2, .section-bar span { color: #fff; margin: 0; font-family: 'Arial Black', var(--head); font-size: 36px; text-transform: uppercase; letter-spacing: .01em; }
.section-bar:hover { background: #5f5f5f; color: #fff; }
.section-bar.small span { font-size: 24px; }
h2.section-bar { margin: 40px 0 16px; }

.carousel { position: relative; margin-top: 12px; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 22px) / 5); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 8px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-item { scroll-snap-align: start; display: flex; }
.carousel-btn { position: absolute; top: 40%; z-index: 2; background: rgba(240, 240, 240, .92); border: 0; width: 64px; height: 64px; cursor: pointer; color: var(--accent); display: grid; place-items: center; }
.carousel-btn.prev { left: -70px; }
.carousel-btn.next { right: -70px; }
.carousel-btn:hover { background: #fff; }

/* ---------- Card produs ---------- */
.product-card { background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; width: 100%; text-align: center; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transform: translateY(-2px); }
.product-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #f6f6f6; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 14px 12px 22px; display: flex; flex-direction: column; flex: 1; align-items: center; }
.product-card-label { font-family: var(--head); color: var(--muted); font-size: 18px; margin-bottom: 8px; }
.product-card-title { font-family: var(--head); font-size: 19px; font-weight: 400; margin: 0 0 6px; flex: 1; }
.product-card-title a { text-decoration: none; }
.price { font-family: var(--head); font-weight: 600; color: var(--price); font-size: 19px; margin-bottom: 14px; }
.price del { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 6px; }
.price.big { font-size: 30px; }
.product-card .btn-buy { margin-top: auto; }
.sold-out .product-card-img img { opacity: .55; filter: grayscale(.6); }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--price); color: #fff; font-family: var(--head); padding: 3px 10px; font-size: 14px; text-transform: uppercase; }
.ribbon-dark { background: #111; }

/* ---------- Magazin + filtre ---------- */
.shop-layout { display: grid; grid-template-columns: 300px 1fr; gap: 36px; margin-top: 28px; align-items: start; }
.shop-sidebar { background: #fff; box-shadow: var(--shadow); padding: 20px; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; }
.filter-box { border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); padding: 12px 14px; margin-bottom: 20px; }
.filter-box h4 { font-size: 19px; color: #555; margin: 0 0 8px; display: inline-block; }
.filter-box summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.filter-box summary::after { content: '⌄'; color: var(--muted); }
.filter-box[open] summary { margin-bottom: 8px; }
.search-input { display: flex; align-items: center; gap: 8px; border: 1px solid #ccc; border-radius: 4px; padding: 0 10px; color: var(--muted); }
.search-input input { border: 0; padding: 9px 0; width: 100%; outline: none; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--head); font-size: 16px; color: #222; padding: 3px 0; }
.check input { width: 17px; height: 17px; accent-color: var(--accent-dark); flex-shrink: 0; }
.count { color: #bbb; font-size: 13px; }
.cat-tree { list-style: none; margin: 0; padding: 0; }
.cat-tree .cat-tree { padding-left: 16px; }
.filter-scroll { max-height: 420px; overflow-y: auto; }
.price-range { display: flex; gap: 6px; align-items: center; }
.price-range input { width: 80px; padding: 6px; border: 1px solid #ccc; }
.reset-filters { display: inline-block; margin-top: 4px; color: var(--danger); font-family: var(--head); text-decoration: none; }
.shop-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.shop-head h1 { margin: 0; font-size: 30px; }
.sort-select { margin-left: auto; padding: 12px 16px; border: 0; background: #fff; box-shadow: var(--shadow); font-family: var(--head); font-size: 16px; min-width: 260px; }
.filters-toggle { display: none; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.breadcrumbs { font-family: var(--head); color: var(--muted); margin: 14px 0; }
.breadcrumbs a { text-decoration: none; }
.category-desc { background: #fff; padding: 14px 18px; margin-bottom: 20px; }
.empty-state { background: #fff; padding: 40px; text-align: center; box-shadow: var(--shadow); margin-top: 24px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0 0; flex-wrap: wrap; }
.pagination a, .pagination .dots { min-width: 42px; height: 42px; display: grid; place-items: center; background: #fff; text-decoration: none; font-family: var(--head); font-size: 17px; box-shadow: var(--shadow); }
.pagination a.active { background: #000; color: #fff; }
.pagination .dots { box-shadow: none; background: none; }

/* ---------- Pagina produs ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; background: #fff; padding: 28px; box-shadow: var(--shadow); }
.gallery-main { position: relative; background: #f6f6f6; }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: cover; }
.product-info h1 { font-size: 34px; margin-top: 6px; }
.stock.in { color: var(--accent-dark); font-weight: 600; }
.stock.out { color: var(--danger); font-weight: 600; }
.add-to-cart { display: flex; gap: 10px; margin: 18px 0 24px; }
.add-to-cart input[type=number] { width: 80px; padding: 10px; border: 1px solid #ccc; font-size: 17px; }
.short-desc { margin-bottom: 18px; }
.attr-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.attr-table th, .attr-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.attr-table th { font-family: var(--head); font-weight: 500; width: 40%; color: #555; }
.product-cats { color: var(--muted); }
.product-perks { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.product-perks li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.product-description { background: #fff; padding: 28px; margin-top: 24px; box-shadow: var(--shadow); }
.rich h2, .rich h3 { margin-top: 1.2em; }
.rich table { border-collapse: collapse; }
.rich td, .rich th { border: 1px solid var(--line); padding: 4px 8px; }

/* ---------- Coș & checkout ---------- */
.page-title { font-size: 36px; margin: 28px 0 20px; }
.narrow-page { max-width: 1000px; }
.box { background: #fff; box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.box h2 { font-size: 22px; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); }
.cart-table th { text-align: left; font-family: var(--head); font-weight: 500; padding: 14px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-thumb { width: 90px; }
.cart-thumb img { width: 70px; height: 70px; object-fit: cover; }
.qty-input { width: 70px; padding: 6px; border: 1px solid #ccc; }
.cart-actions { display: flex; justify-content: space-between; margin: 16px 0; gap: 10px; flex-wrap: wrap; }
.cart-summary { background: #fff; box-shadow: var(--shadow); padding: 22px; max-width: 420px; margin-left: auto; }
.cart-summary ul { padding-left: 18px; margin: 4px 0 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-row.total { font-size: 20px; font-family: var(--head); border-bottom: 0; padding: 14px 0; }

label { display: block; margin-bottom: 14px; font-size: 14px; color: #555; }
label > input:not([type=checkbox]):not([type=radio]), label > select, label > textarea {
    display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 0; font-size: 15px; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row-3 { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 0 16px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.checkout-summary { position: sticky; top: 110px; }
.radio-cards { display: grid; gap: 10px; margin-bottom: 16px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); padding: 14px; cursor: pointer; margin: 0; color: var(--text); }
.radio-card:has(input:checked) { border-color: var(--accent); background: #f7fbef; }
.radio-card input { margin-top: 4px; accent-color: var(--accent-dark); }
.radio-card-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; }
.radio-card-body small { grid-column: 1 / -1; color: var(--muted); }
.radio-price { font-family: var(--head); font-weight: 600; }
.radio-card.disabled { opacity: .4; pointer-events: none; }
.company summary { cursor: pointer; color: var(--accent-dark); margin-bottom: 10px; }
.mini-lines { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; }
.mini-lines img { width: 48px; height: 48px; object-fit: cover; }
.terms { font-family: var(--body); font-size: 14px; align-items: flex-start; margin: 16px 0; }

.thankyou-head { background: #fff; border-top: 6px solid var(--accent); padding: 26px; margin: 28px 0 20px; box-shadow: var(--shadow); }
.thankyou-head.failed { border-color: var(--danger); }
.thankyou-head.pending { border-color: #f0a500; }
.thankyou-action { margin-bottom: 20px; }
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.order-table tfoot th { font-family: var(--head); }
.order-table .total td, .order-table .total th { font-size: 19px; }
.order-table .right { text-align: right; }
.badge { display: inline-block; padding: 2px 9px; font-size: 12px; background: #eee; border-radius: 10px; font-family: var(--body); }
.status-processing, .status-ready { background: #e3f1cf; color: #3f6b0b; }
.status-completed, .status-shipped { background: #dff0ff; color: #0b4f8a; }
.status-pending, .status-on-hold { background: #fff1d1; color: #8a5a00; }
.status-cancelled, .status-failed, .status-refunded { background: #fde2e2; color: #9b1c1c; }

/* ---------- Cont ---------- */
.auth-page { display: flex; justify-content: center; padding: 40px 16px; }
.auth-box { width: 100%; max-width: 480px; }
.auth-links { text-align: center; margin-top: 14px; }
.account-nav { display: flex; gap: 24px; align-items: center; margin-bottom: 22px; font-family: var(--head); font-size: 18px; border-bottom: 1px solid var(--line); }
.account-nav a { text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.account-nav a.active { border-color: var(--accent-dark); color: var(--accent-dark); }
.account-nav form { margin-left: auto; }

/* ---------- Pagini ---------- */
.cms-page .rich { background: #fff; padding: 24px; box-shadow: var(--shadow); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.contact-info { list-style: none; padding: 0; margin: 20px 0; font-size: 17px; }
.contact-info li { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.map { margin-top: 28px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.hp { position: absolute; left: -9999px; }
.big-line { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.store-info h3 { margin-top: 18px; }
.error-page { text-align: center; padding: 60px 16px; }
.error-code { font-family: var(--head); font-size: 110px; color: var(--accent); line-height: 1; }

/* ---------- Subsol ---------- */
.site-footer { background: #222; color: #bbb; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 20px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer p { margin: 0 0 8px; display: flex; gap: 8px; align-items: flex-start; }
.footer-bottom { border-top: 1px solid #333; padding: 14px 0; font-size: 13px; color: #888; }

.toast { position: fixed; right: 20px; bottom: 20px; background: #111; color: #fff; padding: 14px 20px; z-index: 100; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); max-width: 360px; animation: fade .3s; }
.toast a { color: var(--accent); margin-left: 8px; }
.toast.error { background: var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 1720px) {
    .carousel-btn.prev { left: 4px; }
    .carousel-btn.next { right: 4px; }
    .carousel-btn { width: 44px; height: 44px; opacity: .9; }
}
@media (max-width: 1280px) {
    .carousel-track { grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; }
    .product-grid.cols-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .main-nav { gap: 20px; }
    .main-nav a { font-size: 17px; }
}
@media (max-width: 1024px) {
    .burger { display: inline-block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 16px; box-shadow: 0 6px 12px rgba(0, 0, 0, .1); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .header-icons { margin-left: auto; border: 0; padding-left: 0; }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; position: static; max-height: none; }
    .shop-sidebar.open { display: block; }
    .filters-toggle { display: inline-flex; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .carousel-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
    .checkout-layout, .product-layout, .contact-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .topbar-address { display: none; }
}
@media (max-width: 640px) {
    body { font-size: 14px; }
    .header-inner { min-height: 70px; gap: 12px; }
    .logo img { max-height: 46px; }
    .logo-text { font-size: 22px; }
    .logo-text small { display: none; }
    .logo-text.big { font-size: 40px; }
    .header-icons { gap: 10px; }
    .topbar { font-size: 13px; }
    .topbar-right { gap: 12px; margin-left: 0; }
    .section-bar h2 { font-size: 24px; }
    .carousel-track { grid-auto-columns: 72%; gap: 12px; }
    .carousel-btn { display: none; }
    .product-grid, .product-grid.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .product-card-title { font-size: 16px; }
    .product-card-label { font-size: 15px; margin-bottom: 4px; }
    .price { font-size: 17px; }
    .product-card .btn-buy { min-width: 0; width: 100%; padding: 8px 6px; font-size: 15px; }
    .product-layout { padding: 14px; gap: 18px; }
    .product-info h1 { font-size: 26px; }
    .row-2, .row-3 { grid-template-columns: 1fr; }
    .sort-select { min-width: 0; width: 100%; margin-left: 0; }
    .shop-head h1 { font-size: 24px; }
    .page-title { font-size: 28px; }
    .box { padding: 16px; }
    .cart-table thead { display: none; }
    .cart-table tr { display: grid; grid-template-columns: 80px 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .cart-table td { border: 0; padding: 4px 10px; }
    .cart-table td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); }
    .cart-thumb { grid-row: span 4; }
    .hero-placeholder { background: #333; justify-content: center; }
    .hero-claim { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .map iframe { height: 300px; }
}

/* ==========================================================================
   Navigare produs (Anterior / Următor), galerie, moduri de afișare
   ========================================================================== */
.product-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: #fff; box-shadow: var(--shadow); margin: 18px 0 0; padding: 6px 8px; }
.pn-link { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 6px 8px; min-width: 0; color: #222; }
.pn-link span { min-width: 0; display: flex; flex-direction: column; }
.pn-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--head); font-size: 16px; }
.pn-link small { font-family: var(--body); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.pn-link.next { justify-content: flex-end; text-align: right; }
.pn-link:hover { background: #f4f8ec; color: var(--accent-dark); }
.pn-back { font-family: var(--head); text-decoration: none; padding: 6px 14px; border: 1px solid var(--line); white-space: nowrap; }
.pn-back:hover { border-color: var(--accent); }
.side-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; align-items: center; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow); color: var(--accent-dark); height: 74px; text-decoration: none; }
.side-arrow.prev { left: 0; flex-direction: row; }
.side-arrow.next { right: 0; flex-direction: row-reverse; }
.side-arrow > .icon { margin: 0 8px; }
.side-peek { display: grid; grid-template-columns: 62px 190px; grid-template-rows: auto auto; gap: 0 10px; align-items: center; width: 0; overflow: hidden; transition: width .2s; }
.side-arrow:hover .side-peek { width: 270px; padding: 6px; }
.side-peek img { grid-row: span 2; width: 62px; height: 62px; object-fit: cover; }
.side-peek b { font-family: var(--head); font-weight: 400; font-size: 14px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-peek em { font-style: normal; color: var(--price); font-family: var(--head); }
body.navigating { cursor: progress; opacity: .7; transition: opacity .2s; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .85); border: 0; width: 44px; height: 60px; cursor: pointer; color: #222; display: grid; place-items: center; opacity: .75; }
.gal-arrow:hover { opacity: 1; color: var(--accent-dark); }
.gal-arrow.prev { left: 0; }
.gal-arrow.next { right: 0; }
.gal-counter { position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; padding: 2px 8px; }
kbd { font-family: inherit; font-size: 11px; border: 1px solid #ccc; border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; background: #fafafa; }

.view-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.view-switch { margin-left: auto; display: flex; gap: 4px; }
.view-switch button { background: #fff; border: 1px solid var(--line); height: 36px; min-width: 40px; padding: 0 8px; cursor: pointer; display: inline-flex; gap: 2px; align-items: center; justify-content: center; color: #666; }
.view-switch button.active { border-color: #000; color: #000; }
.cols-btn i { display: block; width: 5px; height: 16px; background: currentColor; }
.per-select { padding: 8px 10px; border: 1px solid var(--line); background: #fff; font-family: var(--head); }
.product-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-grid[data-cols="5"] .product-card-title { font-size: 17px; }
.product-grid[data-cols="5"] .btn-buy { min-width: 0; padding: 8px 12px; font-size: 15px; }
.product-card-excerpt { display: none; }
.product-card-buy { margin-top: auto; display: flex; flex-direction: column; align-items: center; }

/* Modul listă: poză stânga, titlu + descriere, preț + buton dreapta */
.product-grid.view-list { grid-template-columns: 1fr !important; gap: 14px; }
.view-list .product-card { flex-direction: row; text-align: left; align-items: stretch; }
.view-list .product-card:hover { transform: none; }
.view-list .product-card-img { width: 190px; flex-shrink: 0; }
.view-list .product-card-body { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 4px 24px; padding: 16px 20px; }
.view-list .product-card-label { width: 100%; margin: 0; font-size: 15px; }
.view-list .product-card-title { flex: 1 1 300px; font-size: 21px; margin: 0; order: 1; }
.view-list .product-card-excerpt { display: block; flex: 1 1 100%; order: 3; color: #555; margin: 4px 0 0; font-size: 14px; line-height: 1.5; max-width: 820px; }
.view-list .product-card-buy { order: 2; margin: 0 0 0 auto; align-items: flex-end; }
.view-list .price { margin-bottom: 8px; font-size: 22px; }

@media (max-width: 1024px) {
    .side-arrow { display: none; }
    .product-grid[data-cols="4"], .product-grid[data-cols="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cols-btn[data-cols="4"], .cols-btn[data-cols="5"] { display: none; }
}
@media (max-width: 640px) {
    .product-grid[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols-btn[data-cols="3"] { display: none; }
    .product-nav { grid-template-columns: 1fr 1fr; }
    .pn-back { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .pn-link span { font-size: 14px; }
    .kbd-hint { display: none; }
    .view-list .product-card-img { width: 110px; }
    .view-list .product-card-body { padding: 10px 12px; }
    .view-list .product-card-title { font-size: 16px; flex-basis: 100%; }
    .view-list .product-card-excerpt { display: none; }
    .view-list .product-card-buy { margin: 6px 0 0; align-items: flex-start; }
    .view-list .btn-buy { width: auto; }
}

/* Etichete, reduceri, cupoane, produs vândut */
.tag-chip { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 12px; background: color-mix(in srgb, var(--c, #8cc63f) 18%, #fff); color: #222; border: 1px solid color-mix(in srgb, var(--c, #8cc63f) 60%, #fff); text-decoration: none; margin: 0 4px 4px 0; }
.product-tags { margin: 10px 0; }
.discount-pill { font-style: normal; background: var(--price); color: #fff; font-size: .55em; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.summary-row.discount { color: var(--accent-dark); }
.coupon-box { margin: 12px 0 16px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; padding: 8px 10px; border: 1px solid #ccc; }
.coupon-applied { display: flex; justify-content: space-between; background: #f1f8e6; padding: 8px 10px; }
.coupon-error { color: var(--danger); font-size: 13px; margin: 0 0 6px; }
.sold-box { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin-top: 28px; }
.sold-box img { filter: grayscale(.7); opacity: .8; }
.ribbon.static { position: static; display: inline-block; margin-bottom: 8px; }
@media (max-width: 640px) { .sold-box { grid-template-columns: 1fr; } }

/* Tranziții fluide între pagini (View Transitions API, browsere moderne) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Favorite */
.product-card { position: relative; }
.wish-btn { border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: #333; }
.wish-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .15s; }
.wish-btn.on { color: #e0245e; }
.wish-btn.on svg { fill: currentColor; }
.wish-btn:hover svg { transform: scale(1.12); }
.wish-btn.card { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); z-index: 2; }
.wish-btn.big { padding: 6px 0; background: none; font-family: var(--head); font-size: 16px; margin: -4px 0 10px; }
.wish-link { position: relative; color: #222; display: inline-flex; }
.campaign-black-friday .wish-link { color: #fff; }

/* Banner cookie-uri */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: #fff; color: #222; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); padding: 16px 18px; z-index: 90; border-top: 4px solid var(--accent); }
.consent p { margin: 0 0 12px; font-size: 14px; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent-reopen { position: fixed; left: 12px; bottom: 12px; z-index: 80; border: 0; background: #fff; border-radius: 50%; width: 38px; height: 38px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); cursor: pointer; font-size: 18px; }
