/* ZaniMart - Full style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');


:root {
  /* Color tokens (light mode defaults) */
  --primary: #15803d;       
  --primary-700: #065f46cc;   
  --secondary: #16a34a;     
  --accent: #97820a;        
  --bg: #f0fdf4;            
  --surface: #ffffff;       
  --muted: #e6ffee;         
  --text: #111827;          
  --subtext: #374151;
  --border: rgba(0,0,0,0.06);

  /* Utility */
  --danger: #e11d48;
  --success: #16a34a;
  --shadow: 0 6px 18px rgba(4, 17, 6, 0.06);

  /* Layout / spacing / transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: all 0.28s ease;
}

/* Dark theme override (system preference) */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #065f46f5;     
    --primary-700: #043d2ef3;
    --secondary: #04553e;   
    --accent: #ffc400;      
    --bg: #081229dc;          
    --surface: #0b1220da;     
    --muted: #071326d5;
    --text: #e5e7eb;        
    --subtext: #cbd5e1;
    --border: rgba(255,255,255,0.06);
    --shadow: 0 6px 18px rgba(0,0,0,0.6);
  }
}


* {
  margin: 2px;
  padding: 2px;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--transition);
}

/* Links */
a { 
  color: var(--primary); 
  text-decoration: none; 
}

a:hover { 
  opacity: 0.92; 
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-700);
  color: var(--surface);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: 0;
}
.btn:hover { 
  transform: translateY(-2px);
  color: var(--primary-700);
  background: var(--text); 
}

/* HEADER */
header {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.164), rgba(54, 52, 52, 0.267));
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
  top: 0;
  z-index: 1000;
  text-align: center;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 70px;
  width: 70px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.02));
  padding: 6px;
  box-shadow: 0 4px 12px rgba(122, 120, 120, 0.281);
}

header h1 {
  font-size: 1.6rem;
  flex-grow: 1;
  text-align: center;
  margin: 0;
  color: var(--text);
}

/* Hamburger menu toggle (mobile) */
.menu-toggle { 
  display: none; 
  font-size: 1.8rem; 
  cursor: pointer; 
}

/* Navigation */
nav ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li a {
  display: inline-block;
  background: transparent;
  color: var(--subtext);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(0, 0, 0, 0.342);
  color: var(--primary);
  transform: scale(1.02);
  border-color: var(--border);
}

/* Cart icon */
.cart-container {
  position: fixed;
  top: 3px;
  right: 3px;
  z-index: 2000;
  cursor: pointer;
}
.cart-icon {
  font-size: 25px;
  color: var(--text);
  background: var(--surface);
  padding: 8px;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.cart-icon:hover {
  transform: scale(1.08);
  filter: brightness(0.98);
  color: whitesmoke;
  background: darkslategrey;
}

/* Badge */
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: var(--surface);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

/* small bounce animation kept */
@keyframes bounce {
   0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)}
}

.cart-bounce { 
  animation: bounce 0.4s ease; 
}

/* Hero / header sections */
.hero {
  background: linear-gradient(90deg, var(--secondary), var(--primary-700));
  border-radius: 15px;
  color: var(--surface);
  text-align: center;
  padding: 70px 10px;
  height: 300px;
  box-shadow: var(--shadow);
}
.hero h2 { 
  font-size: 2.5rem; 
  margin-bottom: 15px; 
  padding: 5px; 
}

.hero p { 
  color: rgba(255,255,255,0.9); 
  margin: 20px; 
  padding: 7px; 
}

/* Page header */
.header { 
  text-align:center; 
  margin:40px 0; 
}

.header h3 { 
  font-size:1.5rem; 
  font-weight:600; 
  margin-bottom:20px; 
  color:var(--text); 
}

.header .btn { 
  background: var(--accent); 
  color: var(--text); 
  padding:12px 30px; 
  border-radius:30px; 
}

