.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1) !important;
}

.product-card .p-3 {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card h6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    font-size: 14px;
    line-height: 1.3;
}

.product-card .d-grid {
    margin-top: auto;
}

.product-card .btn {
    white-space: nowrap;
    font-size: 13.5px;
    padding: 8px 6px;
}

.favorite-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 576px) {
    .product-card .btn {
        font-size: 12.5px;
        padding: 7px 4px;
    }

    .product-card h6 {
        font-size: 13px;
    }
}

.cart-heading-icon {
    font-size: 20px;
    color: #ff5c00;
}

.cart-count-pill {
    background: #fff5f0;
    color: #ff5c00;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 11px;
    border-radius: 20px;
}

.cart-items-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.cart-item-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid #f0f1f3;
    transition: opacity 0.2s ease;
}

.cart-item-card.no-border {
    border-bottom: none;
}

.cart-item-card.removing {
    opacity: 0.4;
    pointer-events: none;
}

.cart-item-img {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    font-size: 14.5px;
    color: #1a1a2e;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-size-badge {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: #666;
    background: #f5f6f8;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.cart-item-price-row {
    font-size: 13px;
    color: #888;
}

.cart-item-unit-price {
    font-weight: 600;
    color: #444;
}

.cart-item-x {
    color: #b0b0b8;
}

.cart-item-qty-display {
    font-weight: 600;
    color: #444;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.qty-btn {
    width: 30px;
    height: 34px;
    border: none;
    background: #fafafa;
    color: #444;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.qty-btn:hover {
    background: #f0f0f0;
    color: #ff5c00;
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-input {
    width: 42px;
    height: 34px;
    border: none;
    border-left: 1.5px solid #e5e7eb;
    border-right: 1.5px solid #e5e7eb;
    text-align: center;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: default;
    background: #fff;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
}

.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
    flex-shrink: 0;
}

.cart-item-total-label {
    font-size: 11.5px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.cart-item-total-value {
    font-weight: 700;
    font-size: 15px;
    color: #ff5c00;
}

.remove-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #fff5f5;
    color: #ff3f6c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.remove-btn:hover {
    background: #ff3f6c;
    color: #fff;
}

.order-summary-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    padding: 28px;
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
    color: #555;
    margin-bottom: 14px;
}

.summary-divider {
    border-top: 1px dashed #e5e7eb;
    margin: 18px 0;
}

.summary-total {
    font-weight: 700;
    font-size: 17px;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #ff5c00;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.checkout-btn:hover {
    background: #e65200;
    color: #fff;
}

.continue-shopping-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
}

.continue-shopping-link:hover {
    color: #ff5c00;
}

.empty-cart-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.explore-btn {
    display: flex;
    align-items: center;
    background: #ff5c00;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.explore-btn:hover {
    background: #e65200;
    color: #fff;
}

@media (max-width: 767px) {
    .cart-item-card {
        flex-wrap: wrap;
    }

    .cart-item-info {
        width: calc(100% - 94px);
    }

    .cart-item-qty {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .cart-item-total {
        align-items: flex-start;
        margin-top: 10px;
    }

    .order-summary-card {
        position: relative;
        top: 0;
        margin-top: 20px;
    }
}


/* ===== Alert ===== */
.checkout-alert {
    background: #fff;
    position: fixed;
    top: 90px;
    right: 14px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #ffd6d6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    color: #dc3545;
    font-size: 14px;
}

.checkout-alert i {
    font-size: 18px;
}

/* ===== Card ===== */
.checkout-card,
.checkout-summary-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
    padding: 28px;
}

.checkout-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15.5px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f1f3;
}

.checkout-section-label i {
    color: #ff5c00;
    font-size: 17px;
}

.checkout-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

.checkout-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    transition: border-color 0.2s ease;
}

.checkout-input:focus {
    outline: none;
    border-color: #ff5c00;
    box-shadow: 0 0 0 3px rgba(255, 92, 0, .08);
}

.checkout-input.is-valid {
    border-color: #16a34a;
}

.checkout-input.is-invalid {
    border-color: #dc3545;
}

select.checkout-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

#phoneError {
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

.confirm-order-btn {
    width: 100%;
    background: #ff5c00;
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.confirm-order-btn:hover {
    background: #e65200;
    color: #fff;
}

/* ===== Order Summary ===== */
.checkout-summary-card {
    position: sticky;
    top: 100px;
}

.modify-order-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #ff5c00;
    text-decoration: none;
}

