/**
 * NWC Custom WooCommerce Shop Styles - Simplified
 */

/* ===== SHOP WRAPPER ===== */
.nwc-shop-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== SHOP HEADER ===== */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #005230 0%, #00801c 100%);
    border-radius: 10px;
    color: white;
}

.woocommerce-products-header__title {
    font-family: inherit;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2em;
    margin: 0 0 15px 0;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ===== CART SUMMARY BAR ===== */
.nwc-cart-summary-bar {
    background: linear-gradient(135deg, #005230 0%, #00801c 100%);
    color: white;
    padding: 20px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nwc-cart-summary-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.nwc-cart-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    font-weight: 600;
}

.nwc-cart-info .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.nwc-cart-total {
    color: #ffd700;
    font-size: 1.2em;
}

.nwc-cart-actions {
    display: flex;
    gap: 10px;
}

.nwc-view-cart-btn,
.nwc-checkout-btn {
    background-color: #e17113 !important;
    color: white !important;
    padding: 10px 25px !important;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none !important;
}

.nwc-view-cart-btn:hover {
    background-color: #c55d0e !important;
}

.nwc-checkout-btn {
    background-color: #ffd700 !important;
    color: #333 !important;
}

.nwc-checkout-btn:hover {
    background-color: #ffed4e !important;
}

/* ===== PRODUCT GRID - SIMPLIFIED ===== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    justify-items: start !important;
    align-items: start !important;
}

.woocommerce ul.products li.product {
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

/* ===== PRODUCT IMAGE - SQUARE ===== */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== PRODUCT TITLE ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1em !important;
    padding: 15px 15px 10px !important;
    margin: 0 !important;
    color: #333 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

/* ===== PRICE ===== */
.woocommerce ul.products li.product .price {
    font-size: 1.3em !important;
    font-weight: 700 !important;
    padding: 0 15px 15px !important;
    margin: 0 !important;
    color: #005230 !important;
}

/* ===== ADD TO CART BUTTON ===== */
.woocommerce ul.products li.product .button {
    background-color: #00aa09 !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-align: center !important;
    border: none !important;
    width: calc(100% - 30px) !important;
    margin: 0 15px 15px !important;
    display: block !important;
    text-decoration: none !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #008011 !important;
}

.woocommerce ul.products li.product .added_to_cart {
    background-color: #005230 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
    width: calc(100% - 30px) !important;
    margin: 10px 15px 15px !important;
    text-decoration: none !important;
}

/* ===== SALE BADGE ===== */
.woocommerce span.onsale {
    background-color: #e17113 !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 10 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .nwc-cart-summary-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nwc-cart-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
    
    .nwc-cart-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* ===== RESULT COUNT & ORDERING ===== */
.woocommerce-result-count {
    color: #858585;
    font-size: 0.95em;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    color: #333;
}
