/* ELKID 2026 – staging front redesign; independent from Admin and Excel styles. */
.elkid26 { color: #27313b; background: #fff; }
.elkid26 a { transition: color .16s ease; }
.elkid26 a:focus-visible, .elkid26 button:focus-visible, .elkid26 input:focus-visible { outline: 3px solid #0a72b5; outline-offset: 2px; }
.elkid26 .container { max-width: 1200px; }
.elkid26 .content { padding-top: 22px; }
.elkid26 .header { background: #fff; }
.elkid26 .header .topbar { background: #fff; border-bottom: 1px solid #edf0f3; }
.elkid26 .elkid-topbar-inner { min-height: 32px; }
.elkid26 .elkid-top-phone { font-size: 13px; font-weight: 600; margin-right: 18px; color: #27313b; display: inline-block; }
.elkid26 .elkid-top-phone:hover { color: #df151a; text-decoration: none; }
.elkid26 .navbar-default { background: #fff; border: 0; box-shadow: 0 1px 5px rgba(25,34,45,.08); }
.elkid26 .header .navbar { margin-bottom: 0; }
.elkid26 .navbar-brand img { object-fit: contain; }
.elkid26 .navbar-default .navbar-nav > li > a { font-weight: 600; }
.elkid26 .purchase.elkid-search-bar { background: #fafafa; padding: 12px 0 10px; border-bottom: 1px solid #e7e9ed; }
.elkid26 .elkid-search-form { display: flex; gap: 0; max-width: 100%; }
.elkid26 .elkid-search-form .search-field { height: 43px; min-width: 0; flex: 1; border: 1px solid #e03337; background: #fff; border-radius: 5px 0 0 5px; font-size: 15px; box-shadow: none; }
.elkid26 .elkid-search-form #searching-btn { width: auto; min-width: 115px; border-radius: 0 5px 5px 0; padding: 0 15px; background: #e30d13; font-size: 15px; }
.elkid26 .elkid-price-notice { color: #717b86; font-size: 12px; margin: 5px 0 0; line-height: 1.4; text-align: right; }
.elkid26 .elkid-homepage { padding-bottom: 22px; }
.elkid26 .elkid-home-categories { margin-bottom: 26px; }
.elkid26 .elkid-section-heading { border-bottom: 1px solid #e8ebee; margin-bottom: 15px; }
.elkid26 .elkid-section-heading h1, .elkid26 .elkid-section-heading h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.35; font-weight: 700; color: #2b3540; }
.elkid26 .elkid-section-heading h1::after, .elkid26 .elkid-section-heading h2::after { content: ''; display: block; width: 42px; height: 3px; background: #e30d13; margin-top: 10px; }
.elkid26 .elkid-home-categories .category-mobile { display: none !important; }
.elkid26 .elkid-home-categories ul.category-responsive-collapse { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0; margin: 0; height: auto !important; background: transparent; list-style: none; }
.elkid26 .elkid-home-categories ul.category-responsive-collapse > li { border: 1px solid #e3e7eb; border-radius: 7px; background: #fff; min-width: 0; padding: 0; overflow: visible; box-shadow: 0 2px 4px rgba(34,42,53,.03); }
.elkid26 .elkid-home-categories ul.category-responsive-collapse > li > a { display: block; padding: 15px 18px; min-height: 53px; color: #26323e; font-weight: 600; font-size: 15px; text-decoration: none; }
.elkid26 .elkid-home-categories ul.category-responsive-collapse > li > a:hover { background: #fff7f7; color: #ca1015; }
.elkid26 .elkid-home-categories ul.category-responsive-collapse > li > ul { padding: 8px 12px; margin: 0; background: #fafafa; list-style: none; }
.elkid26 .elkid-home-categories ul.category-responsive-collapse > li > ul li { list-style: none; margin: 0; padding: 8px 0; border-bottom: 1px solid #edf0f3; }
.elkid26 .elkid-home-products { margin: 0 0 30px; }
.elkid26 .elkid-products-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.elkid26 .elkid-product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #e4e7ea; border-radius: 8px; overflow: hidden; background: #fff; }
.elkid26 .elkid-card-image { height: 165px; display: flex; justify-content: center; align-items: center; padding: 14px; background: #fff; }
.elkid26 .elkid-card-image img { width: 100%; height: 100%; object-fit: contain; }
.elkid26 .elkid-card-content { padding: 10px 13px 14px; flex: 1; display: flex; flex-direction: column; }
.elkid26 .elkid-card-name { color: #26323e; font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 58px; }
.elkid26 .elkid-card-code { margin: 8px 0; color: #73808c; font-size: 12px; }
.elkid26 .elkid-old-price { color: #78838c; font-size: 12px; margin: 0 0 4px; }
.elkid26 .elkid-card-purchase { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.elkid26 .elkid-card-price { display: flex; flex-direction: column; }
.elkid26 .elkid-card-price strong { font-size: 22px; font-weight: 750; color: #dd1118; line-height: 1.3; white-space: nowrap; }
.elkid26 .elkid-card-price span { font-size: 11px; color: #66717b; }
.elkid26 .elkid-product-card .btn-success, .elkid26 .add-to-cart-btn { background: #278a43; border-color: #278a43; min-height: 38px; font-weight: 600; }
.elkid26 .elkid-product-card .btn-success:hover, .elkid26 .add-to-cart-btn:hover { background: #186c32; border-color: #186c32; }
/* Product pages and category listings: optimize whitespace and taps without changing PHP operations. */
.elkid26 .product-table { width: 100%; }
.elkid26 .product-table th { vertical-align: middle; font-weight: 600; }
.elkid26 .product-table td { vertical-align: middle; }
.elkid26 .product-table .btn-success { min-height: 38px; min-width: 65px; }
.elkid26 .product-td-price, .elkid26 .price { white-space: nowrap; }
.elkid26 .table-category-image { max-height: 260px; object-fit: contain; }
.elkid26 .product-title { font-weight: 700; }
.elkid26 .basket-table td { vertical-align: middle; }
.elkid26 .basket-quantity { min-width: 80px; max-width: 130px; }
.elkid26 .elkid-remove-item { border: 0; background: #fff2f2; color: #c52c34; width: 42px; height: 42px; border-radius: 6px; font-size: 18px; }
.elkid26 .elkid-remove-item:hover { background: #ffe1e1; }
.elkid26 .footer-v1 { margin-top: 15px; }
.elkid26 .footer-v1 .footer { padding-top: 25px; padding-bottom: 20px; }
@media (min-width: 768px) and (max-width: 1199px) {
 .elkid26 .elkid-products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .elkid26 .elkid-home-categories ul.category-responsive-collapse { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 767px) {
 .elkid26 .container { padding-left: 12px; padding-right: 12px; }
 .elkid26 .content { padding-top: 16px; }
 .elkid26 .header .topbar { display: block; }
 .elkid26 .elkid-topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px; padding-top: 3px; padding-bottom: 3px; }
 .elkid26 .elkid-top-phone { margin-right: 5px; }
 .elkid26 .header .topbar ul.loginbar { margin: 0; }
 .elkid26 .header .navbar-header { min-height: 67px; }
 .elkid26 .header .navbar-brand { padding: 10px 0; margin-left: 0; }
 .elkid26 #logo-header { width: 130px; max-height: 48px; margin-top: 0; }
 .elkid26 .header .navbar-toggle { margin: 14px 10px 10px 0; min-height: 41px; min-width: 44px; padding: 9px; border-radius: 6px; }
 .elkid26 .header .basket-mobile { width: 44px; margin: 14px 0 0 0; text-align: center; font-size: 24px !important; }
 .elkid26 .header .basket-mobile .basket-badge { right: 1px; top: -6px; }
 .elkid26 .elkid-search-form .search-field { height: 46px; font-size: 15px; }
 .elkid26 .elkid-search-form #searching-btn { min-width: 58px; font-size: 0; padding: 0 15px; }
 .elkid26 .elkid-search-form #searching-btn .fa { font-size: 20px; }
 .elkid26 .elkid-price-notice { font-size: 11px; text-align: left; margin-top: 6px; }
 .elkid26 .elkid-section-heading h1, .elkid26 .elkid-section-heading h2 { font-size: 19px; }
 .elkid26 .elkid-home-categories ul.category-responsive-collapse { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 .elkid26 .elkid-home-categories ul.category-responsive-collapse > li > a { min-height: 67px; padding: 12px 10px; font-size: 13px; display: flex; align-items: center; }
 .elkid26 .elkid-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
 .elkid26 .elkid-card-image { height: 115px; padding: 8px; }
 .elkid26 .elkid-card-content { padding: 8px 9px 11px; }
 .elkid26 .elkid-card-name { font-size: 13px; min-height: 70px; }
 .elkid26 .elkid-card-code { font-size: 11px; }
 .elkid26 .elkid-card-price strong { font-size: 18px; }
 .elkid26 .elkid-card-purchase { align-items: stretch; }
 .elkid26 .elkid-card-purchase > .btn { width: 100%; padding: 10px 6px; }
 .elkid26 .product-table, .elkid26 .basket-table { border: 0; width: 100%; }
 .elkid26 .product-table thead, .elkid26 .basket-table thead { display: none; }
 .elkid26 .product-table tbody, .elkid26 .basket-table tbody { display: block; width: 100%; }
 .elkid26 .product-table tbody tr, .elkid26 .basket-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; width: 100%; margin-bottom: 12px; border: 1px solid #e4e7ea; border-radius: 7px; padding: 10px; background: #fff; }
 .elkid26 .product-table tbody td, .elkid26 .basket-table tbody td { display: block; border: 0 !important; padding: 5px 6px; max-width: 100%; }
 .elkid26 .product-table tbody td:first-child { flex: 0 0 auto; }
 .elkid26 .product-table tbody td.product-td-price { color: #dc1218; font-size: 17px; font-weight: 700; }
 .elkid26 .product-table tbody td:last-child { margin-left: auto; }
 .elkid26 .product-table tbody td .btn { min-height: 42px; }
 .elkid26 .table-responsive, .elkid26 .elkid-basket-responsive { overflow-x: visible; }
 .elkid26 .basket-table tbody td:nth-child(1) { flex: 0 0 95px; }
 .elkid26 .basket-table tbody td:nth-child(2) { flex: 1 1 55%; font-weight: 600; }
 .elkid26 .basket-table tbody td:nth-child(3) { flex: 0 0 115px; }
 .elkid26 .basket-table tbody td:nth-child(6) { font-weight: 700; color: #d71920; }
 .elkid26 .basket-table tbody td:nth-child(7) { margin-left: auto; }
 .elkid26 #basketCtrl > .btn-u { float: none !important; width: 100%; min-height: 46px; margin: 8px 0 !important; text-align: center; }
 .elkid26 input.form-control, .elkid26 select.form-control { max-width: 100%; min-height: 42px; }
 .elkid26 .modal-dialog { width: auto !important; margin: 12px !important; }
 .elkid26 .footer-v1 .footer .col-md-3 { margin-bottom: 16px; }
}
@media (max-width: 360px) {
 .elkid26 .elkid-home-categories ul.category-responsive-collapse { grid-template-columns: 1fr 1fr; }
 .elkid26 .elkid-card-price strong { font-size: 16px; }
 .elkid26 .elkid-card-content { padding: 8px; }
}

/* ELKID 2026 stage 2: keep the entire original logo visible, without clipping. */
.elkid26 #header-bar .navbar-brand {
    top: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 5px 0 !important;
    height: 68px;
    max-width: 100%;
}
.elkid26 #header-bar .navbar-header {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.elkid26 #header-bar #logo-header {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    max-height: 62px;
    margin: 0 !important;
    object-fit: contain;
}
.elkid26 #header-bar .navbar { min-height: 68px !important; }
.elkid26 #header-bar .navbar > .container { min-height: 68px; }
.elkid26 #header-bar .navbar-nav > li > a { top: 0; bottom: 0; }
.elkid26 #header-bar .navbar-default { overflow: visible; }

/* Main categories: representative catalogue picture + readable name. */
.elkid26 .elkid-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.elkid26 .elkid-category-card {
    border: 1px solid #e3e7eb;
    border-radius: 7px;
    background: #fff;
    min-width: 0;
    overflow: hidden;
}
.elkid26 .elkid-category-summary {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 92px;
    padding: 10px 13px;
    background: #fff;
    color: #26323e;
    cursor: pointer;
    text-decoration: none;
    list-style: none;
}
.elkid26 .elkid-category-summary::-webkit-details-marker { display: none; }
.elkid26 .elkid-category-summary:hover,
.elkid26 .elkid-category-summary:focus { background: #fff8f8; color: #c9151c; text-decoration: none; }
.elkid26 .elkid-category-visual {
    position: relative;
    flex: 0 0 76px;
    width: 76px;
    height: 69px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8f9;
    overflow: hidden;
}
.elkid26 .elkid-category-visual .fa { font-size: 27px; color: #98a4ae; }
.elkid26 .elkid-category-visual img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: #fff;
}
.elkid26 .elkid-category-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}
.elkid26 .elkid-category-chevron { color: #929ba4; font-size: 12px; }
.elkid26 details[open] .elkid-category-summary { border-bottom: 1px solid #e8ecef; }
.elkid26 .elkid-category-link-list {
    list-style: none;
    padding: 5px 14px 12px;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}
.elkid26 .elkid-category-link-list li { padding: 4px 0; }
.elkid26 .elkid-category-link-list a { display: block; padding: 4px 2px; color: #26323e; }
.elkid26 .elkid-category-link-list a:hover { color: #cf151b; }
.elkid26 .elkid-category-link-list .elkid-category-link-list { padding: 0 0 0 12px; max-height: none; overflow: visible; }
.elkid26 .elkid-subcategory-title { font-size: 13px; color: #707b84; font-weight: 600; }
@media (max-width: 991px) {
    .elkid26 #header-bar .navbar-header { min-height: 68px; }
    .elkid26 #header-bar .navbar-brand { height: 65px; }
    .elkid26 #header-bar .navbar-toggle { margin-top: 13px; }
    .elkid26 #header-bar .basket-mobile { margin-top: 14px; }
    .elkid26 .elkid-categories-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    .elkid26 #header-bar .navbar-brand { height: 64px; padding: 7px 0 !important; }
    .elkid26 #header-bar #logo-header { width: 152px; max-height: 49px; }
    .elkid26 .elkid-categories-grid { gap: 8px; }
    .elkid26 .elkid-category-summary { padding: 9px; gap: 8px; min-height: 95px; flex-direction: column; position: relative; text-align: center; }
    .elkid26 .elkid-category-visual { width: 66px; height: 52px; flex: 0 0 52px; }
    .elkid26 .elkid-category-name { flex: 0 1 auto; font-size: 12px; line-height: 1.25; }
    .elkid26 .elkid-category-chevron { position: absolute; right: 8px; top: 10px; }
    .elkid26 .elkid-category-link-list { padding: 5px 8px 10px; }
    .elkid26 .elkid-category-link-list a { font-size: 12px; overflow-wrap: anywhere; }
    .elkid26 .elkid-topbar-inner ul.loginbar { text-align: right; }
}
@media (max-width: 360px) {
    .elkid26 #header-bar #logo-header { width: 128px; }
}

/* ELKID 2026 stage 3: common compact catalog views. This stylesheet is
   loaded only by the test Front layout, never by the administration. */
.elkid26 .elkid-listing-table {
    width: 100%;
    font-size: 13px;
    line-height: 1.3;
}
.elkid26 .elkid-listing-table > thead > tr > th,
.elkid26 .elkid-listing-table > tbody > tr > td {
    padding: 7px 6px;
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-name {
    font-size: 13px;
    line-height: 1.32;
    color: #25303b;
    font-weight: 600;
}
.elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-image img {
    display: block;
    max-width: 66px;
    width: auto;
    max-height: 58px;
    height: auto;
    margin: auto;
    object-fit: contain;
}
.elkid26 .elkid-listing-table .elkid-list-catalog,
.elkid26 .elkid-listing-table .elkid-list-number { font-size: 12px; }
.elkid26 .elkid-listing-table .elkid-list-vat-price { font-weight: 700; }
.elkid26 .elkid-listing-table .elkid-list-action .btn {
    margin: 0;
    padding: 7px 10px;
    min-height: 34px;
    white-space: nowrap;
}
.elkid26 .elkid-variant-name-mobile { display: none; }

/* Featured products on the homepage have consistent, smaller cards. */
.elkid26 .elkid-products-grid { gap: 10px; }
.elkid26 .elkid-card-image { height: 120px; padding: 8px; }
.elkid26 .elkid-card-content { padding: 9px 10px 11px; }
.elkid26 .elkid-card-name {
    min-height: 0;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.elkid26 .elkid-card-code { margin: 4px 0; }
.elkid26 .elkid-old-price { margin-bottom: 2px; }
.elkid26 .elkid-card-purchase { padding-top: 5px; gap: 6px; }
.elkid26 .elkid-card-price strong { font-size: 19px; }
.elkid26 .elkid-product-card .btn-success { min-height: 34px; padding: 7px 10px; }

/* Detailed specifications should remain a readable two-column table and
   not be mistaken for product listing cards on small screens. */
.elkid26 .elkid-product-details-table .product-title { width: 102px; }
.elkid26 .elkid-product-details-table > tbody > tr > td { padding: 6px 8px; }

@media (max-width: 991px) {
    /* Bootstrap's original negative header margins were clipping the logo
       and placing the basket partly outside the phone viewport. */
    .elkid26 #header-bar .navbar > .container {
        padding-left: 16px !important;
        padding-right: 18px !important;
    }
    .elkid26 #header-bar .navbar-header.elkid-header-actions {
        float: none !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 7px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 66px;
        margin: 0 !important;
        padding: 0 !important;
    }
    .elkid26 #header-bar .elkid-header-actions .navbar-brand {
        order: 0;
        float: none !important;
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        width: auto;
        max-width: calc(100% - 105px);
        min-width: 0;
        height: 64px !important;
        margin: 0 !important;
        padding: 4px 0 !important;
    }
    .elkid26 #header-bar .elkid-header-actions #logo-header {
        display: block;
        width: 150px;
        max-width: 100%;
        height: auto;
        max-height: 54px;
        margin: 0 !important;
        object-fit: contain;
    }
    .elkid26 #header-bar .elkid-header-actions .navbar-toggle {
        order: 1;
        float: none !important;
        display: block;
        position: static;
        flex: 0 0 43px;
        min-width: 43px;
        width: 43px;
        min-height: 43px;
        height: 43px;
        margin: 0 !important;
        padding: 9px 7px !important;
        text-align: center;
    }
    .elkid26 #header-bar .elkid-header-actions .elkid-mobile-basket {
        order: 2;
        float: none !important;
        position: relative;
        flex: 0 0 43px;
        width: 43px;
        height: 45px;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        z-index: 9;
    }
    .elkid26 #header-bar .elkid-header-actions .elkid-mobile-basket a {
        display: flex;
        width: 43px;
        height: 43px;
        align-items: center;
        justify-content: center;
        font-size: 25px;
    }
    .elkid26 #header-bar .elkid-header-actions .elkid-mobile-basket .basket-badge {
        position: absolute;
        top: -2px;
        right: 0;
        left: auto;
        margin: 0;
    }
}

@media (max-width: 767px) {
    .elkid26 .elkid-listing-table { display: block; border: none; }
    .elkid26 .elkid-listing-table > thead { display: none; }
    .elkid26 .elkid-listing-table > tbody { display: block; width: 100%; }
    .elkid26 .elkid-listing-table > tbody > tr {
        display: grid !important;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        grid-auto-rows: min-content;
        align-items: center;
        gap: 1px 6px;
        width: 100%;
        min-width: 0;
        margin: 0 0 7px;
        padding: 7px;
        border: 1px solid #e1e5e9;
        border-radius: 5px;
        background: #fff;
        box-shadow: none;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td {
        display: block;
        min-width: 0;
        max-width: 100%;
        padding: 2px 2px;
        border: 0 !important;
        margin: 0 !important;
        font-size: 12px;
        line-height: 1.25;
        text-align: left;
        overflow-wrap: anywhere;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-image {
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: start;
        margin-top: 2px !important;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-image img {
        max-width: 56px;
        max-height: 53px;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-name {
        grid-column: 2 / 4;
        grid-row: 1;
        font-size: 13px;
        line-height: 1.25;
        font-weight: 600;
        padding-bottom: 3px;
    }
    .elkid26 .elkid-listing-table .elkid-list-name > a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        color: #26323e;
        text-decoration: none;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-number {
        grid-column: 2;
        grid-row: 2;
        color: #65717c;
        font-size: 11px;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-catalog {
        grid-column: 3;
        grid-row: 2;
        color: #65717c;
        font-size: 11px;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-measure {
        grid-column: 2;
        grid-row: 3;
        font-size: 11px;
        color: #5e6873;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-net-price { display: none; }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-old-price {
        grid-column: 2 / 4;
        grid-row: 4;
        font-size: 11px;
        color: #727b83;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-vat-price {
        grid-column: 2;
        grid-row: 5;
        color: #ce161d;
        font-size: 16px;
        font-weight: 700;
        white-space: nowrap;
    }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-action {
        grid-column: 3;
        grid-row: 5;
        justify-self: end;
        align-self: center;
        white-space: nowrap;
    }
    .elkid26 .elkid-listing-table .elkid-list-action .btn {
        padding: 6px 10px;
        min-width: 64px;
        min-height: 36px;
        font-size: 12px;
        border-radius: 4px;
    }
    /* Variant rows (cables, Schneider variants): text-led, with no empty image column. */
    .elkid26 .elkid-list-variants > tbody > tr {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 7px 9px;
        gap: 2px 7px;
    }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-name {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: 13px;
        line-height: 1.23;
    }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-number { grid-column: 1; grid-row: 2; }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-catalog { grid-column: 2; grid-row: 2; }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-measure { grid-column: 1; grid-row: 3; }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-vat-price { grid-column: 1; grid-row: 4; }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-action { grid-column: 2; grid-row: 4; }
    .elkid26 .elkid-variant-name-desktop { display: none; }
    .elkid26 .elkid-variant-name-mobile { display: block; }
    .elkid26 .elkid-variant-name-mobile summary {
        cursor: pointer;
        list-style: none;
        line-height: 1.25;
    }
    .elkid26 .elkid-variant-name-mobile summary::-webkit-details-marker { display: none; }
    .elkid26 .elkid-variant-short {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }
    .elkid26 .elkid-variant-more {
        display: inline-block;
        color: #bf1016;
        font-size: 11px;
        font-weight: 600;
        margin-top: 2px;
    }
    .elkid26 .elkid-variant-full {
        display: block;
        padding: 5px 0 3px;
        color: #37424d;
        font-weight: 400;
    }
    .elkid26 .elkid-variant-name-mobile[open] .elkid-variant-more { display: none; }
    /* Hide blank implicit rows in normal cards, preserve promotions' old price. */
    .elkid26 .elkid-listing-table:not(.elkid-list-promotions) > tbody > tr > td.elkid-list-vat-price,
    .elkid26 .elkid-listing-table:not(.elkid-list-promotions) > tbody > tr > td.elkid-list-action {
        grid-row: 4;
    }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-vat-price { grid-row: 4 !important; }
    .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-action { grid-row: 4 !important; }
    .elkid26 .elkid-list-new > tbody > tr > td.elkid-list-vat-price,
    .elkid26 .elkid-list-new > tbody > tr > td.elkid-list-action { grid-row: 4; }

    /* Compact and fully readable product specification section. */
    .elkid26 .elkid-product-details-table,
    .elkid26 .elkid-product-details-table > tbody { display: table !important; width: 100%; }
    .elkid26 .elkid-product-details-table > tbody > tr { display: table-row !important; }
    .elkid26 .elkid-product-details-table > tbody > tr > td {
        display: table-cell !important;
        padding: 5px 6px !important;
        border-bottom: 1px solid #e8eaec !important;
        vertical-align: top;
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
    .elkid26 .elkid-product-details-table .product-title { width: 100px; }
    .elkid26 .elkid-product-details-table > tbody > tr > td:last-child { margin: 0 !important; }

    .elkid26 .elkid-products-grid { gap: 7px; }
    .elkid26 .elkid-card-image { height: 90px; padding: 5px; }
    .elkid26 .elkid-card-content { padding: 7px; }
    .elkid26 .elkid-card-name {
        font-size: 12px;
        line-height: 1.25;
        min-height: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .elkid26 .elkid-card-code { font-size: 10px; margin: 3px 0 5px; }
    .elkid26 .elkid-card-price strong { font-size: 16px; }
    .elkid26 .elkid-card-purchase > .btn { padding: 7px 5px; min-height: 34px; }
    .elkid26 .elkid-basket-table > tbody > tr { padding: 7px; margin-bottom: 7px; }
    .elkid26 .elkid-basket-table > tbody > tr > td { padding: 3px 4px; line-height: 1.25; font-size: 12px; overflow-wrap: anywhere; }
    .elkid26 .elkid-basket-table > tbody > tr > td:nth-child(2) { font-size: 13px; }
}
@media (max-width: 360px) {
    .elkid26 #header-bar .navbar > .container { padding-left: 12px !important; padding-right: 14px !important; }
    .elkid26 #header-bar .elkid-header-actions #logo-header { width: 132px; }
    .elkid26 .elkid-listing-table > tbody > tr { grid-template-columns: 50px minmax(0,1fr) auto; gap: 1px 4px; padding: 6px; }
    .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-image img { max-width: 48px; }
}

/* The original Bootstrap .row has -15px gutters. Match our 12px mobile
   container padding so product pages do not create horizontal overflow. */
@media (max-width: 767px) {
    .elkid26 .container.content > .row {
        margin-left: -12px;
        margin-right: -12px;
    }
}


/* ELKID stage 3 revision 2 – tighter mobile rows. Price follows the unit;
   the buy/enquiry button shares the same line, rather than adding a new row.
   All rules are scoped to the test storefront's .elkid26 body. */
@media (max-width: 767px) {
  .elkid26 .elkid-listing-table > tbody > tr {
    padding: 5px 6px;
    margin-bottom: 5px;
    gap: 0 4px;
    grid-auto-rows: min-content;
    align-items: center;
  }
  .elkid26 .elkid-listing-table > tbody > tr > td {
    padding: 1px 1px;
    font-size: 11px;
    line-height: 1.18;
    min-width: 0;
  }
  .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-name {
    font-size: 12px;
    line-height: 1.2;
    padding: 1px 1px 2px;
    align-self: center;
  }
  .elkid26 .elkid-listing-table .elkid-list-name > a {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-measure {
    grid-row: 3;
    font-size: 11px;
    white-space: nowrap;
    align-self: center;
  }
  .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-vat-price {
    grid-row: 3 !important;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    justify-self: start;
    align-self: center;
    white-space: nowrap;
  }
  .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-action {
    grid-row: 3 !important;
    justify-self: end;
    align-self: center;
    white-space: nowrap;
  }
  .elkid26 .elkid-listing-table > tbody > tr > td.elkid-list-action .btn {
    font-size: 12px;
    min-width: 58px;
    min-height: 33px;
    height: 33px;
    padding: 5px 8px;
    line-height: 1.3;
  }
  /* With a thumbnail: [image] [unit] [price] [buy], on one purchase line. */
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr {
    grid-template-columns: 46px auto minmax(0, 1fr) auto;
  }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-image {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
  }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-image img {
    max-width: 44px;
    max-height: 49px;
  }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-name {
    grid-column: 2 / 5;
    grid-row: 1;
  }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-number {
    grid-column: 2;
    grid-row: 2;
    font-size: 10px;
  }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-catalog {
    grid-column: 3 / 5;
    grid-row: 2;
    font-size: 10px;
  }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-measure { grid-column: 2; }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-vat-price { grid-column: 3; }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-action { grid-column: 4; }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-old-price {
    grid-column: 2 / 5;
    grid-row: 2;
    font-size: 10px;
    text-decoration: line-through;
    color: #7b838c;
  }
  /* Variants (cables, Schneider): no empty image column, only two visual
     lines if there are no catalogue numbers in the source row. */
  .elkid26 .elkid-list-variants > tbody > tr {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 5px 7px;
    gap: 0 5px;
  }
  .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-name {
    grid-column: 1 / 4;
    grid-row: 1;
  }
  .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-number {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
    color: #6b7480;
  }
  .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-catalog {
    grid-column: 2 / 4;
    grid-row: 2;
    font-size: 10px;
    color: #6b7480;
  }
  .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-measure { grid-column: 1; }
  .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-vat-price { grid-column: 2; }
  .elkid26 .elkid-list-variants > tbody > tr > td.elkid-list-action { grid-column: 3; }
  /* Long technical names remain available by tapping "Цялото име". */
  .elkid26 .elkid-variant-name-mobile summary {
    position: relative;
    padding-right: 62px;
    min-height: 15px;
  }
  .elkid26 .elkid-variant-name-mobile .elkid-variant-short {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .elkid26 .elkid-variant-name-mobile .elkid-variant-more {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 10px;
    background: #fff;
    margin: 0;
    text-align: right;
  }
  .elkid26 .elkid-variant-name-mobile[open] .elkid-variant-full { padding: 3px 0; }
  /* Narrow homepage featured cards: price and action on the SAME line. */
  .elkid26 .elkid-card-image { height: 75px; padding: 4px; }
  .elkid26 .elkid-card-content { padding: 5px 6px 7px; }
  .elkid26 .elkid-card-name { -webkit-line-clamp: 2; line-clamp: 2; font-size: 12px; }
  .elkid26 .elkid-card-code { margin: 2px 0 3px; }
  .elkid26 .elkid-card-purchase { flex-wrap: nowrap; align-items: center; gap: 3px; padding-top: 3px; }
  .elkid26 .elkid-card-price strong { font-size: 14px; }
  .elkid26 .elkid-card-purchase > .btn {
    width: auto;
    min-width: 52px;
    min-height: 32px;
    padding: 5px 5px;
    margin-left: auto;
    font-size: 11px;
  }
}
@media (max-width: 360px) {
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr {
    grid-template-columns: 42px auto minmax(0, 1fr) auto;
    padding: 4px 5px;
    gap: 0 3px;
  }
  .elkid26 .elkid-listing-table:not(.elkid-list-variants) > tbody > tr > td.elkid-list-image img {
    max-width: 40px;
  }
  .elkid26 .elkid-list-variants > tbody > tr { padding: 4px 6px; }
}
