/* homepage */
 body {
      padding: 0px;
      margin: 0px;
      font-family: Cambria, Georgia, serif;
    }

    

    /* div {
      width: 100%;
      border: 2px solid red;
      min-height: 100px;
    }  */
    .navvy {
      background-color: #002914;
    }
.main{
		padding:0px 15%;
		background-color:rgba(0,0,0,0.9);
    margin:auto;
    text-align: center;
    
}

    .overlay{
       background-color: black;
       background-image: url('head1.JPG');
       font-family: Arial, Helvetica, sans-serif;
       color:white;
       font-weight: bold;
       font-size: 40px;
   
    }
    
    .ojb1{
      color: yellow;
      font-style: italic;
      font-weight: lighter;
    }
    .ojb{
      font-size: 50px;
    }
    .sticky{
      position: sticky;
      top: 0;
      z-index: 1030;
      overflow: visible;
    }
    .navbar  a{
      color: white;
      font-weight: bold;
    }
   
    .navbar {
      position: sticky;
      top: 0;
      z-index: 1030;
      background-color: #002914;
    }
    
    /* Ensure content doesn't overlap sticky header */
    .container-fluid:not(.sticky-container) {
      position: relative;
      z-index: 1;
    }
    
    /* Admin Header Styles (moved from inline) */
    .admin-header .sticky {
      position: sticky;
      top: 0;
      z-index: 1030;
      overflow: visible;
    }
    
    .admin-header .navbar {
      position: sticky;
      top: 0;
      z-index: 1030;
      background-color: #002914;
    }

    .footer {
      padding-top: 10px;
      display: flex;
      justify-content: space-between;
      min-height: 30px;
      width: 100%;
      background-color: #002914;
    }
    .footer ul li a {
      text-decoration: none;
      color: white;
    }
    .footer ul li {
      list-style-type: none;
    }

    .add {
      min-height: 50px;
      width: 100%;
      color: white;
    }
    .addd {
      color: #cda274;
      font-size: 25px;
      font-weight: bold;
    }
    .subhead{
      color: #ffff00;
      text-align: center;
      margin: 20px;
      background-color: #002914;
      padding: 20px;
      font-weight: bold;
      font-size: 25px;
    }
      .subhead a{
      color: #ffff00;
      text-align: center;
      margin: 20px;
      background-color: #002914;
      padding: 20px;
      font-weight: bold;
      font-size: 25px;
    }


 .cart{
      font-size: 12px;
      margin-bottom: 5px;
    }

    a {
      text-decoration: none;
      color: #002914;
    }
    .writeup {
      padding-left: 100px;
      padding-right: 100px;
      font-size: 18px;
       font-family: Arial, Helvetica, sans-serif;
       border-radius: 20px;
       color: #002914;
  
    
    }
   .navbar-toggler{
      color: #ffff00;
      background-color: white;
    }
.price_col{
  color:red;
  font-weight: bold;
  font-size: 15px;
}
.goods{
  font-size: 20px;
  font-weight: bold;
  color: #010148;
  margin-top: 4px;
}

.box{
  border-radius: 10px;
 box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.1);
}

.box:hover{
 animation: pulse; 
  animation-duration: 1s;
}

/* 
    signup */

    .container {
        background-color: white;
        max-width: 400px;
        margin: auto;
        margin-bottom: 100px;
        padding: 30px;
        border: 1px solid #ccc;
        border-radius: 10px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
      }
      h1 {
        text-align: center;
        color: #333;
      }
      label {
        font-weight: bold;
        display: block;
        margin-top: 15px;
        margin-bottom: 5px;
      }
      input[type="text"],
      input[type="email"],
      input[type="password"] {
        width: 100%;
        padding: 10px;
        margin: 3px 0 10px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
      }
     
      .terms {
        margin-top: 15px;
        font-size: 12px;
      }
      .terms a {
        color: dodgerblue;
        text-decoration: none;
      }

      /* login */

       .forgot-password {
        margin-top: 15px;
        text-align: right;
      }
      .forgot-password a {
        color: dodgerblue;
        text-decoration: none;
      }


       .usefulinks {
        background-color: #eeeeee;
        min-height: 600px;
        padding-bottom: 30px;
        text-align: center;
      }

      .admin-side{
        min-height: 100px;
        border-bottom: 1px dotted gray;
        width: 100%;
        padding: 20px;
        text-align: center;
        
      }

       .admin-side:hover{
         background-color:gray;
         color: black;
       }
     .admin-rside{
        padding: 15px;
        background-color: #eeeeee;
       box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
      }
      .admin-rside:hover{
        background-color:gray;
        color: white;      
      }


 
 
