/* ============================================================
   CraftBox — Cart / Mini-cart UI (допълва main.css)
   ============================================================ */

/* Базово правило за рамки, нужно на Tailwind border-класовете
   (preflight е изключен, за да не чупи темата) */
*, ::before, ::after {
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

/* ------------------------------------------------------------
   Badge (брой продукти) върху иконата на количката в хедъра
   ------------------------------------------------------------ */
.header-action-2 .header-action-icon-2 .mini-cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-action-2 .header-action-icon-2 .mini-cart-icon .pro-count {
    position: absolute;
    top: -7px;
    right: -9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background-color: #F99F1B;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border: 2px solid #ffffff;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(37, 61, 78, 0.25);
    animation: cb-badge-pop .35s cubic-bezier(.34,1.56,.64,1);
}

@keyframes cb-badge-pop {
    0% { transform: scale(.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ------------------------------------------------------------
   Mini-cart dropdown — модерна карта
   ------------------------------------------------------------ */
.cart-dropdown-wrap {
    border-radius: 16px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 20px 50px -12px rgba(37, 61, 78, 0.22) !important;
    padding: 20px 18px 22px !important;
    width: 360px !important;
}

.cart-dropdown-wrap::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 22px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid #eef0f2;
    border-top: 1px solid #eef0f2;
    transform: rotate(45deg);
}

.cart-dropdown-wrap ul {
    max-height: 320px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d7dce0 transparent;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.cart-dropdown-wrap ul::-webkit-scrollbar { width: 5px; }
.cart-dropdown-wrap ul::-webkit-scrollbar-thumb { background: #d7dce0; border-radius: 4px; }

.cart-dropdown-wrap ul li {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin: 0 0 6px !important;
    border-radius: 12px;
    transition: background-color .15s ease;
}

.cart-dropdown-wrap ul li:hover { background-color: #f6f8f7; }

.cart-dropdown-wrap ul li .shopping-cart-img {
    flex: 0 0 56px !important;
    margin: 0 !important;
}

.cart-dropdown-wrap ul li .shopping-cart-img a {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: #f6f8f7;
    border: 1px solid #eef0f2;
}

.cart-dropdown-wrap ul li .shopping-cart-img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-dropdown-wrap ul li .shopping-cart-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 !important;
}

.cart-dropdown-wrap ul li .shopping-cart-title h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-wrap ul li .shopping-cart-title h4 a { color: #253D4E !important; }
.cart-dropdown-wrap ul li .shopping-cart-title h4 a:hover { color: #6A9C89 !important; }

.cart-dropdown-wrap ul li .shopping-cart-title h3,
.cart-dropdown-wrap ul li .shopping-cart-title h4.cb-price {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #8795a2 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.cart-dropdown-wrap ul li .shopping-cart-title .cb-price-strong {
    color: #6A9C89;
    font-weight: 700;
}

.cart-dropdown-wrap ul li .shopping-cart-delete {
    flex: 0 0 auto !important;
    margin: 0 !important;
}

.cart-dropdown-wrap ul li .shopping-cart-delete span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #b0b8c0;
    font-size: 16px;
    cursor: pointer;
    transition: all .15s ease;
}

.cart-dropdown-wrap ul li .shopping-cart-delete span:hover {
    background-color: #feecec;
    color: #e5484d;
}

/* Footer на dropdown-а */
.cart-dropdown-wrap .shopping-cart-footer { margin: 0 !important; }

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eef0f2 !important;
    border-bottom: 0;
    margin: 14px 0 0 !important;
    padding: 14px 4px 0 !important;
}

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-total h4 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #6b7a88 !important;
    margin: 0 !important;
}

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-total h4 span {
    float: none !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #253D4E !important;
}

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-button {
    gap: 10px;
    margin-top: 14px !important;
}

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-button a {
    flex: 1 1 0;
    text-align: center;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    border: 2px solid #6A9C89 !important;
    background-color: #6A9C89 !important;
    transition: all .15s ease;
}

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-button a.outline {
    background-color: transparent !important;
    color: #6A9C89 !important;
}

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-button a.outline:hover {
    background-color: #EEF5F2 !important;
    color: #578573 !important;
    border-color: #6A9C89 !important;
}

.cart-dropdown-wrap .shopping-cart-footer .shopping-cart-button a:hover {
    background-color: #578573 !important;
    border-color: #578573 !important;
    color: #ffffff !important;
}

/* Празна кошница в dropdown-а */
.cb-mini-empty {
    text-align: center;
    padding: 26px 10px 20px;
}

.cb-mini-empty i {
    font-size: 34px;
    color: #cfd8de;
    margin-bottom: 10px;
    display: inline-block;
}

.cb-mini-empty p {
    font-size: 14px;
    color: #6b7a88;
    margin: 0 0 16px;
}

.cb-mini-cta {
    display: inline-block;
    background-color: #6A9C89;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 22px;
    border-radius: 10px;
    transition: background-color .15s ease;
}

.cb-mini-cta:hover {
    background-color: #578573;
    color: #ffffff;
}

/* ------------------------------------------------------------
   Страница кошница — продуктови карти
   ------------------------------------------------------------ */
.cb-cart-card {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    box-shadow: 0 4px 18px -10px rgba(37, 61, 78, 0.12);
    transition: box-shadow .2s ease;
}

.cb-cart-card:hover {
    box-shadow: 0 10px 28px -12px rgba(37, 61, 78, 0.2);
}

.cb-cart-row {
    padding: 16px;
    transition: opacity .25s ease, transform .25s ease, max-height .3s ease, margin .3s ease, padding .3s ease;
}

.cb-cart-row.cb-removing {
    opacity: 0;
    transform: translateX(24px);
}

/* Вариантен (chunk) ред */
.cb-type-row {
    border-top: 1px dashed #e8ecef;
    padding: 12px 16px;
    transition: opacity .25s ease, transform .25s ease;
}

.cb-type-row.cb-removing {
    opacity: 0;
    transform: translateX(24px);
}

/* Stepper за брой */
.cb-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #dfe5e9;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.cb-qty button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    padding: 0;
    border: 0;
    background: #f6f8f7;
    color: #4b5b68;
    font-size: 12px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.cb-qty button:hover {
    background: #6A9C89;
    color: #ffffff;
}

.cb-qty button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.cb-qty button:disabled:hover {
    background: #f6f8f7;
    color: #4b5b68;
}

.cb-qty input {
    width: 44px;
    height: 36px;
    min-height: 36px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: #ffffff;
    box-shadow: none !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600;
    color: #253D4E;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cb-qty input:focus {
    background: #ffffff;
    border: 0 !important;
    box-shadow: none !important;
}

.cb-qty input::-webkit-outer-spin-button,
.cb-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Бутон за триене на ред */
.cb-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #b0b8c0;
    font-size: 15px;
    cursor: pointer;
    transition: all .15s ease;
}

.cb-remove:hover {
    background-color: #feecec;
    color: #e5484d;
}

/* Анимация при обновяване на цена/сума */
.cb-flash {
    animation: cb-flash .6s ease;
}

@keyframes cb-flash {
    0% { background-color: rgba(106, 156, 137, 0.14); }
    100% { background-color: transparent; }
}

/* Спинър върху бутона/картата при заявка */
.cb-busy {
    position: relative;
    pointer-events: none;
}

.cb-busy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: inherit;
}

/* ------------------------------------------------------------
   Промо код (ваучер) — неутрализираме темата за input[type=text]
   ------------------------------------------------------------ */
.cb-promo-group {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.cb-promo-group .help-block:empty {
    display: none !important;
}

.cb-promo-group .help-block:not(:empty),
.cb-promo-group .invalid-feedback:not(:empty) {
    flex: 1 0 100%;
    margin: 6px 2px 2px;
    font-size: 12px;
    color: #e5484d;
}

.cb-promo-group input.cb-promo-input {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #253D4E;
    outline: none;
}

.cb-promo-group input.cb-promo-input:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.cb-promo-group button.cb-promo-submit {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 46px !important;
    padding: 0 22px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #6A9C89 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

.cb-promo-group button.cb-promo-submit:hover {
    background-color: #578573 !important;
}

/* ------------------------------------------------------------
   Футър — цветове, независими от Tailwind CDN
   ------------------------------------------------------------ */
.cb-footer-bg {
    background-color: #2C705D;
}

.cb-widget-title {
    border-bottom: 1px solid #F99F1B;
    padding-bottom: 10px;
    color: #F99F1B;
}

/* ------------------------------------------------------------
   Хедър — икони (uicons на темата + FA) и подравняване
   ------------------------------------------------------------ */
.header-action-2 .header-action-icon-2 > a .cb-hicon {
    display: inline-block;
    font-size: 21px;
    color: #253D4E;
    line-height: 1;
    vertical-align: middle;
    transition: color .15s ease;
}

.header-action-2 .header-action-icon-2 > a:hover .cb-hicon {
    color: #6A9C89;
}

/* FA икони (телефон) — уеднаквяване с uicons */
.header-top .fas.fa-phone-alt {
    font-size: 15px;
}

.mobile-header-wrapper-style .single-mobile-header-info a .fas.fa-phone-alt {
    font-size: 18px;
    color: #6A9C89;
    width: 24px;
    text-align: center;
}

.header-top .header-info a,
.header-info-right a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-top .header-info a i,
.header-info-right a i {
    font-size: 15px;
}

.mobile-header-wrapper-style .single-mobile-header-info a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mobile-header-wrapper-style .single-mobile-header-info a i {
    font-size: 18px;
    color: #6A9C89;
    width: 24px;
    text-align: center;
}

/* ------------------------------------------------------------
   Toast известия
   ------------------------------------------------------------ */
.cb-toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 40px));
    pointer-events: none;
}

.cb-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-left: 4px solid #6A9C89;
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(37, 61, 78, 0.25);
    font-size: 14px;
    line-height: 1.45;
    color: #253D4E;
    pointer-events: auto;
    transform: translateX(16px);
    opacity: 0;
    transition: all .3s cubic-bezier(.21,1.02,.73,1);
}