/* About / Contact sections */
.about-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px 20px;
  background: linear-gradient(180deg, var(--surface), rgba(0,0,0,0.01));
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--border);
}
.about-section h2 { 
  color: var(--primary); 
  font-size:2rem; 
  margin-bottom:15px; 
}
.about-section p { 
  color: var(--subtext); 
  line-height:1.6; 
}

.about-section a{
  color: var(--subtext);
  background-color: var(--primary-700);
  box-shadow: var(--shadow);
  border-radius: 10px;
}

.about-section a:hover {
  color: var(--primary-700);
  background-color: var(--subtext);
}

.about-section h3 { 
  margin-top: 20px; 
  color: var(--text); 
} 

.about-section ul { 
  list-style: none; 
  padding: 0; 
} 

.about-section ul li { 
  background: var(--primary-700); 
  display: inline-block; 
  padding: 6px 14px; 
  border-radius: 20px; 
  margin: 4px; 
  font-weight: 500; 
  color: var(--subtext); 
}

/* Contact */
.contact-section {
  background: linear-gradient(90deg, rgba(250,250,250,0.6), rgba(0,0,0,0.01));
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 50px auto;
  padding: 30px 20px;
  max-width: 900px;
  text-align: center;
  border: 1px solid var(--border);
}

.contact-section h2 { 
  color: var(--text); 
  margin-bottom:10px; 
}

.contact-section p { 
  color: var(--subtext); 
  margin-bottom:20px; 
}

/* Form controls */
.contact-form { 
  display:flex; 
  flex-direction:column; 
  gap:12px; 
  max-width:600px; 
  margin:0 auto; 
}

.contact-form input, 
.contact-form textarea {
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:1rem;
  outline:none;
  transition: var(--transition);
  background: var(--surface);
  color: var(--text);
}
.contact-form input:focus, 
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(21,128,61,0.06);
}
.contact-form button {
  background: var(--primary);
  color: var(--surface);
  border: 0;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight:600;
}
.contact-form button:hover { 
  opacity: 0.96; 
  background-color: rgb(8, 107, 94);
  transform: translateY(-1px); 
}

/* Product grid & cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr); 
  gap: 5px;
  padding: 3px;
  justify-items: center;
}

.product-card {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background: rgb(255, 255, 255);
  box-shadow: 0 6px 18px var(--shadow);
  text-align:center;
  transition: transform 0.28s ease;
  width:100%;
  max-width:220px; 
  border-radius:10px;
  overflow:hidden;
  height:340px; 
  border: 1px solid var(--border);
}

.product-card:hover { 
  transform: translateY(-5px); 
}

.product-card img {
  width:100%;
  height:160px; 
  object-fit:contain;
  border-top-left-radius:10px;
  border-top-right-radius:10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.01), rgba(0,0,0,0.02));
}


.product-card h3 { 
  font-size:1rem; 
  font-weight:600; 
  margin:8px 0 3px; 
  color:var(--text); 
}

.product-card p { 
  color:var(--text); 
  font-size:0.9rem; 
}

.product-card .price { 
  color: var(--text); 
  font-weight:700; 
  margin:6px 0; 
}

.product-details {
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  align-items: center;
}

.product-details button {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--text);
  border:none;
  border-radius:20px;
  padding:8px 14px;
  font-weight:600;
  cursor:pointer;
  margin-bottom: 2px;
  width:80%;
}
.product-details button:hover { 
  transform: translateY(-2px); 
  background-color: rgb(12, 117, 143); 
}

/* generic img override */
img { 
  max-width:200px; 
  height:200px; 
  border-radius:5px; 
}



/* 🔍 Fullscreen Image Preview */
#imagePreviewModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#imagePreviewModal img {
  width: auto;
  height: auto;
  max-width: 95vw;   
  max-height: 95vh;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}


#closePreview {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

/* Zoomed state */
#imagePreviewModal img.zoomed {
  transform: scale(4); 
  cursor: zoom-out;
}


/* Top section / categories / banner / top-selling */
.top-section {
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:3px;
  margin:5px;
  flex-wrap:nowrap;
  overflow-x:hidden;
  box-sizing:border-box;
}

