/* ============================================================
   ENSIMAX — Main Stylesheet
   ============================================================ */

:root {
    --navy:        #071421;
    --navy-2:      #0b2545;
    --accent:      #c4302b;       /* приглушено индустриално червено */
    --accent-2:    #e04540;
    --text:        #101828;
    --muted:       #667085;
    --line:        #dfe4eb;
    --light:       #f6f8fb;
    --white:       #ffffff;
    --radius:      10px;
    --shadow-sm:   0 4px 12px rgba(16, 24, 40, .06);
    --shadow-md:   0 8px 24px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, #0a1627, #081420);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    width: 200px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, .1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Header search */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, .12);
}

.search-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: #081726;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
    width: 320px;
}

.header-search.is-open .search-panel {
    display: flex;
    gap: 6px;
}

.search-panel input {
    flex: 1;
    border: 0;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font: inherit;
}

.search-panel input::placeholder { color: rgba(255, 255, 255, .5); }

.search-panel button[type="submit"] {
    border: 0;
    background: var(--accent);
    color: #fff;
    width: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Cart link */
.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 40px;
    background: rgba(196, 48, 43, .14);
    border: 1px solid rgba(196, 48, 43, .3);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
}

.cart-link b {
    background: var(--accent);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

/* Language menu */
.lang-menu {
    position: relative;
}

.lang-menu > button {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.lang-menu > div {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    min-width: 180px;
    background: #081726;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
    z-index: 60;
}

.lang-menu.open > div { display: block; }

.lang-menu a {
    display: block;
    color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.lang-menu a:hover { background: rgba(255, 255, 255, .08); }

/* Menu toggle (mobile hamburger) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero-clean {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #061423;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: .92;
}

.hero-clean::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42), rgba(0, 0, 0, .08));
}

.hero-clean-inner {
    position: relative;
    z-index: 1;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero-clean h1 {
    font-size: clamp(34px, 4.2vw, 56px);
    line-height: 1.08;
    margin: 16px 0 22px;
    max-width: 720px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.hero-clean p {
    max-width: 620px;
    font-size: 18px;
    color: #d9e7f8;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
}

.kicker::before {
    content: "";
    width: 36px;
    height: 3px;
    background: var(--accent);
    border-radius: 99px;
}

.kicker-dark { color: #475467; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(196, 48, 43, .35);
}

.btn-primary:hover { background: var(--accent-2); }

.btn-dark { background: var(--navy-2); color: #fff; }

.btn-outline {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    background: rgba(0, 0, 0, .12);
}

.btn-outline:hover { background: rgba(255, 255, 255, .12); }

.btn-light-outline,
.btn-ghost {
    background: #fff;
    color: var(--navy-2);
    border-color: #d8e0ea;
}

.btn-light-outline:hover { background: var(--light); }

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 36px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 12px;
    border-right: 1px solid var(--line);
}

.trust-item:last-child { border-right: 0; }

.trust-item strong {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy-2);
    line-height: 1;
}

.trust-item span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 64px 0; }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 32px;
}

.section-head h2 {
    font-size: clamp(28px, 3vw, 38px);
    margin: 8px 0 0;
    font-weight: 800;
    color: var(--navy-2);
}

.section-head p {
    max-width: 420px;
    color: var(--muted);
    margin: 0;
}

.section.products-home,
.content-wrap {
    background: var(--light);
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.products-grid-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card,
.panel,
.project-card {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .2s, box-shadow .25s;
}

.product-card:hover,
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: 210px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 290px;
}

.product-title {
    font-size: 18px;
    margin: 0;
    color: var(--navy-2);
    font-weight: 700;
}

.product-summary {
    color: var(--muted);
    font-size: 14px;
    min-height: 42px;
}

.badge,
.sku-mini {
    display: inline-flex;
    background: #eef2f6;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #475467;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.product-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.price { margin-top: auto; }

.price-eur {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-2);
}

.price-bgn {
    display: block;
    color: #98a2b3;
    font-weight: 600;
    font-size: 14px;
}

.price-note {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--navy-2);
    font-size: 14px;
}

.stock-status span {
    width: 9px;
    height: 9px;
    background: #12a66a;
    border-radius: 50%;
}

.stock-out_of_stock span { background: #e12d39; }
.stock-limited span      { background: #f59e0b; }
.stock-by_request span,
.stock-expected span     { background: #2f80ed; }

.card-actions {
    display: grid;
    gap: 8px;
}

/* ============================================================
   CATALOG / FORMS
   ============================================================ */

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
}

.catalog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    padding: 20px;
}

.catalog-sidebar form { display: grid; gap: 12px; }

.catalog-sidebar input,
.catalog-sidebar select,
input,
select,
textarea {
    width: 100%;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(196, 48, 43, .25);
    border-color: var(--accent);
}

.range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.pagination a {
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
}

.pagination a.current {
    background: var(--navy-2);
    color: #fff;
    border-color: var(--navy-2);
}

/* ============================================================
   PAGE HERO
   ============================================================ */

.page-hero {
    background: linear-gradient(135deg, #091726, #0b2138);
    color: #fff;
    padding: 64px 0;
}

.page-hero h1 {
    font-size: clamp(30px, 3.5vw, 44px);
    margin: 10px 0;
    font-weight: 800;
}

.content-wrap { padding: 48px 0; }

.two-col,
.product-detail,
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.full { grid-column: 1 / -1; }

.bigimg {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    padding: 22px;
}

.bigimg img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.meta {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    padding: 26px;
}

.spec-list {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: var(--light);
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    padding: 10px 12px;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services-band {
    background: var(--navy);
    color: #fff;
}

.services-band .kicker { color: #fff; }

.services-band h2 {
    font-size: clamp(28px, 3vw, 38px);
    margin: 8px 0 32px;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.services-grid article {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    padding: 24px;
    transition: background .25s;
}

.services-grid article:hover {
    background: rgba(255, 255, 255, .08);
}

.services-grid article h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.services-grid article p {
    margin: 0;
    color: #c0cfe2;
    font-size: 14px;
    line-height: 1.55;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card .ph {
    height: 210px;
    background: var(--light);
}

.project-card .ph img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
}

.project-card .body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 230px;
}

.project-card-actions { margin-top: auto; }

.contact-logo-box {
    margin-top: 22px;
    min-height: 260px;
    background: linear-gradient(135deg, #061425, #0b2139);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.contact-logo-box img {
    max-height: 230px;
    object-fit: contain;
}

/* ============================================================
   CART
   ============================================================ */

.cart-row {
    display: grid;
    grid-template-columns: 78px 1fr 90px auto auto;
    gap: 14px;
    align-items: center;
    border-bottom: 1px solid #e4eaf2;
    padding: 14px 0;
}

.cart-row img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: var(--light);
    border-radius: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--navy);
    color: #d9e7f8;
    padding: 56px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .9fr 1.2fr .9fr;
    gap: 32px;
}

.footer-grid h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 16px;
}

.footer-grid a {
    display: block;
    color: #c0cfe2;
    padding: 4px 0;
    font-size: 14px;
    transition: color .15s;
}

.footer-grid a:hover { color: #fff; }

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 14px;
}

.footer-brand p {
    color: #c0cfe2;
    font-size: 14px;
    margin: 0 0 8px;
}

.footer-vat,
.footer-cert {
    font-size: 12px;
    color: #8aa1bd;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    color: #fff;
    padding: 0;
    transition: background .2s;
}

.social-links a:hover { background: rgba(255, 255, 255, .14); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 18px;
    margin-top: 32px;
    color: #8aa1bd;
    font-size: 13px;
}

/* ============================================================
   NOTICES
   ============================================================ */

.notice {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-weight: 600;
}

.notice.success { background: #ecfdf3; color: #067647; }
.notice.error   { background: #fff1f1; color: #b42318; }

/* ============================================================
   ADMIN (запазено от стария файл)
   ============================================================ */

.admin-shell { background: #f4f7fa; }

.admin-top {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.admin-top .container {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    min-height: 76px;
}

.admin-brand { width: 220px; }

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-nav a {
    font-weight: 700;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

.admin-main { padding: 32px 0; }

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px auto;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin: 18px 0;
}

.admin-list { display: grid; gap: 12px; }

.admin-card {
    display: grid;
    grid-template-columns: 78px minmax(220px, 1.3fr) minmax(140px, .8fr) minmax(130px, .7fr) 190px;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
}

.admin-card > img {
    width: 78px;
    height: 78px;
    object-fit: contain;
    background: var(--light);
    border-radius: 8px;
}

.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.mini {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
}

.admin-danger {
    background: #fff1f1;
    color: #b42318;
    border-color: #f5b8b8;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.admin-stats div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
}

.admin-stats strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
}

.table th,
.table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--navy);
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    min-width: 340px;
}

.login-card img { width: 260px; }

.center-btn {
    text-align: center;
    margin-top: 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {
    .products-grid,
    .products-grid-catalog,
    .services-grid,
    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-layout,
    .two-col,
    .product-detail,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .admin-card { grid-template-columns: 78px 1fr; }
    .admin-card .actions { grid-column: 1 / -1; }

    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: 0; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: 78px;
        background: #071421;
        border-radius: 12px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    }

    .main-nav.open { display: flex; }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: stretch;
    }

    .brand img { width: 160px; }

    .products-grid,
    .products-grid-catalog,
    .services-grid,
    .list-grid {
        grid-template-columns: 1fr;
    }

    .section-head,
    .admin-head { display: block; }

    .form-grid { grid-template-columns: 1fr; }

    .cart-row { grid-template-columns: 60px 1fr; }
    .cart-row input,
    .cart-row button { grid-column: 2; }

    .admin-toolbar { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .hero-clean-inner {
        min-height: 460px;
        padding: 50px 0;
    }

    .hero-clean h1 { font-size: 32px; }

    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item { border-right: 0; }
    .trust-item strong { font-size: 28px; }
    
    
    /* ============================================================
   CART PAGE (v78 compatibility)
   ============================================================ */

.cart-page-v78 { background: var(--light); }

.cart-hero-v78 { background: linear-gradient(135deg, #091726, #0b2138); }

.cart-layout-v78 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: start;
}

.cart-panel-v78 {
    background: #fff;
    border: 1px solid #e4eaf2;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.cart-panel-v78 h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-2);
}

.cart-empty-v78 {
    text-align: center;
    padding: 48px 28px;
}

/* Cart items */
.cart-items-v78 { display: grid; gap: 16px; }

.cart-item-v78 {
    display: grid;
    grid-template-columns: 88px 1fr 110px auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    background: var(--light);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.cart-item-img-v78 {
    width: 88px;
    height: 88px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 6px;
}

.cart-item-info-v78 strong {
    display: block;
    color: var(--navy-2);
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-info-v78 p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 13px;
}

.cart-qty-v78 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-qty-v78 input {
    width: 90px;
    text-align: center;
}

.cart-actions-v78 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Cart action buttons (Update / Remove) */
.cart-action-btn-v78 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s;
}

.cart-action-primary-v78 {
    background: var(--navy-2);
    color: #fff;
}

.cart-action-primary-v78:hover { background: #0d2c52; }

.cart-action-secondary-v78 {
    background: #fff;
    color: var(--navy-2);
    border-color: #d8e0ea;
}

.cart-action-secondary-v78:hover { background: var(--light); }

/* Cart form fields */
.cart-form-grid-v78 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cart-form-grid-v78 .full { grid-column: 1 / -1; }

.cart-field-v78 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-field-label-v78 {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-2);
    text-transform: none;
    letter-spacing: 0;
}

.cart-field-v78 input,
.cart-field-v78 textarea {
    width: 100%;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

.cart-field-v78 textarea {
    min-height: 120px;
    resize: vertical;
}

.cart-field-v78 input:focus,
.cart-field-v78 textarea:focus {
    outline: 2px solid rgba(196, 48, 43, .25);
    border-color: var(--accent);
}

.cart-field-v78 small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Submit button */
.cart-submit-btn-v78 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(196, 48, 43, .35);
    transition: background .2s, transform .15s;
    width: 100%;
}

.cart-submit-btn-v78:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1050px) {
    .cart-layout-v78 { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .cart-item-v78 {
        grid-template-columns: 64px 1fr;
    }
    .cart-item-img-v78 { width: 64px; height: 64px; }
    .cart-qty-v78,
    .cart-actions-v78 { grid-column: 2; }
    .cart-form-grid-v78 { grid-template-columns: 1fr; }
}
}