/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #ff4c4c;
    --primary-blue: #0099e5;
    --primary-green: #34bf49;
    --primary-black: #000000;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-light: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

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

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

.text-center {
    text-align: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #e63c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.btn-secondary:hover {
    background-color: #0088cc;
    color: white;
    transform: translateY(-2px);
}

.btn-sale {
    background: linear-gradient(45deg, #ff4c4c, #ff8c42);
    color: white;
    font-weight: 600;
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-sale:hover {
    background: linear-gradient(45deg, #ff8c42, #ff4c4c);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 76, 76, 0.3);
}

/* ===== Header & Navigation ===== */
.header {
    background-color: var(--background-white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-black);
}

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

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link.active {
    color: var(--primary-red);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-red);
}

.nav-link:hover {
    color: var(--primary-red);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, rgba(255, 76, 76, 0.1) 0%, rgba(0, 153, 229, 0.1) 100%);
    padding: 80px 0 60px;
}

.hero-content {
    text-align: center;
    margin-bottom: 50px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===== Calculator Section ===== */
.calculator-section {
    padding: 80px 0;
    background-color: var(--background-white);
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--background-light);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-light);
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.input-field {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 153, 229, 0.1);
}

.ppe-items {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(52, 191, 73, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-calculate {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.calculator-results {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-light);
}

.results-container {
    min-height: 300px;
}

.results-placeholder {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
    font-style: italic;
}

.results-table {
    margin: 20px 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-row:last-child {
    border-bottom: none;
}

.results-total {
    background-color: rgba(52, 191, 73, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-green);
    text-align: center;
    font-size: 1.2rem;
}

.calculator-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ===== Products Section ===== */
.products-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.filter-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.product-content {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background-color: rgba(0, 153, 229, 0.1);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    min-height: 56px;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 60px;
}

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

.btn-buy {
    background-color: var(--primary-green);
    color: white;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-buy:hover {
    background-color: #2da83e;
    color: white;
}

.sale-banner {
    background: linear-gradient(45deg, #ff4c4c, #ff8c42);
    border-radius: 15px;
    padding: 40px;
    color: white;
    text-align: center;
    margin-top: 60px;
}

.sale-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.sale-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ===== Tools Section ===== */
.tools-section {
    padding: 80px 0;
    background-color: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.tool-card {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.tool-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.tool-card h3 {
    margin-bottom: 15px;
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.tool-link {
    color: var(--primary-blue);
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

.footer-description {
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.7;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

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

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

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #aaa;
}

.coffee-section {
    margin-top: 25px;
}

.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #ffdd00;
    color: #000;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
}

.coffee-btn:hover {
    background-color: #e6c700;
    color: #000;
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.visitor-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
}

.copyright {
    color: #aaa;
}

.footer-badges {
    display: flex;
    gap: 10px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===== Social Sharing Buttons ===== */
.social-share {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: white;
    color: var(--text-dark);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn:nth-child(1):hover { background-color: #3b5998; color: white; }
.share-btn:nth-child(2):hover { background-color: #1da1f2; color: white; }
.share-btn:nth-child(3):hover { background-color: #0077b5; color: white; }
.share-btn:nth-child(4):hover { background-color: var(--primary-green); color: white; }

/* ===== Mobile Responsiveness ===== */
@media (max-width: 992px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 20px 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .social-share {
        bottom: 80px;
        right: 10px;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== New Styles for Updated Pages ===== */

/* Product Image Container */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff4c4c;
    margin: 10px 0;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

/* Animation for tool categories */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Additional button styles */
.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: white;
}

/* Form control styles */
select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    padding-right: 45px;
}

/* Range input styles */
input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0099e5;
    cursor: pointer;
}

/* Checkbox styles */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0099e5;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Quick filter active state */
.quick-filter.active {
    background: #0099e5;
    color: white;
    border-color: #0099e5;
}

/* ===== Mobile Improvements ===== */
@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-grid,
    .ppe-items-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card-small {
        grid-template-columns: 1fr;
    }
}

/* Print styles for calculator */
@media print {
    .header, .footer, .social-share, .calculator-input-section,
    .hero, .sale-banner, .tools-section, .testimonials {
        display: none !important;
    }
    
    .calculator-results-section {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}
