/* Google Fonts: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Minimalist Light Theme */
:root {
  --bg-color: #FAFAFA;
  --surface-color: #FFFFFF;
  --text-main: #111111;
  --text-muted: #717171;
  --border-color: #EAEAEA;
  --accent-color: #000000;
  --accent-hover: #333333;
  --transition-speed: 0.3s;
  
  --font-family: 'Inter', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

*::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 58px; /* Safe zone for fixed header */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: #fff;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform 0.2s ease;
  border: none;
  text-align: center;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Navigation */
.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.95rem 5%;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
}

.navbar a {
  color: #111;
}

.navbar svg {
  stroke: #111;
  color: #111;
}

.nav-account-btn {
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: all var(--transition-speed);
}

.nav-account-btn:hover {
  background-color: #111;
  color: #fff !important;
}

.hamburger-menu-icon {
    transition: transform 0.3s ease;
}

#hamburger-btn.open .line-1 {
    transform: translateY(6px) rotate(45deg);
    transform-origin: 12px 6px;
}

#hamburger-btn.open .line-2 {
    opacity: 0;
}

#hamburger-btn.open .line-3 {
    transform: translateY(-6px) rotate(-45deg);
    transform-origin: 12px 18px;
}

.nav-left {
  display: flex;
  justify-content: flex-start;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-align: center;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  align-items: center;
}

.cart-icon {
  position: relative;
  transform: translateY(3px);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.cart-count:empty, 
.cart-count.hidden {
  display: none;
}

/* Sidebar Menu */
.sidebar-overlay {
  position: fixed;
  top: 58px; /* Header height */
  left: 0;
  width: 100%;
  height: calc(100vh - 58px);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 800;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-menu {
    width: 330px !important;
    overflow-y: auto;
    max-height: calc(100vh - 58px);
    scrollbar-width: none;
    -ms-overflow-style: none;
  position: fixed;
  top: 58px;
  left: -350px;
  width: 300px;
  max-width: 80vw;
  height: calc(100dvh - 58px);
  background-color: var(--surface-color);
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 900;
  transition: left var(--transition-speed);
  padding: 3.5rem 2rem 2rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

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

.sidebar-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 3rem;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 0.5rem 0;
  list-style: none;
}

.sidebar-links a {
  display: block;
  padding: 0.5rem 1.5rem;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  color: var(--text-muted);
}

.submenu-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}

.submenu-toggle a {
  padding: 0 !important;
}

.submenu-icon {
  transition: transform 0.3s ease;
  color: var(--text-main);
}

.has-submenu.open .submenu-icon {
  transform: rotate(180deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.has-submenu.open .submenu {
  max-height: 350px;
  margin-top: 1rem;
}

.submenu a {
  font-size: 0.85rem;
  text-transform: none;
  font-weight: 400;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
}

/* Footer */
footer {
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 4rem 5% 2rem;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  text-align: left;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .footer-content { flex-direction: column; }
}

/* --- Hero Section --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding-top: 80px; /* Offset for navbar */
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 80%;
}

.hero-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content p {
    margin: 0 auto 2.5rem auto;
  }
}

/* --- Product Grid --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.product-card {
  background-color: var(--surface-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-speed);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  position: relative;
  background-color: #F5F5F5;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem 0;
  text-align: left;
}

.product-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-price {
  font-weight: 600;
  color: var(--text-main);
}
/* --- Contact Form --- */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 60px; /* Reduced since body padding handles header */
  min-height: 80vh;
}

.contact-info {
  flex: 1;
}

.contact-info h1 {
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-details {
  margin-top: 3rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.contact-form {
  flex: 1;
  background-color: var(--surface-color);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }
  .contact-form {
    padding: 2rem;
  }
}

/\* --- Login Page --- \*/

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding-top: 120px;
}

.auth-card {
  background: var(--surface-color);
  width: 100%;
  max-width: 450px;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-speed);
}

.auth-tab.active {
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-color);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.social-login {
  margin-top: 2rem;
  text-align: center;
}

.social-login p {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.social-login p::before,
.social-login p::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background-color: var(--border-color);
}

.social-login p::before { left: 0; }
.social-login p::after { right: 0; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 0.8rem;
  background-color: #fff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.btn-google:hover {
  background-color: #f5f5f5;
}

.otp-input {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-speed);
}

.otp-input:focus {
  border-color: var(--accent-color);
}

/* Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-nav-item {
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--transition-speed);
}

.dashboard-nav-item:hover {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.dashboard-nav-item.active {
  background-color: #000;
  color: #fff;
}

.dashboard-nav-item.active svg {
  color: #fff;
}

.dashboard-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.dashboard-section.active {
  display: block;
}

/* Modals */
.modal-overlay.active {
  display: flex !important;
}

.modal-overlay.active .modal-content {
  transform: scale(1) !important;
  opacity: 1 !important;
}
/* --- Promo Ticker --- */
.promo-ticker {
  background: #f8f8f8;
  color: #111;
  text-decoration: none !important;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  z-index: 900;
  display: none; /* Hidden by default to prevent flicker, shown via JS if logged out */
  margin-top: 0; /* Handled by body padding */
  position: relative;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: continuousScroll 50s linear infinite;
}

.ticker-track span {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0;
  display: inline-block;
  flex-shrink: 0;
  transform: translateY(6px);
}

@keyframes continuousScroll {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.promo-ticker:hover {
  background: #f0f0f0;
}

.promo-ticker:hover .ticker-track {
  animation-play-state: paused;
}


.sidebar-section-label {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    opacity: 0.8;
}

.sidebar-links li a[style*='font-size: 0.9rem'] {
    font-size: 0.85rem !important;
    white-space: nowrap;





}
  
}


@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1rem !important; /* Slimming padding to the absolute minimum */
    width: 95% !important;
    margin: 0 auto;
  }
  
}

