/* General Reset */
* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333333;
}

body {
    background-color: #F3F3F3;
    line-height: 1.6;
    padding: 20px;
}

/* Admin Panel Styles */
h2 {
    color: #FF9900;
    margin-bottom: 15px;
}
    
 .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 1rem 2rem;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--brand-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--brand-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: #fff;
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }


nav a {
  color: #000;
    
}
  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}

form {
    background: #FFFFFF;
    padding: 20px;
    border: 1px solid #ddd;
    max-width: 500px;
    margin-bottom: 40px;
    border-radius: 5px;
}

form input[type="text"],
form input[type="file"],
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

form button {
    background-color: #FF9900;
    border: none;
    padding: 12px 25px;
    color: #fff;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #e08800;
}

a {
    color: #131921;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Table Styling (Admin product list) */
table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
    border-radius: 5px;
    overflow: hidden;
}

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

table th {
    background-color: #131921;
    color: white;
}

table tr:hover {
    background-color: #f7f7f7;
}

/* Cancel Link button */
form a {
    display: inline-block;
    margin-left: 10px;
    padding: 10px 20px;
    background: #ddd;
    color: #333;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

form a:hover {
    background-color: #bbb;
}

/* Shop Product Listing */
.product-listing {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

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

.product-card b {
    color: #131921;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

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

.product-card a.detailslink {
    background-color: #FF9900;
    padding: 10px 15px;
    color: white;
    border-radius: 3px;
    text-align: center;
    display: inline-block;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.product-card a.detailslink:hover {
    background-color: #e08800;
}

/* Product Details Page */
.product-details {
    max-width: 700px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-details img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.product-details h2 {
    color: #131921;
    margin-bottom: 15px;
}

.product-details p {
    font-size: 16px;
    margin-bottom: 20px;
}

.product-details a.buy-link {
    background-color: #FF9900;
    padding: 12px 30px;
    color: white;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.product-details a.buy-link:hover {
    background-color: #e08800;
}
