:root {
    --primary: #005b52;
    --primary-light: #007a6e;
    --secondary: #f8f9fa;
    --accent: #ff9f43;
    --text-main: #333;
    --text-muted: #666;
    --border: #e0e0e0;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary);
    text-decoration: none;
}

.search-container {
    flex: 0 1 50%;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f1f3f4;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-container input:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 91, 82, 0.1);
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

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

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-main);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.action-item:hover {
    color: var(--primary);
}

.action-item i {
    font-size: 22px;
    margin-bottom: 3px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

/* Navigation */
.nav-bar {
    padding: 10px 5%;
    display: flex;
    gap: 30px;
    list-style: none;
    background: var(--secondary);
}

.nav-bar li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-bar li a:hover,
.nav-bar li a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin-bottom: 50px;
}
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: var(--shadow);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: var(--transition);
}
.slider-btn:hover {
    background: var(--primary);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px; height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.dot.active, .dot:hover {
    background: var(--primary);
}

.btn {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-solid {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 91, 82, 0.3);
}

.btn-solid:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 91, 82, 0.4);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border: 2px solid #eee;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Sections */
.section {
    padding: 0 5% 80px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
}

.section-title h2 {
    font-size: 24px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 8px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-item {
    background: #fdfdfd;
    border: 1px solid #f1f1f1;
    padding: 40px 20px;
    text-align: center;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.category-item:hover {
    background: white;
    box-shadow: var(--shadow);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.category-item i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 20px;
}

.category-item h3 {
    font-size: 16px;
    font-weight: 700;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-8px);
}

.product-img {
    height: 240px;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

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

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

.new-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    z-index: 10;
}

.product-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 17px;
    margin-bottom: 12px;
    height: 48px;
    overflow: hidden;
    font-weight: 600;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.meta-tag {
    background: #f1f3f4;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 5px;
    color: #555;
    font-weight: 500;
}

.product-price {
    margin-top: auto;
    margin-bottom: 20px;
}

.price-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 500;
}

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

.quote-btn {
    width: 100%;
    padding: 12px;
    background: #eef7f6;
    color: var(--primary);
    border: 2px solid #eef7f6;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.quote-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: flex-end;
    transition: var(--transition);
}

.cart-content {
    width: 400px;
    background: white;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
}

.close-cart {
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.cart-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-info p {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

.cart-footer {
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Floating Bot */
.chat-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 91, 82, 0.4);
    z-index: 100;
    transition: var(--transition);
}

.chat-bot:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Auth Pages */
.auth-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.auth-container h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--primary);
}

.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
