/**
 * Custom CSS - Extra Styling & WooCommerce Overrides
 * 
 * @package PriceCompare
 */

/* ===================================
   WOOCOMMERCE PRODUCT STYLING
=================================== */

/* Product Loop */
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

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

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
}

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

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

.woocommerce ul.products li.product .price {
    font-size: 24px;
    font-weight: 700;
    color: #e91e63;
    margin: 0 15px 15px;
    display: block;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.5;
    font-size: 18px;
    margin-right: 10px;
}

.woocommerce ul.products li.product .button {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background: #c2185b;
}

/* Product Rating */
.woocommerce .star-rating {
    color: #ffc107;
    font-size: 14px;
    margin: 0 15px 10px;
}

/* Sale Badge */
.woocommerce span.onsale {
    background: #ff4444;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    min-height: auto;
    min-width: auto;
    line-height: 1;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

/* ===================================
   SINGLE PRODUCT PAGE
=================================== */

.woocommerce div.product {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

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

.woocommerce div.product p.price {
    font-size: 36px;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 20px;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin-bottom: 30px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
}

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

.woocommerce div.product form.cart .button {
    background: #e91e63;
    color: #fff;
    padding: 15px 40px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .button:hover {
    background: #c2185b;
}

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

/* ===================================
   CART & CHECKOUT
=================================== */

.woocommerce-cart table.cart td.actions .coupon .input-text {
    border: 2px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 6px;
}

.woocommerce-cart table.cart td.actions .button {
    background: #e91e63;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
}

.woocommerce-cart table.cart td.actions .button:hover {
    background: #c2185b;
}

.woocommerce .cart-collaterals .cart_totals {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-form-login,
.woocommerce-checkout .woocommerce-form-coupon {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

/* ===================================
   FILTERS & WIDGETS
=================================== */

.woocommerce-widget-layered-nav-list {
    list-style: none;
    padding: 0;
}

.woocommerce-widget-layered-nav-list li {
    margin-bottom: 10px;
}

.woocommerce-widget-layered-nav-list a {
    color: #666;
    padding: 8px 0;
    display: block;
    transition: all 0.3s ease;
}

.woocommerce-widget-layered-nav-list a:hover {
    color: #e91e63;
    padding-left: 10px;
}

.widget_price_filter .price_slider {
    margin-bottom: 20px;
}

.widget_price_filter .price_slider_amount {
    text-align: right;
}

.widget_price_filter .button {
    background: #e91e63;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    float: right;
}

/* ===================================
   BREADCRUMBS
=================================== */

.woocommerce-breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #999;
}

.woocommerce-breadcrumb a {
    color: #666;
}

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

/* ===================================
   MESSAGES & NOTICES
=================================== */

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

.woocommerce-message {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.woocommerce-info {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.woocommerce-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* ===================================
   LOADING STATES
=================================== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   CUSTOM BUTTONS
=================================== */

.btn-primary {
    background: #e91e63;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ===================================
   FORMS
=================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* ===================================
   TAGS & BADGES
=================================== */

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f0;
    color: #666;
}

.badge-success {
    background: #10b981;
    color: #fff;
}

.badge-warning {
    background: #f59e0b;
    color: #fff;
}

.badge-danger {
    background: #ef4444;
    color: #fff;
}

.badge-primary {
    background: #e91e63;
    color: #fff;
}

/* ===================================
   TABS
=================================== */

.woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    gap: 10px;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 25px;
    color: #666;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: #e91e63;
    border-bottom-color: #e91e63;
}

/* ===================================
   MODAL/POPUP STYLES
=================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-close:hover {
    color: #333;
}

/* ===================================
   RESPONSIVE FIXES
=================================== */

@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 20px;
    }
    
    .woocommerce div.product .product_title {
        font-size: 24px;
    }
    
    .woocommerce div.product p.price {
        font-size: 28px;
    }
    
    .woocommerce ul.products[class*="columns-"] li.product {
        width: 100%;
        margin-right: 0;
    }
}

/* ===================================
   ACCESSIBILITY
=================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

/* ===================================
   PRINT STYLES
=================================== */

@media print {
    .site-header,
    .site-footer,
    .woocommerce-breadcrumb,
    .button,
    form.cart {
        display: none !important;
    }
    
    body {
        background: #fff;
    }
}
