/*
Theme Name: ENRI Shop
Theme URI: https://enri.com
Author: ENRI Development Team
Author URI: https://enri.com
Description: Custom WooCommerce theme for ENRI industrial parts shop
Version: 1.0
License: GPL v2 or later
Text Domain: enri-shop
*/

/* ENRI Color Variables */
:root {
    --enri-blue: #1e35ef;
    --enri-indigo: #6610f2;
    --enri-purple: #6f42c1;
    --enri-orange: #e25e26;
    --enri-gray-50: #f9fafb;
    --enri-gray-100: #f3f4f6;
    --enri-gray-200: #e5e7eb;
    --enri-gray-600: #4b5563;
    --enri-gray-900: #111827;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--enri-gray-900);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    z-index: 999999 !important;
    pointer-events: none;
}

.toast {
    background: #1a1a1a !important;
    color: white !important;
    padding: 16px 24px !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    min-width: 300px !important;
    max-width: 500px !important;
    animation: slideIn 0.3s ease forwards !important;
    pointer-events: auto !important;
    position: relative !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

.toast.success {
    background: #10b981 !important;
    border-left: 4px solid #059669 !important;
}

.toast.error {
    background: #ef4444 !important;
    border-left: 4px solid #dc2626 !important;
}

.toast.info {
    background: #3b82f6 !important;
    border-left: 4px solid #2563eb !important;
}

.toast::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    background-size: contain;
    flex-shrink: 0;
}

.toast.success::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
}

.toast.error::before {
    content: '✕';
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-weight: bold;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: slideOut 0.3s ease forwards !important;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
}

.text-4xl {
    font-size: 2.25rem;
}

.font-light {
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 150ms ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--enri-blue);
    color: white;
}

.btn-primary:hover {
    background-color: #1729c7;
}

/* Product Grid */
.product-grid {
    display: grid;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Product Category Card */
.category-card {
    position: relative;
    background: white;
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--enri-gray-100);
    transition: all 300ms ease;
    text-decoration: none;
    color: inherit;
    display: block;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card:hover {
    background-color: var(--enri-gray-50);
    border-color: var(--enri-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-icon {
    margin-bottom: 1.5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    width: 96px;
    height: 96px;
}

.category-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 400;
}

.category-card p {
    color: var(--enri-gray-600);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Product Configurator */
.configurator {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--enri-gray-100);
}

/* Material Selector */
.material-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.material-chip {
    padding: 0.5rem 1rem;
    border: 2px solid var(--enri-gray-200);
    border-radius: 9999px;
    background: white;
    cursor: pointer;
    transition: all 150ms ease;
}

.material-chip:hover {
    border-color: var(--enri-blue);
}

.material-chip.active {
    background-color: var(--enri-blue);
    color: white;
    border-color: var(--enri-blue);
}

/* Dimension Inputs */
.dimension-input {
    width: 100%;
    margin: 1rem 0;
}

.dimension-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--enri-gray-900);
}

.dimension-input input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--enri-gray-200);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 150ms ease;
}

.dimension-input input[type="number"]:focus {
    outline: none;
    border-color: var(--enri-blue);
    box-shadow: 0 0 0 3px rgba(30, 53, 239, 0.1);
}

/* Material Specs Block */
.material-specs {
    background-color: #dbeafe;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.material-specs h4 {
    margin: 0 0 1rem 0;
    color: var(--enri-blue);
    font-size: 1.125rem;
    font-weight: 600;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.specs-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.specs-col-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    margin: 0 0 0.75rem 0;
}

.tech-specs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.spec-badge {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.spec-badge-blue {
    background-color: #3b82f6;
    color: white;
    font-size: 0.75rem;
}

.spec-badge-green {
    background-color: #10b981;
    color: white;
    font-size: 0.75rem;
}

.spec-badge-orange {
    background-color: #f97316;
    color: white;
    font-size: 0.75rem;
}

.spec-content {
    flex: 1;
}

.spec-label {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
}

.spec-value {
    font-weight: 500;
    color: #111827;
    margin: 0.125rem 0 0 0;
}

.tolerances {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tolerance-item {
    display: flex;
    flex-direction: column;
}

.applications-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.applications-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.app-bullet {
    color: var(--enri-blue);
    margin-top: 0.125rem;
}

.applications-list li span:last-child {
    color: #374151;
    font-size: 0.9375rem;
}

/* WooCommerce Overrides */
.woocommerce-product-gallery {
    margin-bottom: 2rem;
}

.woocommerce div.product .summary {
    margin-bottom: 2rem;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--enri-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.375rem;
    transition: all 150ms ease;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #1729c7;
}

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid var(--enri-gray-200);
    padding: 1rem 0;
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--enri-blue);
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--enri-gray-900);
    text-decoration: none;
    transition: color 150ms ease;
}

.main-navigation a:hover {
    color: var(--enri-blue);
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: var(--enri-gray-50);
    padding: 0.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 150ms ease;
}

.breadcrumb-link:hover {
    color: var(--enri-blue);
}

.breadcrumb-separator {
    color: #9ca3af;
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: var(--enri-gray-900);
}

/* Footer */
.site-footer {
    background: var(--enri-gray-50);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--enri-gray-200);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    /* Column styling */
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--enri-blue);
}

.footer-text {
    font-size: 0.875rem;
    color: var(--enri-gray-600);
    line-height: 1.5;
    margin: 0;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--enri-blue);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--enri-gray-600);
    text-decoration: none;
    transition: color 150ms ease;
}

.footer-links a:hover {
    color: var(--enri-blue);
}

.footer-copyright {
    text-align: center;
    color: var(--enri-gray-600);
    font-size: 0.875rem;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--enri-gray-200);
}

.footer-copyright p {
    margin: 0;
}.enri-page-content{max-width:820px;line-height:1.7;color:#1f2937}.enri-page-content h2{font-size:1.4rem;font-weight:600;margin:32px 0 12px}.enri-page-content h3{font-size:1.15rem;font-weight:600;margin:24px 0 8px}.enri-page-content p{margin:0 0 14px}.enri-page-content ul{margin:0 0 14px 22px;list-style:disc}.enri-page-content li{margin-bottom:6px}.enri-page-content a{color:#1e35ef;text-decoration:underline}
