/* Color Palette */
:root {
    --dark-navy: #1a1a2e;
    --steel-grey: #2d3436;
    --safety-orange: #ff6b35;
    --light-bg: #f5f5f5;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --border-color: #e0e0e0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: var(--dark-navy);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--safety-orange);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--safety-orange);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--steel-grey) 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn {
    background: var(--safety-orange);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.cta-btn:hover {
    background: #ff5722;
    transform: scale(1.05);
}

/* Categories Section */
.categories {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-navy);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--safety-orange);
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--dark-navy);
    font-size: 1rem;
}

/* Products Section */
.products {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-navy);
}

.products-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box,
.filter-select {
    flex: 1;
    min-width: 150px;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.search-box:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--safety-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

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

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--light-bg);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--dark-navy);
}

.product-spec {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.2rem;
    color: var(--safety-orange);
    font-weight: bold;
    margin-bottom: 1rem;
}

.product-condition {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.enquire-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--safety-orange);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.enquire-btn:hover {
    background: #ff5722;
}

/* Sell Section */
.sell-section {
    background: var(--light-bg);
    padding: 3rem 1rem;
    text-align: center;
    max-width: 600px;
    margin: 3rem auto;
}

.sell-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-navy);
}

.sell-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.sell-form input,
.sell-form select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    padding: 0.8rem;
    background: var(--safety-orange);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #ff5722;
}

/* About Section */
.about {
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-navy);
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--safety-orange);
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.trust-signals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.signal {
    background: white;
    padding: 2rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.signal strong {
    display: block;
    font-size: 2rem;
    color: var(--safety-orange);
    margin-bottom: 0.5rem;
}

.signal p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background: var(--dark-navy);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-btn {
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-block;
}

.contact-btn.whatsapp {
    background: #25d366;
    border-color: #25d366;
}

.contact-btn.call {
    background: var(--safety-orange);
    border-color: var(--safety-orange);
}

.contact-btn:hover {
    transform: scale(1.05);
}

.business-hours {
    margin-top: 2rem;
}

.business-hours h3 {
    margin-bottom: 1rem;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.fab.whatsapp-fab {
    background: #25d366;
    color: white;
}

.fab.call-fab {
    background: var(--safety-orange);
    color: white;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Admin Panel */
.admin-panel {
    padding: 3rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.admin-login,
.admin-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-login h3,
.admin-content h3 {
    margin-bottom: 1rem;
    color: var(--dark-navy);
}

.admin-login input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.admin-login button {
    width: 100%;
    padding: 0.8rem;
    background: var(--safety-orange);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-form input,
.product-form select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-navy);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 1rem;
    }

    .menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-options {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }

    .floating-buttons {
        bottom: 1rem;
        right: 0.5rem;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
        min-height: 200px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .products-controls {
        flex-direction: column;
    }

    .search-box,
    .filter-select {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .floating-buttons,
    .products-controls {
        display: none;
    }
}