/**
 * Stylesheet for the KV Gateway Hardware Shop ([kvg_hardware_shop]).
 * v1.8.0 (Task Group 4): Changes button colors to light orange.
 */

/* ==========================================================================
   Common & Reusable Styles
   ========================================================================== */

.kvg-button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #0073aa;
    color: #ffffff;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.kvg-button:hover, .kvg-button:focus {
    background-color: #005a87;
    color: #ffffff;
    transform: translateY(-1px);
}
.kvg-button:disabled, .kvg-button[disabled] {
    background-color: #a0a5aa;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}
.kvg-critical-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* ==========================================================================
   Shop Specific Styles
   ========================================================================== */

.kvg-shop-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 20px auto;
    overflow: visible; 
}

.kvg-shop-main { flex: 1; min-width: 300px; }
.kvg-shop-sidebar { width: 100%; max-width: 350px; flex-shrink: 0; }
.kvg-product-list { display: flex; flex-direction: column; gap: 25px; }
.kvg-product-item { display: flex; gap: 20px; border: 1px solid #e0e0e0; padding: 20px; border-radius: 8px; background: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: box-shadow 0.2s ease-in-out; }
.kvg-product-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.kvg-product-image { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; border: 1px solid #eee; flex-shrink: 0; }
.kvg-product-image-placeholder { width: 120px; height: 120px; background-color: #f0f0f1; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 2.5em; font-weight: bold; color: #b0b0b0; flex-shrink: 0; }
.kvg-product-details { flex: 1; display: flex; flex-direction: column; }
.kvg-product-name { margin: 0 0 8px; font-size: 1.3em; color: #2c3338; }
.kvg-product-description { margin: 0 0 15px; color: #555; font-size: 0.95em; flex-grow: 1; }
.kvg-product-price { font-size: 1.4em; font-weight: bold; color: #0073aa; margin-bottom: 15px; }
.kvg-product-actions { display: flex; gap: 10px; align-items: center; }
.kvg-product-quantity { width: 60px; padding: 8px; text-align: center; border: 1px solid #ccc; border-radius: 4px; }

/* NEW: Light Orange Button Colors */
.kvg-shop-container .kvg-button {
    background-color: #fd7e14; /* Bootstrap Orange */
    color: #fff;
}
.kvg-shop-container .kvg-button:hover, .kvg-shop-container .kvg-button:focus {
    background-color: #e66a00; /* Darker orange */
}
.kvg-add-to-cart-btn.added { background-color: #28a745 !important; }

/* --- Cart Sidebar Widget --- */
#kvg-cart-widget { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; position: -webkit-sticky; position: sticky; top: 40px; z-index: 999; }
#kvg-cart-widget h3 { margin-top: 0; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.kvg-cart-empty { color: #777; text-align: center; padding: 20px 0; }
.kvg-cart-item-list { list-style: none; margin: 0; padding: 0; }
.kvg-cart-item-list li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; font-size: 0.9em; }
.kvg-cart-item-list li:last-child { border-bottom: none; }
.kvg-cart-item-name { flex-grow: 1; padding-right: 10px; }
.kvg-cart-item-price { font-weight: bold; margin-left: 15px; color: #333; }
.kvg-cart-remove-btn { background: none; border: none; color: #d63638; cursor: pointer; font-size: 1.5em; line-height: 1; padding: 0 5px; }
.kvg-cart-remove-btn:hover { color: #a71d2a; }
#kvg-cart-summary { margin-top: 20px; border-top: 2px solid #ccc; padding-top: 15px; }
.kvg-cart-total { display: flex; justify-content: space-between; font-size: 1.2em; font-weight: bold; margin-bottom: 15px; }
#kvg-checkout-btn { width: 100%; padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 800px) {
    .kvg-shop-container { flex-direction: column; }
    .kvg-shop-sidebar { max-width: 100%; order: -1; }
}