* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #f0f0f5;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.font800 {
    font-weight: 800;
}

.pop-btn {
    cursor: pointer;
    transition: transform .1s ease;
}

.pop-btn:active {
    transform: scale(.92);
}

.loader-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    margin-bottom: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
    animation: iconPop .6s cubic-bezier(.175, .885, .32, 1.275) forwards;
}

.loader-text {
    color: white;
    font-size: 58px;
    font-weight: 900;
    line-height: .85;
    letter-spacing: 0;
    text-align: center;
    overflow: hidden;
    padding-top: 5px;
}

.loader-text-line {
    display: block;
    opacity: 0;
    transform: translateY(25px);
    animation: textRise .6s cubic-bezier(.175, .885, .32, 1.275) forwards;
}

.loader-text-line:nth-child(1) {
    animation-delay: .15s;
}

.loader-text-line:nth-child(2) {
    animation-delay: .3s;
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}

@keyframes iconPop {
    0% { opacity: 0; transform: scale(.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes textRise {
    0% { opacity: 0; transform: translateY(25px); }
    100% { opacity: 1; transform: translateY(0); }
}

.search-typewriter {
    border-right: 2px solid #1ba672;
    padding-right: 4px;
    white-space: nowrap;
    animation: blinkCaret .75s step-end infinite;
}

@keyframes blinkCaret {
    from, to { border-color: transparent; }
    50% { border-color: #1ba672; }
}

.offer-banner {
    background: linear-gradient(90deg, var(--primary), var(--primary));
    box-shadow: 0 5px 15px rgba(255, 82, 0, .3);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 16s linear infinite;
}

@keyframes marqueeScroll {
    100% { transform: translateX(-50%); }
}

.carousel-container {
    scroll-snap-type: x mandatory;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.carousel-slide {
    scroll-snap-align: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(255, 82, 0, .22);
}

.product-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 82, 0, .3);
    box-shadow: 0 8px 20px rgba(2, 6, 12, .12);
}

.cart-updated {
    animation: itemUpdateFlash .4s ease-out;
    border-color: #1ba672 !important;
}

@keyframes itemUpdateFlash {
    0% { transform: scale(1); background-color: #fff; }
    50% { transform: scale(1.03); background-color: #f0fdf4; border-color: #1ba672; box-shadow: 0 8px 25px rgba(27, 166, 114, .2); z-index: 10; }
    100% { transform: scale(1); background-color: #fff; }
}

.timer-box {
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    padding: 6px 10px;
    border: 1px solid #fecaca;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dot-loader-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
}

.swiggy-dots {
    display: flex;
    gap: 6px;
}

.swiggy-dots span {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: jump .5s infinite alternate cubic-bezier(.5, .05, 1, .5);
}

.swiggy-dots span:nth-child(2) {
    animation-delay: .16s;
}

.swiggy-dots span:nth-child(3) {
    animation-delay: .33s;
}

@keyframes jump {
    to { transform: translateY(-12px); opacity: .6; }
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-modal {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translate(-50%,100%);
    width: 100%;
    max-width: 520px;
    height: 85vh;

    background: #fff;
    border-radius: 25px 25px 0 0;

    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.cart-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%,0);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
}

.blur-active {
    filter: blur(6px);
    pointer-events: none;
    transform: scale(.98);
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1003;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.25, 1, .5, 1);
    box-shadow: 10px 0 25px rgba(0, 0, 0, .1);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    transform: translateX(0);
}

#celebration {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .3s;
}

#celebration.show {
    display: flex;
    opacity: 1;
}
/* ===============================
   CART OVERLAY
================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}




/* ===============================
   HEADER
================================= */
.cart-header {
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    background: #fff;
    border-bottom: 1px solid #eee;
}


/* ===============================
   CART ITEMS
================================= */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #fff;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
}

.qty-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
}


/* ===============================
   OFFERS SECTION
================================= */
#offer-box {
    background: #f0fdf4;
    padding: 12px;
}

.offer-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.offer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 4px solid #d1d5db;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

.offer-card.active {
    border-left: 4px solid #16a34a;
    background: #ecfdf5;
}

.offer-card p {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.offer-card span {
    font-size: 11px;
    color: #6b7280;
}


/* ===============================
   SAVINGS BOX
================================= */
.savings-box {
    background: #ecfdf5;
    color: #15803d;
    font-size: 13px;
    padding: 10px;
    margin: 10px;
    border-radius: 10px;
    text-align: center;
}


/* ===============================
   FOOTER
================================= */
.cart-footer {
    background: #fff;
    padding: 15px;
    border-top: 1px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}


/* ===============================
   BUTTON
================================= */
.proceed-btn {
    width: 100%;
    background: #10b981;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;

    transition: 0.2s;
}

.proceed-btn:hover {
    background: #059669;
}


/* ===============================
   SCROLLBAR
================================= */
.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.celebration-box {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    width: 85%;
    max-width: 320px;
    animation: popIn .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes popIn {
    0% { transform: scale(.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(239, 68, 68, .8); }
    50% { opacity: .7; box-shadow: 0 0 2px rgba(239, 68, 68, .3); }
}

/* Product detail description, similar products and reviews */
.product-description-card,
.details-card {
    border-radius: 26px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(2, 6, 12, 0.05);
    border: 1px solid rgba(2, 6, 12, 0.04);
}

.similar-products-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 10px;
}

.similar-product-item {
    flex: 0 0 188px;
    scroll-snap-align: start;
}

.similar-product-item .product-card {
    height: 100%;
}

@media (min-width: 640px) {
    .similar-product-item {
        flex-basis: 210px;
    }
}

@media (min-width: 1024px) {
    .similar-product-item {
        flex-basis: 232px;
    }
}

.review-item {
    padding: 14px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    background: #1ba672;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 5px 7px;
}

.review-title {
    color: #02060c;
    font-size: 13px;
    font-weight: 900;
}

.review-text {
    margin-top: 8px;
    color: #02060c99;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.review-images-scroll {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.review-img {
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    cursor: pointer;
    border-radius: 14px;
    border: 1px solid #ececec;
    background: #f7f7fb;
    object-fit: cover;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #02060c73;
    font-size: 11px;
    font-weight: 800;
}

.review-image-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 6, 12, 0.72);
    backdrop-filter: blur(6px);
}

.review-image-popup.active {
    display: flex;
}

.review-image-popup img {
    max-width: min(92vw, 720px);
    max-height: 82vh;
    border-radius: 22px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.review-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #02060c;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}


.product-description-html {
    color: #4b5563;
    word-break: break-word;
}

.product-description-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 4px;
    overflow: hidden;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    background: #fff;
}

.product-description-html tr {
    border-bottom: 1px solid #eef0f4;
}

.product-description-html tr:last-child {
    border-bottom: 0;
}

.product-description-html td,
.product-description-html th {
    padding: 10px 12px;
    vertical-align: top;
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
}

.product-description-html td:first-child,
.product-description-html th:first-child {
    width: 34%;
    color: #02060c;
    font-weight: 900;
    background: #f8fafc;
}

.product-description-html ul,
.product-description-html ol {
    margin: 4px 0 4px 18px;
    padding: 0;
}

.product-description-html li {
    margin: 3px 0;
}

.product-description-html p {
    margin: 0 0 8px;
}

.product-description-html p:last-child {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .product-description-html table,
    .product-description-html tbody,
    .product-description-html tr,
    .product-description-html td,
    .product-description-html th {
        display: block;
        width: 100%;
    }

    .product-description-html td:first-child,
    .product-description-html th:first-child {
        width: 100%;
        border-bottom: 1px solid #eef0f4;
    }
}
