/* ZaniMart - Full style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');


:root {
  
  --primary: #15803d;       
  --primary-700: #065f46cc;   
  --secondary: #16a34a;     
  --accent: #635400;        
  --bg: #d9ffe4;            
  --surface: #c1e0be;       
  --muted: #e6ffee;         
  --text: #111827;          
  --subtext: #374151;
  --border: rgba(0,0,0,0.06);

  
  --danger: #e11d48;
  --success: #16a34a;
  --shadow: 0 6px 18px rgba(4, 17, 6, 0.06);

  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: all 0.28s ease;
}


@media (prefers-color-scheme: dark) {
  :root {
    --primary: #065f46f5;     
    --primary-700: #043d2ef3;
    --secondary: #04553e;   
    --accent: #ffc60c;      
    --bg: #081229dc;          
    --surface: #081635;     
    --muted: #071326;
    --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%;
  margin: 5px auto;
}

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);
  overflow-x: hidden;
}


a { 
  color: var(--primary); 
  text-decoration: none; 
}

a:hover { 
  opacity: 0.92; 
}


.btn {
  display: inline-block;
  background: var(--primary-700);
  color: var(--subtext);
  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 {
  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: right;
  gap: 12px;
  height: 60px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 40px;
  width: 40px;
  border-radius: 12px;
  padding: 6px;
}

header h1 {
  font-size: 1.6rem;
  flex-grow: 1;
  text-align: right;
  margin-right: 5px;
  color: var(--text);
}


.menu-toggle { 
  display: none; 
  font-size: 1.8rem; 
  cursor: pointer; 
}


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);
}


.hero {
  background: linear-gradient(90deg, var(--secondary), var(--primary-700));
  border-radius: 15px;
  text-align: center;
  padding: 70px 10px;
  height: 320px;
  box-shadow: var(--shadow);
  margin-top: 15px;
}
.hero h2 { 
  font-size: 2.5rem; 
  margin-bottom: 15px; 
  padding: 5px;
  color: var(--surface); 
}

.hero p {  
  margin: 20px; 
  padding: 7px; 
  font-size: 1.8rem;
  color: var(--subtext);
}

.featuredSection {
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:3px;
  margin:5px;
  flex-wrap:nowrap;
  overflow-x:hidden;
  box-sizing:border-box;
  box-shadow: var(--subtext);
}


.featuredProducts {
  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:400px;
  border: 1px solid var(--border);
}
.featuredProducts h2 { 
  text-align:center; 
  margin-bottom:10px; 
  font-size:1.4rem; 
  color:var(--text); 
  border-bottom:2px solid rgba(0, 0, 0, 0.74); 
  padding-bottom:5px; 
}

.featuredProducts 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; 
}

.featuredProducts a { 
  display:block; 
  color:var(--subtext); 
  text-decoration:none; 
  font-weight:600; 
  padding:8px 12px; 
  margin:5px 0; 
  border-radius:8px; 
  transition: var(--transition); 
}

.featuredProducts a:hover, .featuredProducts a.active { 
  background: var(--subtext);
  color: var(--primary); 
}

.brands {
  display: flex;
  gap: 2px;
  padding: 2px 2px 3px; 
  overflow-x: auto;
  scroll-behavior: smooth;

  -webkit-overflow-scrolling: touch;
}

.brands::-webkit-scrollbar {
  height: 6px;
}

.brands::-webkit-scrollbar-track {
  background: var(--muted);
  border-radius: 10px;
}

.brands::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

.brands {
  scrollbar-width: thin;
  scrollbar-color: var(--primary);
}

.brands a {
  flex: 0 0 auto;      
  width: 110px;
  height: 70px;
  background: var(--muted);
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.brands a:hover {
  transform: scale(1.05);
}

.brands img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}


#offerBanner {  
  overflow:none; 
  display:flex; 
  justify-content:center; 
  align-items:center;
  margin: 5px auto;
  animation: fadeIn 3s ease-in-out;
  height: 400px;
  width: 1300px;
}

#offerBanner img {
  height:100%; 
  width:1290px; 
  border-radius:12px; 
  object-fit:cover; 
  animation: heartbeat 3s infinite ease-in-out;
  transition: .3s;
}

@keyframes fadeIn {
  from { opacity:0; transform:translateY(-10px); }
  to { opacity:1; transform:translateY(0); }
}

@keyframes heartbeat {
  0%,100% { transform:scale(1); }
  50% { transform:scale(1.02); }
}

.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-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;  
  font-size: larger;
}

.about-section a{
  color: var(--subtext);
  background: var(--border);
  font-size: large;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: var(--border);
}

.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-size: large; 
  color: var(--subtext); 
}


.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); 
  font-size: larger;
}

.contact-section h2 { 
  color: var(--text); 
  margin-bottom:10px; 
}

.contact-section p { 
  color: var(--subtext); 
  margin-bottom:20px;
}


.contact-form { 
  display:flex; 
  flex-direction:column; 
  gap:12px; 
  max-width:600px; 
  margin:0 auto; 
}


.contact-form,
.contact-form input,
.contact-form textarea,
.contact-form label,
.contact-form button {
  font-family: Arial, sans-serif;
}

.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); 
}


.products-grid {
  column-count: 6;  
  column-gap: 3px;
  padding: 1px;
}


.product-card {
  display: inline-block;    
  width: 100%;
  margin-bottom: 1px;      
  
  background: #fff;
  box-shadow: 0 6px 18px var(--shadow);
  text-align: center;
  transition: transform 0.28s ease;
  overflow: hidden;
  border: 1px solid var(--border);
}


.product-card img {
  margin: 5px auto;
  width:100%;
  height:100%; 
  object-fit:cover;
  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:4px 0; 
  color:var(--text); 
}

.product-card p { 
  color:var(--text); 
  font-size:0.9rem; 
  margin: 3px 0;
}

.product-card .price { 
  color: var(--text); 
  font-weight:700; 
  margin:4px 0; 
}

.product-details {
  color: var(--text);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 5px;
  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;
  width:80%;
}
.product-details button:hover { 
  transform: translateY(-2px); 
  background-color: rgb(12, 117, 143); 
}


#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;
}


#imagePreviewModal img.zoomed {
  transform: scale(4); 
  cursor: zoom-out;
}


.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 {
  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:480px;
  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);
  color: var(--primary); 
}


.banner-box { 
  height:480px; 
  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:475px; 
  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:480px; 
  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 {
  width: 395px;
  height: 480px;
  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);
  overflow: hidden;
}

.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 { 
  display:grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap:3px; 
  padding:5px; 
}

.top-selling .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:320px; 
  border-radius:10px; 
  overflow:hidden;
  border: 1px solid var(--border); 
} 

.top-selling .product-card img { 
  margin: 5px auto; 
  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)); 
} 

.top-selling .product-card h3 { 
  font-size:1rem; 
  font-weight:600; 
  margin:8px 0 3px; 
  color:var(--text); 
} 

.top-selling .product-card p { 
  color:var(--text); 
  font-size:0.9rem; 
} 

.top-selling .product-card .price { 
  color: var(--text); 
  font-weight:700; 
  margin:6px 0; 
} 

.top-selling .product-details { 
  border-radius: 8px; 
  color: var(--text); 
  background: var(--surface);
  display: flex; 
  flex-direction: column; 
  padding: 5px; 
  align-items: center; 
} 

.top-selling .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%; 
}

.top-selling .product-details button:hover { 
  transform: translateY(-2px); 
  background-color: rgb(12, 117, 143); 
}


.top-selling-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}


.slide-track {
  display: flex;
  animation: scroll 25s linear infinite; 
  width: calc(230px * 8); 
}


.slide-track .product-card {
  width: 220px;
  margin-right: 10px;
  flex-shrink: 0;
}


@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-230px * 4)); 
  }
}



.cart-page {
  max-width:900px;
  margin:40px auto;
  padding:5px;
  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-item { 
  display:flex; 
  align-items:center; 
  justify-content:flex-start; 
  gap:2px; 
  border-bottom:1px solid var(--border); 
  padding:2px 0; 
  transition: background 0.3s ease; 
}


.cart-item img { 
  width:90px; 
  height:90px; 
  border-radius:10px; 
  object-fit:cover; 
  flex-shrink:0; 
}


.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 { 
  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); 
}


.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); 
}

.checklist-page {
  margin: 3px auto 0;
  padding: 0 3px;
}

.checklist-page h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--text);
}

#checklist-items {
  column-count: 6;
  column-gap: 3px;
  padding: 3px;
}

.checklist-item {
  display: inline-block;    
  width: 100%;
  margin-bottom: 2px;

  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.checklist-item img {
  width: 100%;
  height: 100%;
  background: white;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.checklist-info {
  padding: 7px 7px 8px;
  display: flex;
  flex-direction: column;
}

.checklist-info h4 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.3;
}

.checklist-info p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.checklist-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 2px;
}

.remove-btn {
  flex: 1;
  padding: 9px 10px;
  font-size: 0.85rem;
  border-radius: 10px;
  border: none;
  background: var(--bg);
  color: #c62828;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.remove-btn i {
  font-size: 16px;
}

.remove-btn:hover {
  background: var(--primary-700);
  color: var(--text);
  transform: translateY(-1px);
}

#checklist-items p {
  column-span: all;
  background: var(--bg);
  padding: 30px 15px;
  border-radius: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  color: #666;
  margin: 10px 0;
}


.product-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.icon-btn {
  flex: 1;
  height: 38px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #f3f5f9;
  color: var(--subtext);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Wishlist active */
