:root {
    --z-red: #ef4f5f;
    --z-green: #24963f;
    --z-bg: #f8f8f8;
    --z-text: #1c1c1c;
    --z-light: #696969;
    --z-border: #e8e8e8;
}

.breadcrumb-section {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid var(--z-border);
    margin-bottom: 25px;
}

.breadcrumb {
    background: transparent;
    margin: 0;
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--z-light);
    text-decoration: none;
}

.z-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--z-border);
    padding: 10px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.rest-header {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.cart-item-row {
    justify-content: space-between;
    align-items: flex-start;
    padding: 5px 0;
    border-bottom: 1px dashed var(--z-border);
}

.cart-item-row:last-child {
    border-bottom: none;
}

.item-meta {
    display: flex;
    gap: 15px;
}

.veg-icon {
    color: #24963f;
    font-size: 10px;
    border: 1px solid #24963f;
    padding: 1px;
    border-radius: 2px;
    height: fit-content;
    margin-top: 5px;
}

.item-name {
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    margin: 0;
}

.item-price-unit {
    color: var(--z-light);
    font-size: 13px;
    margin-top: 2px;
}

.qty-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--z-red);
    border-radius: 6px;
    height: 32px;
    min-width: 90px;
    justify-content: space-between;
}

.item-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin-left: auto;
}

.qty-container {
    display: inline-flex;
    align-items: center;
    background-color: #f1f6f3;
    border: 1px solid #28a745;
    border-radius: 5px;
    height: 26px;
    overflow: hidden;
    padding: 0;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    color: #28a745;
    font-size: 16px;
    padding: 0 8px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-display {
    color: #1c1c1c;
    min-width: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.qty-input {
    width: 30px;
    border: none;
    text-align: center;
    font-size: 14px;
}

.bill-heading {
    font-size: 14px;
    margin-bottom: 5px;
}

.bill-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--z-light);
}

.bill-total {
    border-top: 1px solid var(--z-text);
    padding-top: 12px;
    margin-top: 12px;
    color: var(--z-text);
    font-size: 14px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.coupon-input-group input {
    border: 1px solid var(--z-border);
    border-radius: 8px;
    padding: 8px 12px;
    flex-grow: 1;
    text-transform: inherit;
}

.z-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.08);
    z-index: 9999;
}

.btn-zomato {
    background: var(--z-red);
    color: #fff;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
}

.btn-zomato:hover {
    color: #fff;
    opacity: 0.9;
}

@media (min-width: 992px) {
    .z-sticky-footer {
        display: none;
    }
}

.edit-link {
    text-decoration: none;
    color: #6c757d;
    display: block;
    margin-top: -2px;
}

.item-total-price {
    font-weight: 500;
    color: #1c1c1c;
    font-size: 14px;
    text-align: right;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.qty-btn[disabled]:hover {
    background-color: #f8f8f8 !important;
    color: #ccc !important;
}

.bill-line.platform-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.label-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    border: 1px solid #666;
    border-radius: 50%;
    background: transparent;
}

.info-popup {
    visibility: hidden;
    width: 220px;
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 100;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.info-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.info-wrapper:hover .info-popup {
    visibility: visible;
    opacity: 1;
}

.price-value {
    font-weight: 500;
    color: #000;
}

.bogo-accordion-container {
    width: 100%;
    margin-top: 14px;
    border: 1px solid #f2c3ca;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.bogo-accordion-header {
    width: 100%;
    min-height: 66px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    background: #fff6f7;
    transition: background .2s ease;
}

.bogo-accordion-header:hover {
    background: #fff1f3;
}

.bogo-header-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.bogo-gift-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid #f3274c;
    background: #fff;
    color: #f3274c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bogo-header-content {
    min-width: 0;
}

.bogo-header-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.bogo-header-subtitle {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 3px;
}

.bogo-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.bogo-remaining {
    color: #e82747;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.bogo-chevron {
    color: #555;
    font-size: 11px;
    transition: transform .25s ease;
}

.bogo-accordion-container.expanded .bogo-chevron {
    transform: rotate(180deg);
}

.bogo-selected-box-wrapper {
    background: #f4fbf7;
    border-bottom: 1px solid #d1f2e1;
    padding: 12px 15px;
}

.bogo-selected-top-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.bogo-selected-check-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #159c4e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-top: 1px;
}

.bogo-selected-texts {
    display: flex;
    flex-direction: column;
}

.bogo-selected-main-title {
    color: #159c4e;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.bogo-selected-sub-title {
    color: #555;
    font-size: 12px;
    margin-top: 2px;
    line-height: 1.3;
}

.bogo-selected-inner-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #d1f2e1;
    border-radius: 8px;
    padding: 8px 10px;
    gap: 10px;
}

.bogo-selected-product {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.bogo-selected-image {
    width: 50px;
    height: 50px;
    min-width: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #eeeeee;
}

.bogo-selected-info {
    min-width: 0;
}

.bogo-selected-name {
    color: #202020;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bogo-selected-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.bogo-selected-old-price {
    color: #777;
    font-size: 14px;
    text-decoration: line-through;
}

.bogo-selected-free {
    color: #159447;
    font-size: 13px;
    font-weight: 500;
}

.bogo-change-item-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid #159c4e;
    border-radius: 6px;
    background: #fff;
    color: #159c4e;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.bogo-change-item-btn:hover {
    background: #159c4e;
    color: #fff;
}

