/**
 * WooCommerce Styles
 * Digital Imprint Theme
 */

/* ===============================================
   GENERAL WOOCOMMERCE STYLES
   =============================================== */

.woocommerce-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Products Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* Sale Badge */
.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px;
    color: #333;
    line-height: 1.4;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin: 0 15px 15px;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 16px;
    margin-right: 8px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Add to Cart Button */
.woocommerce ul.products li.product .button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.woocommerce ul.products li.product .button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.woocommerce ul.products li.product .button::before {
    content: "\F291"; /* Bootstrap Icons cart */
    font-family: "bootstrap-icons";
    font-size: 18px;
}

/* ===============================================
   SINGLE PRODUCT PAGE
   =============================================== */

.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin: 40px 0;
}

.woocommerce div.product .product_title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

.woocommerce div.product .price {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
}

.woocommerce div.product .price del {
    color: #999;
    font-size: 24px;
}

.woocommerce div.product .price ins {
    text-decoration: none;
    color: #e74c3c;
}

/* Product Description */
.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 20px 0;
}

/* Add to Cart Form */
.woocommerce div.product form.cart {
    margin: 30px 0;
}

.woocommerce div.product form.cart .quantity {
    display: inline-block;
    margin-right: 15px;
}

.woocommerce div.product form.cart input[type="number"] {
    width: 80px;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* WhatsApp Button */
.whatsapp-button {
    background: #25d366 !important;
    color: white !important;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-button:hover {
    background: #128c7e !important;
}

/* Product Tabs */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 60px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* ===============================================
   CART PAGE
   =============================================== */

.woocommerce-cart table.cart {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-cart table.cart th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    font-weight: 600;
    text-align: left;
}

.woocommerce-cart table.cart td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-cart table.cart img {
    max-width: 80px;
    border-radius: 8px;
}

/* Cart Totals */
.cart-collaterals .cart_totals {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-collaterals .cart_totals h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
}

.cart-collaterals .cart_totals table {
    width: 100%;
}

.cart-collaterals .cart_totals .order-total {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

/* ===============================================
   CHECKOUT PAGE
   =============================================== */

.woocommerce-checkout #customer_details {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
}

.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Order Review */
#order_review {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#order_review h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #333;
}

#order_review .shop_table {
    width: 100%;
    margin-bottom: 20px;
}

#place_order .button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#place_order .button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* ===============================================
   ACCOUNT PAGE
   =============================================== */

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 5px 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* ===============================================
   HEADER CART ICON
   =============================================== */

.header-cart {
    position: relative;
}

.header-cart .cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-cart .cart-icon:hover {
    color: #667eea;
}

.header-cart .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .woocommerce-cart table.cart td,
    .woocommerce-cart table.cart th {
        padding: 10px;
        font-size: 14px;
    }
}
