/* =====================================================
   SoccerDeal WooCommerce Override CSS
   Complete responsive: PC / Tablet / Mobile
   ===================================================== */

/* ===== SHOP PAGE ===== */
.woocommerce .products ul, .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s, transform 0.2s !important;
    position: relative !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

/* Product image */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    padding: 8px 10px 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 36px !important;
}

/* Price */
.woocommerce ul.products li.product .price {
    color: #ff5367 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 4px 10px !important;
    display: block !important;
    margin: 0 !important;
}
.woocommerce ul.products li.product .price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 13px !important;
}
.woocommerce ul.products li.product .price ins {
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Add to Cart button */
.woocommerce ul.products li.product .button {
    display: block !important;
    width: calc(100% - 20px) !important;
    margin: 6px 10px 10px !important;
    padding: 8px !important;
    background: #ff5367 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    line-height: 1.2 !important;
}
.woocommerce ul.products li.product .button:hover {
    background: #e63950 !important;
    color: #fff !important;
}
.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
    background: #ff5367 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 0 !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 5 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.5 !important;
}

/* ===== PAGINATION ===== */
.woocommerce-pagination {
    text-align: center !important;
    padding: 30px 0 !important;
}
.woocommerce-pagination ul {
    display: inline-flex !important;
    gap: 5px !important;
    border: none !important;
}
.woocommerce-pagination ul li {
    border: none !important;
    float: none !important;
}
.woocommerce-pagination ul li .page-numbers {
    padding: 8px 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    color: #333 !important;
    background: #fff !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 38px !important;
    text-align: center !important;
}
.woocommerce-pagination ul li .page-numbers.current {
    background: #ff5367 !important;
    color: #fff !important;
    border-color: #ff5367 !important;
}
.woocommerce-pagination ul li .page-numbers:hover:not(.current) {
    border-color: #ff5367 !important;
    color: #ff5367 !important;
}

/* ===== BREADCRUMB ===== */
.woocommerce-breadcrumb {
    color: #999 !important;
    font-size: 13px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}
.woocommerce-breadcrumb a {
    color: #666 !important;
}

