:root {
    --ppp-primary: #ffb81f;
    /* This is the new primary color */
    --ppp-secondary: #f7a42c;
    --ppp-border: #e0e0e0;
    --ppp-background: #fff;
    --ppp-text: #333;
    --ppp-selected-glow: rgba(255, 184, 31, 0.15);
    /* Updated glow to match new primary */
}

.ppp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ppp-item {
    background: var(--ppp-background);
    border: 2px solid var(--ppp-border);
    border-radius: 12px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.ppp-item.ppp-selected {
    border-color: var(--ppp-primary);
    box-shadow: 0 6px 20px var(--ppp-selected-glow);
}

.ppp-item-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.ppp-item-title {
    font-size: 1em;
    margin: 10px 0;
    color: var(--ppp-text);
}

.ppp-item-price {
    font-weight: 600;
    color: var(--ppp-primary);
    margin-bottom: 15px;
}

.ppp-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ppp-quantity-btn {
    background-color: var(--ppp-primary);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 28px;
}

.ppp-quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--ppp-border);
    border-radius: 6px;
    height: 30px;
    margin: 0 8px;
}

.ppp-summary-wrapper {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-top: 1px solid var(--ppp-border);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.07);
}

.ppp-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
}

.ppp-summary-left {
    flex: 1;
}

.ppp-summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    overflow-y: auto;
}

.ppp-summary-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ppp-summary-totals {
    text-align: right;
}

.ppp-total-price-amount {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--ppp-primary);
}

.ppp-add-to-cart-btn {
    background-color: var(--ppp-secondary);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    cursor: pointer;
}

.ppp-add-to-cart-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.ppp-add-to-cart-btn.ppp-loading {
    background-color: #aaa;
}

.ppp-ajax-notice .ppp-error {
    color: red;
    margin: 10px 0 0;
}

@media (max-width: 768px) {
    .ppp-summary {
        flex-direction: column;
    }

    .ppp-summary-right {
        width: 100%;
        justify-content: space-between;
    }
}