/* Global Styles */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #58d68d;
    --secondary-color: #34495e;
    --accent-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --error-color: #e74c3c;

    /* missing ones */
  --white: #ffffff;
  --gray: #f1f1f1;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --text-color: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
}

.btn-service {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a i {
    margin-right: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://imglink.io/i/734d3395-2d7e-48b4-833a-fb171e995b24.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Featured Products */
.featured-products {
    padding: 60px 0; /* Reduced padding */
    background-color: white;
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 30px; /* Reduced margin */
    font-size: 28px; /* Smaller font */
    color: var(--dark-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); /* Smaller cards */
    gap: 20px; /* Reduced gap */
    padding: 0 10px; /* Added padding */
}

.product-card {
    background-color: white;
    border-radius: 6px; /* Smaller radius */
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); /* Lighter shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px; /* Added internal padding */
}

.product-card:hover {
    transform: translateY(-3px); /* More subtle hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 140px; /* Reduced height */
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04); /* More subtle zoom */
}

.product-info {
    padding: 15px; /* Reduced padding */
}

.product-info h3 {
    font-size: 16px; /* Smaller font */
    margin-bottom: 8px;
    color: var(--dark-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    color: #777;
    font-size: 12px; /* Smaller font */
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px; /* Smaller font */
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.product-description {
    color: #555;
    margin-bottom: 12px;
    font-size: 13px; /* Smaller font */
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

/* About Section */
.about {
    padding: 60px 0; /* Reduced padding */
    background-color: #f5f5f5;
}

.about h2 {
    text-align: center;
    margin-bottom: 30px; /* Reduced margin */
    font-size: 28px; /* Smaller font */
    color: var(--dark-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px; /* Reduced gap */
    align-items: center;
}

.about-text p {
    margin-bottom: 15px; /* Reduced margin */
    font-size: 15px; /* Slightly smaller font */
    line-height: 1.6;
}

.about-image img {
    width: 100%;
    border-radius: 6px; /* Smaller radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Lighter shadow */
}

/*Responsive adjustments for featured products */
@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 22px;
    }
    
    .product-image {
        height: 160px;
    }
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 25px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .about-content {
        gap: 35px;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 28px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .about-content {
        gap: 40px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .about-image {
        order: -1; /* Image first on mobile */
    }
    
    .featured-products h2,
    .about h2 {
        font-size: 24px;
    }
}
/* Services Section */
.services {
    padding: 80px 0;
    background-color: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--dark-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card p {
    margin-bottom: 20px;
    color: #555;
}

/* Communication Section */
.communication {
    padding: 80px 0;
    background-color: var(--light-color);
}

.communication h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
    color: var(--dark-color);
}

.comm-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.newsletter, .social-links {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.newsletter h3, .social-links h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.newsletter p {
    margin-bottom: 20px;
    color: #555;
}

.newsletter form {
    display: flex;
}

.newsletter input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.newsletter button {
    border-radius: 0 4px 4px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Floating Icons */
.floating-icons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

.floating-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.floating-icons a:hover {
    transform: translateY(-5px);
}

.whatsapp-icon {
    background-color: #25D366;
}

.call-icon {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-section p, .footer-section li {
    margin-bottom: 10px;
    color: #bbb;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #bbb;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .about-content, .comm-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 4px;
    }
    
    
}
/* Responsive Design - Fixed Navigation */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .about-content, .comm-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 4px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 4px;
    }
    }
    






/* Responsive Design */
@media (max-width: 768px) {
    .catalogue-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .catalogue-controls {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    



/* User welcome message styles */
#userWelcome {
    color: var(--primary-color);
    font-weight: 500;
    padding: 5px 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    nav ul li {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    #userWelcome {
        font-size: 0.9rem;
        margin-right: 8px;
    }
}

@media (max-width: 480px) {
    #userWelcome {
        font-size: 0.8rem;
        margin-right: 5px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
}


/* ==================== HEADER BASE ==================== */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo i {
  margin-right: 8px;
}

/* ==================== NAV BASE ==================== */
nav {
  display: flex;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

/* Cart link special */
nav ul li a i {
  margin-right: 5px;
  color: var(--secondary-color);
}

/* ==================== USER MENU (DROPDOWN) ==================== */
.user-menu-container {
  position: relative;
}

.user-icon {
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--secondary-color);
  padding: 8px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.user-icon:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow);
}


.user-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
  min-width: 180px;
  display: none;
  flex-direction: column;
  z-index: 2000;
}

.user-menu.active {
  display: flex;
}

.user-welcome {
  padding: 10px;
  font-weight: 500;
  color: var(--primary-color);
  border-bottom: 1px solid var(--gray);
}

.user-menu-item {
  padding: 10px;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.user-menu-item i {
  margin-right: 8px;
  color: var(--primary-color);
}

.user-menu-item:hover {
  background: var(--gray);
}

/* ==================== MOBILE MENU BUTTON ==================== */
.mobile-menu-btn {
  display: none;
  font-size: 1.6rem;
  color: var(--text-color);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

.mobile-menu-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* ==================== MOBILE NAV STYLES ==================== */
@media (max-width: 768px) {
  /* Show hamburger */
  .mobile-menu-btn {
    display: block;
  }

  /* Sidebar base */
  nav {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100%;
    width: 250px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding-top: 70px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 999;
  }

  /* Show sidebar when active */
  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    margin: 0;
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--gray);
  }

  nav ul li a:hover,
  nav ul li a.active {
    background: var(--primary-color);
    color: var(--white);
  }

  /* User menu inside sidebar */
  .user-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    width: 100%;
  }

  .user-menu-item {
    border-bottom: 1px solid var(--gray);
  }
}









