/* ===== DeshiFresh Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --primary: #c0392b;
  --primary-dark: #922b21;
  --primary-light: #f9ebea;
  --accent: #e67e22;
  --accent-light: #fef5ec;
  --green: #27ae60;
  --green-light: #eafaf1;
  --dark: #1a1a1a;
  --text: #333;
  --text-muted: #777;
  --border: #e8e8e8;
  --bg: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.14);
  --radius: 10px;
  --font-body: 'DM Sans', sans-serif;
  --font-bangla: 'Hind Siliguri', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: var(--font-body); }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  padding: 6px 0;
  text-align: center;
}
.topbar a { color: #f0ad4e; margin: 0 4px; }

/* ===== HEADER ===== */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  font-family: var(--font-bangla);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.logo-text span { color: var(--accent); }

.location-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}
.location-btn svg { color: var(--primary); }

.search-bar {
  flex: 1;
  display: flex;
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
}
.search-bar input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  font-size: 14px;
}
.search-bar button {
  background: var(--primary);
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  color: white;
  font-size: 16px;
  transition: background 0.2s;
}
.search-bar button:hover { background: var(--primary-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-action-btn:hover { background: var(--bg); }
.header-action-btn strong { font-size: 14px; }

.cart-btn {
  background: var(--primary);
  color: white !important;
  border-radius: 8px;
  padding: 8px 16px !important;
  position: relative;
}
.cart-btn:hover { background: var(--primary-dark) !important; }

.cart-count {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== NAV ===== */
nav {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255,255,255,0.15);
  color: white;
}
.nav-link.all-btn {
  background: rgba(0,0,0,0.2);
  font-weight: 600;
}

/* ===== CONTAINER ===== */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(192,57,43,0.35); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: #d35400; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-green { background: var(--green); color: white; }
.btn-green:hover { background: #1e8449; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
}
.product-badge.fresh { background: var(--green); }
.product-badge.sale { background: var(--accent); }

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 2;
  transition: transform 0.2s;
}
.product-wishlist:hover { transform: scale(1.15); }

.product-img {
  height: 180px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-img img { transform: scale(1.06); }

.product-info { padding: 14px; }
.product-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-weight { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.stars { color: #f39c12; font-size: 13px; }

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.price-main { font-size: 18px; font-weight: 700; color: var(--primary); }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-unit { font-size: 11px; color: var(--text-muted); }

.add-to-cart {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.qty-control button {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  font-size: 16px;
  color: var(--text);
  transition: background 0.2s;
}
.qty-control button:hover { background: var(--primary); color: white; }
.qty-control span {
  width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ===== SECTION HEADING ===== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-head h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--dark);
}
.section-head h2 span { color: var(--primary); }
.see-all {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.see-all:hover { text-decoration: underline; }

/* ===== GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: #bbb;
  margin-top: 60px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 36px;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.footer-brand .logo-text { font-size: 26px; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; color: #999; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
  cursor: pointer;

 color: #ccc;          
  text-decoration: none; 
  
}
.social-btn:hover { background: var(--primary); color: white; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13.5px; color: #999; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}
.payment-icons { display: flex; gap: 8px; }
.pay-icon {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #ccc;
}

/* ===== ALERT / TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-main { flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-main { padding: 10px 14px; }
  .location-btn, .header-action-btn:not(.cart-btn) { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}