/*
Theme Name: Vinayak Pharmacy
Theme URI: https://vmghealth.in
Author: Vinayak Pharmacy
Description: Welcome to Vinayak Pharmacy
Version: 1.1
Text Domain: vmghealth.in
Tags: pharmacy, medical, ecommerce
*/

/* =========================
   Base Styles
========================= */
body {
  margin: 0;
  padding-top: 108px; /* 60 (top-bar) + 48 (main-nav) */
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #333;
  line-height: 1.5;
  font-size: 15px;
}

/* Reset margins for main content to avoid gaps */
main, .content, section:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

/* =========================
   Top Bar
========================= */
.top-bar {
  background: #f9fdfc;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top-bar .left,
.top-bar .right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo img {
  height: 36px;
  display: block;
}

/* Delivery Info */
.delivery {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
}

.delivery .text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.delivery .label {
  font-size: 12px;
  color: #555;
}

.delivery .select {
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

/* Icons: Cart, Login, etc. */
.icon-btn,
.cart,
.login-btn {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.icon-btn:hover,
.cart:hover,
.login-btn:hover {
  color: #0073aa;
}

/* Cart Count */
.cart {
  position: relative;
}

.cart .cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff3366;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Login Button */
.login-btn {
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #f1f1f1;
}
/* =========================
   Profile Sidebar (Overlay Style)
========================= */
.profile-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4); /* Dim background */
  display: none;
  z-index: 1000;
}

.profile-sidebar-overlay.active {
  display: block;
}

.profile-sidebar {
  position: fixed;
  top: 0;
  right: -320px; /* Initially off-screen */
  width: 320px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
  z-index: 1001;
}

.profile-sidebar.open {
  right: 0;
}

.profile-sidebar-inner {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.profile-sidebar .close-btn {
  background: none;
  border: none;
  font-size: 24px;
  float: right;
  cursor: pointer;
  line-height: 1;
}

.profile-sidebar h2 {
  margin-top: 0;
  font-size: 20px;
  color: #064c3c;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.profile-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.profile-sidebar ul li {
  margin-bottom: 10px;
}

.profile-sidebar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.profile-sidebar ul li a:hover {
  background-color: #f1f1f1;
}

/* Responsive adjustment */
@media (max-width: 600px) {
  .profile-sidebar {
    width: 100%;
    right: -100%;
  }

  .profile-sidebar.open {
    right: 0;
  }
}
/* =========================
   Hamburger Icon
========================= */
/* Hamburger Sidebar */
.hamburger-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: #fff;
  z-index: 2000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  transition: left 0.3s ease-in-out;
}

.hamburger-sidebar.open {
  left: 0;
}

.hamburger-sidebar-inner {
  padding: 20px;
}

.hamburger-sidebar .close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  margin-bottom: 10px;
}

/* Optional: Style menu */
.hamburger-nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-nav-menu li a {
  display: block;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.hamburger-nav-menu li a:hover {
  color: #0073aa;
}
/* =========================
   Responsive Styles
========================= */
@media (max-width: 768px) {
  body {
    padding-top: 60px; /* Only top-bar is fixed */
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px;
  }

  .top-bar .left,
  .top-bar .right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-nav {
    position: static;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
    background: #064c3c;
    width: 100%;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a {
    padding: 10px 20px;
  }
}
