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

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

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;
  width: 100%;
  z-index: 999;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
}

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

.logo img {
  height: 36px;
}

/* =========================
   Buttons & Icons
========================= */
.icon-btn,
.cart,
.login-btn {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.login-btn {
  border: 1px solid #ccc;
  padding: 6px 12px;
  border-radius: 6px;
  background: #fff;
}

.login-btn:hover {
  background: #f1f1f1;
}

/* =========================
   Profile Sidebar
========================= */
.profile-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
}

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

.profile-sidebar {
  position: fixed;
  right: -320px;
  top: 0;
  width: 320px;
  height: 100%;
  background: #fff;
  transition: right 0.3s ease;
  z-index: 1001;
}

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

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

/* =========================
   Hamburger Sidebar
========================= */
.hamburger-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  transition: left 0.3s ease;
  z-index: 2000;
}

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

/* =========================
   Footer
========================= */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #eaeaea;
  padding: 50px 20px 20px;
  font-family: Arial, sans-serif;
}

/* Footer Grid Layout: 5 Columns Left-to-Right */
.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 equal columns left-to-right */
  gap: 40px;
}

/* Footer Columns */
.footer-column h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000000;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  font-size: 14px;
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #1a73e8;
}

/* =========================
   Social Icons & Label (PNG)
========================= */
.social-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #4a4a4a;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 5px;
}

.footer-social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.footer-social-icons a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-social-icons a:hover {
  transform: scale(1.1);
}

/* =========================
   App Download Section
========================= */
.footer-app h4 {
  margin-bottom: 15px;
}

.footer-app a {
  display: block;
  margin-bottom: 12px;
}

.footer-app img {
  max-width: 160px;
  display: block;
}

/* =========================
   Footer Bottom Section
========================= */
.footer-bottom {
  border-top: 1px solid #eaeaea;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #666666;
}

.footer-bottom p {
  margin: 6px 0;
}

/* =========================
   Responsive Styles
========================= */

/* Medium screens: keep 5 columns */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
}

/* Mobile: single column */
@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-app {
    grid-column: span 1;
  }
}
