/* ============================================================
   GLOBAL SHOP STYLES — tema shop
   Styles pentru paginile shop (stiluri de baza pentru paginile shop
   cu paleta temei). Loaded global via filtru *global*.
   ============================================================ */

/* Material Symbols Outlined fallback inline (icoanele material) */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-size: 18px;
    vertical-align: middle;
}

/* ── PAGE HERO (breadcrumb top banner) ─────────────────────── */
.page-hero {
    background: linear-gradient(135deg, rgba(246,148,82,.08), rgba(104,174,216,.06));
    border-bottom: 1px solid var(--bdr);
    padding: 50px 0 36px;
    margin-bottom: 0;
}
.page-hero .container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page-hero h1 {
    font-family: 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark);
    letter-spacing: 1px;
    margin: 0 0 8px;
    font-weight: 700;
    line-height: 1.1;
}
.page-hero .hero-desc {
    color: var(--gray);
    font-size: 1rem;
    margin: 0 0 16px;
}
.page-breadcrumb {
    font-size: .85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.page-breadcrumb a { color: var(--o); text-decoration: none; font-weight: 500; }
.page-breadcrumb a:hover { color: var(--od); text-decoration: underline; }
.page-breadcrumb .sep { color: var(--gl); }
.page-breadcrumb .current { color: var(--dark); font-weight: 600; }

/* ── SHOP FILTER BAR (mobile) ───────────────────────────────── */
.shop-filter-bar {
    display: none; /* hidden on desktop */
    padding: 12px 1rem;
    background: #fff;
    border-bottom: 1px solid var(--bdr);
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.shop-filter-bar button {
    flex: 1;
    padding: 10px 14px;
    background: var(--w);
    border: 1px solid var(--bdr);
    border-radius: var(--rsm);
    font-size: .85rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
}
.shop-filter-bar button:hover { border-color: var(--o); color: var(--o); }

/* ── SHOP FILTER DRAWER (mobile modal) ──────────────────────── */
.shop-filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 360px;
    background: #fff;
    z-index: 1000;
    transform: translateX(110%);
    transition: transform .25s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shlg);
}
.shop-filter-drawer.active { transform: translateX(0); }
.shop-filter-drawer-head {
    padding: 20px;
    border-bottom: 1px solid var(--bdr);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shop-filter-drawer-head h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: .5px;
    margin: 0;
    color: var(--dark);
}
.shop-filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.shop-filter-drawer-body label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: -8px;
}
.shop-filter-drawer-body input,
.shop-filter-drawer-body select {
    padding: 10px 14px;
    border: 1px solid var(--bdr);
    border-radius: var(--rsm);
    font-size: .9rem;
    font-family: inherit;
    background: #fff;
    color: var(--dark);
}
.shop-filter-drawer-body input:focus,
.shop-filter-drawer-body select:focus {
    outline: none;
    border-color: var(--o);
    box-shadow: 0 0 0 3px rgba(246,148,82,.15);
}
.shop-filter-drawer-foot {
    padding: 16px 20px;
    border-top: 1px solid var(--bdr);
    display: flex;
    gap: 10px;
}
.shop-filter-drawer-foot a,
.shop-filter-drawer-foot button {
    padding: 12px 16px;
    border-radius: var(--rsm);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--bdr);
}
.shop-filter-drawer-foot button {
    flex: 2;
    background: var(--o);
    color: #fff;
    border-color: var(--o);
}
.shop-filter-drawer-foot button:hover { background: var(--od); border-color: var(--od); }

/* ── DESKTOP FILTER FORM (#shopFilters) ─────────────────────── */
#shopFilters {
    background: #fff !important;
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 18px 22px !important;
    box-shadow: var(--shsm);
    margin-bottom: 30px !important;
}
#shopFilters input,
#shopFilters select {
    border-radius: var(--rsm) !important;
    border-color: var(--bdr) !important;
    transition: border-color .15s, box-shadow .15s;
}
#shopFilters input:focus,
#shopFilters select:focus {
    outline: none;
    border-color: var(--o) !important;
    box-shadow: 0 0 0 3px rgba(246,148,82,.12);
}
#shopFilters button[type="submit"],
#shopFilters .btn-secondary {
    background: var(--o) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 22px !important;
    font-weight: 700;
    border-radius: var(--rsm);
    cursor: pointer;
    transition: background .15s;
}
#shopFilters button[type="submit"]:hover { background: var(--od) !important; }

