/* WooCommerce Specific Styles */

/* Shop Page */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.2rem;
    margin: 1rem;
    color: #2c3e50;
}

.woocommerce ul.products li.product .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #27ae60;
    margin: 0 1rem 1rem;
}

.woocommerce ul.products li.product .button {
    width: calc(100% - 2rem);
    margin: 0 1rem 1rem;
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.woocommerce ul.products li.product .button:hover {
    background: #2980b9;
    color: white;
}

/* Single Product Page */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.woocommerce div.product .images {
    text-align: center;
}

.woocommerce div.product .images img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.woocommerce div.product .summary {
    padding: 1rem;
}

.woocommerce div.product .summary .product_title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.woocommerce div.product .summary .price {
    font-size: 2rem;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .summary .woocommerce-product-details__short-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Cart Form */
.woocommerce div.product form.cart {
    margin-bottom: 2rem;
}

.woocommerce div.product form.cart .quantity {
    display: inline-block;
    margin-right: 1rem;
}

.woocommerce div.product form.cart .quantity input {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #219a52;
}

/* Cart Page */
.woocommerce table.cart {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.woocommerce table.cart th,
.woocommerce table.cart td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.woocommerce table.cart th {
    background: #f8f9fa;
    font-weight: bold;
}

.woocommerce table.cart .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.woocommerce .cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.woocommerce .cart_totals {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.woocommerce .cart_totals h2 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.woocommerce .cart_totals table {
    width: 100%;
}

.woocommerce .cart_totals th,
.woocommerce .cart_totals td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.woocommerce .cart_totals .order-total {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Checkout Page */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.woocommerce form .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.woocommerce #payment {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.woocommerce #place_order {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}

.woocommerce #place_order:hover {
    background: #c0392b;
}

/* Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #d4edda;
    border-color: #27ae60;
    color: #155724;
}

.woocommerce-info {
    background: #cce7ff;
    border-color: #3498db;
    color: #004085;
}

.woocommerce-error {
    background: #f8d7da;
    border-color: #e74c3c;
    color: #721c24;
}

/* Lightbox for product images */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .woocommerce .cart-collaterals {
        grid-template-columns: 1fr;
    }
}