.table-container {
  width: 100%;
  overflow-x: auto; /*  horizontal scrolling  */
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* search users */
.usersearch{
  background-color: #eeeeee;
  min-height: 200px;
  padding: 50px;
}


@media screen and (max-width: 600px) {
  .table-container { border: 0; }
  table thead { 

    position: absolute;
    clip: rect(0 0 0 0);
    height: 1px; margin: -1px; overflow: hidden;
  }
  table tr {
    display: block;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
  }
  table td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #ddd;
  }
  table td::before {
   
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
}
/* all products page */
.product-container {
  display: flex;
  max-width: 1000px;
  margin: auto;
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  gap: 40px;
  flex-wrap: wrap;
}

.product-image img {
  width: 100%;
  max-width: 150px;
  border-radius: 8px;
    text-align: center;
  
}

.product-details {
  flex: 1;
  min-width: 280px;
}

.product-details h1 {
  font-size: 28px;
 color: #010148;
  margin-top: 0;
}

.product-price {
  font-size: 22px;
  color: red;
  margin: 10px 0;
}

.product-description {
  color: #555;
  font-size: 16px;
  margin: 20px 0;
}

.product-quantity {
  margin-bottom: 20px;
}
.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  font-size: 18px;
  border: 1px solid #ccc;
  background-color: #e8f5e9;
  cursor: pointer;
  border-radius: 4px;
}

.quantity-controls input {
  width: 50px;
  text-align: center;
  font-size: 16px;
   height: 30px;
  padding: 4px;
}

.add-to-cart {
  background-color: #388e3c;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-to-cart:hover {
  background-color: #2e7d32;
}


/* cart page */


.cart-container {
  background: #fff;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 margin: auto;
}



.cart-items {
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid #eee;
}

.cart-item:first-child {
  border-top: none;
}

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

.item-details {
  flex: 1;
  margin-left: 20px;
}

.item-details h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.item-details  {
  margin-bottom: 10px;
}