/* ── SHOP PRODUCT GRID ──────────────────────────────────────── */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ── PRODUCT CARD ──────────────────────────────────────────── */
.product-card {
    background: #fff;
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    position: relative;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh);
    border-color: rgba(246,148,82,.4);
}
.product-card > a:first-child {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--light);
}
.product-card > a:first-child img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform .25s;
}
.product-card:hover > a:first-child img { transform: scale(1.04); }
.product-card > a:first-child > span {
    /* discount badge */
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--o);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 2;
}
/* vendor/category label */
.product-card > div:nth-of-type(1) {
    padding: 14px 16px 4px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: .5px;
}
/* title link */
.product-card > a:not(:first-child) {
    display: block;
    padding: 0 16px;
    text-decoration: none;
    color: var(--dark);
}
.product-card > a:not(:first-child) h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}
.product-card > a:not(:first-child) h4:hover { color: var(--o); }
/* rating row */
.product-card > div:has(.material-symbols-outlined[class*="star"]) {
    padding: 6px 16px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--gray);
}
.product-card .material-symbols-outlined { font-size: 16px; color: var(--o); }
.product-card .material-symbols-outlined.empty { color: var(--bdr); }
/* price */
.product-card > div:nth-last-of-type(2),
.product-card > div:has(.old-price) {
    padding: 8px 16px 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.product-card .old-price {
    color: var(--gl);
    font-size: .85rem;
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 500;
}
/* actions row (add to cart + wishlist) */
.product-card > div:last-of-type {
    padding: 8px 16px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
}
.product-card > div:last-of-type a {
    flex: 1;
    background: var(--o);
    color: #fff;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: var(--rsm);
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
}
.product-card > div:last-of-type a:hover { background: var(--od); color: #fff; }
.product-card > div:last-of-type a .material-symbols-outlined { color: #fff; font-size: 18px; }
.product-card > div:last-of-type button[data-wishlist] {
    background: var(--w);
    border: 1px solid var(--bdr);
    width: 40px;
    height: 40px;
    border-radius: var(--rsm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gl);
    transition: all .15s;
}
.product-card > div:last-of-type button[data-wishlist]:hover { color: var(--o); border-color: var(--o); }
.product-card > div:last-of-type button[data-wishlist].active { color: var(--o); border-color: var(--o); background: rgba(246,148,82,.08); }
.product-card > div:last-of-type button[data-wishlist] .material-symbols-outlined { font-size: 20px; }

/* ── SHOP PAGINATION ────────────────────────────────────────── */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}
.shop-pagination a,
.shop-pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--rsm);
    border: 1px solid var(--bdr);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: .9rem;
    background: #fff;
    transition: all .15s;
}
.shop-pagination a:hover { border-color: var(--o); color: var(--o); }
.shop-pagination .active { background: var(--o); color: #fff; border-color: var(--o); }

/* ── BREAKPOINTS ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .shop-filter-bar { display: flex; }
    #shopFilters { display: none !important; }
    .page-hero { padding: 32px 0 24px; }
    .page-hero h1 { font-size: 1.6rem; }
    .shop-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card > a:first-child img { padding: 8px; }
    .product-card > a:not(:first-child) h4 { font-size: .82rem; }
    .product-card > div:nth-last-of-type(2) { font-size: .95rem; }
    .product-card > div:last-of-type { flex-wrap: wrap; }
    .product-card > div:last-of-type a { font-size: .75rem; padding: 8px 10px; }
}
@media (min-width: 769px) {
    .shop-filter-bar,
    .shop-filter-drawer { display: none !important; }
}

/* ── PAGE CONTENT WRAPPER ──────────────────────────────────── */
.page-content { background: #f8f9fa; }
.page-content > .container { padding: 30px 0 60px; max-width: 1280px; }

/* ── PRODUCT DETAIL PAGE (/produs/{slug}) ──────────────────── */
.product-info-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.25;
}

/* ── CART PAGE (/cos) — minimal styling so it's readable ── */
.cart-empty, .empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

/* ── BUTTONS GENERIC ───────────────────────────────────────── */
.btn, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rsm);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    transition: all .15s;
    font-size: .9rem;
}
.btn-primary, .btn-secondary { background: var(--o); color: #fff; border-color: var(--o); }
.btn-primary:hover, .btn-secondary:hover { background: var(--od); border-color: var(--od); color: #fff; }

/* ── BODY FONT OVERRIDE ── design_header_css declara body{font-family:Outfit} dar Outfit nu e loaded; Plus Jakarta Sans e loaded prin _frontend_head.php ── */
html body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }


/* ============================================================
   PRODUCT DETAIL PAGE — /produs/{slug}
   ============================================================ */

.page-content { padding: 24px 0 60px; }

/* ── Main 2-column layout (gallery | info) ─────────────────── */
.product-page {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}
@media (max-width: 960px) {
    .product-page { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Gallery ───────────────────────────────────────────────── */
.product-gallery { display: flex; flex-direction: column; gap: 14px; }
.product-gallery-main {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    cursor: zoom-in;
    transition: transform .3s ease;
}
.product-gallery-main:hover img { transform: scale(1.03); }
.product-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 10px;
}
.product-gallery-thumbs img,
.product-gallery-thumbs button {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--bdr);
    border-radius: var(--rsm);
    cursor: pointer;
    transition: border-color .15s;
}
.product-gallery-thumbs img:hover,
.product-gallery-thumbs button:hover,
.product-gallery-thumbs .is-active { border-color: var(--o); }

/* ── Info column ───────────────────────────────────────────── */
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-info-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--gray);
    margin-bottom: 4px;
}
.product-info-category a { color: var(--o); text-decoration: none; font-weight: 600; }
.product-info-category a:hover { color: var(--od); text-decoration: underline; }
.product-info-title {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}
.product-info-price {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--o);
    line-height: 1;
    margin: 6px 0 4px;
}
.product-info-price .price-old,
.product-info-price del {
    font-size: 0.55em;
    color: var(--gl);
    font-weight: 500;
    margin-left: 10px;
    text-decoration: line-through;
}
.product-info-price .price-discount {
    font-size: 0.5em;
    background: #dc2626;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: 700;
}
.product-info-short {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14.5px;
    padding: 12px 0;
    border-top: 1px solid var(--bdr);
    border-bottom: 1px solid var(--bdr);
}
.product-info-short p { margin: 0 0 8px; }
.product-info-short p:last-child { margin: 0; }

