/*
Theme Name: TDF
Theme URI: https://thedigitalforge.site
Author: The Digital Forge
Author URI: https://thedigitalforge.site
Description: A modern, professional WordPress ecommerce theme with full WooCommerce support, Elementor integration, and comprehensive theme settings. Perfect for online stores with advanced customization options.
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: tdf
Tags: ecommerce, woocommerce, responsive, modern, custom-menu, featured-images, threaded-comments, translation-ready, elementor, ecommerce
*/

/* Reset & Base 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;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #2c3e50;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.site-logo:hover {
    color: #e74c3c;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #e74c3c;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-icon, .search-icon {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    text-decoration: none;
}

.cart-count {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 22px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.3);
    animation: fadeInUp 1.4s ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(245, 87, 108, 0.4);
}

/* Content Area */
.site-content {
    padding: 40px 0;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Shop Page Specific */
.woocommerce-shop .content-area {
    display: block;
}

.woocommerce-shop .shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Products Grid */
.products-grid,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
    list-style: none;
    padding: 0;
}

.product-card,
.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #e74c3c;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image,
.woocommerce ul.products li.product img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-badge.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    font-size: 16px;
}

.product-action-btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
    min-height: 44px;
}

.product-title a,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover,
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
    color: #e74c3c;
}

.product-rating {
    margin-bottom: 10px;
    color: #ffc107;
    font-size: 14px;
}

.product-price,
.woocommerce ul.products li.product .price {
    font-size: 22px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price del,
.woocommerce ul.products li.product .price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

.product-price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #e74c3c;
}

.add-to-cart-btn,
.woocommerce ul.products li.product .button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover,
.woocommerce ul.products li.product .button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Sidebar & Filters */
.sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.widget {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #e74c3c;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s;
}

.widget li:last-child {
    border-bottom: none;
}

.widget li:hover {
    padding-left: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.widget a {
    color: #555;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: color 0.3s;
}

.widget a:hover {
    color: #e74c3c;
}

.widget .count {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

/* Price Filter */
.price-filter {
    margin-top: 15px;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* Filter Buttons */
.filter-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #f8f9fa;
    color: #555;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    margin: 5px 5px 5px 0;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* Shop Layout */
.shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.shop-title {
    font-size: 28px;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
}

.shop-toolbar {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* Mobile Filter Toggle */
.filter-toggle {
    display: none;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    width: 100%;
}

.filter-sidebar {
    transition: all 0.3s ease;
}

.filter-sidebar.hidden {
    display: none;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    margin-bottom: 15px;
    color: #e74c3c;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    padding: 5px 0;
}

.footer-widget a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-widget a:hover {
    color: #e74c3c;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Single Product Page */
.single-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
}

.product-summary h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.price {
    font-size: 36px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.quantity {
    margin-bottom: 20px;
}

.quantity input {
    width: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Cart & Checkout */
.woocommerce-cart table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.woocommerce-cart th,
.woocommerce-cart td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.woocommerce-cart th {
    background: #2c3e50;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .shop-container {
        grid-template-columns: 1fr !important;
    }
    
    .filter-toggle {
        display: block;
    }
    
    .filter-sidebar {
        margin-bottom: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .single-product {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .shop-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .shop-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    background: #fff;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #e74c3c;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pagination .current {
    background: #e74c3c;
    color: #fff;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Comments */
.comments-area {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
}

.comment-date {
    color: #999;
    font-size: 14px;
}

