/* ===== BASE STYLES ===== */
:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2ecc71;
  --secondary-dark: #27ae60;
  --accent: #e74c3c;
  --accent-dark: #c0392b;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --gray: #95a5a6;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  color: var(--primary-dark);
}

p {
  margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-primary:after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover:after {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  color: var(--white);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--white);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo a {
  color: var(--primary);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.nav-logo a:before {
  content: '🐾';
  margin-right: 8px;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  color: var(--dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  font-weight: 500;
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover:after {
  width: 80%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 3px;
}

/* ===== HERO SECTION ===== */


.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  -webkit-text-fill-color: var(--white);
  background: none;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
}

/* ===== PRODUCTS ===== */
.featured-products {
  padding: 5rem 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}


.product-card h3 {
  padding: 1.2rem 1.2rem 0.5rem;
  font-size: 1.3rem;
}

.product-card .price {
  padding: 0 1.2rem;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.product-card .btn-secondary {
  margin: 0 1.2rem 1.2rem;
  width: calc(100% - 2.4rem);
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  background: linear-gradient(135deg, var(--light) 0%, var(--white) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about-preview:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233498db' fill-opacity='0.05' d='M0,128L48,117.3C96,107,192,85,288,112C384,139,480,213,576,218.7C672,224,768,160,864,138.7C960,117,1056,139,1152,149.3C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature p {
  color: #666;
}

.feature:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ===== FORMS ===== */
.form-wrapper {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.form-wrapper:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

.form-wrapper h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e1e5eb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.error-message {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border-left: 4px solid #d32f2f;
}

.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border-left: 4px solid #2e7d32;
}

/* ===== ADMIN PANEL ===== */
.admin-tabs {
  display: flex;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #e1e5eb;
}

.tab-link {
  padding: 1rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
  transition: var(--transition);
  position: relative;
}

.tab-link.active {
  color: var(--primary);
}

.tab-link.active:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-products,
.admin-orders,
.admin-users {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
  padding: 5% 0;
}

.admin-product-card,
.admin-order-card,
.admin-user-card {
  background: var(--white);
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.admin-product-card:hover,
.admin-order-card:hover,
.admin-user-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.admin-product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

/* ===== PRODUCT DETAILS ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.product-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.product-image:hover img {
  transform: scale(1.03);
}

.product-info h1 {
  margin-bottom: 0.5rem;
}

.stock-info {
  margin: 1.5rem 0;
  font-weight: 600;
}

.in-stock {
  color: var(--secondary);
}

.out-of-stock {
  color: var(--accent);
}

.description {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.add-to-cart-form {

  display: flex;
  justify-content: center;
  margin: revert;

}

.quantity-selector {
  margin-bottom: 1.5rem;
}

.quantity-selector label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.quantity-selector input {
  width: 100px;
  padding: 0.8rem;
  border: 2px solid #e1e5eb;
  border-radius: var(--radius-sm);
  font-size: 1rem;
}

.related-products {
  margin: 4rem 0;
}

/* ===== CART ===== */
.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin: 2.5rem 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1.5rem;
  padding: 1.8rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
  transition: var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-hover);
}

.cart-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.item-details h3 {
  margin-bottom: 0.5rem;
}

.quantity-form {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.quantity-form input {
  width: 70px;
  padding: 0.6rem;
  border: 2px solid #e1e5eb;
  border-radius: var(--radius-sm);
}

.item-total {
  text-align: right;
}

.subtotal {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cart-summary {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-self: start;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid #e1e5eb;
}

.summary-details p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e1e5eb;
}

.summary-details .total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  border-top: 2px solid #e1e5eb;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.empty-cart p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--gray);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--dark) 0%, #34495e 100%);
  color: var(--white);
  padding: 4rem 0 1.5rem;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .product-detail,
  .cart-container {
    grid-template-columns: 1fr;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 768px) {
  .products-grid,
  .features,
  .admin-products,
  .admin-orders,
  .admin-users {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .quantity-form {
    justify-content: center;
  }
  
  .item-total {
    text-align: center;
  }
  
  .form-wrapper {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .admin-tabs {
    flex-direction: column;
  }
  
  .tab-link {
    padding: 0.8rem 1rem;
    text-align: center;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .page-link {
    margin-bottom: 0.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease;
}

.feature {
  animation: fadeInUp 0.6s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--secondary-dark));
}






/* ===== PRODUCTS PAGE LAYOUT ===== */
.products-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
    align-items: start;
}

/* ===== FILTERS SIDEBAR ===== */
.filters-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.filters-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 1.8rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 700;
}

.filters-sidebar h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 3px;
}

/* ===== FILTER FORM ===== */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.filter-group label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.filter-group label:before {
    content: '•';
    color: #3498db;
    margin-right: 8px;
    font-size: 1.2rem;
}

.filter-group input,
.filter-group select {
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.filter-group input::placeholder {
    color: #a0aec0;
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

/* ===== FILTER BUTTONS ===== */
.filter-form .btn-primary,
.filter-form .btn-secondary {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}

.filter-form .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.filter-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(52, 152, 219, 0.4);
}

.filter-form .btn-secondary {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #e1e8ed;
    text-decoration: none;
}

.filter-form .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .products-page {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .filters-sidebar {
        position: static;
        order: 2;
    }
}

@media (max-width: 576px) {
    .filters-sidebar {
        padding: 1.5rem;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 12px 14px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.filters-sidebar {
    animation: slideIn 0.5s ease-out;
}

.filter-group {
    animation: slideIn 0.5s ease-out;
    animation-fill-mode: both;
}

.filter-group:nth-child(1) { animation-delay: 0.1s; }
.filter-group:nth-child(2) { animation-delay: 0.15s; }
.filter-group:nth-child(3) { animation-delay: 0.2s; }
.filter-group:nth-child(4) { animation-delay: 0.25s; }
.filter-group:nth-child(5) { animation-delay: 0.3s; }
.filter-group:nth-child(6) { animation-delay: 0.35s; }

/* ===== ENHANCED STYLES ===== */
.filter-group input[type="number"]::-webkit-inner-spin-button,
.filter-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-group input[type="number"] {
    -moz-appearance: textfield;
}

.filter-group select option {
    padding: 10px;
    background: white;
}

.filter-group select option:checked {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

/* Price range connector */
.filter-group:has(#min_price) + .filter-group:has(#max_price) {
    position: relative;
}

.filter-group:has(#min_price) + .filter-group:has(#max_price):before {
    content: '';
    position: absolute;
    top: -12px;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background: linear-gradient(to right, #e1e8ed, #3498db, #e1e8ed);
    border-radius: 1px;
}








/* ===== PRODUCT EDIT FORM ===== */
.image-preview {
    max-width: 300px;
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e1e8ed;
}

.image-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-image-container {
    margin: 1.2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.remove-image-container label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #34495e;
    cursor: pointer;
}

.remove-image-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #e74c3c;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.admin-actions .btn-primary,
.admin-actions .btn-secondary {
    flex: 1;
    min-width: 140px;
}

/* File input styling */
.form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed #c3cfe2;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input[type="file"]:hover {
    border-color: #3498db;
    background: #edf2f7;
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-actions .btn-primary,
    .admin-actions .btn-secondary {
        width: 100%;
    }
    
    .image-preview {
        max-width: 100%;
    }
}

/* Animation for form elements */
.form-group {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ORDERS TAB CONTENT ===== */
#orders.tab-content {
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease;
}

#orders h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
    font-weight: 700;
}

#orders h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 3px;
}

#orders > p {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.2rem;
    color: #7f8c8d;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* ===== USER ORDERS GRID ===== */
.user-orders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.order-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #3498db;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.order-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.03) 0%, rgba(46, 204, 113, 0.03) 100%);
    z-index: 0;
}

.order-card p {
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.order-card p strong {
    color: #2c3e50;
    font-weight: 600;
}

.order-card p:first-child {
    font-size: 1.3rem;
    color: #3498db;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #e1e8ed;
}

.order-card p:first-child strong {
    font-size: 1.3rem;
    color: #3498db;
}

/* Status badges */
.order-card p:nth-child(4) {
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
}

.order-card p:nth-child(4):before {
    content: '↻ ';
    margin-right: 4px;
}

/* Status colors */
.order-card p:nth-child(4) {
    background: #fff4e6;
    color: #f76707;
}

.order-card[data-status="completed"] p:nth-child(4) {
    background: #d3f9d8;
    color: #2b8a3e;
}

.order-card[data-status="completed"] p:nth-child(4):before {
    content: '✓ ';
}

.order-card[data-status="cancelled"] p:nth-child(4) {
    background: #ffe3e3;
    color: #c92a2a;
}

.order-card[data-status="cancelled"] p:nth-child(4):before {
    content: '✕ ';
}

/* Order details button */
.order-card .btn-secondary {
    margin-top: 1.2rem;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.2rem;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.order-card .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
}

.order-card .btn-secondary:after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.order-card .btn-secondary:hover:after {
    transform: translateX(3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.order-card {
    animation: fadeIn 0.5s ease;
    animation-fill-mode: both;
}

.order-card:nth-child(1) { animation-delay: 0.1s; }
.order-card:nth-child(2) { animation-delay: 0.15s; }
.order-card:nth-child(3) { animation-delay: 0.2s; }
.order-card:nth-child(4) { animation-delay: 0.25s; }
.order-card:nth-child(5) { animation-delay: 0.3s; }
.order-card:nth-child(6) { animation-delay: 0.35s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .user-orders {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    #orders.tab-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .user-orders {
        grid-template-columns: 1fr;
    }
    
    .order-card {
        padding: 1.5rem;
    }
    
    #orders h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .order-card p {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .order-card p:first-child {
        font-size: 1.1rem;
    }
}

/* ===== ENHANCEMENTS ===== */
.order-card:hover:before {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
}

.order-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    border-radius: 0 0 0 60px;
    transition: all 0.3s ease;
}

.order-card:hover:after {
    width: 70px;
    height: 70px;
}

/* Price highlighting */
.order-card p:nth-child(3) {
    font-weight: 700;
    color: #e74c3c;
    font-size: 1.1rem;
}

/* Date styling */
.order-card p:nth-child(2) {
    color: #7f8c8d;
    font-size: 0.95rem;
} 


/* ===== ORDER DETAILS STYLES ===== */
.order-details-container {
    max-width: 1000px;
    margin: 2rem auto;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-status-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-pending {
    background: #fff4e6;
    color: #f76707;
}

.status-completed {
    background: #d3f9d8;
    color: #2b8a3e;
}

.status-cancelled {
    background: #ffe3e3;
    color: #c92a2a;
}

.order-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.order-info-card, .order-items-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.order-info-card:hover, .order-items-card:hover {
    transform: translateY(-2px);
}

.order-info-card h3, .order-items-card h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e1e8ed;
    color: #2c3e50;
    position: relative;
}

.order-info-card h3:after, .order-items-card h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f3f4;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #5f6368;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.order-items-table th,
.order-items-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.order-items-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    position: sticky;
    top: 0;
}

.order-items-table tr {
    transition: background-color 0.2s ease;
}

.order-items-table tr:hover {
    background: #f8f9fa;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.product-category {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.price-cell {
    font-weight: 600;
    color: #e74c3c;
}

.total-cell {
    font-weight: 700;
    color: #2c3e50;
}

.order-summary {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.order-summary h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e1e8ed;
    color: #2c3e50;
    position: relative;
}

.order-summary h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    border-top: 2px solid #e1e8ed;
    padding-top: 1rem;
    margin-top: 1rem;
}

.status-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.status-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-group-inline {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.form-group-inline select {
    padding: 0.8rem 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 200px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .order-cards {
        grid-template-columns: 1fr;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .order-info-card, .order-items-card, .order-summary {
        padding: 1.5rem;
    }
    
    .product-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .product-image {
        width: 50px;
        height: 50px;
    }
    
    .order-items-table {
        font-size: 0.9rem;
    }
    
    .order-items-table th,
    .order-items-table td {
        padding: 0.8rem;
    }
    
    .form-group-inline {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-group-inline select {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .order-items-table {
        display: block;
        overflow-x: auto;
    }
    
    .info-row {
        flex-direction: column;
        gap: 0.3rem;
    }
}