/* ── Actions bar (Add to cart + icons) ─────────────────────── */
.product-actions-bar {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin: 8px 0 4px;
}
.pab-main {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 22px;
    background: var(--o);
    color: #fff;
    border: 1px solid var(--o);
    border-radius: var(--rsm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    text-decoration: none;
    font-family: inherit;
}
.pab-main:hover { background: var(--od); border-color: var(--od); }
.pab-main:active { transform: translateY(1px); }
.pab-main:disabled { opacity: .55; cursor: not-allowed; background: var(--gray); border-color: var(--gray); }
.pab-main .material-symbols-outlined { font-size: 20px; }
.pab-icon {
    width: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--bdr);
    border-radius: var(--rsm);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}
.pab-icon:hover { border-color: var(--o); color: var(--o); }
.pab-icon[data-wishlist].is-active { color: #dc2626; border-color: #dc2626; }
.pab-icon .material-symbols-outlined { font-size: 22px; }

/* ── Meta (SKU, categorii, tags) ───────────────────────────── */
.product-meta {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.9;
}
.product-meta strong { color: var(--dark); font-weight: 600; }
.product-meta a { color: var(--o); text-decoration: none; }
.product-meta a:hover { text-decoration: underline; }

/* ── USPs grid (4 cards: garanție/livrare/etc) ─────────────── */
.product-usps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.product-usp {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px;
    background: var(--light);
    border: 1px solid var(--bdr);
    border-radius: var(--rsm);
    font-size: 12.5px;
    color: var(--gray);
    line-height: 1.4;
}
.product-usp .material-symbols-outlined { color: var(--o); font-size: 24px; }
.product-usp strong { color: var(--dark); font-weight: 700; font-size: 13.5px; display: block; }

/* ── Tabs (Descriere / Livrare / Recenzii) ────────────────── */
.product-tabs {
    max-width: var(--container);
    margin: 60px auto 0;
    padding: 0;
}
.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--bdr);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-tabs-nav::-webkit-scrollbar { display: none; }
.product-tabs-nav button {
    background: none;
    border: none;
    padding: 16px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
    font-family: inherit;
    white-space: nowrap;
}
.product-tabs-nav button:hover { color: var(--dark); }
.product-tabs-nav button.active { color: var(--o); border-bottom-color: var(--o); }
.product-tab-content { display: none; padding: 30px 0; }
.product-tab-content.active { display: block; }
.product-tab-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

/* ── Long description (rendered from DB HTML) ──────────────── */
.product-long-description { color: var(--dark); line-height: 1.75; font-size: 15px; }
.product-long-description p { margin: 0 0 14px; }
.product-long-description h2,
.product-long-description h3,
.product-long-description h4 {
    margin: 26px 0 12px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}