.quantity input {
  width: 60px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.remove-btn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.remove-btn:hover {
  background: #e63e3e;
}

.cart-summary {
  padding-top: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.summary-item.total {
  font-weight: bold;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

.checkout-btn {
  width: 100%;
  background: #3a86ff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: #266ad8;
}


.view-product-details{
  text-align: center;
  flex: 1;
  min-width: 280px;
}

/* Social Media Icons Styling */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fd720d 0%, #019e41 100%);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.15);
  box-shadow: 0 6px 20px rgba(253, 114, 13, 0.5);
  color: white;
  text-decoration: none;
}

.social-icon:active {
  transform: translateY(-1px) scale(1.08);
}

.social-icon:focus {
  outline: 2px solid rgba(253, 114, 13, 0.5);
  outline-offset: 2px;
}

.social-icon i {
  transition: transform 0.3s ease;
  display: block;
}

.social-icon:hover i {
  transform: scale(1.2);
}

/* Ensure icons are visible in footer */
.footer .social-links {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.footer .social-icon {
  background: linear-gradient(135deg, #fd720d 0%, #019e41 100%);
}

/* Footer contact links */
.footer .add a {
  color: #333;
  transition: color 0.3s ease;
}

.footer .add a:hover {
  color: #fd720d;
  text-decoration: none;
}

/* Contact icons matching social icons */
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fd720d 0%, #019e41 100%);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.contact-icon:hover {
  transform: translateY(-3px) scale(1.15);
  box-shadow: 0 6px 20px rgba(253, 114, 13, 0.5);
  color: white;
  text-decoration: none;
}

.contact-icon:active {
  transform: translateY(-1px) scale(1.08);
}

.contact-icon:focus {
  outline: 2px solid rgba(253, 114, 13, 0.5);
  outline-offset: 2px;
}

.contact-icon i {
  transition: transform 0.3s ease;
  display: block;
}

.contact-icon:hover i {
  transform: scale(1.2);
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

/* Mobile First - Base styles for mobile */
@media screen and (max-width: 767px) {
  /* Header & Navigation */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navvy {
    padding: 0.5rem !important;
  }
  
  .navbar-brand img,
  .navbar img {
    width: 60px !important;
    max-width: 60px;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 0;
  }
  
  .d-flex .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
  }
  
  /* Search form in navbar */
  .navbar .d-flex form {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .navbar .d-flex form .form-control {
    font-size: 0.875rem;
  }
  
  .navbar .d-flex form .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  /* Footer */
  .footer {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
  
  .row-md.footer {
    flex-direction: column;
  }
  
  .footer .col-md-4 {
    width: 100% !important;
    margin-bottom: 2rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .footer .col-md-4:last-child {
    margin-bottom: 0;
  }
  
  .footer .links ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .footer .links ul li {
    margin: 0.75rem 0;
  }
  
  .footer .links ul li a {
    font-size: 0.95rem;
  }
  
  .footer .add {
    text-align: center;
    padding: 0.5rem 0;
  }
  
  .footer .add p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .footer .addd {
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.75rem;
  }
  
  /* Contact and Social Icons */
  .contact-links,
  .social-links {
    justify-content: center !important;
    gap: 0.5rem !important;
  }
  
  .contact-icon,
  .social-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }
  
  /* Main Content Padding */
  .main {
    padding: 0px 5% !important;
  }
  
  /* Carousel */
  .carousel-caption {
    padding: 1rem !important;
    font-size: 0.875rem;
  }
  
  .carousel-caption h2 {
    font-size: 1.25rem !important;
  }
  
  .carousel-caption p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-caption .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  /* Headings */
  .subhead {
    font-size: 1.25rem;
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .ojb {
    font-size: 2rem !important;
  }
  
  .overlay {
    font-size: 1.5rem;
    padding: 1rem;
  }
  
  /* Product Grids */
  .row.g-4,
  .row.g-3 {
    margin: 0;
  }
  
  .row.g-4 > [class*="col-"],
  .row.g-3 > [class*="col-"] {
    padding: 0.5rem;
  }
  
  .col-md-6,
  .col-md-4,
  .col-md-3,
  .col-lg-3,
  .col-lg-4 {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Product Cards */
  .product-card {
    margin-bottom: 1rem;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card-img-top {
    height: 200px;
    object-fit: cover;
  }
  
  /* Product Container */
  .product-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1.5rem;
  }
  
  .product-image img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  .product-details {
    min-width: 100%;
    text-align: center;
  }
  
  .product-details h1 {
    font-size: 1.5rem;
  }
  
  .product-price {
    font-size: 1.5rem;
  }
  
  /* Marketplace */
  .marketplace-header {
    padding: 2rem 1rem;
  }
  
  .marketplace-header h1 {
    font-size: 1.75rem;
  }
  
  .marketplace-header p {
    font-size: 1rem;
  }
  
  .filter-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  /* Dashboard Cards */
  .dashboard-cards {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  
  .dashboard-card {
    padding: 1.5rem;
  }
  
  .dashboard-card i {
    font-size: 2.5rem;
  }
  
  .dashboard-header {
    padding: 1.5rem 1rem;
  }
  
  .dashboard-header h1 {
    font-size: 1.75rem;
  }
  
  .dashboard-header h4 {
    font-size: 1rem;
  }
  
  /* Forms */
  .form-control,
  .form-select {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  .btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }
  
  /* Login/Register Cards */
  .login-card,
  .register-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .login-header h1,
  .register-header h1 {
    font-size: 1.75rem;
  }
  
  /* Tables */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  table {
    font-size: 0.875rem;
  }
  
  table th,
  table td {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  /* Cart Page */
  .col-md-10.offset-md-1 {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 1rem;
  }
  
  .table td img {
    width: 50px !important;
    height: auto;
  }
  
  .table td {
    vertical-align: middle;
  }
  
  /* Cart forms inline */
  .table form {
    display: inline-block;
    margin: 0.25rem;
  }
  
  .table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* View Product Page */
  .container-fluid.py-5 {
    padding: 1.5rem 1rem !important;
  }
  
  .row.gx-5 {
    margin: 0;
  }
  
  .row.gx-5 > [class*="col-"] {
    padding: 0.5rem;
  }
  
  .col-lg-6 {
    width: 100%;
  }
  
  /* Contact Page */
  .col-md-7,
  .col-md-5 {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .card.shadow-sm {
    padding: 1.5rem !important;
  }
  
  /* Product Image on Mobile */
  img[style*="max-height"] {
    max-height: 300px !important;
  }
  
  /* Buttons on Mobile */
  .btn-lg {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .d-flex.flex-wrap.gap-3 {
    flex-direction: column;
  }
  
  .d-flex.flex-wrap.gap-3 .btn {
    width: 100%;
  }
  
  /* Profile Page */
  .col-md-4 {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .profile-pic {
    width: 120px !important;
    height: 120px;
  }
  
  /* Sidebar on Mobile */
  .admin-sidebar,
  .user-sidebar {
    position: relative !important;
    top: 0 !important;
    margin-bottom: 2rem;
  }
  
  /* Forms */
  .form-control-lg {
    font-size: 1rem;
    padding: 0.75rem;
  }
  
  /* Container Padding */
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .py-4,
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .mt-4,
  .mt-5 {
    margin-top: 1.5rem !important;
  }
  
  .mb-4,
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }
  
  /* Text Sizes */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  h4 {
    font-size: 1.1rem;
  }
  
  /* Buttons in rows */
  .d-flex.gap-3 {
    flex-direction: column;
    gap: 0.5rem !important;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
  }
  
  /* Category boxes */
  .box {
    margin-bottom: 1.5rem;
  }
  
  /* Admin Sidebar */
  .col-md-3 {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .col-md-9 {
    width: 100%;
  }
}

/* Tablet Styles */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .main {
    padding: 0px 8%;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .col-md-6 {
    width: 50%;
  }
  
  .col-md-4 {
    width: 50%;
  }
  
  .col-md-3 {
    width: 50%;
  }
  
  .filter-sidebar {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  .navbar-brand img,
  .navbar img {
    width: 50px !important;
  }
  
  .marketplace-header h1 {
    font-size: 1.5rem;
  }
  
  .dashboard-header h1 {
    font-size: 1.5rem;
  }
  
  .subhead {
    font-size: 1.1rem;
    padding: 0.75rem;
  }
  
  .contact-icon,
  .social-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .product-container {
    padding: 0.75rem;
  }
  
  .login-card,
  .register-card {
    padding: 1.25rem;
    margin: 0.5rem;
  }
}