.cb-toast.cb-toast-in {
    transform: translateX(0);
    opacity: 1;
}

.cb-toast.cb-toast-out {
    transform: translateX(24px);
    opacity: 0;
}

.cb-toast > i {
    flex: 0 0 auto;
    font-size: 16px;
    margin-top: 1px;
}

.cb-toast.cb-toast-success { border-left-color: #6A9C89; }
.cb-toast.cb-toast-success > i { color: #6A9C89; }

.cb-toast.cb-toast-error { border-left-color: #e5484d; }
.cb-toast.cb-toast-error > i { color: #e5484d; }

.cb-toast.cb-toast-warning { border-left-color: #F99F1B; }
.cb-toast.cb-toast-warning > i { color: #F99F1B; }

.cb-toast .cb-toast-close {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #b0b8c0;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.cb-toast .cb-toast-close:hover { color: #253D4E; }

/* ------------------------------------------------------------
   Празна кошница
   ------------------------------------------------------------ */
.cb-empty-icon {
    width: 96px;
    height: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #EEF5F2;
    color: #6A9C89;
    font-size: 38px;
    margin-bottom: 22px;
}

/* ------------------------------------------------------------
   Прогрес стъпки
   ------------------------------------------------------------ */
.cb-step-dot {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 auto;
}

.cb-step-dot.cb-done {
    background: #6A9C89;
    color: #ffffff;
    box-shadow: 0 4px 12px -4px rgba(106, 156, 137, 0.6);
}

.cb-step-dot.cb-todo {
    background: #eef1f3;
    color: #8795a2;
}

/* Мобилен изглед на dropdown-а в хедъра */
@media (max-width: 991px) {
    .cart-dropdown-wrap {
        width: 300px !important;
    }
}

/* ============================================================
   Checkout / Success — стъпки, форми, анимации
   ============================================================ */

/* Плавен преход между стъпките (Chrome/Edge, прогресивно) */
@view-transition {
    navigation: auto;
}

/* Влизане на съдържанието — staggered fade + slide-up */
.cb-enter {
    animation: cb-enter .55s cubic-bezier(.21, 1.02, .73, 1) both;
}

.cb-enter.cb-d1 { animation-delay: .08s; }
.cb-enter.cb-d2 { animation-delay: .16s; }
.cb-enter.cb-d3 { animation-delay: .24s; }
.cb-enter.cb-d4 { animation-delay: .32s; }
.cb-enter.cb-d5 { animation-delay: .40s; }

@keyframes cb-enter {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Прогрес — активна стъпка и „рисуване" на линията */
.cb-step-dot.cb-active {
    background: #F99F1B;
    color: #ffffff;
    box-shadow: 0 4px 12px -4px rgba(249, 159, 27, 0.65);
    animation: cb-badge-pop .45s cubic-bezier(.34, 1.56, .64, 1);
}

.cb-step-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #6A9C89;
    transform-origin: left center;
    animation: cb-line-draw .7s .25s cubic-bezier(.21, 1.02, .73, 1) both;
}

@keyframes cb-line-draw {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Форми */
.cb-form .form-group {
    margin-bottom: 0;
}

.cb-form .form-group > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #253D4E;
    margin-bottom: 6px;
}

.cb-form .form-group input[type="text"],
.cb-form .form-group input[type="email"] {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    color: #253D4E;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cb-form .form-group input[type="text"]:focus,
.cb-form .form-group input[type="email"]:focus {
    outline: none;
    border-color: #6A9C89;
    box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.15);
    background: #ffffff;
}

.cb-form .form-group .help-block {
    margin: 6px 2px 0;
    font-size: 12px;
    color: #e5484d;
}

.cb-check-row {
    display: flex;
    align-items: center;
    padding-top: 24px;
}

.cb-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6A9C89;
    cursor: pointer;
}

.cb-form .form-group input[type="checkbox"] + label,
.cb-form .form-group label input[type="checkbox"] {
    vertical-align: middle;
}

/* Radio карти (доставка / плащане) */
.cb-checkout .radio-select {
    display: block !important;
    border: 1px solid #dfe5e9 !important;
    border-radius: 12px !important;
    background: #ffffff;
    margin-bottom: 10px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.cb-checkout .radio-select:hover {
    border-color: #6A9C89 !important;
    box-shadow: 0 6px 16px -10px rgba(37, 61, 78, 0.35);
    transform: translateY(-1px);
}

.cb-checkout .radio-select.label-active {
    border-color: #6A9C89 !important;
    background: #EEF5F2;
    box-shadow: 0 8px 20px -12px rgba(106, 156, 137, 0.65);
    animation: cb-card-pop .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes cb-card-pop {
    0% { transform: scale(.985); }
    100% { transform: scale(1); }
}

.cb-checkout .radio-select .w-4 {
    width: 20px;
    height: 20px;
    position: relative;
    transition: border-color .2s ease;
}

/* Собствена radio точка (fa-circle-dot се режеше в малкия кръг) */
.cb-checkout .radio-select .w-4 i {
    display: none;
}

.cb-checkout .radio-select .w-4::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background-color: #c3ccd3;
    transition: background-color .2s ease, transform .2s ease;
    transform: scale(.6);
}

.cb-checkout .radio-select.label-active .w-4 {
    border-color: #6A9C89 !important;
    background: #ffffff;
}

.cb-checkout .radio-select.label-active .w-4::after {
    background-color: #6A9C89;
    transform: scale(1);
}

/* Таб панели (град/офис/адрес, инфо за плащане) */
.cb-checkout .tab-pane.active {
    animation: cb-enter .3s ease both;
}

.cb-checkout .tab-pane .blog-list {
    background: #F7F9F8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 8px;
}

.cb-checkout .tab-pane .blog-entry-title {
    font-size: 14px;
    font-weight: 700;
    color: #253D4E;
    margin-bottom: 6px;
}

/* Select2 — подравняване с останалите полета (единна кутия) */
.cb-checkout .select2-container {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cb-checkout .select2-container .select2-selection--single {
    height: 46px !important;
    padding: 0;
    border: 1px solid #dfe5e9 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

.cb-checkout .select2-container .select2-selection--single .select2-selection__rendered {
    height: 44px;
    line-height: 44px !important;
    padding: 0 40px 0 16px !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 14px !important;
    color: #253D4E !important;
}

.cb-checkout .select2-container .select2-selection--single .select2-selection__placeholder {
    color: #9aa7b1;
}

.cb-checkout .select2-container .select2-selection--single .select2-selection__arrow {
    height: 44px;
    right: 8px;
}

.cb-checkout .select2-container .select2-selection--single .select2-selection__clear {
    color: #b0b8c0;
    font-size: 16px;
}

.cb-checkout .select2-container--krajee-bs3.select2-container--focus .select2-selection--single,
.cb-checkout .select2-container--krajee-bs3.select2-container--open .select2-selection--single,
.cb-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.cb-checkout .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #6A9C89 !important;
    box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.15) !important;
}

.cb-checkout .select2-dropdown {
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    overflow: hidden;
}

.cb-checkout .select2-dropdown .select2-results__option--highlighted {
    background-color: #6A9C89 !important;
}

/* Select2 dropdown — глобално (Select2 го апенва към <body>) */
.select2-dropdown {
    border: 1px solid #dfe5e9 !important;
    border-radius: 12px !important;
    background: #ffffff;
    box-shadow: 0 14px 34px -12px rgba(37, 61, 78, 0.28);
    overflow: hidden;
}

.select2-search--dropdown {
    padding: 10px;
    background: #ffffff;
}

.select2-container--krajee .select2-search--dropdown .select2-search__field {
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dfe5e9 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 14px;
    color: #253D4E;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.select2-container--krajee .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #6A9C89 !important;
    box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.15) !important;
}

.select2-results__option {
    padding: 10px 16px !important;
    font-size: 14px;
    color: #253D4E;
    transition: background-color .12s ease;
}

.select2-container--krajee .select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted {
    background-color: #6A9C89 !important;
    color: #ffffff !important;
}

.select2-container--krajee .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background-color: #EEF5F2;
    color: #578573;
}

.select2-results__option.select2-results__message {
    color: #8795a2;
}

/* Предложения за адрес */
.cb-addr-field {
    position: relative;
}

.cb-addr-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    box-shadow: 0 14px 34px -12px rgba(37, 61, 78, 0.28);
    max-height: 240px;
    overflow-y: auto;
}

.cb-addr-item {
    padding: 10px 14px;
    font-size: 14px;
    color: #253D4E;
    cursor: pointer;
    transition: background-color .12s ease;
}

.cb-addr-item:hover {
    background-color: #EEF5F2;
}

/* CTA и бутони */
.cb-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background-color: #F99F1B;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}

.cb-cta:hover {
    background-color: #DE8C0D;
    transform: translateY(-1px);
}

.cb-btn-green,
.cb-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}

.cb-btn-green {
    background-color: #6A9C89;
    color: #ffffff;
    border: 2px solid #6A9C89;
}

.cb-btn-green:hover {
    background-color: #578573;
    border-color: #578573;
    color: #ffffff;
}

.cb-btn-outline {
    background: transparent;
    color: #6A9C89;
    border: 2px solid #6A9C89;
}

.cb-btn-outline:hover {
    background: #EEF5F2;
    color: #578573;
}

.cb-textarea {
    width: 100%;
    max-width: 560px;
    padding: 12px 16px;
    border: 1px solid #dfe5e9;
    border-radius: 12px;
    font-size: 14px;
    color: #253D4E;
    resize: vertical;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cb-textarea:focus {
    outline: none;
    border-color: #6A9C89;
    box-shadow: 0 0 0 3px rgba(106, 156, 137, 0.15);
}

/* Плавно обновяване на сумите при recalculate */
.cb-total-fade {
    transition: opacity .15s ease;
}

.cb-total-fade.cb-fading {
    opacity: .35;
}

/* Success страница */
.cb-rocket {
    animation: cb-rocket 1s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes cb-rocket {
    0% { opacity: 0; transform: translateY(30px) scale(.7); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.cb-rating .sc-imWYAI {
    display: inline-block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.cb-rating .sc-imWYAI:hover {
    background-color: #F7F9F8;
    transform: translateY(-3px) scale(1.05);
}

.cb-rating .sc-imWYAI p {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7a88;
}

.cb-rating .sc-imWYAI.sc-active {
    background-color: #EEF5F2;
    box-shadow: 0 0 0 2px #6A9C89;
    animation: cb-card-pop .3s cubic-bezier(.34, 1.56, .64, 1);
}

.cb-rating .sc-imWYAI svg {
    transition: transform .2s ease;
}

/* Артикули в success */
.cb-order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed #e8ecef;
}

.cb-order-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cb-order-item:first-child {
    padding-top: 0;
}

.cb-order-item-img {
    display: block;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eef0f2;
    background: #f6f8f7;
}

.cb-order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   Mega-menu „Продукти“ — модерен панел в стил CraftBox
   (допълва/заменя theme mega-menu стиловете в main.css)
   ============================================================ */

/* --- Панел: плаваща карта с дълбока мека сянка --- */
.main-menu > nav > ul > li ul.mega-menu {
    background-color: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(37, 61, 78, 0.30), 0 0 0 1px rgba(37, 61, 78, 0.04);
    padding: 20px 22px 24px;
    transition: opacity .28s cubic-bezier(.21, 1.02, .73, 1), visibility .28s, margin-top .28s cubic-bezier(.21, 1.02, .73, 1);
    /* Малко закъснение при затваряне, за да прости преминаване през ръба */
    transition-delay: .18s;
}

.main-menu > nav > ul > li:hover ul.mega-menu,
.main-menu > nav > ul > li:focus-within ul.mega-menu {
    transition-delay: 0s;
}

/* --- Hover-мост: запълва „мъртвото“ пространство между линка и панела ---
   margin-ът не е hoverable зона, padding-ът и ::before са — затова мостът
   е от двете страни, за да няма мигване при движение надолу. */
.main-menu > nav > ul > li.position-static {
    padding-bottom: 24px;
    margin-bottom: -24px;
}

.main-menu > nav > ul > li ul.mega-menu::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 24px;
    display: block;
}

/* Същият мост и за малкото падащо меню „Услуги“ */
.main-menu > nav > ul > li ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    display: block;
}

/* --- Тригер „Продукти“: анимирана подчертавка + завъртане на стрелката --- */
.main-menu > nav > ul > li > a {
    position: relative;
}

.main-menu > nav > ul > li > a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: linear-gradient(90deg, #6A9C89, #F99F1B);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.main-menu > nav > ul > li:hover > a::after,
.main-menu > nav > ul > li:focus-within > a::after {
    transform: scaleX(1);
}

.main-menu > nav > ul > li > a .fi-rs-angle-down {
    display: inline-block;
    transition: transform .25s ease;
}

.main-menu > nav > ul > li:hover > a .fi-rs-angle-down {
    transform: rotate(180deg);
}

/* --- Отваряне с клавиатура (достъпност) --- */
.main-menu > nav > ul > li:focus-within ul.mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

/* --- Карти на категориите ---
   Ширина = точно 5 карти на ред (gap 12px × 4). Без flex-grow, за да не се
   разпъва картата, останала сама на новия ред (напр. „Филаменти“).
*/
.main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-22 {
    width: calc((100% - 48px) / 5);
    flex: 0 0 auto;
    max-width: 100%;
    min-width: 150px;
    background-color: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-22:hover {
    background-color: #ffffff;
    border-color: #6A9C89;
    box-shadow: 0 14px 28px -14px rgba(37, 61, 78, 0.22);
    transform: translateY(-3px);
}

/* Заглавие на категорията (Quicksand, градиентна подчертавка) */
.main-menu > nav > ul > li ul.mega-menu li a.menu-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #253D4E;
    border-bottom: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    transition: color .2s ease;
}

.main-menu > nav > ul > li ul.mega-menu li a.menu-title::after {
    content: '';
    display: block;
    height: 2px;
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(90deg, #6A9C89, transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-22:hover a.menu-title::after {
    transform: scaleX(1);
}

.main-menu > nav > ul > li ul.mega-menu li a.menu-title:hover,
.main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-22:hover a.menu-title {
    color: #578573;
}

/* Снимка на категорията — zoom при hover върху картата */
.mega-menu-cat-img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    display: block;
    transition: transform .35s ease;
}

.main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-22:hover .mega-menu-cat-img {
    transform: scale(1.05);
}

/* Подкатегории — зелена „хапче“ ховър лента */
.main-menu > nav > ul > li ul.mega-menu li ul {
    margin-top: 12px;
}

.main-menu > nav > ul > li ul.mega-menu li ul li {
    margin-bottom: 2px;
}

.main-menu > nav > ul > li ul.mega-menu li ul li a {
    font-size: 13px;
    line-height: 1.45;
    color: #5f6b76;
    padding: 6px 9px;
    border-radius: 8px;
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}

.main-menu > nav > ul > li ul.mega-menu li ul li a:hover {
    color: #578573;
    background-color: #EEF5F2;
    padding-left: 13px;
}

/* „Виж всички“ в долната част на всяка карта */
.main-menu > nav > ul > li ul.mega-menu li .cb-cat-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #6A9C89;
    transition: color .15s ease, gap .15s ease;
}

.main-menu > nav > ul > li ul.mega-menu li .cb-cat-all:hover {
    color: #F99F1B;
    gap: 8px;
}

.main-menu > nav > ul > li ul.mega-menu li .cb-cat-all i {
    font-size: 11px;
}

/* --- Промо панел вдясно (≥1200px) ---
   Абсолютно позициониран в десния край на панела на ПЪЛНА височина —
   категориите остават вляво, рейлът е колона отдясно.
*/
.main-menu > nav > ul > li ul.mega-menu {
    align-items: flex-start;
}

@media (min-width: 1200px) {
    /* Картите не плуват под рейла: дясно падding = рейл 260px + междина 14px + отстъп 22px */
    .main-menu > nav > ul > li ul.mega-menu {
        padding-right: 296px;
        min-height: 340px;
    }
}

.main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-34.cb-mega-promo {
    position: absolute;
    top: 20px;
    right: 22px;
    bottom: 24px;
    width: 260px;
    flex: 0 0 260px;
    float: none;
    display: flex;
    margin-left: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.cb-mega-promo-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-height: 270px;
    padding: 22px 20px;
    border-radius: 14px;
    background: linear-gradient(160deg, #253D4E 0%, #2C705D 100%);
    color: #ffffff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cb-mega-promo-card::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    background: rgba(249, 159, 27, 0.18);
}

.cb-mega-promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -16px rgba(37, 61, 78, 0.4);
}

.cb-mega-promo-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 12px rgba(37, 61, 78, 0.35);
    color: #F99F1B;
    font-size: 18px;
    margin-bottom: 16px;
}

.cb-mega-promo-title {
    position: relative;
    font-family: "Quicksand", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(37, 61, 78, 0.65), 0 0 2px rgba(37, 61, 78, 0.5);
}

.cb-mega-promo-text {
    position: relative;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(37, 61, 78, 0.7);
    margin-bottom: 18px;
}

.cb-mega-promo-cta {
    position: relative;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    background: #F99F1B;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: background-color .15s ease;
}

.cb-mega-promo-card:hover .cb-mega-promo-cta {
    background-color: #DE8C0D;
}

.cb-mega-promo-cta i {
    font-size: 11px;
}

/* --- Hover-преглед: зеленото поле се сменя плавно със снимка от категорията ---
   .cb-preview-on се слага с JS върху ul.mega-menu при ховър върху категория.
*/
.cb-mega-promo-preview {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 14px;
    background-color: #ffffff;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .35s ease, transform .5s ease;
    pointer-events: none;
}

.cb-mega-promo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cb-mega-promo-scrim {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    /* Лек overlay: горе почти прозрачен (снимката се вижда), тъмно само долу зад текста */
    background: linear-gradient(180deg,
        rgba(37, 61, 78, 0.08) 0%,
        rgba(37, 61, 78, 0.30) 36%,
        rgba(37, 61, 78, 0.58) 66%,
        rgba(37, 61, 78, 0.80) 100%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.main-menu > nav > ul > li ul.mega-menu.cb-preview-on .cb-mega-promo-preview {
    opacity: 1;
    transform: scale(1);
}

.main-menu > nav > ul > li ul.mega-menu.cb-preview-on .cb-mega-promo-scrim {
    opacity: 1;
}

/* Тънка зелена рамка на картата + без декоративния кръг, докато се показва снимката */
.main-menu > nav > ul > li ul.mega-menu.cb-preview-on .cb-mega-promo-card {
    box-shadow: inset 0 0 0 1px rgba(106, 156, 137, 0.5);
}

.main-menu > nav > ul > li ul.mega-menu.cb-preview-on .cb-mega-promo-card::after {
    opacity: 0;
}

.cb-mega-promo-card::after {
    transition: opacity .3s ease;
}

/* --- Стейджерд вход на картите при отваряне --- */
.main-menu > nav > ul > li ul.mega-menu > li.sub-mega-menu-width-22,
.main-menu > nav > ul > li ul.mega-menu > li.sub-mega-menu-width-34 {
    opacity: 0;
    transition: opacity .32s cubic-bezier(.21, 1.02, .73, 1) 0s,
                background-color .25s ease,
                border-color .25s ease,
                box-shadow .25s ease,
                transform .25s ease;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li.sub-mega-menu-width-22,
.main-menu > nav > ul > li:hover ul.mega-menu > li.sub-mega-menu-width-34,
.main-menu > nav > ul > li:focus-within ul.mega-menu > li.sub-mega-menu-width-22,
.main-menu > nav > ul > li:focus-within ul.mega-menu > li.sub-mega-menu-width-34 {
    opacity: 1;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(2),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(2) {
    transition-delay: .06s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(3),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(3) {
    transition-delay: .12s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(4),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(4) {
    transition-delay: .18s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(5),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(5) {
    transition-delay: .24s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(6),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(6) {
    transition-delay: .30s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(7),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(7) {
    transition-delay: .36s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(8),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(8) {
    transition-delay: .42s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(9),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(9) {
    transition-delay: .48s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(7),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(7) {
    transition-delay: .36s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(8),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(8) {
    transition-delay: .42s, 0s, 0s, 0s, 0s;
}

.main-menu > nav > ul > li:hover ul.mega-menu > li:nth-child(9),
.main-menu > nav > ul > li:focus-within ul.mega-menu > li:nth-child(9) {
    transition-delay: .48s, 0s, 0s, 0s, 0s;
}

/* --- Мобилно меню: категории с подкатегории ---
   (Theme selectors са с много висока специфичност → !important)
*/
.mobile-menu li ul li a {
    color: #5f6b76 !important;
}

.mobile-menu li ul li a:hover {
    color: #6A9C89 !important;
}

.mobile-menu li ul li.menu-item-has-children > a {
    color: #253D4E !important;
    font-weight: 700 !important;
}

.mobile-menu li ul li.menu-item-has-children.active > a {
    color: #6A9C89 !important;
}

.mobile-menu li .cb-mobile-cat-all {
    color: #6A9C89 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.mobile-menu li .cb-mobile-cat-all:hover {
    color: #F99F1B !important;
}

.mobile-menu li .cb-mobile-cat-all i {
    margin-right: 3px;
}

/* --- Намалено движение --- */
@media (prefers-reduced-motion: reduce) {
    .main-menu > nav > ul > li ul.mega-menu,
    .main-menu > nav > ul > li ul.mega-menu > li,
    .main-menu > nav > ul > li > a::after,
    .main-menu > nav > ul > li > a .fi-rs-angle-down {
        transition: none !important;
    }
}

/* --- Адаптивност на промо панела при по-тесни екрани --- */
@media (max-width: 1399.98px) {
    .main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-34.cb-mega-promo {
        width: 220px;
        flex-basis: 220px;
    }

    .main-menu > nav > ul > li ul.mega-menu {
        padding-right: 256px;
    }
}

@media (max-width: 1199.98px) {
    /* Под 1200px рейлът отново е хоризонтален банер под картите */
    .main-menu > nav > ul > li ul.mega-menu {
        padding-right: 22px;
        min-height: 0;
    }

    .main-menu > nav > ul > li ul.mega-menu li.sub-mega-menu-width-34.cb-mega-promo {
        position: static;
        width: 100%;
        flex-basis: 100%;
        min-height: 130px;
    }

    .cb-mega-promo-card {
        min-height: 130px;
        flex-direction: row;
        align-items: center;
        gap: 18px;
        padding: 18px 22px;
    }

    .cb-mega-promo-icon {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .cb-mega-promo-text {
        margin-bottom: 0;
        flex: 1 1 auto;
    }

    .cb-mega-promo-cta {
        margin-top: 0;
        flex: 0 0 auto;
    }
}

/* ============================================================
   Мобилна кошница — компактен layout (v14)
   Зарежда се СЛЕД main.css, ПРЕДИ tailwind-static.min.css,
   затова override-ите използват двоен клас (.x.x) за по-висок
   специфичност спрямо utility класовете от Tailwind.
   ============================================================ */

/* --- Стъпки: компактни на мобилен, оригинални на десктоп --- */
.cb-stepbar.cb-stepbar {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (min-width: 768px) {
    .cb-stepbar.cb-stepbar {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 639.98px) {
    .cb-step-dot {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

/* --- Контейнер на кошницата --- */
.cb-cart-page.cb-cart-page {
    padding-top: 24px;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .cb-cart-page.cb-cart-page {
        padding-top: 40px;
    }
}

@media (min-width: 1024px) {
    .cb-cart-page.cb-cart-page {
        padding-bottom: 40px;
    }
}

/* --- Заглавие на продукта: 16px на мобилен (темата дава 24px) --- */
.cb-cart-card h4 {
    font-size: 16px;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .cb-cart-card h4 {
        font-size: 24px;
        line-height: 1.3;
    }
}

/* --- Редове: по-плътни на мобилен --- */
.cb-cart-row {
    gap: 12px;
}

.cb-type-row {
    gap: 8px;
}

@media (min-width: 768px) {
    .cb-cart-row {
        gap: 16px;
    }

    .cb-type-row {
        gap: 12px;
    }
}

/* --- Снимка: 64px на мобилен, 80px на десктоп --- */
@media (min-width: 768px) {
    .cb-thumb.cb-thumb {
        width: 80px;
        height: 80px;
    }
}

/* --- Инфо: място за × в горния десен ъгъл --- */
.cb-cart-info {
    padding-right: 40px;
}

@media (min-width: 768px) {
    .cb-cart-info {
        padding-right: 0;
    }
}

/* --- × в горния десен ъгъл на картичката (само мобилен) --- */
@media (max-width: 767.98px) {
    .cb-cart-row {
        position: relative;
    }

    .cb-cart-row > .cb-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 2;
    }
}

/* --- Цена / Брой / Общо --- */
/* Мобилен: един ред с разделител; десктоп: display:contents,
   за да останат direct flex children (идентичен на стария лейаут). */
.cb-cart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px dashed #eef0f2;
}

@media (min-width: 768px) {
    .cb-cart-meta {
        display: contents;
        padding-top: 0;
        border-top: 0;
    }
}

/* --- Свиване/разгъване на вариантите (само мобилен) --- */
.cb-variants-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #fbfcfc;
    border-top: 1px dashed #e8ecef;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

.cb-variants-toggle i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.cb-variants-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.cb-variants {
    display: none;
}

.cb-variants.cb-open {
    display: block;
}

@media (min-width: 768px) {
    .cb-variants {
        display: block;
    }
}

/* --- Лепкава лента „Общо + Плащане“ (до lg) --- */
.cb-sticky-checkout {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eef0f2;
    box-shadow: 0 -6px 24px -12px rgba(16, 24, 40, 0.25);
}

.cb-sticky-checkout a {
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .cb-sticky-checkout {
        display: none;
    }
}

/* --- Стрелка „нагоре": скрита на мобилен (пречи на лепкавите ленти) --- */
@media (max-width: 767.98px) {
    #scrollUp {
        display: none;
    }
}

/* ============================================================
   Продуктови картички: при ховър default-снимката изчезва
   ============================================================
   .hover-img е absolute (z-index:2) върху default-img. При JPG
   продуктови снимки hover-ът е непрозрачен и покрива default-а.
   При новите продукти (126-130) обаче hover-снимките са прозрачни
   PNG кът-аути → виждат се двете накуп и се припокриват.
   Скриваме default-а при ховър, САМО когато има hover-снимка
   (класа has-hover-img се слага в _product.php) — иначе картичката
   остава празна при ховър.
   ============================================================ */

.product-cart-wrap .product-img-action-wrap .product-img a img.default-img {
    transition: .25s opacity;
}

.product-cart-wrap:hover .product-img-action-wrap .product-img.has-hover-img a img.default-img {
    opacity: 0;
}

/* SEO: H1 на продуктова страница наследява размера на предишния H2 */
.detail-info h1.title-detail{font-size:26px;line-height:1.25;margin-bottom:.5rem}
