/* ==========================================================================
   RANGACHARI CLOTH STORE - GLOBAL DESIGN SYSTEM & STYLES
   Theme: Elegant White & Rich Heritage Brown (#BA7E38 / #A86C2C)
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --color-primary: #ba7e38;          /* Signature Heritage Brown from Banner */
  --color-primary-dark: #986224;     /* Deep Chestnut Brown */
  --color-primary-deep: #784a16;     /* Dark Roasting Brown */
  --color-primary-light: #d69f5e;    /* Warm Amber Accent */
  --color-primary-soft: #fbf5ee;     /* Soft Tint Background */
  --color-primary-subtle: #f5ebe0;   /* Subtle Border / Hover Tone */
  --color-gold-accent: #cfa052;      /* Traditional Gold Zari */

  /* Neutral & Light Palette (White Theme) */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #fdfbf8;
  --bg-surface-card: #ffffff;
  --bg-muted: #f7f3ee;

  /* Typography Colors */
  --text-main: #241c15;              /* Deep Warm Charcoal */
  --text-secondary: #65594e;         /* Muted Slate Brown */
  --text-muted: #8e8174;             /* Subtle Caption Text */
  --text-on-primary: #ffffff;

  /* Borders & Shadows */
  --border-light: #ece3d7;
  --border-medium: #dfd2c1;
  --border-focus: #ba7e38;

  --shadow-sm: 0 2px 6px rgba(186, 126, 56, 0.06);
  --shadow-md: 0 4px 18px rgba(36, 28, 21, 0.08);
  --shadow-lg: 0 12px 32px rgba(186, 126, 56, 0.12);
  --shadow-sticky: 0 -8px 25px rgba(36, 28, 21, 0.09);

  /* Typography */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transitions & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  --transition-fast: 0.18s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-surface-alt);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button, input, select, textarea {
  font-family: inherit;
}

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

/* ==================== TOP SOCIAL BANNER STRIP ==================== */
.top-social-banner {
  background-color: #ffffff;
  color: #1a1612;
  border-bottom: 1px solid var(--border-light);
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.top-social-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a1612;
}

.banner-left-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #1a1612;
}

.banner-social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 0 auto;
}

.banner-social-link {
  color: #1a1612;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.banner-social-link:hover {
  transform: scale(1.18);
  color: var(--color-primary);
}

.banner-right-contact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.banner-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1a1612;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.banner-contact-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ==================== MAIN SITE HEADER ==================== */
.site-header {
  background: linear-gradient(135deg, #ba7e38 0%, #a46927 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: all var(--transition-smooth);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: transform var(--transition-fast);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.02);
}

/* Main Navigation */
.main-nav-menu {
  display: flex;
  align-items: center;
}

.nav-links-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.6rem;
}

.nav-item-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item-link:hover {
  color: #ffffff;
}

.nav-item-link.active {
  color: #ffffff;
  font-weight: 700;
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: #ffffff;
  border-radius: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.header-store-btn:hover {
  background-color: #ffffff;
  color: var(--color-primary-dark);
  border-color: #ffffff;
}

.header-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.header-cart-btn:hover {
  border-color: #ffffff;
  color: var(--color-primary-dark);
  background-color: #ffffff;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background-color: #ffffff;
  color: var(--color-primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* Mobile Panel */
.mobile-drawer-panel {
  display: none;
  position: fixed;
  top: 98px;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 2px solid var(--color-primary);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 98;
}

.mobile-drawer-panel.open {
  display: block;
  animation: slideDown 0.25s ease-out;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-link.active {
  color: var(--color-primary);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== FOOTER ==================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
  color: var(--text-secondary);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col-brand .footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.footer-col-brand .footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-links-col {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.footer-links-col a:hover {
  color: var(--color-primary);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-bar a,
.powered-by-link {
  color: var(--color-primary-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-bar a:hover,
.powered-by-link:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 880px) {
  .top-social-inner .banner-left-info,
  .top-social-inner .banner-right-contact {
    display: none;
  }
  .banner-social-icons {
    margin: 0 auto;
  }
  .main-nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

@media (max-width: 580px) {
  .top-social-banner {
    padding: 0.4rem 1rem;
  }
  
  .nav-container {
    padding: 0.65rem 1rem;
    gap: 0.75rem;
  }

  .brand-logo-img {
    height: 40px;
    max-width: 175px;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-store-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .header-cart-btn {
    width: 38px;
    height: 38px;
  }

  .site-footer {
    margin-top: 2.5rem;
    padding: 2.2rem 1rem 1.5rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
