/*
 * WooCommerce Styles for Seosight Theme
 * 
 * @package Seosight
 * @since 1.0.0
 */

/* WooCommerce General Styles */
.woocommerce-active .content-wrapper {
    padding-top: 0;
}

.woocommerce .woocommerce-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.woocommerce .woocommerce-breadcrumb a {
    color: #007cba;
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: #005a87;
}

/* Product Grid */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    list-style: none;
    padding: 0;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin: 0 15px 30px;
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    flex: 0 0 calc(33.333% - 30px);
}

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

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    font-weight: 600;
    margin: 15px 20px 10px;
    color: #333;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    font-size: 18px;
    font-weight: 600;
    color: #007cba;
    margin: 0 20px 15px;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-weight: normal;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin: 0 20px 20px;
    display: inline-block;
    text-decoration: none;
}

.woocommerce ul.products li.product .button:hover {
    background: #005a87;
    transform: translateY(-2px);
}

/* Single Product */
.woocommerce div.product {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.woocommerce div.product .product_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.woocommerce div.product .price {
    font-size: 24px;
    font-weight: 700;
    color: #007cba;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.woocommerce div.product form.cart {
    margin-bottom: 30px;
}

.woocommerce div.product form.cart .quantity {
    margin-right: 15px;
}

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

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #005a87;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #eee;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    display: flex;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0 30px 0 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: #666;
    text-decoration: none;
    padding: 15px 0;
    display: block;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #007cba;
    border-bottom-color: #007cba;
}

.woocommerce div.product .woocommerce-tabs .panel {
    color: #666;
    line-height: 1.6;
}

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

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

.woocommerce table.cart th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

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

.woocommerce table.cart .product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.woocommerce table.cart .product-name a:hover {
    color: #007cba;
}

.woocommerce table.cart .quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.woocommerce table.cart .product-price,
.woocommerce table.cart .product-subtotal {
    font-weight: 600;
    color: #007cba;
}

/* Cart Totals */
.woocommerce .cart-collaterals {
    margin-top: 30px;
}

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

.woocommerce .cart_totals h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #333;
}

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

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

.woocommerce .cart_totals table .order-total {
    font-size: 18px;
    font-weight: 700;
    color: #007cba;
}

/* Checkout */
.woocommerce .checkout .col2-set {
    display: flex;
    gap: 30px;
}

.woocommerce .checkout .col-1,
.woocommerce .checkout .col-2 {
    flex: 1;
}

.woocommerce .checkout .woocommerce-billing-fields h3,
.woocommerce .checkout .woocommerce-shipping-fields h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.woocommerce .checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce .checkout .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

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

.woocommerce .checkout .form-row input:focus,
.woocommerce .checkout .form-row select:focus,
.woocommerce .checkout .form-row textarea:focus {
    border-color: #007cba;
    outline: none;
}

/* Order Review */
.woocommerce .checkout #order_review {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.woocommerce .checkout #order_review h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.woocommerce .checkout #order_review table {
    width: 100%;
    margin-bottom: 20px;
}

.woocommerce .checkout #order_review table th,
.woocommerce .checkout #order_review table td {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.woocommerce .checkout #order_review .order-total {
    font-size: 18px;
    font-weight: 700;
    color: #007cba;
}

/* Place Order Button */
.woocommerce .checkout #place_order {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.woocommerce .checkout #place_order:hover {
    background: #218838;
}

/* Messages */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.woocommerce .woocommerce-message {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.woocommerce .woocommerce-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        flex: 0 0 calc(50% - 30px);
    }
    
    .woocommerce .checkout .col2-set {
        flex-direction: column;
    }
    
    .woocommerce div.product {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products li.product {
        flex: 0 0 calc(100% - 30px);
    }
    
    .woocommerce ul.products li.product img {
        height: 200px;
    }
}
