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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Header */
/* Header */
.main-header {
  background: linear-gradient(135deg, #007BFF, #00C6FF);
  color: #fff;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
}

.logo a i {
  margin-right: 8px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.2);
}

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

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    margin: 0 20px;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #ddd;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-bar button:hover {
    background: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar {
        max-width: 100%;
        margin: 10px 0;
    }
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #007BFF;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  }

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

  .menu-toggle {
    display: block;
    color: #fff;
  }
}


/* Main Content */
main {
  padding: 20px;
  min-height: 70vh;
}

/* Footer */
footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 15px;
  font-size: 14px;
}

/* Forms */
.form {
  max-width: 450px;
  background: #fff;
  margin: 30px auto;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

.form h2 {
  margin-bottom: 15px;
  text-align: center;
  color: #222;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: #28a745;
}

/* Buttons */
.btn {
  background: #28a745;
  color: #fff;
  padding: 12px 18px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  background: #218838;
}

/* Product Cards */
.products {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 220px;
  text-align: center;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.product-card h3 {
  font-size: 16px;
  margin: 10px 0;
}

.product-card p {
  font-size: 14px;
  color: #555;
}

.product-card .btn {
  margin-top: 10px;
}

.product-description {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Messages */
.success { color: green; font-weight: 600; }
.error { color: red; font-weight: 600; }

/* Tables (Admin Panel) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background: #28a745;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
}

tr:hover {
  background: #f1f1f1;
}

/* Order Cards */
.order-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  header nav {
    margin-top: 10px;
  }

  .products {
    flex-direction: column;
    align-items: center;
  }

  table, th, td {
    font-size: 13px;
  }
}





/* Global Reset */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
}

.btn {
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

/* ---------------------- HERO BANNER ---------------------- */
/* Hero Banner with Colorful Gradient */
.home-banner {
  background: linear-gradient(135deg, #1a73e8, #28a745, #ff5722);
  background-size: 600% 600%;
  animation: gradientAnimation 12s ease infinite;
  color: #fff;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: auto;
}

.home-banner h1 {
  font-size: 48px;
  margin-bottom: 15px;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.home-banner h1 span {
  color: #ffd700; /* Golden highlight for LensBazaar */
}

.home-banner p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #f1f1f1;
}

.home-banner .btn {
  background: #ffd700;
  color: #333;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 30px;
  transition: transform 0.3s, background 0.3s;
}

.home-banner .btn:hover {
  background: #ffc107;
  transform: scale(1.05);
}


/* ---------------------- FEATURES ---------------------- */
.features {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f6f9fc, #e3f2fd);
}

.features h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #222;
  font-weight: bold;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card i {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.feature-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* ---------------------- SHOP BY CATEGORY ---------------------- */
/* Categories Section */
.categories {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(135deg, #f0f8ff, #e6f2ff);
}

.categories h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1500px;
  margin: 0 auto;
}

.category-card {
  background: #fff;
  padding: 25px 15px;
  border-radius: 15px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.category-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 3px solid #007BFF;
  transition: transform 0.3s ease;
}

.category-card:hover .category-img {
  transform: scale(1.1);
}

.category-card p {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  color: #007BFF;
}


/* ---------------------- PRODUCTS ---------------------- */
/* Products Section */
.products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.products-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #222;
}

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 0 15px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Product Details */
.product-card h3 {
    font-size: 18px;
    color: #222;
    margin: 10px 0;
}

.product-card .description {
    font-size: 14px;
    color: #666;
    min-height: 40px;
    margin-bottom: 8px;
}

.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 12px;
}

/* Button */
.product-card .btn {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.product-card .btn:hover {
    background: #0056b3;
}


/* ---------------------- POPULAR / FEATURED SECTIONS ---------------------- */
.featured-products,
.popular-products {
  padding: 60px 20px;
  text-align: center;
}

.featured-products h2,
.popular-products h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.view-more {
  margin-top: 30px;
}

/* ---------------------- TESTIMONIALS ---------------------- */
.testimonials {
  padding: 60px 20px;
  background: #f8f9fa;
  text-align: center;
}

.testimonials h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.testimonial-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  width: 280px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
  font-style: italic;
}

.testimonial-card h4 {
  margin-top: 15px;
  font-style: normal;
  color: #28a745;
}

/* ---------------------- NEWSLETTER ---------------------- */
.newsletter {
  text-align: center;
  padding: 60px 20px;
  background: #007bff;
  color: #fff;
}

.newsletter h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.newsletter p {
  margin-bottom: 25px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 10px;
  border-radius: 4px;
  border: none;
  width: 250px;
}

.newsletter-form button {
  background: #28a745;
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.newsletter-form button:hover {
  background: #218838;
}

/* ---------------------- RESPONSIVE ---------------------- */
@media (max-width: 768px) {
  .feature-grid,
  .category-grid,
  .products,
  .testimonial-grid {
    flex-direction: column;
    align-items: center;
  }

  .home-banner h1 {
    font-size: 32px;
  }

  .home-banner p {
    font-size: 16px;
  }
}



/* Product Details */
.product-details {
  padding: 60px 20px;
  background: #f9f9f9;
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 30px;
  align-items: flex-start;
}

.product-image {
  flex: 1;
  min-width: 300px;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-info {
  flex: 2;
  min-width: 300px;
}

.product-info h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #007BFF;
}

.product-info .desc {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.6;
}

.product-info .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 25px;
  color: #333;
}

.product-info .btn {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 10px;
  background: #007BFF;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: background 0.3s;
}

.product-info .btn:hover {
  background: #0056b3;
}

.product-info .btn.secondary {
  background: #6c757d;
}

.product-info .btn.secondary:hover {
  background: #495057;
}


/* Profile Section */
.profile-section {
    padding: 50px 20px;
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    max-width: 600px;
    width: 100%;
}

.profile-container h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    color: #333;
}

.profile-container h2 i {
    color: #007bff;
    margin-right: 8px;
}

/* Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-form label {
    font-weight: bold;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-form input,
.profile-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    width: 100%;
    transition: border 0.3s;
}

.profile-form input:focus,
.profile-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

.profile-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Button */
.profile-form .btn {
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-form .btn:hover {
    background: #0056b3;
}

/* Success Message */
.success-msg {
    background: #e6ffed;
    color: #2d8a3f;
    padding: 10px 15px;
    border-left: 5px solid #28a745;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}


/* Cart Section */
.cart-section {
    padding: 50px 20px;
    background: #f9fafc;
    display: flex;
    justify-content: center;
}

.cart-container {
    width: 100%;
    max-width: 1000px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.cart-container h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Table */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table th, 
.cart-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.cart-table th {
    background: #f4f6f9;
    font-weight: bold;
    color: #444;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.cart-product img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.cart-table input[type="number"] {
    width: 70px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

/* Buttons */
.remove-btn {
    color: #dc3545;
    text-decoration: none;
    font-size: 14px;
}

.remove-btn:hover {
    text-decoration: underline;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.cart-actions .btn {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: 0.3s;
}

.update-btn {
    background: #6c757d;
    color: #fff;
    border: none;
}

.update-btn:hover {
    background: #5a6268;
}

.checkout-btn {
    background: #007bff;
    color: #fff;
    border: none;
}

.checkout-btn:hover {
    background: #0056b3;
}

/* Total Row */
.total-label {
    text-align: right;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.total-amount {
    font-weight: bold;
    font-size: 18px;
    color: #007bff;
}


.orders-section {
  padding: 40px 20px;
  background: #f8f9fa;
  min-height: 80vh;
}

.orders-container {
  max-width: 900px;
  margin: 0 auto;
}

.orders-container h2 {
  font-size: 28px;
  margin-bottom: 25px;
  color: #222;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.order-card:hover {
  transform: translateY(-3px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-header h3 {
  font-size: 20px;
  color: #333;
}

.order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.order-status.pending {
  background: #fff3cd;
  color: #856404;
}

.order-status.completed {
  background: #d4edda;
  color: #155724;
}

.order-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.order-total {
  font-size: 18px;
  font-weight: bold;
  color: #111;
  margin-bottom: 5px;
}

.order-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.order-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.order-items li:last-child {
  border-bottom: none;
}

.empty-orders {
  text-align: center;
  padding: 50px 20px;
}

.empty-orders p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #444;
}

.start-shopping-btn {
  background: linear-gradient(45deg, #0072ff, #00c6ff);
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.start-shopping-btn:hover {
  background: linear-gradient(45deg, #0056b3, #0096c7);
}

/* Shop Section */
.shop {
    max-width: 90%;
    margin: 50px auto;
    padding: 50px 20px;
    text-align: center;
    background: #f5f7fa; /* light background */
    border-radius: 15px;
}

/* Section Title */
.shop h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
}

/* Grid Layout */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Product Card */
.shop-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    transition: 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.shop-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.shop-card h3 {
    font-size: 1.2em;
    margin: 10px 0 5px;
    color: #222;
}

/* Single line description with ellipsis */
.shop-card .description {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-card .price {
    font-size: 1.1em;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 12px;
}

.shop-card .btn {
    text-decoration: none;
    background-color: #3498db;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    transition: 0.3s;
}

.shop-card .btn:hover {
    background-color: #2980b9;
}

/* Responsive */
@media (max-width: 768px) {
    .shop-card img {
        height: 150px;
    }
}

 



