/* ============================================================
   GLOBAL SHOP STYLES — Climatizare.net
   Styles pentru paginile shop (vendored din modena, restilizat
   cu paleta climatizare). 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 1.5rem 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; }
