/* CSS Variables for Theme */
:root {
  --primary-color: #007e26;
  --primary-dark: #047857;
  --secondary-color: #f59e0b;
  --accent-color: #ef4444;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 5px;
  --header-height: 80px;

  --max-width: 1400px;
  --control-size: clamp(36px, 3.2vw, 56px);
  --dot-size: clamp(10px, 1.5vw, 14px);
  --dot-gap: clamp(6px, 1vw, 12px);
  --bg: #0b0d10;
  --ink: #e7edf3;
  --accent: #4da3ff;
  --accent-2: #7b5cff;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --bg-primary: #000000;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  --border-color: #4b5563;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.4);
}

@font-face {
  font-family: "MyBanglaFont";
  src: url("fonts/MyBanglaFont.woff2") format("woff2"),
    url("./fonts/kalpurush.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Reset and Base Styles */

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}
.wrap {
  width: min(var(--max-width), 100%);
  margin: 80px auto 0;
}
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1584 / 396;
  overflow: hidden;
  background: #000;
}
@supports not (aspect-ratio: 1) {
  .slider {
    height: 0;
    padding-top: calc(396 / 1584 * 100%);
  }
  .slider > * {
    position: absolute;
    inset: 0;
  }
}
.track {
  display: flex;
  height: 100%;
  transition: transform 900ms ease;
}
.slide {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  user-select: none;
  -webkit-user-drag: none;
  animation: cascadeFade 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.178), transparent);
  color: white;
  animation: cascadeUp 0.8s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
.overlay img {
  margin: 5px 0 0;
  max-height: 100px;
  width: auto;
  background-color: transparent;
  border-radius: 50%;
}

@keyframes cascadeFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(1.05);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes cascadeUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 10px;
}
.nav button {
  pointer-events: auto;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.466);
  width: var(--control-size);
  height: var(--control-size);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.nav button:hover {
  background: rgba(0, 0, 0, 0.568);
  transform: scale(1.15);
}

/* ডট স্টাইল মোবাইল ফ্রেন্ডলি ও সুন্দর করা হলো */
.dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--dot-gap);
}
.dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.dot:hover {
  transform: scale(1.3);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px rgba(77, 163, 255, 0.6);
}
.dot[aria-current="true"] {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(77, 163, 255, 0.6);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: var(--header-height);
}

.header.hidden {
  transform: translateY(-100%);
}

.header.scrolled {
  box-shadow: var(--shadow-medium);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav-brand img {
  max-height: 100px;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-nav a:hover {
  color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-container {
  display: none;
  position: relative;
}

.search-input {
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  width: 250px;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--primary-color);
}

.theme-toggle,
.cart-btn,
.wishlist-btn,
.user-btn,
.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.theme-toggle:hover,
.cart-btn:hover,
.wishlist-btn:hover,
.user-btn:hover,
.mobile-menu-btn:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.cart-count,
.wishlist-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn {
  display: block;
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-primary);
  z-index: 1999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-heavy);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 5px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.mobile-nav-close:hover {
  background: var(--bg-secondary);
  color: var(--accent-color);
}

.mobile-nav-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.mobile-search {
  position: relative;
  margin-bottom: 20px;
}

.mobile-search-input {
  width: 100%;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.mobile-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.mobile-search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.mobile-search-btn:hover {
  color: var(--primary-color);
}

.mobile-nav-menu {
  list-style: none;
}

.mobile-nav-menu li {
  margin-bottom: 8px;
}

.mobile-nav-menu a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.mobile-nav-menu a:hover {
  color: var(--primary-color);
  background: var(--bg-secondary);
  padding-left: 12px;
}

/* Mobile Dropdown */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  margin-top: 8px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 300px;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
  transform: rotate(180deg);
}

.mobile-dropdown-menu a {
  padding: 10px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-dropdown-menu a:last-child {
  border-bottom: none;
}

/* Hero Slider */

/* Products Section */
.products-section {
  padding: 30px 0;
  background-color: #cbd3e44d;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1.2rem;
  color: #007413;
  font-family: "MyBanglaFont";
}

.product-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid #059669;
  color: #059669;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid rgb(190, 190, 190);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-image {
  position: relative;
  height: 200px; /* ইমেজের উচ্চতা কমিয়ে দিন */
  overflow: hidden;
  border-bottom: 1px solid rgb(175, 175, 175);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.404);
  color: white;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-actions {
  opacity: 1;
}

.action-btn {
  background: rgba(0, 187, 9, 0.9);
  border: none;
  color: #fff;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.action-btn:hover {
  background: rgb(0, 133, 55);
  color: white;
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-family: "MyBanglaFont";
  font-weight: 200;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
}

.star {
  color: #fbbf24;
  font-size: 0.9rem;
}

.rating-count {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.current-price {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.original-price {
  color: var(--text-secondary);
  text-decoration: line-through;
}

.add-to-cart-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
}

/* Footer */
.footer {
  background: #475569;
  color: #ffffff;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: #10b981;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #10b981;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: #059669;
  transform: translateY(-2px);
}

.newsletter {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  outline: none;
}

.newsletter button {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.newsletter button:hover {
  background: #059669;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #6b7280;
  color: #9ca3af;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-heavy);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 1;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent-color);
}

/* Product Details Modal */
.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  min-width: 600px;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.thumbnail-images {
  display: flex;
  gap: 0.5rem;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  opacity: 1;
  border: 2px solid var(--primary-color);
}

.product-details-info h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.product-details-info .product-rating {
  margin-bottom: 1rem;
}

.product-details-info .product-price {
  margin-bottom: 1.5rem;
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.quantity-btn {
  background: none;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
}

.quantity-btn:hover {
  background: var(--bg-secondary);
}

.quantity-input {
  border: none;
  padding: 10px;
  width: 60px;
  text-align: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.product-actions-modal {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  flex: 1;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
}

/* Cart Modal */
.cart-content,
.wishlist-content {
  padding: 2rem;
  min-width: 500px;
}

.cart-content h2,
.wishlist-content h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.cart-item,
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child,
.wishlist-item:last-child {
  border-bottom: none;
}

.item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.item-info {
  flex: 1;
}

.item-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.remove-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
}

.remove-btn:hover {
  background: #dc2626;
}

.cart-total {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.cart-total h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.checkout-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1.1rem;
}

.checkout-btn:hover {
  background: var(--primary-dark);
}

/* User Modal */
.user-content {
  padding: 2rem;
  min-width: 400px;
}

.login-form,
.register-form,
.profile-info {
  display: none;
}

.login-form.active,
.register-form.active,
.profile-info.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-toggle {
  text-align: center;
  margin-top: 1rem;
}

.form-toggle a {
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
}

.form-toggle a:hover {
  text-decoration: underline;
}

/* OTP Modal */
.otp-content {
  padding: 2rem;
  text-align: center;
  min-width: 400px;
}

.otp-content h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.otp-content p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: var(--transition);
}

.otp-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.verify-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  margin-bottom: 1rem;
}

.verify-btn:hover {
  background: var(--primary-dark);
}

.resend-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
  transition: var(--transition);
}

.resend-btn:hover {
  color: var(--primary-dark);
}

/* Notification */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  z-index: 3000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.error {
  background: var(--accent-color);
}

.notification.success {
  background: var(--primary-color);
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: #f8f9fa;
}

/* Floating Contact Button */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
}