/* ===== RESULT COUNT & ORDERING ===== */
.woocommerce-result-count {
    color: #666 !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
}
.woocommerce-ordering select {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    color: #333 !important;
    background: #fff !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

/* ===== SINGLE PRODUCT ===== */
.single-product div.product {
    background: #fff !important;
}
.single-product .product_title {
    color: #333 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}
.single-product .summary .price {
    color: #ff5367 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 10px 0 !important;
}
.single-product .summary .price del {
    color: #999 !important;
    font-size: 16px !important;
}
.single-product .summary .price ins {
    text-decoration: none !important;
}

/* Product gallery */
.woocommerce-product-gallery {
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
.woocommerce-product-gallery__image img {
    border-radius: 0 !important;
    width: 100% !important;
}

/* Add to cart */
.single_add_to_cart_button {
    background: #ff5367 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.single_add_to_cart_button:hover {
    background: #e63950 !important;
}

/* Quantity input */
.quantity input.qty {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 8px !important;
    width: 60px !important;
    text-align: center !important;
    color: #333 !important;
}

/* Variations */
.variations select {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    color: #333 !important;
    background: #fff !important;
    min-width: 200px !important;
}

/* ===== TABS ===== */
.woocommerce-tabs ul.tabs {
    display: flex !important;
    border-bottom: 2px solid #eee !important;
    margin: 30px 0 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
}
.woocommerce-tabs ul.tabs li {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}
.woocommerce-tabs ul.tabs li a {
    color: #999 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    display: block !important;
    border-bottom: 3px solid transparent !important;
    transition: all 0.2s !important;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #333 !important;
    border-bottom-color: #ff5367 !important;
}
.woocommerce-Tabs-panel {
    background: #fff !important;
    padding: 20px 0 !important;
    color: #333 !important;
    line-height: 1.7 !important;
}

/* ===== RELATED PRODUCTS ===== */
.related.products h2 {
    color: #333 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #ff5367 !important;
    padding-bottom: 8px !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
}

/* ===== CART PAGE ===== */
.woocommerce-cart table.cart {
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    border-collapse: collapse !important;
}
.woocommerce-cart table.cart th {
    background: #f5f5f5 !important;
    color: #333 !important;
    padding: 12px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
}
.woocommerce-cart table.cart td {
    border-bottom: 1px solid #eee !important;
    padding: 12px !important;
    vertical-align: middle !important;
}
.cart_totals h2 {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
.checkout-button {
    background: #ff5367 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 12px 30px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}
.checkout-button:hover {
    background: #e63950 !important;
}

/* ===== CHECKOUT ===== */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout #order_review_heading {
    color: #333 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}
#place_order {
    background: #ff5367 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 14px 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    width: 100% !important;
}
#place_order:hover {
    background: #e63950 !important;
}

/* ===== MY ACCOUNT ===== */
.woocommerce-MyAccount-navigation {
    background: #f5f5f5 !important;
    border-radius: 4px !important;
    padding: 15px !important;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.woocommerce-MyAccount-navigation li {
    margin-bottom: 5px !important;
}
.woocommerce-MyAccount-navigation a {
    color: #666 !important;
    display: block !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
}
.woocommerce-MyAccount-navigation .is-active a {
    color: #ff5367 !important;
    font-weight: 700 !important;
    background: #fff !important;
}

/* ===== NOTICES ===== */
.woocommerce-message {
    background: #f0f8f0 !important;
    border-color: #2ada71 !important;
    color: #333 !important;
    border-radius: 4px !important;
}
.woocommerce-error {
    background: #fff5f5 !important;
    border-color: #ff5367 !important;
    color: #333 !important;
    border-radius: 4px !important;
}
.woocommerce-info {
    background: #f0f4ff !important;
    border-color: #2f5aae !important;
    color: #333 !important;
    border-radius: 4px !important;
}

/* ===== STORE NOTICE ===== */
.woocommerce-store-notice {
    background: #ff5367 !important;
    color: #fff !important;
}

/* ===== WIDGETS ===== */
.woocommerce .widget {
    background: #fff !important;
    color: #333 !important;
}
.woocommerce .widget-title {
    color: #333 !important;
    border-bottom: 2px solid #ff5367 !important;
    padding-bottom: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.woocommerce .widget_product_categories ul li a {
    color: #666 !important;
}
.woocommerce .widget_product_categories ul li a:hover {
    color: #ff5367 !important;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background: #ff5367 !important;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background: #ff5367 !important;
}

/* ===== STAR RATINGS ===== */
.star-rating span::before {
    color: #ffa500 !important;
}
.woocommerce p.stars a {
    color: #ffa500 !important;
}

/* =====================================================
   RESPONSIVE 鈥?TABLET (鈮?024px)
   ===================================================== */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

/* =====================================================
   RESPONSIVE 鈥?MOBILE (鈮?68px)
   ===================================================== */
@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        min-height: 30px !important;
        padding: 6px 8px 0 !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 13px !important;
        padding: 2px 8px !important;
    }
    
    .woocommerce ul.products li.product .button {
        font-size: 11px !important;
        padding: 7px !important;
        width: calc(100% - 16px) !important;
        margin: 4px 8px 8px !important;
    }
    
    .single-product .product_title {
        font-size: 18px !important;
    }
    
    .single-product .summary .price {
        font-size: 20px !important;
    }
    
    .woocommerce-tabs ul.tabs li a {
        font-size: 12px !important;
        padding: 8px 12px !important;
    }
    
    .woocommerce-pagination ul li .page-numbers {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-width: 34px !important;
    }
    
    .woocommerce-breadcrumb {
        font-size: 12px !important;
    }
    
    .woocommerce-result-count {
        font-size: 12px !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .woocommerce-ordering {
        width: 100% !important;
        text-align: center !important;
    }
    
    .woocommerce-ordering select {
        width: 100% !important;
    }
}

/* =====================================================
   RESPONSIVE 鈥?SMALL MOBILE (鈮?80px)
   ===================================================== */
@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 11px !important;
        min-height: 28px !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 12px !important;
    }
    
    .woocommerce ul.products li.product .button {
        font-size: 10px !important;
        padding: 6px !important;
    }
    
    .single-product .product_title {
        font-size: 16px !important;
    }
    
    .single_add_to_cart_button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 14px !important;
    }
}

/* =====================================================
   TOUCH OPTIMIZATION
   ===================================================== */
@media (hover: none) and (pointer: coarse) {
    .woocommerce ul.products li.product:hover {
        box-shadow: none !important;
        transform: none !important;
    }
    
    .button, .add_to_cart_button, .single_add_to_cart_button, .checkout-button {
        min-height: 44px !important;
    }
    
    .woocommerce-pagination ul li .page-numbers {
        min-width: 40px !important;
        min-height: 40px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