.icon-btn.active {
  background: #ffecec;
  color: crimson;
}


.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-pending { 
  color: #d97706; 
  font-weight:600; 
}
.status-delivered { 
  color: #16a34a; 
  font-weight:600; 
}


button { 
  padding:6px 12px; 
  background:var(--primary); 
  color:var(--surface); 
  border:0; 
  border-radius:6px; 
  cursor:pointer; 
}

button:hover { 
  opacity:0.96; 
}


.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; 
}

.offer-admin-box{
    width: 400px;
    margin:40px auto;
    background:var(--bg);
    padding:20px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.15);
    text-align:center;
}

.offer-admin-box select, .offer-admin-box button{
    width:100%;
    padding:12px;
    margin-top:12px;
    border-radius:8px;
    font-size:1rem;
}

.offer-admin-box button{
    background:linear-gradient(90deg,#0a9,#06c);
    color:var(--text);
    font-weight:700;
    cursor:pointer;
    border:none;
}

.offer-admin-box button:hover{
    opacity:.9;
}

#offerSelect {
  color: var(--subtext);
  background: var(--bg);
}

#countdown, #offerTitle {
  font-size:16px;
  font-weight:bold;
  text-align:center;
  margin-top:10px;
  color: var(--bg);
  background: var(--accent);
  border-radius: 15px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  margin-left:auto;
  margin-right:auto;
}

