/*
Theme Name: BunDeTot
Theme URI: https://bundetotsibiu.ro
Description: Tema custom pentru Bun de TOT.
Version: 1.0.0
Author: Ecosoft
Author URI: https://ecosoft-sibiu.ro/
Text Domain: bundetot
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =====================================================
   RESET & BASE
===================================================== */
:root {
    --bdt-brand: #9a0019;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background: #f7f7f7;
    overflow-x: clip;
}

a {
    color: #2e7d32;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #1b5e20;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* =====================================================
   LAYOUT
===================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

/* =====================================================
   TOP BAR
===================================================== */
.top-bar {
    background: #9a0019;
    color: #fff;
    font-size: 0.82rem;
    padding: 3px 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.top-bar-left {
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.top-bar-right .top-bar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-bar-right .top-bar-nav li {
    position: relative;
}

.top-bar-right .top-bar-nav li + li::before {
    content: '|';
    color: rgba(255,255,255,0.3);
    padding: 0 2px;
}

.top-bar-right .top-bar-nav a {
    color: #fff;
    font-size: 0.82rem;
    padding: 2px 8px;
    transition: color 0.2s;
}

.top-bar-right .top-bar-nav a:hover {
    color: #ffd0d0;
}

/* Dropdown submeniu top bar */
.top-bar-right .top-bar-nav li.menu-item-has-children {
    position: relative;
}

.top-bar-right .top-bar-nav li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.7rem;
    opacity: 0.7;
}

.top-bar-right .top-bar-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #7a0014;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    border-top: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.top-bar-right .top-bar-nav .sub-menu li {
    display: block;
}

.top-bar-right .top-bar-nav .sub-menu li::before {
    display: none;
}

.top-bar-right .top-bar-nav .sub-menu a {
    display: block;
    padding: 6px 16px;
    font-size: 0.82rem;
    color: #fff;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-right .top-bar-nav .sub-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.top-bar-right .top-bar-nav li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Social icons top bar */
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.25);
}

.top-bar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s;
}

.top-bar-social a:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

.top-bar-social svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #9a0019;
}

.site-logo img {
    height: 70px;
    width: auto;
}

/* Navigation - centrata, 2 randuri */
.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #333;
    padding: 6px 10px;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
    color: #9a0019;
    background: none;
}

/* Dropdown navigatie principala */
.site-nav li.menu-item-has-children {
    position: relative;
}

.site-nav li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.65rem;
    opacity: 0.6;
}

.site-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 9999;
    border-top: 2px solid #9a0019;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.site-nav .sub-menu li {
    display: block;
}

.site-nav .sub-menu a {
    padding: 8px 18px;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f2f2f2;
}

.site-nav .sub-menu a:hover {
    color: #9a0019;
    background: #fdf5f6;
}

.site-nav li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Header actions (telefon + cos) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ---- Header Search ---- */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search__toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #333;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.header-search__toggle svg {
    width: 20px;
    height: 20px;
}
.header-search__toggle:hover {
    color: #9a0019;
}

.header-search__box {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 320px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 2000;
    overflow: hidden;
}
.header-search__box.is-open {
    display: block;
}

.header-search__input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 44px 12px 16px;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}

.header-search__submit {
    position: absolute;
    right: 8px;
    top: 8px;
    background: #9a0019;
    border: none;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
}
.header-search__submit svg {
    width: 16px;
    height: 16px;
}

.header-search__dropdown {
    max-height: 360px;
    overflow-y: auto;
}

.hsd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}
.hsd-item:hover {
    background: #fdf6e3;
}
.hsd-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.hsd-item__info {
    flex: 1;
    min-width: 0;
}
.hsd-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hsd-item__price {
    font-size: 0.8rem;
    color: #9a0019;
    font-weight: 700;
    margin-top: 2px;
}
.hsd-msg {
    padding: 14px 16px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}
.hsd-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #9a0019;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
}
.hsd-all:hover {
    background: #fdf6e3;
}

/* Telefon - buton cu border */
.header-phone a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 6px 14px;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.header-phone a:hover {
    border-color: #9a0019;
    color: #9a0019;
}

.header-phone .phone-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Cos - buton cu text si badge */
.cart-icon-wrap a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 12px;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.cart-icon-wrap a:hover {
    border-color: #9a0019;
    color: #9a0019;
}

.cart-icon-wrap svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.cart-count {
    background: #9a0019;
    color: #fff;
    border-radius: 3px;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 4px;
}