.bogo-accordion-content {
    display: none;
    width: 100%;
    background: #fff;
    border-top: 1px solid #f0dfe2;
    padding: 16px;
}

.bogo-accordion-container.expanded .bogo-accordion-content {
    display: block;
}

.bogo-selection-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.bogo-selection-title {
    color: #555;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.bogo-selection-count {
    color: #f3274c;
    font-size: 14px;
    font-weight: 500;
}

.bogo-category-list {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.bogo-category-list::-webkit-scrollbar {
    display: none;
}

.bogo-category {
    height: 34px;
    padding: 0 15px;
    border-radius: 18px;
    border: 1px solid #e4e4e4;
    background: #fff;
    color: #3e4650;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}

.bogo-category:hover {
    border-color: #f3274c;
    color: #f3274c;
}

.bogo-category.active {
    background: #f3274c;
    border-color: #f3274c;
    color: #fff;
}

.bogo-grid-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.bogo-item-card {
    position: relative;
    min-width: 0;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
}

.bogo-item-card:hover {
    border-color: #f3274c;
    box-shadow: 0 4px 12px rgba(243, 39, 76, .08);
    transform: translateY(-1px);
}

.bogo-item-card.selected {
    border: 1.5px solid #159c4e;
    background: #f3fff7;
}

.bogo-selected-check {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #159c4e;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 5;
}

.bogo-item-card.selected .bogo-selected-check {
    display: flex;
}

.bogo-item-image {
    display: block;
    width: 100%;
    height: 105px;
    object-fit: cover;
    border-radius: 7px;
    background: #f7f7f7;
    margin-bottom: 8px;
}

.bogo-item-details {
    width: 100%;
    min-width: 0;
}

.bogo-item-name {
    color: #222;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    min-height: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bogo-item-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    margin-bottom: 8px;
    font-size: 14px;
}

.bogo-price-old {
    text-decoration: line-through;
}

.bogo-free-tag {
    color: #159447;
    font-weight: 500;
}

.bogo-extra-tag {
    padding: 2px 5px;
    border-radius: 4px;
    background: #fff1f3;
    color: #f3274c;
    font-size: 9px;
    font-weight: 500;
}

.bogo-card-action {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #f3274c;
    border-radius: 6px;
    background: #fff;
    color: #e52a47;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.bogo-item-card.selected .bogo-card-action {
    background: #159c4e;
    border-color: #159c4e;
    color: #fff;
}

@media (min-width: 1200px) {
    .bogo-grid-container {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .bogo-grid-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .bogo-item-image {
        height: 95px;
    }
}

@media (max-width: 767px) {
    .item-details .d-flex.align-items-center.gap-2 img {
        width: 45px !important;
        height: 45px !important;
        border-radius: 6px;
    }
    .item-name {
        font-size: 14px;
    }
    .item-details .gap-2 {
        gap: 10px !important;
    }
    .bogo-accordion-container {
        margin-top: 12px;
        border-radius: 10px;
    }
    .bogo-accordion-header {
        min-height: 60px;
        padding: 10px 11px;
        gap: 8px;
    }
    .bogo-header-left {
        gap: 9px;
    }
    .bogo-gift-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 15px;
    }
    .bogo-header-title {
        font-size: 14px;
    }
    .bogo-header-subtitle {
        font-size: 12px;
    }
    .bogo-remaining {
        display: none;
    }
    .bogo-selected-box-wrapper {
        padding: 10px;
    }
    .bogo-selected-image {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
    .bogo-selected-name {
        font-size: 13px;
    }
    .bogo-selected-old-price {
        font-size: 13px;
    }
    .bogo-selected-free {
        font-size: 13px;
    }
    .bogo-change-item-btn {
        padding: 5px 8px;
        font-size: 13px;
    }
    .bogo-accordion-content {
        padding: 10px;
    }

    /* 2 items per row in mobile view */
    .bogo-grid-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .bogo-item-card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: auto;
        padding: 8px;
    }
    .bogo-item-image {
        width: 100%;
        height: 90px;
        min-width: auto;
        margin: 0 0 8px 0;
    }
    .bogo-item-details {
        flex: none;
        width: 100%;
        padding-right: 0;
    }
    .bogo-item-name {
        min-height: 28px;
        font-size: 13px;
    }
    .bogo-item-price {
        margin-top: 4px;
        margin-bottom: 6px;
    }
    .bogo-card-action {
        width: 100%;
        min-width: auto;
        height: 30px;
        padding: 0 6px;
        border-radius: 6px;
        font-size: 13px;
    }
    .bogo-card-action::after {
        content: none;
    }
}

.cart-item-row .bogo-accordion-container {
    width: 100%;
    max-width: 100%;
}

.cart-item-main-row {
    width: 100%;
}