.product-long-description h2 { font-size: 1.4rem; }
.product-long-description h3 { font-size: 1.2rem; }
.product-long-description h4 { font-size: 1.05rem; }
.product-long-description ul,
.product-long-description ol { margin: 0 0 14px 22px; }
.product-long-description li { margin-bottom: 6px; }
.product-long-description strong { font-weight: 700; color: var(--dark); }
.product-long-description a { color: var(--o); text-decoration: underline; }
.product-long-description a:hover { color: var(--od); }
.product-long-description img { max-width: 100%; height: auto; border-radius: var(--rsm); margin: 12px 0; }
.product-long-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}
.product-long-description th,
.product-long-description td {
    padding: 10px 14px;
    border: 1px solid var(--bdr);
    text-align: left;
}
.product-long-description th { background: var(--light); font-weight: 700; }

/* ── Delivery tab grid (3 blocks: Livrare/Montaj/Plată) ──── */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.delivery-block {
    background: var(--light);
    padding: 24px;
    border-radius: var(--r);
    border: 1px solid var(--bdr);
}
.delivery-block-icon {
    width: 48px;
    height: 48px;
    background: var(--o);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.delivery-block-icon .material-symbols-outlined { font-size: 24px; color: #fff; }
.delivery-block h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin: 0 0 12px; }
.delivery-block ul { margin: 0; padding-left: 18px; }
.delivery-block li { margin-bottom: 10px; color: var(--gray); font-size: 14px; line-height: 1.55; }
.delivery-block li strong { color: var(--dark); font-weight: 700; }

/* ── Reviews section ───────────────────────────────────────── */
.reviews-section { font-size: 14.5px; }
.reviews-section #reviewsSummary { margin-bottom: 24px; }
.review-form {
    background: var(--light);
    padding: 22px;
    border-radius: var(--r);
    border: 1px solid var(--bdr);
    margin-bottom: 28px;
}
.review-form h4 { font-size: 1.05rem; margin: 0 0 14px; font-weight: 700; color: var(--dark); }
.review-form label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.review-form input,
.review-form textarea,
.review-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bdr);
    border-radius: var(--rsm);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    margin-bottom: 14px;
    color: var(--dark);
}
.review-form input:focus,
.review-form textarea:focus { outline: none; border-color: var(--o); }
.review-form button {
    background: var(--o);
    color: #fff;
    border: 1px solid var(--o);
    border-radius: var(--rsm);
    padding: 12px 22px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
}
.review-form button:hover { background: var(--od); }
.review-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--bdr);
}
.review-item:last-of-type { border-bottom: none; }
.review-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}
.review-rating { color: #f59e0b; font-size: 14px; letter-spacing: 1px; }
.review-author { font-weight: 700; color: var(--dark); font-size: 14px; }
.review-date { font-size: 12px; color: var(--gl); margin-left: auto; }
.review-title { font-weight: 600; color: var(--dark); margin: 4px 0 6px; }
.review-content { color: var(--gray); line-height: 1.55; font-size: 14px; }

/* ── Related products section ──────────────────────────────── */
.related-products {
    max-width: var(--container);
    margin: 60px auto 0;
    padding: 0 5vw;
}
.related-products h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
    text-align: center;
}

/* ── Mobile responsive tweaks ──────────────────────────────── */
@media (max-width: 600px) {
    .product-actions-bar { flex-wrap: wrap; }
    .pab-main { width: 100%; }
    .pab-icon { flex: 1; max-width: none; }
    .product-tabs-nav button { padding: 14px 16px; font-size: 13.5px; }
    .delivery-grid { grid-template-columns: 1fr; }
    .product-tabs { margin-top: 40px; }
    .related-products { margin-top: 40px; }
}


/* ============================================================
   CART PAGE — /cos
   ============================================================ */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5vw;
}

/* ── Layout 2 coloane (items | summary) ────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}
@media (max-width: 840px) {
    .cart-layout { grid-template-columns: 1fr; }
}

/* ── Items list ────────────────────────────────────────────── */
.cart-items {
    background: #fff;
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    overflow: hidden;
}
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--bdr);
}
.cart-item:last-child { border-bottom: none; }
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 70px 1fr auto;
        gap: 12px;
    }
    .cart-item-qty { grid-column: 2 / 4; margin-top: 8px; justify-self: start; }
    .cart-item-remove { grid-column: 3; grid-row: 1; align-self: start; }
}