/* Categories */
.categories {
  background: linear-gradient(180deg, rgba(250,250,250,0.6), rgba(0,0,0,0.01));
  border-radius:12px;
  box-shadow: var(--shadow);
  margin-left: 6px;
  padding:5px;
  height:445px;
  border: 1px solid var(--border);
}
.categories h3 { 
  text-align:center; 
  margin-bottom:10px; 
  font-size:1.1rem; 
  color:var(--text); 
  border-bottom:2px solid rgba(0,0,0,0.03); 
  padding-bottom:5px; 
}

.categories a { 
  display:block; 
  color:var(--subtext); 
  text-decoration:none; 
  font-weight:600; 
  padding:8px 12px; 
  margin:5px 0; 
  border-radius:8px; 
  transition: var(--transition); 
}

.categories a:hover, .categories a.active { 
  background: var(--subtext); 
  transform: scale(1.03); 
  color: var(--primary); 
}

/* Banner*/
.banner-box { 
  height:445px; 
  width: 960px;
  border-radius:12px; 
  overflow:hidden; 
  text-align:center; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
  border:1px solid var(--border); 
}

.banner-box img { 
  width:955px; 
  height:440px; 
  border-radius:12px; 
  object-fit:cover; 
  transition:transform 0.3s ease; 
  max-width:100%; 
}

.banner-box img:hover { 
  transform: scale(1.02); 
}

.products-banner { 
  height:445px; 
  width:1500px; 
  border-radius:12px; 
  overflow:hidden; 
  text-align:center; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
}

.products-banner img { 
  width:100%; 
  height:auto; 
  max-width:1500px; 
  border-radius:12px; 
  object-fit:cover; 
  transition: transform 0.3s ease; 
}

.products-banner img:hover { 
  transform: scale(1.02); 
}

/* Top-selling */
.top-selling {
  width: 395px;
  height: 445px;
  background: linear-gradient(135deg, rgba(0,0,0,0.01), rgba(0,0,0,0.02));
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px;
  box-sizing: border-box;
  overflow-y: auto;
  border: 1px solid var(--border);
}

.top-selling h3 { 
  text-align:center; 
  color:var(--text); 
  border-bottom:3px solid rgba(0,0,0,0.03); 
  padding-bottom:2px; 
  margin-bottom:5px; 
  font-size:1.2rem; 
  font-weight:700; 
}

/* top-selling products grid */
.top-selling-products { 
  display:grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap:10px; 
  padding:5px; 
}

.top-selling-products .product-card { 
  height: 365px;
  background: rgb(255, 255, 255); 
  border-radius:14px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); 
}

/* Product price & add-to-cart */
.top-selling-products .product-price { 
  color: var(--primary); 
  font-weight:700; 
}

.top-selling-products .add-to-cart {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--surface);
  padding:8px 0;
  border-radius:10px;
  font-weight:600;
  border:0;
}

/* Scroll wrapper */
.top-selling-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Moving strip */
.slide-track {
  display: flex;
  animation: scroll 25s linear infinite; 
  width: calc(230px * 8); 
}

/* Product card inside slider */
.slide-track .product-card {
  width: 220px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* Infinite scroll keyframes */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-230px * 4)); 
  }
}


/* Cart styles */
.cart-page {
  max-width:900px;
  margin:40px auto;
  padding:25px;
  background: linear-gradient(180deg, rgba(0,0,0,0.01), rgba(0,0,0,0.02));
  border-radius:15px;
  box-shadow: var(--shadow);
  border:1px solid var(--border);
}
.cart-page h2 { 
  text-align:center; 
  font-size:1.8rem; 
  color:var(--text); 
  margin-bottom:25px; 
}

/* cart items */
.cart-item { 
  display:flex; 
  align-items:center; 
  justify-content:flex-start; 
  gap:15px; 
  border-bottom:1px solid var(--border); 
  padding:15px 0; 
  transition: background 0.3s ease; 
}