.contact-toggle {
  display: none;
}

.contact-button {
  width: 60px;
  height: 60px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

/* স্থির টুলটিপ কন্টেইনার */
.static-tooltip {
  position: relative;
  margin-right: 15px;
}

/* স্থির টুলটিপ */
.static-tooltip::after {
  content: "পাইকারি পন্য নিতে, অথবা কোন সমস্যা হলে যোগাযোগ করুন।";
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  padding: 12px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  color: #333;
  font-size: 14px;
  text-align: center;
  opacity: 1;
  pointer-events: none;
}

/* স্থির তীর */
.static-tooltip::before {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid rgba(82, 82, 82, 0.37);
  opacity: 1;
  filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.1));
}

.contact-toggle:checked + .contact-button {
  transform: rotate(360deg);
  background: rgb(0, 90, 38);
  animation: none;
}

.contact-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 200px;
  padding: 10px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transform-origin: bottom right;
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-toggle:checked ~ .contact-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  transform: translateX(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.contact-toggle:checked ~ .contact-menu .contact-item {
  transform: translateX(0);
  opacity: 1;
}

.contact-toggle:checked ~ .contact-menu .contact-item:nth-child(1) {
  transition-delay: 0.1s;
}

.contact-toggle:checked ~ .contact-menu .contact-item:nth-child(2) {
  transition-delay: 0.2s;
}

.contact-toggle:checked ~ .contact-menu .contact-item:nth-child(3) {
  transition-delay: 0.3s;
}

.contact-item i {
  font-size: 20px;
  margin-right: 10px;
}

.contact-item span {
  font-size: 14px;
  font-weight: 500;
}

.messenger {
  background: #0084ff;
}

.whatsapp {
  background: #25d366;
}

.phone {
  background: #075e54;
}

.contact-item:hover {
  transform: translateX(5px) !important;
}

/* Responsive Design */
@media (min-width: 768px) {
  /* 768px desktop size */
  .desktop-nav {
    display: block;
  }

  .search-container {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .slide-content h2 {
    font-size: 4rem;
  }

  .categories-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .products-header {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    height: 50vh;
    min-height: 300px;
  }

  .slide-content h2 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
  }

  .products-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .product-filters {
    justify-content: center;
  }

  .product-details {
    grid-template-columns: 1fr;
    min-width: auto;
    max-width: 90vw;
  }

  .cart-content,
  .wishlist-content,
  .user-content {
    min-width: auto;
    max-width: 90vw;
  }

  .otp-content {
    min-width: auto;
    max-width: 90vw;
  }

  .otp-inputs {
    gap: 0.3rem;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .product-card .product-actions {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .slide-content {
    padding: 0 15px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .cart-item,
  .wishlist-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .item-image {
    width: 100%;
    height: 150px;
  }
  .product-card .product-actions {
    opacity: 1;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.4);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* মোবাইল ও ট্যাবলেট স্ক্রীনে overlay ছোট এবং বাটন লুকানো */
@media (max-width: 1024px) {
  .nav button {
    display: none;
  }
  .overlay {
    padding: 0.1px;
  }
  .overlay img {
    max-height: 40px;
  }
  .slider {
    aspect-ratio: 1584 / 350; /* একটু বেশি উল্লম্ব */
  }
  .product-card .product-actions {
    opacity: 1;
  }
}

/* মোবাইল: হাইট আরও বেশি */
@media (max-width: 600px) {
  .slider {
    aspect-ratio: 1584 / 320; /* উল্লম্ব আরও বেশি */
  }
  .product-card .product-actions {
    opacity: 1;
  }
}
