/*
Theme Name: Wortic B2B
Theme URI: https://wortic-b2b.williamschons.com.br
Author: Wortic - William Schons
Author URI: https://williamschons.com.br
Description: Tema completo para sistema de vendas de licenças Wortic Catalogo B2B com landing page, checkout personalizado e área do cliente.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: wortic-b2b-theme
Tags: e-commerce, woocommerce, b2b, business, license
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

:root {
    --wortic-primary: #0049ff;
    --wortic-secondary: #020bbb;
    --wortic-dark: #08008e;
    --wortic-accent: #2ac2f3;
    --wortic-white: #ffffff;
    --wortic-black: #000000;
    --wortic-gray: #f5f5f5;
    --wortic-text: #333333;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--wortic-text);
    line-height: 1.6;
    background: var(--wortic-white);
}

a { color: var(--wortic-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--wortic-accent); }
img { max-width: 100%; height: auto; }

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

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--wortic-primary) 0%, var(--wortic-secondary) 100%);
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 73, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.site-logo { display: flex; align-items: center; gap: 15px; }
.site-logo h1 { color: var(--wortic-white); font-size: 28px; font-weight: 700; margin: 0; }
.site-logo .logo-icon {
    width: 50px; height: 50px; background: var(--wortic-white); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: var(--wortic-primary);
}

.main-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; flex-wrap: wrap; }
.main-nav a {
    color: var(--wortic-white); font-weight: 500; padding: 8px 16px;
    border-radius: 6px; transition: all 0.3s ease;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.2); }

.header-cta .btn {
    background: var(--wortic-white); color: var(--wortic-primary);
    padding: 12px 30px; border-radius: 8px; font-weight: 600;
    display: inline-block;
}
.header-cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3); }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, var(--wortic-primary) 0%, var(--wortic-dark) 100%);
    color: var(--wortic-white); padding: 100px 20px; text-align: center;
}
.hero-content { max-width: 800px; margin: 0 auto; }
.hero-content h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; margin-bottom: 20px; line-height: 1.2; }
.hero-content .subtitle { font-size: clamp(18px, 2vw, 24px); margin-bottom: 40px; opacity: 0.95; }

.hero-badges { display: flex; gap: 15px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.badge {
    background: rgba(255, 255, 255, 0.2); padding: 8px 20px;
    border-radius: 50px; font-size: 14px; font-weight: 600;
}

.hero-cta { display: flex; gap: 20px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.btn-primary {
    background: var(--wortic-accent); color: var(--wortic-white);
    padding: 18px 40px; border-radius: 10px; font-size: 18px;
    font-weight: 700; border: none; cursor: pointer; transition: all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(42, 194, 243, 0.4); }

.btn-secondary {
    background: transparent; color: var(--wortic-white);
    padding: 18px 40px; border-radius: 10px; font-size: 18px;
    font-weight: 700; border: 2px solid var(--wortic-white);
    cursor: pointer; transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--wortic-white); color: var(--wortic-primary); }

/* Pricing */
.pricing-section { padding: 100px 20px; background: var(--wortic-gray); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(32px, 4vw, 42px); font-weight: 900; color: var(--wortic-dark); margin-bottom: 15px; }
.section-header p { font-size: 18px; color: #666; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

.pricing-card {
    background: var(--wortic-white); border-radius: 20px; padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0, 73, 255, 0.2); }
.pricing-card.featured { border: 3px solid var(--wortic-primary); }
.pricing-card.featured::before {
    content: 'MAIS POPULAR'; position: absolute; top: 20px; right: -35px;
    background: var(--wortic-accent); color: var(--wortic-white);
    padding: 5px 40px; font-size: 12px; font-weight: 700; transform: rotate(45deg);
}

.pricing-card h3 { font-size: 28px; font-weight: 700; color: var(--wortic-dark); margin-bottom: 10px; }
.pricing-card .price { font-size: 48px; font-weight: 900; color: var(--wortic-primary); margin: 20px 0; }
.pricing-card .price span { font-size: 18px; font-weight: 400; color: #666; }
.pricing-card .period { color: #999; font-size: 16px; margin-bottom: 30px; display: block; }

.pricing-features { list-style: none; margin: 30px 0; }
.pricing-features li {
    padding: 12px 0; border-bottom: 1px solid #eee;
    display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--wortic-accent); font-weight: 900; font-size: 18px; }
.pricing-card .btn { width: 100%; text-align: center; display: block; }

/* Features */
.features-section { padding: 100px 20px; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; margin-top: 60px;
}
.feature-card { text-align: center; padding: 30px; }
.feature-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--wortic-primary), var(--wortic-accent));
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 36px;
}
.feature-card h3 { font-size: 22px; font-weight: 700; color: var(--wortic-dark); margin-bottom: 15px; }
.feature-card p { color: #666; line-height: 1.8; }

/* Footer */
.site-footer { background: var(--wortic-dark); color: var(--wortic-white); padding: 60px 20px 20px; }
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
.footer-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section a { color: rgba(255, 255, 255, 0.8); }
.footer-section a:hover { color: var(--wortic-white); }
.footer-bottom {
    text-align: center; padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* WooCommerce Overrides */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px; border-radius: 8px; overflow: hidden;
}
.woocommerce-MyAccount-navigation a {
    display: block; padding: 12px 20px; background: #f5f5f5;
    color: var(--wortic-text); font-weight: 500; transition: all 0.3s ease;
}
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--wortic-primary); color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner { justify-content: center; text-align: center; }
    .main-nav ul { justify-content: center; }
    .hero-cta, .hero-badges { flex-direction: column; align-items: center; }
}

/* Ionicons Styles */
ion-icon {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.feature-icon ion-icon {
    font-size: 40px;
    color: white;
    margin: 0;
}

.badge ion-icon {
    font-size: 16px;
    margin-right: 5px;
}

/* WooCommerce Subscription Variations Fix */
.woocommerce div.product form.cart .variations {
    margin-bottom: 20px;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    padding: 10px 0;
}

.woocommerce div.product form.cart .variations select {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    background: var(--wortic-primary);
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background: var(--wortic-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 73, 255, 0.3);
}

/* Product Page Styles */
.woocommerce div.product .product_title {
    font-size: 36px;
    font-weight: 900;
    color: var(--wortic-dark);
    margin-bottom: 20px;
}

.woocommerce div.product p.price {
    font-size: 32px;
    font-weight: 900;
    color: var(--wortic-primary);
    margin: 20px 0;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 30px;
}

/* Cart & Checkout */
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
    padding: 15px;
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--wortic-dark);
}

.woocommerce .checkout .woocommerce-checkout h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--wortic-dark);
    margin-bottom: 20px;
}

.woocommerce-checkout #payment {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.woocommerce-checkout #place_order {
    background: var(--wortic-primary);
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.woocommerce-checkout #place_order:hover {
    background: var(--wortic-accent);
}

/* Header Logo Styles */
.site-header .logo img {
    height: 40px;
    width: auto;
    display: block;
}

.site-header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.site-header .logo a {
    display: flex;
    align-items: center;
}

/* Responsive logo */
@media (max-width: 768px) {
    .site-header .logo img {
        height: 32px;
    }
}
