/* 
Save this as: assets/style.css 
*/

:root {
    --techzone-primary: #4a6cf7;
    --techzone-primary-dark: #3a56d4;
    --techzone-secondary: #6c757d;
    --techzone-light: #f8f9fa;
    --techzone-dark: #212529;
    --techzone-success: #28a745;
    --techzone-border: #e9ecef;
    --techzone-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.techzone-products-wrapper {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
}
/* WhatsApp Button Styles */
.techzone-whatsapp-btn {
    background: #25D366;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 18px;
    margin-left: 8px;
}

.techzone-whatsapp-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.techzone-product-price .techzone-whatsapp-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
}

.techzone-list-cart-btn.techzone-whatsapp-btn {
    width: auto;
    height: auto;
    border-radius: 6px;
    padding: 10px 15px;
    margin-left: 10px;
}

.techzone-button-group {
    display: flex;
    align-items: center;
}

/* WhatsApp SVG Icon */
.techzone-whatsapp-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.techzone-list-cart-btn .techzone-whatsapp-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Section Header */
.techzone-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.techzone-section-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--techzone-dark);
}

.techzone-view-options {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--techzone-shadow);
}

.techzone-view-btn {
    padding: 10px 15px;
    background: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 18px;
    color: var(--techzone-secondary);
}

.techzone-view-btn.active {
    background: var(--techzone-primary);
    color: white;
}

.techzone-view-btn:hover:not(.active) {
    background: #f8f9fa;
}

/* Products Grid View */
.techzone-products-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 30px;
}

.techzone-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--techzone-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.techzone-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.techzone-product-img {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.techzone-product-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.techzone-product-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s;
}

.techzone-product-card:hover .techzone-product-img img {
    transform: scale(1.05);
}

.techzone-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--techzone-success);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.techzone-product-badge.techzone-featured {
    background: #ff6b35;
}

.techzone-product-info {
    padding: 20px;
}

.techzone-product-category {
    color: var(--techzone-secondary);
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.techzone-product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
    line-height: 1.3;
}

.techzone-product-title a {
    color: var(--techzone-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.techzone-product-title a:hover {
    color: var(--techzone-primary);
}

.techzone-product-rating {
    color: #ffc107;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.techzone-product-rating .star-rating {
    font-size: 14px;
}

.techzone-product-rating span {
    color: var(--techzone-secondary);
}

.techzone-product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

.techzone-price-wrapper .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--techzone-primary);
}

.techzone-price-wrapper .price del {
    color: var(--techzone-secondary);
    font-size: 16px;
    font-weight: 400;
    margin-right: 8px;
}

.techzone-add-to-cart {
    background: var(--techzone-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 14px;
}

.techzone-add-to-cart:hover {
    background: var(--techzone-primary-dark);
    transform: scale(1.05);
}

/* Products List View */
.techzone-products-list {
    margin-bottom: 30px;
}

.techzone-product-list-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--techzone-shadow);
    margin-bottom: 20px;
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
}

.techzone-product-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.techzone-list-img {
    width: 200px;
    min-width: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.techzone-list-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.techzone-list-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.techzone-list-info {
    padding: 25px;
    flex: 1;
}

.techzone-list-info .techzone-product-title {
    height: auto;
    margin-bottom: 10px;
}

.techzone-product-description {
    color: var(--techzone-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.techzone-list-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.techzone-list-cart-btn {
    background: var(--techzone-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.techzone-list-cart-btn:hover {
    background: var(--techzone-primary-dark);
}

/* Pagination */
.techzone-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.techzone-pagination .page-numbers {
    color: var(--techzone-dark);
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid var(--techzone-border);
    margin: 0 5px;
    border-radius: 6px;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.techzone-pagination .page-numbers.current,
.techzone-pagination .page-numbers:hover {
    background: var(--techzone-primary);
    color: white;
    border-color: var(--techzone-primary);
}

.techzone-pagination .page-numbers.dots {
    border: none;
    background: none;
}

.techzone-pagination .page-numbers.dots:hover {
    background: none;
    color: var(--techzone-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .techzone-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .techzone-section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .techzone-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .techzone-product-list-item {
        flex-direction: column;
    }
    
    .techzone-list-img {
        width: 100%;
        height: 200px;
    }
    
    .techzone-list-details {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .techzone-list-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .techzone-products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .techzone-product-info {
        padding: 15px;
    }
    
    .techzone-product-title {
        height: auto;
        font-size: 16px;
    }
}

/* WooCommerce integration styles */
.techzone-products-wrapper .woocommerce-Price-amount {
    font-weight: 700;
}

.techzone-products-wrapper .woocommerce-Price-currencySymbol {
    font-weight: 700;
}

/* Loading state */
.techzone-products-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.techzone-products-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--techzone-primary);
    border-radius: 50%;
    animation: techzone-spin 1s linear infinite;
}

@keyframes techzone-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sale badge animation */
.techzone-product-badge {
    animation: techzone-badge-pulse 2s ease-in-out infinite;
}

@keyframes techzone-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Custom color support */
.techzone-products-wrapper .techzone-primary {
    color: var(--techzone-primary);
}

.techzone-products-wrapper .techzone-primary-bg {
    background-color: var(--techzone-primary);
}

.techzone-products-wrapper .techzone-primary-border {
    border-color: var(--techzone-primary);
}