.cart-label {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.cart-price {
    font-size: 0.82rem;
    color: #666;
}

/* =====================================================
   CART DROPDOWN (desktop hover)
===================================================== */
.cart-dropdown-wrap {
    position: relative;
}

.cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    z-index: 1500;
    overflow: hidden;
}

.cart-dropdown-wrap:hover .cart-dropdown,
.cart-dropdown.is-open {
    display: block;
}

.cart-dropdown__items {
    max-height: 260px;
    overflow-y: auto;
}

.cart-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
    transition: opacity 0.2s;
}

.cart-preview-item__thumb {
    display: block;
    flex-shrink: 0;
}

.cart-preview-item:hover {
    background: #fdf6e3;
}

.cart-preview-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-preview-item__info {
    flex: 1;
    min-width: 0;
}

.cart-preview-item__name {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    text-decoration: none;
}

.cart-preview-item__name:hover {
    color: #9a0019;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.cart-qty-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.cart-qty-btn:hover {
    background: #9a0019;
    border-color: #9a0019;
    color: #fff;
}

.cart-qty-num {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    min-width: 16px;
    text-align: center;
}

.cart-preview-item__meta {
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

.cart-preview-item__price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #9a0019;
    flex-shrink: 0;
    white-space: nowrap;
}

.cart-dropdown__footer {
    padding: 12px 14px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.cart-preview-subtotal {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 10px;
}

.cart-preview-subtotal strong {
    color: #333;
    font-weight: 700;
}

.cart-preview-actions {
    display: flex;
    gap: 8px;
}

.cart-preview-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    white-space: nowrap;
}

.cart-preview-btn--cart {
    background: #f5f5f5;
    color: #333 !important;
    border: 1px solid #ddd;
}

.cart-preview-btn--cart:hover {
    background: #e8e8e8;
    color: #333 !important;
}

.cart-preview-btn--checkout {
    background: #9a0019;
    color: #fff !important;
    border: 1px solid #9a0019;
}

.cart-preview-btn--checkout:hover {
    background: #7a0014;
    color: #fff !important;
}

.cart-preview-msg {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

/* =====================================================
   CART MOBILE PANEL (full-screen)
===================================================== */
.cart-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1998;
}

.cart-mobile-overlay.visible {
    display: block;
}

.cart-mobile-panel {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cart-mobile-panel.is-open {
    transform: translateY(0);
}

.cart-mobile-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.cart-mobile-panel__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

.cart-mobile-panel__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #555;
    display: flex;
    align-items: center;
}

.cart-mobile-panel__close svg {
    width: 24px;
    height: 24px;
}

.cart-mobile-panel__items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.cart-mobile-panel__footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}

/* Navigatie mobil - drawer slide-in din stanga */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none !important;
    border: none;
    box-shadow: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333 !important;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

/* Hamburger → X când e activ */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
    background: #1f1f1f;
    color: #aaa;
    padding: 12px 20px 5px;
    text-align: center;
}

/* Nav linkuri footer */
.site-footer .footer-nav ul {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .footer-nav ul li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

.site-footer .footer-nav ul li a {
    color: #bbb !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    transition: color 0.2s;
    background: none !important;
    padding: 0 !important;
    border: none !important;
}

.site-footer .footer-nav ul li a:hover {
    color: #fff !important;
}

.footer-bottom {
    font-size: 0.85rem;
    color: #777;
    padding: 12px 0;
}

.footer-bottom a {
    color: #aaa;
    font-weight: 700;
}

.footer-bottom a:hover {
    color: #fff;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 10px 22px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-secondary:hover {
    background: #2e7d32;
    color: #fff;
}

/* =====================================================
   SCROLL TO TOP
===================================================== */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: rgba(40, 40, 40, 0.75);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    outline: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--bdt-brand, #9a0019);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    display: block;
    flex-shrink: 0;
}

/* =====================================================
   FORMS
===================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.15);
}

/* =====================================================
   ACCORDION (pentru tabele de produse)
===================================================== */
.bdt-accordion {
    margin: 20px 0;
}

.bdt-accordion-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    background: #fff;
}

.bdt-accordion-header {
    width: 100%;
    background: #f1f8f1;
    border: none;
    padding: 14px 18px;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: #2e7d32;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.bdt-accordion-header:hover {
    background: #e0f0e0;
}

.bdt-accordion-header.active {
    background: #2e7d32;
    color: #fff;
}

.bdt-accordion-header .arrow {
    transition: transform 0.3s;
    font-size: 0.85rem;
}

.bdt-accordion-header.active .arrow {
    transform: rotate(180deg);
}