.cart-item img { 
  width:auto; 
  height:80px; 
  border-radius:10px; 
  object-fit:cover; 
  flex-shrink:0; 
}

/* Product Info */ 
.cart-item div { 
  flex: 1; 
}

.cart-item h3, 
.cart-item h4 { 
  font-size:1.1rem; 
  color:var(--text); 
  margin-bottom:5px; 
}

.cart-item p { 
  color:var(--subtext); 
  margin:3px 0; 
  font-size:0.95rem; 
}

/* quantity controls */
.quantity-controls { 
  display:flex; 
  align-items:center; 
  justify-content: center;
  gap:8px; 
  margin-top:8px; 
}

.quantity-controls button { 
  width:28px; 
  height:28px; 
  background:var(--primary); 
  border:none; 
  color:var(--surface); 
  border-radius:50%; 
  cursor:pointer; 
  transition: background 0.2s ease;
}

.remove-btn { 
  margin-top: 10px;
  background:transparent; 
  color:var(--danger); 
  border:1px solid var(--danger); 
  border-radius:6px; 
  padding:5px 12px; 
  cursor:pointer; 
  transition: all 0.3s ease;
}

.remove-btn:hover { 
  background: #e63946; 
  color: #fff; 
}

.cart-summary { 
  text-align: center; 
  margin-top: 30px; 
  color: var(--bg);
  background: var(--text); 
  border-radius: 10px; 
  padding: 20px; 
}

.cart-summary h3 { 
  margin-bottom:10px; 
  color:var(--primary); 
}

#cart-total p { 
  margin: 5px 0; 
  font-size: 1rem; 
  color: var(--bg); 
}

/* Checkout Button */ 
.cart-summary .btn { 
  display: inline-block; 
  color: rgb(0, 0, 0); 
  padding: 12px 25px; 
  border-radius: 8px; 
  text-decoration: none; 
  font-weight: bold; 
  margin-top: 15px; 
  transition: background 0.3s ease; 
} 
.cart-summary .btn:hover { 
  color: var(--surface);
  background: var(--primary-700); 
}

/* Admin / Tables */
.admin-container { 
  width:90%; 
  max-width:1200px; 
  margin:2rem auto; 
  font-family: 'Arial', sans-serif; 
}

.admin-container h2 { 
  text-align: center; 
  margin-bottom: 1.5rem; 
  color: var(--text); 
}

table { 
  width:100%; 
  border-collapse:collapse; 
  margin-top:1.5rem; 
  background: var(--surface); 
  box-shadow: var(--shadow); 
  border-radius:8px; 
  overflow:hidden; 
  border:1px solid var(--border); 
  color: var(--text);
}

th, td { 
  border:1px solid var(--border); 
  padding:12px 15px; 
  text-align:left; 
  color: var(--text);
}

th { 
  background: linear-gradient(90deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01)); 
  color:var(--text); 
  text-transform:uppercase; 
  letter-spacing: 0.05em;
}

tr:hover { 
  background-color: var(--bg); 
  transition: background-color 0.3s ease; 
}

/* status colors */
.status-pending { 
  color: #d97706; 
  font-weight:600; 
}
.status-delivered { 
  color: #16a34a; 
  font-weight:600; 
}

/* generic buttons */
button { 
  padding:6px 12px; 
  background:var(--primary); 
  color:var(--surface); 
  border:0; 
  border-radius:6px; 
  cursor:pointer; 
}

button:hover { 
  opacity:0.96; 
}

/* Search bar & auth pages */
.search-bar {
  display:flex; 
  justify-content:center; 
  align-items:center; 
  gap:8px; 
  margin:10px auto; 
  width:60%; 
  background:var(--surface); 
  border-radius:30px; 
  padding:6px 10px; 
  box-shadow: 0 4px 14px rgba(2,6,23,0.03); 
  border:1px 
  solid var(--border);
}

.search-bar input { 
  flex:1; 
  border:none; 
  outline:none; 
  padding:10px 15px; 
  font-size:1rem; 
  border-radius:30px; 
  color:var(--text); 
  background:transparent; 
}

