/*
Theme Name: Leveling Clip Pro
Theme URI: https://example.com/leveling-clip-pro
Author: Md Rahat
Author URI: https://example.com
Description: A professional WordPress theme with advanced product display features. Features responsive product grids with add to cart and buy now functionality.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leveling-clip-pro
Tags: e-commerce, responsive, modern, professional
*/

/* ===========================
   Global Styles
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Product Grid Styles
=========================== */
.lcp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
    list-style: none;
}

.lcp-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.lcp-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.lcp-product-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.lcp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lcp-product-card:hover .lcp-product-image img {
    transform: scale(1.1);
}

.lcp-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4757;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

/* Product Details */
.lcp-product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lcp-product-category {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

.lcp-product-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lcp-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lcp-product-title a:hover {
    color: #2d74da;
}

.lcp-product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lcp-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.lcp-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #2d74da;
}

.lcp-product-price del {
    font-size: 16px;
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}

.lcp-product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lcp-product-stars {
    color: #ffa726;
    font-size: 14px;
}

.lcp-product-rating-count {
    font-size: 12px;
    color: #888;
}

/* Product Actions */
.lcp-product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.lcp-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.lcp-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.lcp-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lcp-btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.lcp-btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.lcp-btn-icon::before {
    content: '🛒';
    font-size: 16px;
}

.lcp-btn-buy::before {
    content: '⚡';
    font-size: 16px;
}

/* Loading State */
.lcp-products-loading {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #888;
}

/* Empty State */
.lcp-products-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.lcp-products-empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #444;
}

/* Product Stock Status */
.lcp-product-stock {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.lcp-product-stock.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.lcp-product-stock.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

/* ===========================
   Responsive Design
=========================== */

/* Tablets */
@media (max-width: 768px) {
    .lcp-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        padding: 30px 0;
    }
    
    .lcp-product-image {
        height: 250px;
    }
    
    .lcp-product-title {
        font-size: 16px;
    }
    
    .lcp-product-price {
        font-size: 20px;
    }
    
    .lcp-product-details {
        padding: 15px;
    }
    
    .lcp-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .lcp-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    
    .lcp-product-image {
        height: 280px;
    }
    
    .lcp-product-actions {
        flex-direction: column;
    }
    
    .lcp-btn {
        width: 100%;
    }
    
    .lcp-product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .lcp-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 35px;
    }
}

/* ===========================
   Utility Classes
=========================== */
.lcp-text-center {
    text-align: center;
}

.lcp-mt-20 {
    margin-top: 20px;
}

.lcp-mb-20 {
    margin-bottom: 20px;
}

.lcp-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
}

.lcp-section-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lcp-product-card {
    animation: fadeInUp 0.6s ease-out;
}

.lcp-product-card:nth-child(1) { animation-delay: 0.1s; }
.lcp-product-card:nth-child(2) { animation-delay: 0.2s; }
.lcp-product-card:nth-child(3) { animation-delay: 0.3s; }
.lcp-product-card:nth-child(4) { animation-delay: 0.4s; }