.bdt-accordion-body {
    display: none;
    padding: 16px;
    border-top: 1px solid #ddd;
}

.bdt-accordion-body.open {
    display: block;
}

/* =====================================================
   WOOCOMMERCE - BASE OVERRIDES
===================================================== */
.woocommerce-message,
.woocommerce-info {
    border-top-color: #2e7d32;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #2e7d32;
}

/* Fix icon care se suprapune peste text in mesajele de eroare */
.woocommerce-error {
    list-style: none;
}

.woocommerce-error li {
    position: relative;
    padding-left: 1.8em;
}

.woocommerce-error li::before {
    position: absolute;
    left: 0;
    top: 1px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: #2e7d32;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: #1b5e20;
    color: #fff;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: #2e7d32;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: #1b5e20;
}

/* =====================================================
   NOTICES
===================================================== */
.bdt-notice {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.bdt-notice-success {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}

.bdt-notice-error {
    background: #ffebee;
    border-left: 4px solid #c62828;
    color: #b71c1c;
}

.bdt-notice-info {
    background: #e3f2fd;
    border-left: 4px solid #1565c0;
    color: #0d47a1;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {

    /* Header: hamburger stanga | logo centrat | cos dreapta */
    .header-inner {
        display: grid;
        grid-template-columns: 44px 1fr auto;
        grid-template-rows: auto;
        align-items: center;
        padding: 8px 12px;
        gap: 0;
    }

    /* Hamburger - coloana 1 */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        grid-column: 1;
        grid-row: 1;
        order: unset;
        width: 44px;
        height: 44px;
        padding: 0;
        background: none !important;
        border: none;
        box-shadow: none;
    }

    .menu-toggle span {
        display: block !important;
        width: 22px;
        height: 2px;
        background: #333 !important;
        border-radius: 2px;
        flex-shrink: 0;
    }

    /* Logo mai mic pe mobil */
    .site-logo img {
        height: 70px !important;
    }

    /* Logo - coloana 2 centrat */
    .site-logo {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: center;
    }

    /* Header actions - coloana 3, arata doar cosul */
    .header-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 4px;
        justify-content: flex-end;
    }

    /* Ascunde telefonul in header pe mobil */
    .header-phone {
        display: none;
    }

    /* Search box: fixed centrat pe mobil */
    .header-search__box {
        position: fixed;
        left: 12px;
        right: 12px;
        width: auto;
        top: var(--bdt-header-h, 70px);
    }

    /* Cos: doar icon + badge, fara text/pret */
    .cart-icon-wrap a {
        border: none;
        padding: 4px;
        background: none;
    }

    .cart-icon-wrap svg {
        width: 22px;
        height: 22px;
    }

    .cart-label,
    .cart-price {
        display: none;
    }

    /* Dropdown cos ascuns pe mobil (se foloseste panelul full-screen) */
    .cart-dropdown {
        display: none !important;
    }

    /* Mobile panel - butoane stacked pe mobile */
    .cart-mobile-panel .cart-preview-actions {
        flex-direction: column;
    }

    .cart-count {
        position: absolute;
        top: -4px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .cart-icon-wrap {
        position: relative;
    }

    /* Navigatie - drawer fix din stanga */
    .site-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        background: #fff;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 20px;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
        border-top: none;
        margin-top: 0;
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .site-nav a {
        padding: 13px 24px;
        font-size: 0.95rem;
        border-bottom: 1px solid #f2f2f2;
        display: block;
    }

    .site-nav > ul > li:last-child > a {
        border-bottom: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    /* ---- Footer mobil ---- */
    .site-footer {
        padding: 0 0 8px;
    }

    .site-footer .footer-nav {
        border-bottom: 1px solid #333;
    }

    .site-footer .footer-nav ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .site-footer .footer-nav ul li {
        width: 100% !important;
        border-bottom: 1px solid #2e2e2e !important;
    }

    .site-footer .footer-nav ul li:last-child {
        border-bottom: none !important;
    }

    .site-footer .footer-nav ul li a {
        display: block !important;
        padding: 14px 20px !important;
        font-size: 0.8rem !important;
        letter-spacing: 0.12em !important;
        text-align: left !important;
        position: relative;
    }

    .site-footer .footer-nav ul li a::after {
        content: '›';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #555;
        font-size: 1.1rem;
        font-weight: 400;
    }

    .footer-bottom {
        padding: 14px 20px 6px;
        font-size: 0.78rem;
        text-align: center;
    }
}