.search-bar button { 
  background:var(--primary); 
  border:none; 
  color: var(--text); 
  font-weight:600; 
  padding:8px 20px; 
  border-radius:25px; 
}


/* Auth container */
.auth-container {
  max-width:420px; 
  margin:60px auto; 
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01)); 
  padding:35px 30px; 
  border-radius:15px; 
  box-shadow:var(--shadow); 
  border:1px solid var(--border); 
  text-align:center;
}
.auth-container h2 { 
  color:var(--primary); 
  font-size:1.8rem; 
  margin-bottom:10px; 
}

.auth-container p { 
  color: var(--text); 
  font-size: 0.95rem; 
  margin-bottom: 25px; 
}

.auth-container form { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
}

.auth-container input[type="text"], 
.auth-container input[type="email"], 
.auth-container input[type="password"] { 
  padding: 12px 15px; 
  border-radius: 8px; 
  border: 1px solid #ccc; 
  outline: none; 
  font-size: 1rem; 
  transition: border 0.3s ease; 
}

.auth-container input:focus { 
  border-color: var(--border); 
  box-shadow: 0 0 5px rgba(142, 45, 226, 0.3); 
}

.auth-container button { 
  background: var(--primary); 
  color: var(--surface); 
  border: none; 
  padding: 12px 15px; 
  border-radius: 8px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: background 0.3s ease, transform 0.2s ease; 
}

.auth-container button:hover { 
  background: var(--surface);
  color: var(--primary); 
  transform: scale(1.03); 
}

.auth-container a { 
  color: var(--accent); 
  text-decoration: none; 
  font-weight: 500; 
  transition: color 0.3s ease; 
} 

.auth-container a:hover { 
  color: #0385ff; 
}

/* Show Password area */
#showPassContainer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -5px;
  margin-bottom: 15px;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--subtext);
}

#showPass {
  width: 16px;
  height: 16px;
}


/* Checkout page */
.checkout-page { 
  max-width:600px; 
  margin:60px auto; 
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.01)); 
  padding:40px 35px; 
  border-radius:15px; 
  box-shadow:var(--shadow); 
  border:1px solid var(--border); 
  text-align:center; 
}

.checkout-page h2 { 
  color:var(--primary); 
  font-size:1.8rem; 
  margin-bottom:25px; 
}

.checkout-page form { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
}

.checkout-page input[type="text"], 
.checkout-page input[type="number"], 
.checkout-page input[type="email"], 
.checkout-page input[type="tel"], 
.checkout-page textarea { 
  padding: 12px 15px; 
  border-radius: 10px; 
  border: 1px solid #ccc; 
  outline: none; 
  font-size: 1rem; 
  font-family: 'Poppins', sans-serif; 
  transition: border-color 0.3s ease, box-shadow 0.3s ease; 
} 

.checkout-page input:focus, 
.checkout-page textarea:focus { 
  border-color: var(--border); 
  box-shadow: var(--shadow); 
}

.checkout-page textarea { 
  resize: vertical; 
  min-height: 100px; 
}

.checkout-page .btn { 
  background: linear-gradient(90deg, var(--primary), var(--secondary)); 
  color:var(--text); 
}

.checkout-page .btn:hover { 
  background: linear-gradient(90deg, var(--secondary), var(--primary)); 
  transform: scale(1.03); 
}

/* Payment Method Section */ 
#paymentMethod { 
  text-align: center;
  width: 100%; 
  padding: 10px 12px; 
  margin-top: 6px; 
  border: 1px solid var(--border); 
  border-radius: 6px; 
  font-size: 14px; 
  outline: none; 
  transition: all 0.2s ease-in-out; 
} 

#paymentMethod:focus { 
  border-color: var(--border); 
  box-shadow: 0 0 4px var(--shadow); 
}

/* manual instructions */
#manualInstructions { 
  display:none; 
  margin-top:15px; 
  padding:15px 18px; 
  background: var(--bg); 
  border-radius:8px; 
  border:4px solid var(--primary); 
  color:var(--subtext); 
}

