/*
Theme Name: Digital Store
Theme URI: https://yourdomain.com
Author: Digital Store Team
Author URI: https://yourdomain.com
Description: Premium Digital Products Selling WordPress Theme with WooCommerce support, WhatsApp integration, and beautiful admin dashboard.
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: digital-store
Tags: e-commerce, digital-products, woocommerce, responsive, whatsapp
*/

/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --whatsapp: #25d366;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.ds-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    transition: all 0.3s;
}

.ds-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.ds-nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.ds-nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.ds-nav-links a:hover { color: var(--primary); }

.ds-nav-btn {
    background: var(--gradient);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.ds-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== HERO SECTION ===== */
.ds-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.ds-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.ds-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ds-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ds-hero-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ds-hero-content p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 30px;
    line-height: 1.7;
}

.ds-hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ds-btn-primary {
    background: var(--gradient);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.ds-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.ds-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.ds-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* ===== PRODUCTS SECTION ===== */
.ds-products-section {
    padding: 100px 0;
    background: #fff;
}

.ds-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ds-section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.ds-section-header p {
    color: var(--gray);
    font-size: 18px;
}

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

.ds-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.ds-product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
    border: 1px solid #f1f5f9;
}

.ds-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.ds-product-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #fff;
    position: relative;
}

.ds-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.ds-product-content {
    padding: 25px;
}

.ds-product-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.ds-product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.ds-product-desc {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ds-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ds-current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.ds-original-price {
    font-size: 16px;
    color: var(--gray);
    text-decoration: line-through;
}

.ds-buy-btn {
    background: var(--gradient);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ds-buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ===== WHATSAPP FLOAT ===== */
.ds-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--whatsapp);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.ds-whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* ===== FOOTER ===== */
.ds-footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 20px;
}

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

.ds-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ds-footer-brand h3 {
    font-size: 28px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.ds-footer-brand p {
    color: #94a3b8;
    line-height: 1.7;
}

.ds-footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.ds-footer-links ul {
    list-style: none;
}

.ds-footer-links li {
    margin-bottom: 10px;
}

.ds-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.ds-footer-links a:hover {
    color: var(--primary);
}

.ds-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    text-align: center;
    color: #64748b;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ds-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .ds-hero-content h1 {
        font-size: 36px;
    }
    .ds-footer-grid {
        grid-template-columns: 1fr;
    }
    .ds-nav-links {
        display: none;
    }
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.woocommerce .product {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.woocommerce .product:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.woocommerce .button {
    background: var(--gradient) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    border: none !important;
}

.woocommerce .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.woocommerce .price {
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}

.woocommerce .price del {
    color: var(--gray) !important;
    font-weight: 400 !important;
}
