/*
Theme Name: MyShop SEO Guru
Theme URI: http://myshop.seogru
Author: SEO Guru
Description: A premium, fast, and highly-attractive WordPress + WooCommerce theme for selling digital products.
Version: 2.0.0
Text Domain: myshop-seogru
Tags: woocommerce, e-commerce, custom-background, premium, responsive
*/

:root {
    --bg-color: #fafbfc; /* Ultra-light cool grey */
    --content-bg: #ffffff; 
    --text-primary: #1e293b; /* Slate 800 */
    --text-secondary: #475569; /* Slate 600 */
    --text-light: #94a3b8; /* Slate 400 */
    --brand-primary: #0f172a; /* Slate 900 for headings */
    --brand-secondary: #3b82f6; /* Modern Blue */
    --border-color: #e2e8f0; /* Slate 200 */
    
    /* Primary Gradient Button */
    --btn-primary-bg: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --btn-primary-hover: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --btn-primary-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
    
    /* Light Hero */
    --hero-bg: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --hero-text: #0f172a;
    --hero-accent: #2563eb;
    
    /* Outlines */
    --btn-outline-bg: transparent;
    --btn-outline-border: #cbd5e1;
    --btn-outline-text: #334155;
    --btn-outline-hover-bg: #f1f5f9;
    --btn-outline-hover-text: #0f172a;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

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

/* =========================================
   HEADER
   ========================================= */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding .logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -0.5px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-right: 40px;
}

.nav-menu li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 16px;
    display: block;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--brand-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu li a:hover {
    color: var(--brand-primary);
}

.nav-menu li a:hover::after {
    width: 80%;
}

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

.cart-icon {
    position: relative;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--brand-secondary);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -14px;
    background: var(--btn-primary-bg);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--brand-primary);
}

/* =========================================
   PREMIUM HERO SECTION
   ========================================= */
.hero-section {
    background: var(--hero-bg);
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--hero-text);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-title span {
    color: var(--hero-accent);
    background: linear-gradient(to right, #38bdf8, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: #475569; /* Darker grey for light background */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-align: center; /* Force centering */
}

/* =========================================
   BUTTONS
   ========================================= */
.btn, button, input[type="submit"] {
    display: inline-block;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary, .woocommerce button.button.alt {
    background: var(--btn-primary-bg);
    color: white !important;
    box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover, .woocommerce button.button.alt:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -5px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background-color: var(--btn-outline-bg);
    color: var(--btn-outline-text);
    border: 1px solid var(--btn-outline-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-outline:hover {
    background-color: var(--btn-outline-hover-bg);
    color: var(--btn-outline-hover-text);
    border-color: #94a3b8;
}

/* =========================================
   STORE / PRODUCT GRID
   ========================================= */
.store-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-primary);
    letter-spacing: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

/* Premium Card Design */
.product-card {
    background-color: var(--content-bg);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.product-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-title a {
    color: var(--brand-primary);
}

.product-title a:hover {
    color: var(--brand-secondary);
}

.product-price {
    display: block;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--brand-primary);
}

.product-price del {
    color: var(--text-light);
    font-weight: 500;
    margin-right: 10px;
    font-size: 15px;
}

.btn-add-to-cart {
    width: 100%;
    margin-top: auto; /* pushes buttons to bottom */
}

/* =========================================
   INFO SECTION (Premium Features)
   ========================================= */
.info-section {
    background-color: var(--content-bg);
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.info-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.info-box {
    padding: 40px 30px;
    background: var(--bg-color);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.info-box:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.info-box h3 {
    font-size: 20px;
    color: var(--brand-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* =========================================
   WOOCOMMERCE FIXES
   ========================================= */
.woocommerce form.login, .woocommerce form.register {
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    background: var(--content-bg);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: #0f172a; /* Slate 900 */
    color: #94a3b8;
    padding-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-widget h3 {
    color: #f8fafc;
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 700;
}

.footer-widget p {
    font-size: 15px;
    max-width: 320px;
    line-height: 1.8;
}

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

.footer-widget ul li {
    margin-bottom: 14px;
}

.footer-widget ul li a {
    color: #94a3b8;
    font-size: 15px;
}

.footer-widget ul li a:hover {
    color: #38bdf8;
    padding-left: 5px;
}

.footer-bottom {
    padding: 24px 0;
    font-size: 14px;
    text-align: center;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .info-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-left: 20px;
    }
    
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 40px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .info-inner, .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-grid {
        grid-template-columns: 1fr; /* 1 column on very small screens */
        gap: 30px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .product-image {
        height: 200px;
    }
    .container {
        padding: 0 16px;
    }
}
