/*
Theme Name: Kitpapa
Theme URI: https://kitpapa.com
Author: Kitpapa Team
Author URI: https://kitpapa.com
Description: A modern WordPress theme for selling ready-made WordPress templates with full WooCommerce integration
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitpapa
Tags: e-commerce, shop, woocommerce, templates, digital-products

Kitpapa is a specialized WordPress theme designed for selling WordPress templates and digital products.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Banner */
.top-banner {
    background: #1a1a1a;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.countdown-timer {
    display: flex;
    gap: 10px;
}

.timer-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 50px;
}

.timer-number {
    font-size: 18px;
    font-weight: 700;
    color: #ff6b35;
}

.timer-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
}

.banner-offer {
    flex: 1;
    text-align: center;
    font-size: 14px;
}

.highlight {
    color: #ff6b35;
    font-weight: 700;
}

.strike {
    text-decoration: line-through;
    color: #ff6b35;
}

.grab-deal-btn {
    background: #ff6b35;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.grab-deal-btn:hover {
    background: #e85a2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* Header */
.header {
    background: #4338ca;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    font-style: italic;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.logo:hover {
    color: white;
}

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

.cart {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.cart:hover {
    color: white;
    background: rgba(255,255,255,0.3);
}

.cart-count {
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    position: absolute;
    top: -5px;
    right: -5px;
}

.btn-account {
    background: #5b4fd8;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-account:hover {
    background: #4a3fc7;
    color: white;
}

.btn-buy-all {
    background: #06b6d4;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-buy-all:hover {
    background: #0891b2;
    transform: translateY(-2px);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(67, 56, 202, 0.3) 0%, transparent 50%);
}

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

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    outline: none;
}

.search-bar button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px 35px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #e85a2a;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar h3 {
    background: #4338ca;
    color: white;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    border-radius: 10px 10px 0 0;
    font-size: 16px;
}

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

.category-list li {
    border-bottom: 1px solid #f0f0f0;
}

.category-list a {
    display: block;
    padding: 10px 5px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.category-list a:hover,
.category-list a.active {
    color: #4338ca;
    padding-left: 10px;
    background: rgba(67, 56, 202, 0.05);
}

.category-list span {
    color: #999;
    font-size: 12px;
}

/* WooCommerce Product Grid */
.products-grid,
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin: 0 !important;
    width: 100% !important;
}

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

.woocommerce ul.products li.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

.woocommerce ul.products li.product .price {
    font-size: 20px;
    font-weight: 700;
    color: #4338ca !important;
    margin: 0 15px 15px;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.woocommerce ul.products li.product .button {
    background: #4338ca !important;
    color: white !important;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 0 15px 15px;
    width: calc(100% - 30px);
    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background: #3730a3 !important;
}

/* WooCommerce Single Product */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.woocommerce div.product .woocommerce-product-gallery {
    margin: 0;
}

.woocommerce div.product .woocommerce-product-gallery__image img {
    border-radius: 10px;
}

.woocommerce div.product .summary {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.woocommerce div.product .product_title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.woocommerce div.product .price {
    font-size: 36px;
    font-weight: 700;
    color: #4338ca !important;
    margin-bottom: 25px;
}

.woocommerce div.product .price del {
    font-size: 24px;
    color: #999;
    margin-right: 15px;
}

.woocommerce div.product .single_add_to_cart_button {
    width: 100%;
    background: #4338ca !important;
    color: white !important;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #3730a3 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 56, 202, 0.3);
}

/* WooCommerce Cart */
.woocommerce-cart table.cart {
    border-radius: 10px;
    overflow: hidden;
}

.woocommerce-cart .cart_totals {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.woocommerce-cart .checkout-button {
    background: #4338ca !important;
    color: white !important;
    padding: 15px 30px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .woocommerce div.product {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    .top-banner {
        justify-content: center;
        text-align: center;
    }

    .nav .btn-account {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}
