/* ============================================
   PRODUCT LIST SECTION - RESPONSIVE GRID
   ============================================ */

.agent-customer-select-box {
    margin: var(--spacing-lg) 0 0;
    padding: var(--spacing-lg);
    background: linear-gradient(180deg, #f6fbf7 0%, #eef8f0 100%);
    border: 1px solid #cfe6d4;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.agent-customer-select-box-blink {
    animation: agentCustomerReminder 1.8s ease-in-out infinite;
}

@keyframes agentCustomerReminder {
    0% {
        border-color: #cfe6d4;
        box-shadow: var(--shadow-sm);
    }
    50% {
        border-color: #7ec79a;
        box-shadow: 0 0 0 4px rgba(126, 199, 154, 0.25), var(--shadow-sm);
    }
    100% {
        border-color: #cfe6d4;
        box-shadow: var(--shadow-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    .agent-customer-select-box-blink {
        animation: none;
        border-color: #7ec79a;
    }
}

.agent-customer-select-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.agent-customer-select-head h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: var(--font-lg);
}

.agent-customer-selected-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    color: #0d6e3f;
    background-color: #dcf7e6;
    border: 1px solid #a9e2bf;
}

.agent-customer-select-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.agent-customer-select-label {
    font-size: var(--font-sm);
    color: var(--text-medium);
    font-weight: var(--font-medium);
}

.agent-customer-select-input {
    width: 100%;
    min-height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: var(--font-sm);
}

.agent-customer-select-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.12);
}

.agent-customer-select-note,
.agent-customer-feedback {
    margin: var(--spacing-xs) 0 0;
    color: var(--text-medium);
    font-size: var(--font-sm);
}

.product-list-section {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
}

/* ============================================
   PRODUCT NODE - CARD STYLING
   ============================================ */

.product-node {
    flex: 0 1 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.product-node:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-green);
}

.product-node:active {
    transform: translateY(-2px);
}

/* ============================================
   PRODUCT IMAGE
   ============================================ */

.product-node-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-lg);
    display: block;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

/* ============================================
   PRODUCT INFO TEXT
   ============================================ */

.product-title {
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-dark);
    margin: 0;
}

.product-qty {
    font-size: var(--font-sm);
    color: var(--text-medium);
    margin: 0;
}

.product-price {
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    color: var(--primary-green);
    margin: 0;
}

/* ============================================
   ADD TO CART BUTTON
   ============================================ */

.btn-add-to-cart {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-base);
    transition: all var(--transition-normal);
}

.btn-add-to-cart.btn-added-locked,
.btn-add-to-cart:disabled {
    background-color: var(--bg-light-gray);
    border-color: var(--border-light);
    color: var(--text-medium);
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.product-cart-action {
    width: 100%;
}

.product-node .cart-list-qty-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xs);
    min-width: 108px;
    margin-top: 0;
}

.product-node .cart-list-qty-btn button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-md);
    background-color: #ffffff;
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-sm);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-node .cart-list-qty-btn button:hover {
    background-color: var(--primary-green);
    color: var(--text-white);
}

.product-node .cart-list-qty-btn label {
    min-width: 32px;
    text-align: center;
    color: var(--text-dark);
    font-weight: var(--font-bold);
    font-size: var(--font-base);
    line-height: 1;
    padding-top: 10px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Mobile - 1 column (default - handled above) */

/* Tablet - 2 columns */
@media (min-width: 481px) and (max-width: 768px) {
    .product-node {
        flex: 0 1 calc(50% - var(--spacing-lg));
    }
}

/* iPad/Medium - 3 columns */
@media (min-width: 769px) and (max-width: 1023px) {
    .product-node {
        flex: 0 1 calc(33.333% - var(--spacing-lg));
    }
}

/* Desktop - 4 columns */
@media (min-width: 1024px) {
    .product-node {
        flex: 0 1 calc(25% - var(--spacing-lg));
    }
}

@media (max-width: 480px) {
    .agent-customer-select-box {
        padding: var(--spacing-md);
    }

    .agent-customer-select-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-node-img {
        aspect-ratio: 1 / 1;
    }
}