#offerTitle {
  font-size:20px;
  font-weight:bold;
  text-align:center;
  margin-top:10px;
  color: var(--subtext);
  background: var(--primary);
  border-radius: 15px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  margin-left:auto;
  margin-right:auto;
}

.countdownDisplay {
  color:#ef0101;
  font-size:16px;
}

.countdown{
    display:none;
    text-align:center;
    font-size:16px;
    font-weight:700;
    width:100%;
    margin-top:15px;
    margin-bottom:20px;
    background:var(--subtext);
    color:var(--bg);
    padding:10px 25px;
    border-radius:8px;
    transition:.4s ease;
    max-width:320px;
    margin-left:auto;
    margin-right:auto;
}


.countdown.warning{
    background:rgb(241, 48, 48);
    animation:pulseAlert 1s linear infinite;
}


.countdown.final{
    background:#ff0000;
    color:white;
    font-size:16px;
    animation:finalFlash .4s alternate infinite;
}


@keyframes pulseAlert{
    0%   { transform:scale(1); }
    50%  { transform:scale(1.02); }
    100% { transform:scale(1); }
}


@keyframes finalFlash{
    0%  { opacity:1; transform:scale(1.1); }
    100%{ opacity:0.4; transform:scale(0.95); }
}


.offers-grid {
  column-count: 6;
  column-gap: 3px;
  padding: 3px;
}

.offer-card {
  display: inline-block;     
  width: 100%;
  margin-bottom: 2px;  

  background: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .3s ease;
}


.offer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(180deg,#fafafa,#f1f1f1);
}


.offer-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 3px;
  padding: 0 8px;
  text-align: center;
}

.price-box {
  margin-top: 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.old-price {
  text-decoration: line-through;
  color: #888;
  font-size: .9rem;
}

.new-price {
  color: #d62828;
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: -3px;
}


.offer-details {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  background: var(--surface);
}

.offer-details button {
  background: linear-gradient(to right, var(--primary), var(--primary-700));
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 10px;
  width: 85%;
  font-weight: 700;
  cursor: pointer;
  transition: .25s ease;
  margin-top: auto;
}

.offer-details button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}



.price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 2px 0;
}

.old-price {
  text-decoration: line-through;
  color: var(--subtext); 
  font-size: 0.95rem;
}

.new-price {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.discount-badge {
  background: red;
  color: white;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  margin-top: 1px;
  box-shadow: 0 4px 14px rgba(5,50,20,0.12);
}

.offer-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
}


#offerCountdown {
    text-align: center;
    background: var(--primary);
    padding: 25px;
    border-radius: 15px;
    margin: 30px auto;
    width: 85%;
    max-width: 700px;
    color: var(--subtext);
    font-family: "Poppins", sans-serif;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: fadeIn 1s ease-in-out;
}


#offerCountdown h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: 1px;
}


#offerCountdown h3 {
    font-size: 20px;
    margin: 5px 0;
    font-weight: 600;
}


#offerCountdown h3 b {
    font-size: 20px;
    background: var(--bg);
    padding: 8px 12px;
    border-radius: 8px;
}


