/* 
   ANANTHI STORES - Master Stylesheet (Clean & Modern Redesign)
   Design Direction: Simple, Clean, Modern Indian Shopping Store with Subtle Traditional Accent
   Palette: White (#FFFFFF) + Light Warm Cream (#FAF8F3) + Dark Charcoal (#252525) + Soft Terracotta (#A9573F)
*/

:root {
  /* Clean Color System */
  --color-bg-main: #FFFFFF;        /* Pure White Primary Background */
  --color-bg-subtle: #FAF8F3;      /* Light Warm Cream Secondary Background */
  --color-card-bg: #FFFFFF;        /* White Product Card Background */

  --color-text-main: #252525;     /* Dark Charcoal Text */
  --color-text-muted: #555555;    /* Medium Charcoal Muted Text */
  --color-text-light: #777777;    /* Light Muted Text */

  --color-terracotta: #A9573F;    /* Soft Terracotta Accent */
  --color-terracotta-dark: #8C432D;
  --color-gold-line: #C8A96B;     /* Light Gold Line Detail */

  --color-border: #E8E4DC;        /* Subtle Border */
  --color-border-hover: #C8A96B;  /* Border Hover Accent */

  --color-whatsapp: #20B858;
  --color-success: #28a745;
  --color-warning: #d97706;
  --color-danger: #dc2626;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-tamil: 'Mukta Malar', 'Noto Sans Tamil', sans-serif;

  /* Radius & Spacing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --transition: all 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

.font-tamil { font-family: var(--font-tamil); }

/* Section Title */
.section-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title-wrap .sub-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-terracotta);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.section-title-wrap h2 {
  font-size: 2rem;
  color: var(--color-text-main);
}

.section-title-wrap p {
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0.4rem auto 0;
  font-size: 0.95rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header Top Small Text */
.top-header-bar {
  background-color: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.top-header-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Main Header */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  padding: 0.75rem 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-logo h1 {
  font-size: 1.45rem;
  color: var(--color-text-main);
  letter-spacing: 0.5px;
  line-height: 1;
  margin: 0;
}

.brand-logo .logo-sub {
  font-size: 0.7rem;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-top: 2px;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 450px;
}

.header-search form {
  display: flex;
  position: relative;
  width: 100%;
}

.header-search input {
  width: 100%;
  padding: 0.55rem 2.6rem 0.55rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-subtle);
  outline: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.header-search input:focus {
  border-color: var(--color-terracotta);
  background-color: #ffffff;
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-terracotta);
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}

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

.btn-header-action {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.btn-whatsapp-header {
  background: var(--color-whatsapp);
  color: #ffffff !important;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-terracotta);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Clean White Navigation */
.main-nav {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links li a {
  display: block;
  padding: 0.7rem 0.9rem;
  color: var(--color-text-main);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 2.5px solid transparent;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-terracotta);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-terracotta);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-terracotta-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-terracotta);
  color: var(--color-terracotta);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #19a04a;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section (50-55vh Desktop, Light Cream Background) */
.hero-banner {
  background-color: var(--color-bg-subtle);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content .hero-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-terracotta);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-subhead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.hero-visual-img-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
}

.hero-visual-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quick Categories (8 Items) */
/* 4 Core Identity Section Cards */
.identity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.identity-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.identity-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.identity-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--color-terracotta);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.identity-card-img {
  width: 100%;
  height: 160px;
  background-color: var(--color-bg-subtle);
  overflow: hidden;
}

.identity-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.identity-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.identity-card-body h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.35rem;
}

.identity-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.identity-link-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-terracotta);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Quick Categories Grid */
.quick-cats-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
  text-align: center;
}

.quick-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.quick-cat-img-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-terracotta);
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.quick-cat-item:hover .quick-cat-img-box {
  border-color: var(--color-terracotta);
  transform: translateY(-2px);
  background: #ffffff;
}

.quick-cat-item span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-main);
}

/* Product Grid & Clean Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--color-terracotta);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  width: 100%;
  height: 190px;
  background-color: var(--color-bg-subtle);
  position: relative;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-content {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.72rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.35rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.mrp-price {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--color-text-light);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
}

/* Light Highlight Banner Sections */
.light-banner-section {
  background-color: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}

/* Footer (Dark Charcoal #252525) */
.main-footer {
  background-color: #252525;
  color: #DDDDDD;
  padding-top: 3rem;
  border-top: 3px solid var(--color-gold-line);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #383838;
}

.footer-col h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a {
  color: #CCCCCC;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links li a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: #999999;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 1000;
  padding: 0.3rem 0;
}

.mobile-bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0;
}

.mobile-nav-item.active {
  color: var(--color-terracotta);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 65px;
  right: 16px;
  background: var(--color-whatsapp);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(32, 184, 88, 0.3);
  z-index: 990;
  text-decoration: none;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .identity-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-cats-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-header-bar { font-size: 0.75rem; text-align: center; }
  .top-header-bar .container { justify-content: center; }
  
  .header-top .container { flex-wrap: wrap; gap: 0.6rem; }
  .header-search { order: 3; max-width: 100%; width: 100%; }
  
  .main-nav { display: none; }
  .main-nav.mobile-active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #ffffff;
    box-shadow: var(--shadow-md);
  }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links li a { border-bottom: 1px solid var(--color-border); }

  .mobile-menu-toggle { display: block; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 55px; }

  .hero-content h1 { font-size: 1.85rem; }
  .identity-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .quick-cats-grid { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-img-wrap { height: 140px; }
  .footer-top { grid-template-columns: 1fr; }
}
