/*
Theme Name: SwissChems Pro
Theme URI: http://example.com/swisschems-theme
Author: Custom Theme Developer
Author URI: http://example.com
Description: Professional e-commerce theme inspired by SwissChems.is - Clean, modern, and conversion-focused design for research chemical stores.
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: swisschems
*/

/* ====================
   CSS Variables - Red & Black Theme (SwissChems Style)
==================== */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --secondary: #16a34a;
    --accent: #f59e0b;
    --danger: #dc2626;
    --dark: #0a0a0a;
    --dark-light: #1a1a1a;
    --light: #f5f5f5;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 2px 10px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.25);
    --shadow-red: 0 4px 15px rgba(220, 38, 38, 0.4);
    --radius: 8px;
    --radius-lg: 16px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
}

/* ====================
   Reset & Base
==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================
   Header
==================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

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

.header-top-left {
    display: flex;
    gap: 25px;
}

.header-top-left span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-top-right {
    display: flex;
    gap: 20px;
}

.header-top-right a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.header-top-right a:hover {
    color: var(--white);
}

/* Main Header */
.header-main {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.site-title a {
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title span {
    color: var(--primary);
}

/* Search */
.header-search {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--light);
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.search-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-action {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.header-action:hover {
    background: var(--light);
    color: var(--primary);
}

.header-action svg {
    width: 22px;
    height: 22px;
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.main-navigation {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    overflow-x: auto;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 16px 22px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ====================
   Hero Section
==================== */
.hero-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d1818 100%);
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(26,115,232,0.05));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(220, 38, 38, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ====================
   Buttons
==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
    border-color: white;
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255,171,0,0.4);
}

.btn-accent:hover {
    background: #ff9500;
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
}

/* ====================
   Features Section
==================== */
.features-section {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

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

.section-label {
    display: inline-block;
    background: rgba(220, 38, 38, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ef4444);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-text {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

/* ====================
   Products Section
==================== */
.products-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.products-header .section-title {
    margin-bottom: 0;
    text-align: left;
}

.view-all-btn {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all-btn:hover {
    gap: 12px;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge {
    background: var(--danger);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.bestseller {
    background: var(--accent);
    color: var(--dark);
}

.product-badge.new {
    background: var(--secondary);
}

.product-quick-view {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .product-quick-view {
    bottom: 15px;
    opacity: 1;
}

.product-info {
    padding: 25px;
}

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

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.4;
}

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

.product-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--gray);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

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

.product-actions {
    display: flex;
    gap: 12px;
}

.product-actions .btn {
    flex: 1;
    padding: 14px;
    font-size: 14px;
    border-radius: var(--radius);
}

.btn-add-cart {
    background: var(--primary);
    color: white;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

/* ====================
   Trust Badges Section
==================== */
.trust-section {
    padding: 60px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

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

.trust-icon {
    width: 50px;
    height: 50px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.trust-text {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}

.trust-subtext {
    font-size: 13px;
    color: var(--gray);
}

/* ====================
   CTA Section
==================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2d1818 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--primary);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ====================
   Footer
==================== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

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

.footer-brand .site-title {
    color: white;
    margin-bottom: 20px;
}

.footer-brand .site-title a {
    color: white;
}

.footer-brand p {
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 15px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-widget h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

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

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

.footer-widget a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    font-size: 15px;
}

.footer-widget a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ====================
   Responsive
==================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-top-bar {
        display: none;
    }
    
    .header-main .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .nav-menu a {
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .trust-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-title {
        font-size: 32px;
    }
}

/* ====================
   WooCommerce Overrides
==================== */
.woocommerce .products {
    display: contents;
}

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

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    width: 100%;
    margin: 0;
    float: none;
}

/* Product page styling */
.woocommerce div.product .product_title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.woocommerce div.product p.price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--border);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 15px 25px;
    font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--primary);
    background: transparent;
}

/* Cart & Checkout */
.woocommerce-cart table.cart,
.woocommerce-checkout .checkout {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--primary-dark);
    color: white;
}