/* Manual Payment Instructions Box */ 
#manualInstructions { 
  display: none;  
  margin-top: 15px; 
  padding: 15px 18px; 
  background-color: var(--bg); 
  border-radius: 8px; 
  border: 4px solid var(--border); 
  font-size: 14px; 
  color: var(--text); 
  line-height: 1.6; 
} 

#manualInstructions p { 
  font-weight: 600; 
  margin-bottom: 8px; 
} 

#manualInstructions ol { 
  padding-left: 20px; 
  margin-top: 8px; 
} 

#manualInstructions li { 
  margin-bottom: 6px; } 

/* Buttons inside manual instructions */ 
#manualInstructions .btn { 
  display: inline-block; 
  padding: 10px 16px; 
  font-size: 14px; 
  border: none; 
  border-radius: 6px; 
  cursor: pointer; 
  margin-top: 10px; 
  transition: background 0.2s; 
  color: var(--surface); 
  background-color: var(--bg); 
} 

#manualInstructions .btn:hover { 
  background-color: var(--accent); 
} 

/* Reset Cart Button Styling */ 
#resetCartBtn { 
  background-color: red; } 

#resetCartBtn:hover { 
  background-color: darkred; 
}

#confirmManualBtn{
  background-color: rgb(0, 56, 139)
}

#confirmManualBtn:hover{
  background-color: rgb(0, 102, 255);
}

.product-request .btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.product-request:hover {
  background: var(--bg);
  color: var(--subtext);
}

/* SEARCH RESULTS GRID */
#resultsContainer {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

#resultsContainer h2 {
  grid-column: 1 / -1; 
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-color);
}

#resultsContainer p {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1rem;
  color: var(--text);
  margin-top: 20px;
}

#resultsContainer .product-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background: rgb(255, 255, 255);
  box-shadow: 0 6px 18px var(--shadow);
  text-align:center;
  transition: transform 0.28s ease;
  width:100%;
  max-width:220px; 
  border-radius:10px;
  overflow:hidden;
  height:340px; 
  border: 1px solid var(--border);

}

#resultsContainer .product-card:hover { 
  transform: translateY(-5px); 
}

#resultsContainer .product-card img {
  width:100%;
  height:150px; 
  object-fit:contain;
  border-top-left-radius:10px;
  border-top-right-radius:10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.01), rgba(0,0,0,0.02));
}
#resultsContainer .product-card h3 { 
  font-size:1rem; 
  font-weight:600; 
  margin:8px 0 3px; 
  color:var(--text); 
}

#resultsContainer .product-card p { 
  color:var(--text); 
  font-size:0.9rem; 
}

#resultsContainer .product-card .price { 
  color: var(--text); 
  font-weight:700; 
  margin:6px 0; 
}

#resultsContainer .product-details {
  border-radius: 8px;
  color: var(--text);
  background: var(--bg);
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  align-items: center;
}

#resultsContainer .product-details button {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: var(--text);
  border:none;
  border-radius:20px;
  padding:8px 14px;
  font-weight:600;
  cursor:pointer;
  margin-bottom: 2px;
  width:80%;
}
#resultsContainer .product-details button:hover { 
  transform: translateY(-2px); 
  background-color: rgb(12, 117, 143); 
}



.more-products{
  text-align: center;
  box-shadow: var(--shadow);
  background-color: var(--muted);
  margin-top: 5px;
  padding: 10px 5px;
}


/* FOOTER */
footer {
  background: var(--subtext);
  color: var(--bg);
  text-align: center;
  border-radius: 15px 15px 0 0;
  padding: 20px 10px;
  margin-top: 30px;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  line-height: 1.6;
}

footer a {
  color: rgb(74, 124, 199);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

footer a:hover {
  color: blue;
  background: var(--primary-700);
}

footer p {
  margin: 6px 0;
}

footer strong {
  color: var(--bg);
}


