/**
 * WooCommerce Styles for Isaiah Pratt Theme
 * 
 * @package Isaiah_Pratt_Theme
 * @version 1.0.0
 */

/* WooCommerce Container */
.woocommerce-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Shop Page */
.woocommerce .woocommerce-products-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
}

.woocommerce .woocommerce-products-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.woocommerce .woocommerce-result-count {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.woocommerce .woocommerce-ordering {
    margin-bottom: 2rem;
}

.woocommerce .woocommerce-ordering select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.woocommerce ul.products li.product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.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.1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1rem;
    color: #333;
    line-height: 1.4;
}

.woocommerce ul.products li.product .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0 1rem 1rem;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-weight: 400;
    margin-right: 0.5rem;
}

/* Product Badges */
.woocommerce span.onsale {
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin: 1rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.woocommerce ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

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

.woocommerce div.product .woocommerce-product-gallery {
    position: relative;
}

.woocommerce div.product .woocommerce-product-gallery img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product .summary {
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product .product_title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.woocommerce div.product .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
}

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

.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: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 3rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    flex: 1;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    text-align: center;
    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 {
    background: white;
    color: #4ecdc4;
    border-bottom: 3px solid #4ecdc4;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 2rem;
}

/* Cart Page */
.woocommerce table.cart {
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.woocommerce table.cart th,
.woocommerce table.cart td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

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

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

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

.woocommerce table.cart .product-name a:hover {
    color: #4ecdc4;
}

.woocommerce table.cart .quantity input {
    width: 60px;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
}

.woocommerce table.cart .product-remove a {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.woocommerce table.cart .product-remove a:hover {
    background: #ff6b6b;
    color: white;
}

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

.woocommerce .cart_totals {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

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

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

.woocommerce .cart_totals .order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b6b;
}

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

.woocommerce .checkout_coupon,
.woocommerce .woocommerce-billing-fields,
.woocommerce .woocommerce-shipping-fields {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.woocommerce .checkout_coupon h3,
.woocommerce .woocommerce-billing-fields h3,
.woocommerce .woocommerce-shipping-fields h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

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

.woocommerce .form-row input,
.woocommerce .form-row select,
.woocommerce .form-row textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.woocommerce .form-row input:focus,
.woocommerce .form-row select:focus,
.woocommerce .form-row textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

/* Order Review */
.woocommerce #order_review {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.woocommerce #order_review h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.woocommerce #order_review table {
    width: 100%;
    margin-bottom: 2rem;
}

.woocommerce #order_review table th,
.woocommerce #order_review table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce #order_review .order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b6b;
}

.woocommerce #place_order {
    width: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.woocommerce #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* My Account Page */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin-bottom: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #4ecdc4;
    color: white;
}

/* Messages */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid;
}

.woocommerce-message {
    background: #e8f5e8;
    border-left-color: #00b894;
    color: #00b894;
}

.woocommerce-error {
    background: #ffe8e8;
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

.woocommerce-info {
    background: #e8f4fd;
    border-left-color: #4ecdc4;
    color: #4ecdc4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .woocommerce form.checkout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .woocommerce .cart-collaterals {
        grid-template-columns: 1fr;
    }
    
    .woocommerce table.cart {
        font-size: 0.9rem;
    }
    
    .woocommerce table.cart .product-thumbnail {
        display: none;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-direction: column;
    }
}
