@import url(/assets/styles.css);
.cart-icon-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            position: relative;
            padding: 5px;
        }
        .hidden{ display: none}
        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--yellow);
            color: var(--dark);
            font-size: 12px;
            font-weight: bold;
            border-radius: 50%;
            padding: 2px 6px;
        }

        /* Cart Overlay background dimming panel */
        .cart-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            z-index: 998;
        }

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

        /* Sliding Slider Sidebar Panel Container Drawer */
        .cart-panel {
            position: fixed;
            top: 0;
            right: -420px;
            width: 100%;
            max-width: 420px;
            height: 100%;
            background: var(--white);
            box-shadow: -5px 0 15px rgba(0,0,0,0.15);
            transition: right 0.3s ease-in-out;
            z-index: 1000;
            display: flex;
            flex-direction: column;
        }

        .cart-panel.open {
            right: 0;
        }

        /* Banner Success Toast Alert row */
        .cart-notification {
            background: #d4edda;
            color: #155724;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 500;
            text-align: center;
            border-bottom: 1px solid #c3e6cb;
            display: none;
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }

        .close-cart-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #333;
        }

        .cart-body {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background-color: var(--white);
        }
.p-title {
    font-size: 12px;
}

.p-weight {
    font-size: 10px;
    font-weight: bold;
}
        .empty-message {
            text-align: center;
            color: #888;
            margin-top: 40px;
        }

        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f0f0f0;
            gap: 10px;
        }


        .item-details h4 {
            font-size: 14px;
            margin-bottom: 5px;
            color: #333;
            font-family: raleway;
            font-weight: normal;
            display: inline;
        }

        .item-details .item-price {
            color: #28a745;
            font-weight: bold;
            font-size: 14px;
            display: inline-block;
            padding: 0 5px;
        }

        .cart-weight-select {
            margin-top: 5px;
            padding: 3px 5px;
            font-size: 12px;
            border: 1px solid #ccc;
            border-radius: 4px;
            background:var(--white);
            cursor: pointer;
        }

        .qty-controls {
            display: flex;
            align-items: center;
            background: #f0f0f0;
            border-radius: 4px;
            padding: 2px;
        }

        .qty-btn {
            background:var(--white);
            border: 1px solid #ddd;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            cursor: pointer;
            border-radius: 4px;
            user-select: none;
        }

        .qty-btn:hover {
            background: #e2e2e2;
        }

        .qty-amount {
            margin: 0 2px;
            font-weight: bold;
            font-size: 14px;
            min-width: 15px;
            text-align: center;
        }

        .cart-footer {
            padding: 20px;
            border-top: 1px solid #eee;
            background: #fafafa;
        }

        .total-container {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-weight: bold;
            font-size: 18px;
            position: relative;
        }

        .checkout-btn {
            width: 100%;
            padding: 12px;
            background: var(--yellow);
            color: var(--dark);
            border: none;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
            font-weight: bold;
            margin-bottom: 10px;
            text-align:center;
        }

        .checkout-btn:hover {
            background: var(--primary-red);
            color:var(--white)
        }

        .continue-btn {
            width: 100%;
            padding: 10px;
            background: var(--green);
            color: var(--white);
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 14px;
            cursor: pointer;
        }
        .align-center{text-align: center;}
        .continue-btn:hover {
            background:var(--primary-red);
            color: var(--white);
        }
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
            max-width: 1200px;
            margin: 50px auto;
        }
        
        .product-card h4 {
            margin-bottom: 10px;
            font-size: 16px;
            color: #333;
        }
        .weight-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
            margin-bottom: 12px;
        }
        .weight-btn {
            background: #f0f0f0;
            border: 1px solid #ddd;
            padding: 4px 6px;
            font-size: 11px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
        }
        .weight-btn:hover {
            background: #e0e0e0;
        }
        .weight-btn.active {
            background: #388e3c;
            color: white;
            border-color: #155724;
        }
        .price-tag {
            color: #28a745;
            /* font-weight: normal; */
            /* font-size: 16px; */
            font-family: san-serif;
        }
        .card-action-container {
            min-height: 35px;
        }
        
        .add-to-cart-btn:hover {
            color:var(--white);
            background: var(--primary-red);;
        }
        .qty-controls {
            display: flex;
            /* align-items: center; */
            /* justify-content: end; */
            background:var(--white);
            border: 1px solid var(--yellow);;
            border-radius: 4px;
            padding: 2px;
        }
        .qty-btn {
            background:var(--yellow);
            color: var(--dark);
            border: none;
            width: 20px;
            height: 20px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .qty-btn:hover {
            background:var(--primary-red);
            color:var(--white);
        }
        .qty-amount {
            font-weight: bold;
            font-size: 14px;
            color: #333;
        }

.carticon-block {
    background-color:#f3f3f3;
    display: inline-block;
    padding: 5px 16px;
    border-radius: 50%;
    font-size: 40px;
    align-items: center;
    .fa-shopping-cart{color:var(--white)}
    /* justify-content: flex-start; */ /* Centers horizontally */
    /* align-items: center; */     /* Centers vertically */
    /* display: flex; */
}

.parent-div {
    /* display: flex; */
    /* justify-content: flex-start; */
    /* align-items: center; */
    /* width: 100%; */
    /* height: 300px; */
    text-align: center;
}
/* Popup Container Styles */
/* Flex 3-Column Layout */
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

/* Column General Styling */
.cart-col {
  display: flex;
  align-items: center;
}

/* Column 1: Product Name (takes up more space) */
.cart-col.product-name {
  flex: 3;
  flex-direction: column;
  align-items: flex-start;
}

/* Column 2: Quantity Controls (+ / -) */
.cart-col.product-quantity {
  flex: 1;
  justify-content: center;
  gap: 8px;
}


/* Column 3: Price in RS */
.cart-col.product-price {
  flex: 0.7;
  justify-content: flex-end;
  font-weight: 700;
  color: #28a745; /* Green tone for pricing */
  font-size: 1rem;
}



.checkoutSuceess {
    padding: 15px;
    margin: 10px;
    border: 1px solid  green;
    font-size: 14px;
}

/* The Flying Clone Style */
.flying-clone {
  position: fixed;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  object-fit: cover;
  z-index: 9999;
  pointer-events: none; /* Prevents interaction issues during flight */
  border-radius: 50%; /* Optional: Makes the item look like a sphere/ball falling in */
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.cartcount-bottom{font-size:12px;font-weight: lighter;}
/* Basket Shake Animation */
@keyframes shake {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-10deg); }
  100% { transform: scale(1); }
}
.cart-btn.shake {
  animation: shake 0.3s ease-in-out;
}