.cart-item-img {
    width: 90px;
    height: 90px;
    background: var(--light);
    border-radius: var(--rsm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}
@media (max-width: 600px) {
    .cart-item-img { width: 70px; height: 70px; }
}

.cart-item-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-item-name {
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    text-decoration: none;
    word-break: break-word;
}
.cart-item-name:hover { color: var(--o); }
.cart-item-price {
    color: var(--o);
    font-weight: 700;
    font-size: 16px;
}

/* ── Qty stepper ───────────────────────────────────────────── */
.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--bdr);
    border-radius: var(--rsm);
    overflow: hidden;
    background: #fff;
}
.cart-item-qty button {
    background: var(--light);
    border: none;
    width: 34px;
    height: 34px;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    cursor: pointer;
    transition: background .15s, color .15s;
    font-family: inherit;
}
.cart-item-qty button:hover { background: var(--o); color: #fff; }
.cart-item-qty span {
    min-width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    padding: 0 4px;
}

.cart-item-remove {
    background: transparent;
    border: 1px solid transparent;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rsm);
    cursor: pointer;
    color: var(--gray);
    transition: all .15s;
}
.cart-item-remove:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.cart-item-remove .material-symbols-outlined { font-size: 20px; }

/* ── Summary card (sticky right column) ────────────────────── */
.cart-summary {
    background: #fff;
    border: 1px solid var(--bdr);
    border-radius: var(--r);
    padding: 24px;
    position: sticky;
    top: 100px;
}
.cart-summary h3 {
    color: var(--dark);
    font-weight: 700;
    margin: 0 0 20px;
}
.cart-summary .btn {
    width: 100%;
    justify-content: center;
}

/* ── Empty state already inline-styled, but ensure btn works ─ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--rsm);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
    line-height: 1.2;
}
.btn-primary {
    background: var(--o);
    color: #fff;
    border-color: var(--o);
}
.btn-primary:hover { background: var(--od); border-color: var(--od); color: #fff; }
.btn-secondary {
    background: #fff;
    color: var(--dark);
    border-color: var(--bdr);
}
.btn-secondary:hover { background: var(--light); border-color: var(--o); color: var(--o); }

/* ── Breadcrumb tweaks (existed bare) ──────────────────────── */
.page-breadcrumb .sep { color: var(--gl); margin: 0 6px; }
.page-breadcrumb .current { color: var(--gray); }
.page-breadcrumb a { color: var(--o); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ── Recommended grid (.product-grid generic) ─────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
}

/* ── DEFENSIVE: prevent horizontal scroll cross-browser ─────
   body{overflow-x:hidden} nu functioneaza pe Firefox/Safari
   daca elemente cu position:absolute si right negative ies
   din parent fara overflow:hidden explicit ──────────────── */
html { overflow-x: clip; }
html, body { max-width: 100vw; overflow-x: clip; }

/* ── Secondary action button (Cu montaj) on product page ──── */
.pab-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 18px;
    background: #fff;
    color: var(--dark);
    border: 1.5px solid var(--o);
    border-radius: var(--rsm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, color .15s;
    text-decoration: none;
    font-family: inherit;
}
.pab-secondary:hover { background: var(--ol); color: var(--od); }
.pab-secondary .material-symbols-outlined { font-size: 18px; color: var(--o); }
.pab-secondary:hover .material-symbols-outlined { color: var(--od); }

/* ── Montaj badge in cart ─────────────────────────────────── */
.cart-item-montaj-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    padding: 3px 8px;
    background: var(--ol);
    color: var(--od);
    border: 1px solid rgba(246,148,82,.3);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    width: max-content;
}
.cart-item-montaj-badge .material-symbols-outlined { font-size: 14px; }

/* ── ALIGN body content width cu nav (1280px) pe paginile secundare ─
   Multe pagini (/servicii, /contact, /despre-noi) folosesc .si cu
   max-width 900-1100px hardcoded inline, mai îngust decât .nav-inner.
   Aliniere vizuală: forțăm .si la var(--container). Specificity html .si
   = 0,1,1 > inline .si = 0,1,0 → win fără !important.   ────── */
html .page-content .si,
html .si {
    max-width: var(--container, 1280px) !important;
}
html .page-content { padding-left: 0 !important; padding-right: 0 !important; }

/* ── A11y polish 2026-05-19 (audit fazat) ────────────────────────────────── */
button:disabled, .btn:disabled, [aria-disabled="true"],
input:disabled, select:disabled, textarea:disabled,
button[disabled], input[disabled], select[disabled], textarea[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
button:focus-visible, .btn:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 6px;
}
button:focus:not(:focus-visible), .btn:focus:not(:focus-visible), a:focus:not(:focus-visible) {
    outline: none;
}
@media (hover: none) and (pointer: coarse) {
    .btn, button.btn, a.btn, .pagination a, .pagination span {
        min-height: 44px;
        min-width: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