#offerCountdown p {
    font-size: 16px;
    margin-top: 4px;
    font-weight: 500;
    opacity: 0.9;
}


.urgent b {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 8px rgba(255,255,255,0.5); }
    50% { box-shadow: 0 0 18px white; }
    100% { box-shadow: 0 0 8px rgba(255,255,255,0.5); }
}


@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
}


.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; 
}


#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 { 
  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); 
}


#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); 
}


#manualInstructions { 
  display:none; 
  margin-top:15px; 
  padding:15px 18px; 
  background: var(--bg); 
  border-radius:8px; 
  border:4px solid var(--primary); 
  color:var(--subtext); 
}


#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; } 

  
#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); 
} 


#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);
}


#resultsContainer {
  column-count: 6;
  column-gap: 3px;
  padding: 3;
  width: 100%;
  box-sizing: border-box;
}

#resultsContainer h2,
#resultsContainer p {
  column-span: all;
  text-align: center;
  margin: 10px 0;
  color: var(--text);
}

#resultsContainer .product-card {
  display: inline-block;  
  width: 100%;
  margin-bottom: 1px;

  background: #fff;
  box-shadow: 0 6px 18px var(--shadow);
  text-align: center;
  transition: transform 0.28s ease;
  border: 1px solid var(--border);
  overflow: hidden;
}


#resultsContainer .product-card img {
  width:100%;
  height:100%; 
  object-fit:cover;
  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 {
  color: var(--text);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  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 {
  background: var(--subtext);
  color: var(--bg);
  text-align: center;
  border-radius: 15px;
  padding: 20px 10px;
  margin-top: 80px;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: var(--shadow);
}


body {
  padding-bottom: 72px;
}

footer a {
  color: rgb(74, 124, 199);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--text);
  background: var(--bg);
  border-radius: 12px;
}

footer p {
  margin: 6px 0;
}

footer strong {
  color: var(--bg);
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;     
  height: 35px;    
  background: var(--bg);
  border-radius: 50%;
  color: var(--text);
  transition: .3s ease;
  box-shadow: var(--shadow);
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.12); 
}

.social-icons svg {
  width: 33px;
  height: 33px;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; 
  border-radius: 5px;
  background: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 5px solid var(--shadow);
  z-index: 999;
  padding: 0 5px; 
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}


.bottom-bar .nav-item {
  flex: 1; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
}

.bottom-bar .nav-item i {
  font-size: 22px;
  margin-bottom: 4px;
}


.bottom-bar .nav-item:hover {
  color: var(--accent);
}



.cart-item {
  position: relative;
  display: inline-flex;       
  justify-content: center;
  align-items: center;
  flex: none;                 
}


.cart-count {
  position: absolute;
  top: -6px;                  
  right: 136px;                
  background: var(--primary);
  color: var(--subtext);
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;       
}

@keyframes bounce {
   0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)}
}

.cart-bounce { 
  animation: bounce 0.4s ease; 
}



.bottom-bar .nav-item:hover i {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.blank {
  height: 120px;
}

#scrollToTopBtn {
  display: none; 
  position: fixed;
  bottom: 100px;
  right: 1px;
  z-index: 100; 
  background-color: var(--primary-700); 
  color: var(--text);
  border: none;
  padding: 11px 13px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s;
}

#scrollToTopBtn:hover {
  background-color: var(--primary);
  transform: scale(1.1);
}

.admin-products {
  background: var(--surface);
  margin:20px 60px;
  border-radius:10px;
}

.product-form {
  display:grid;
  gap:12px;
}

.product-form input,
.product-form select,
.product-form textarea,
.product-form button {
  padding:10px;
  border-radius:6px;
  border:none;
  color: var(--bg);
  background: var(--subtext);
}

#variantsBox div {
  display:flex;
  gap:10px;
  margin-top:8px;
}

#adminProductList li {
  display:flex;
  justify-content:space-between;
  padding:10px;
  border-bottom:1px solid #333;
}

.product-form button {
  background: var(--accent);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 14px rgba(255, 122, 0, 0.25);
}

.product-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.35);
}

.product-form button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(255, 122, 0, 0.25);
}

#addVariant {
  background: transparent;
  color: var(--accent);
  border: 2px dashed var(--primary-700);
  box-shadow: none;
  font-weight: 600;
}

#addVariant:hover {
  background: rgba(255, 152, 0, 0.12);
  border-style: solid;
}

.product-form button[type="submit"] {
  margin-top: 12px;
  font-size: 1rem;
  letter-spacing: 0.4px;
}

.product-form button:disabled {
  background: var(--subtext);
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}

.product-form,
.product-form * {
  font-family: Arial, Helvetica, sans-serif;
}

#variantsBox > div {
    flex-direction: column;
  }