/**
 * Global WooCommerce Styles
 * Modern styling for all WooCommerce UI elements
 * 
 * @package DigitalImprint
 */

/* ============================================
   BUTTONS
   ============================================ */

/* Primary Buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Alt Button (Add to Cart) */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Added to Cart Button */
.woocommerce a.added_to_cart {
    padding: 10px 20px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.woocommerce a.added_to_cart::before {
    content: '\f4e1';
    font-family: 'bootstrap-icons';
}

.woocommerce a.added_to_cart:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateX(4px);
}

/* Loading State */
.woocommerce .blockUI.blockOverlay {
    background: rgba(102, 126, 234, 0.1) !important;
}

.woocommerce .loader::before {
    border-color: #667eea !important;
    border-right-color: transparent !important;
}

/* ============================================
   NOTICES & MESSAGES
   ============================================ */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    font-family: 'bootstrap-icons';
    font-size: 22px;
    margin: 0;
}

/* Success Message */
.woocommerce-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.woocommerce-message::before {
    content: '\f26b';
    color: #10b981;
}

/* Info Message */
.woocommerce-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.woocommerce-info::before {
    content: '\f431';
    color: #3b82f6;
}

/* Error Message */
.woocommerce-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.woocommerce-error::before {
    content: '\f33d';
    color: #ef4444;
}

.woocommerce-error li {
    list-style: none;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.woocommerce form .form-row label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

/* ============================================
   WIDGETS
   ============================================ */

.woocommerce .widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.woocommerce .widget .widget-title,
.woocommerce .widget h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

/* Price Filter Widget */
.woocommerce .widget_price_filter .price_slider {
    margin-bottom: 20px;
}

.woocommerce .widget_price_filter .ui-slider {
    background: #e2e8f0;
    border-radius: 10px;
    border: none;
    height: 6px;
}

.woocommerce .widget_price_filter .ui-slider-range {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.woocommerce .widget_price_filter .ui-slider-handle {
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    top: -7px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.woocommerce .widget_price_filter .price_slider_amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.woocommerce .widget_price_filter .price_label {
    font-weight: 600;
    color: #1e293b;
}

.woocommerce .widget_price_filter button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* Layered Nav Widget */
.woocommerce .widget_layered_nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .widget_layered_nav ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce .widget_layered_nav ul li:last-child {
    border-bottom: none;
}

.woocommerce .widget_layered_nav ul li a {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: all 0.2s ease;
}

.woocommerce .widget_layered_nav ul li a:hover {
    color: #667eea;
    transform: translateX(4px);
}

.woocommerce .widget_layered_nav ul li.chosen a {
    color: #667eea;
    font-weight: 600;
}

.woocommerce .widget_layered_nav .count {
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.woocommerce .widget_layered_nav ul li.chosen .count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Product Categories Widget */
.woocommerce .widget_product_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce .widget_product_categories ul li {
    margin-bottom: 8px;
}

.woocommerce .widget_product_categories ul li a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce .widget_product_categories ul li a::before {
    content: '\f285';
    font-family: 'bootstrap-icons';
    color: #667eea;
    font-size: 16px;
}

.woocommerce .widget_product_categories ul li a:hover {
    color: #667eea;
    transform: translateX(4px);
}

.woocommerce .widget_product_categories ul li.current-cat > a {
    color: #667eea;
    font-weight: 700;
}

/* ============================================
   MINI CART
   ============================================ */

.woocommerce .widget_shopping_cart {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 4px;
}

.woocommerce .widget_shopping_cart .widget_shopping_cart_content {
    background: white;
    border-radius: 14px;
    padding: 20px;
}

.woocommerce .widget_shopping_cart ul.cart_list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.woocommerce .widget_shopping_cart ul.cart_list li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce .widget_shopping_cart ul.cart_list li:last-child {
    border-bottom: none;
}

.woocommerce .widget_shopping_cart ul.cart_list li img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.woocommerce .widget_shopping_cart ul.cart_list li a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    flex: 1;
}

.woocommerce .widget_shopping_cart .total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 2px solid #f1f5f9;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
}

.woocommerce .widget_shopping_cart .total .amount {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.woocommerce .widget_shopping_cart .buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocommerce .widget_shopping_cart .buttons a {
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce .widget_shopping_cart .buttons a.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.woocommerce .widget_shopping_cart .buttons a.button.checkout {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ============================================
   STAR RATING
   ============================================ */

.woocommerce .star-rating {
    color: #fbbf24;
    font-size: 14px;
}

.woocommerce .star-rating::before {
    color: #e5e7eb;
}

/* ============================================
   TABS
   ============================================ */

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #f1f5f9;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 14px 24px;
    display: block;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-bottom: 3px solid #667eea;
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .woocommerce #respond input#submit,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .woocommerce .widget {
        padding: 16px;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs {
        flex-wrap: wrap;
    }
    
    .woocommerce div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 16px;
        font-size: 14px;
    }
}