.modify-order-link:hover {
    text-decoration: underline;
}

.checkout-item-list {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 6px;
}

.checkout-item-list::-webkit-scrollbar {
    width: 5px;
}

.checkout-item-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f6f8;
}

.checkout-item-row:last-child {
    border-bottom: none;
}

.checkout-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background: #f8f9fa;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-item-size {
    font-size: 11.5px;
    color: #9ca3af;
}

.checkout-item-qty-price {
    font-size: 12.5px;
    color: #666;
    margin-top: 2px;
}

.checkout-item-total {
    font-weight: 700;
    font-size: 13.5px;
    color: #ff5c00;
    flex-shrink: 0;
}

.summary-divider {
    border-top: 1px dashed #e5e7eb;
    margin: 14px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: 700;
    font-size: 17px;
    color: #1a1a2e;
}

/* ===== Mobile Sticky Confirm Bar ===== */
.mobile-confirm-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 998;
}

.mobile-confirm-total {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-confirm-total small {
    color: #9ca3af;
    font-size: 11px;
}

.mobile-confirm-total strong {
    color: #ff5c00;
    font-size: 17px;
}

.mobile-confirm-btn {
    flex: 1;
    padding: 13px;
}

@media (max-width: 991px) {
    .checkout-page {
        margin-bottom: 90px !important;
    }
}

.payment-method-box {
    position: relative;
}

.payment-method-box input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-method-box input[type="radio"]:checked+.payment-method-label {
    border-color: #ff5c00;
    background: #fff8f4;
}

.payment-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff5f0;
    color: #ff5c00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.payment-method-text {
    flex: 1;
}

.payment-method-text p {
    font-weight: 600;
    font-size: 14.5px;
    color: #1a1a2e;
}

.payment-method-text small {
    font-size: 12px;
}

.payment-check-icon {
    color: #e5e7eb;
    font-size: 20px;
    transition: color 0.2s ease;
}

.payment-method-box input[type="radio"]:checked+.payment-method-label .payment-check-icon {
    color: #ff5c00;
}


.browser-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    background: #fff8e1;
    border-bottom: 1px solid #ffd54f;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .15);
}

.warning-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.warning-content i.fa-triangle-exclamation {
    color: #ff9800;
    font-size: 28px;
}

.warning-text {
    flex: 1;
}

.warning-text strong {
    display: block;
    color: #333;
    font-size: 18px;
}

.warning-text p {
    color: #666;
    margin-top: 3px;
    font-size: 14px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #000;
}

@media(max-width:768px) {

    .warning-content {
        flex-direction: column;
        align-items: flex-start;
    }

}








.home-category-wrapper {

    display: flex;
    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;

    background: #f2f2f2;

    scrollbar-width: none;

    scroll-behavior: smooth;

}

.home-category-wrapper::-webkit-scrollbar {

    display: none;

}

.home-category-item {

    flex: 0 0 auto;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;
    height: 60px;

    padding: 0 35px;

    text-decoration: none;

    color: #222;
    font-size: 15px;
    font-weight: 400;

    background: #f8f8f8;

    clip-path: polygon(20px 0, 100% 0, calc(100% - 20px) 100%, 0 100%);

    margin-right: -20px;

    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;

}

/* প্রথম Item */

.home-category-item:first-child {

    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);

    background: #ececec;
    color: #000;

}

/* শেষ Item */

.home-category-item:last-child {

    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%);

    margin-right: 0;

}

/* Hover Effect বন্ধ */

.home-category-item:hover {

    background: #f8f8f8;
    color: #222;

}

/* Active */

.home-category-item.active {

    background: #ececec;
    color: #000;

}


.home-category-item:last-child {

    clip-path: polygon(20px 0,
            100% 0,
            100% 100%,
            0 100%);

    margin-right: 0;

    background: #ececec;
    color: #000;

}


.home-category-wrapper {

    display: flex;
    overflow-x: auto;
    /* বেশি হলে ডানে-বামে স্ক্রল */
    overflow-y: hidden;

    white-space: nowrap;

    scrollbar-width: none;

    scroll-behavior: smooth;

}

.home-category-wrapper::-webkit-scrollbar {

    display: none;

}

/* Mobile */

@media (max-width:768px) {

    .home-category-item {

        min-width: 130px;
        height: 52px;

        padding: 0 20px;

        font-size: 14px;

    }

}