:root {
    --primary-green: #1b8a73;
    --accent-yellow: #ffc107;
    --dark-blue: #0046a1;
    --text-white: #ffffff;
}

/* --- Global Resets --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { overflow-x: hidden; width: 100%; background-color: #fff; }
.container { max-width: 1250px; margin: 0 auto; padding: 0 20px; }


/* --- Hero Content (Left Aligned) --- */
.hero-content { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    text-align: left; 
}

.hero-top-row { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
    margin-bottom: 50px; 
    width: 100%; 
}

.company-name-heading { font-size: 42px; font-weight: 700; line-height: 1.2; }

.lab-pill { 
    border: 2px solid white; 
    padding: 10px 25px; 
    border-radius: 50px; 
    color: white; 
    text-decoration: none; 
    font-weight: 600; 
    white-space: nowrap; 
    font-size: 0.9rem;
}

.page-title { 
    font-size: 85px; 
    font-weight: 800; 
    margin-bottom: 10px; 
    line-height: 1; 
}

/* --- Mobile Queries (Left-Aligned Stack) --- */
@media (max-width: 768px) {
    .mobile-toggle { 
        display: flex; 
        background: var(--dark-blue); 
        color: white; 
        border: none; 
        width: 45px; height: 40px; 
        border-radius: 8px; 
        align-items: center; justify-content: center; 
    }

    .hero-top-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .company-name-heading { font-size: 28px; }
    .page-title { font-size: 55px; }
}

/* --- Cart Section Layout --- */
.cart-section { padding: 80px 20px; }
.cart-wrapper { 
    display: grid; 
    grid-template-columns: 1fr 380px; 
    gap: 50px; 
    align-items: start; 
}

/* --- Table Styling --- */
.professional-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.professional-cart-table th {
    text-align: left;
    padding: 15px 0;
    border-bottom: 2px solid #f1f1f1;
    color: #888;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.professional-cart-table td {
    padding: 30px 0;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
}

/* Product Info */
.product-item { display: flex; align-items: center; gap: 20px; }
.product-image {
    width: 90px;
    height: 90px;
    background: #fdfdfd;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid #eee;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-details h3 { font-size: 1.1rem; color: #111; margin-bottom: 4px; }
.product-details span { font-size: 0.9rem; color: #666; }

/* Price & Subtotal */
.td-price, .td-subtotal { font-weight: 600; font-size: 1.05rem; color: #111; }

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid #eee;
    width: fit-content;
    border-radius: 8px;
    overflow: hidden;
}
.qty-selector button {
    background: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.2s;
}
.qty-selector button:hover { background: #f5f5f5; }
.qty-selector input {
    width: 45px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    outline: none;
}

/* Actions */
.remove-item-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}
.remove-item-btn:hover { transform: scale(1.2); }

/* --- Summary Card --- */
.cart-summary-card {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 35px;
    border-radius: 20px;
}
.summary-title { font-size: 1.5rem; margin-bottom: 25px; color: #111; }
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}
.total-row {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    font-weight: 800;
    color: #111;
    font-size: 1.3rem;
}
.primary-checkout-btn {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 25px;
    cursor: pointer;
}
.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

/* --- Responsive Table --- */
@media (max-width: 992px) {
    .cart-wrapper { grid-template-columns: 1fr; }
    .professional-cart-table thead { display: none; }
    .professional-cart-table tr { 
        display: block; 
        border: 1px solid #eee; 
        border-radius: 15px; 
        margin-bottom: 20px; 
        padding: 20px;
    }
    .professional-cart-table td { 
        display: flex; 
        justify-content: space-between; 
        padding: 10px 0; 
        border: none; 
    }
    .professional-cart-table td::before { content: attr(data-label); font-weight: 700; color: #888; }
    .td-product { flex-direction: column; align-items: center !important; text-align: center; }
}

/* --- Promo Code Section --- */
.promo-code-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.promo-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.promo-input:focus {
    border-color: var(--primary-green);
}

.promo-apply-btn {
    background: #f1f1f1;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.promo-apply-btn:hover {
    background: #e0e0e0;
}

/* --- Summary Details --- */
.summary-details {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
}

.total-row {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1.5px dashed #eee; /* Professional dashed separator */
    font-weight: 800;
    color: #111;
    font-size: 1.25rem;
}

/* Refined Checkout Button */
.primary-checkout-btn {
    width: 100%;
    background: #000;
    color: #fff;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.primary-checkout-btn:hover {
    transform: translateY(-2px);
}
/* Base state: Hidden and shrunk */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ffc107; /* Your accent yellow */
    color: black;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* This keeps it hidden until the first click */
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

/* Active state: Visible and popped up */
.cart-badge.show {
    opacity: 1;
    transform: scale(1);
}
