/* Samrat Foods - Homepage Styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --green-dark: #1a3c1e;
  --green-medium: #2d5a32;
  --green-light: #3d7344;
  --gold: #c5a059;
  --gold-light: #d4b76a;
  --gold-dark: #a8863f;
  --cream: #fefdf4;
  --cream-dark: #f5f0e1;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #666666;
  --maroon: #6b1f2a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--green-medium);
  color: var(--white);
  text-align: center;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  position: relative;
}

.top-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-dark) 12%,
    var(--gold) 50%,
    var(--gold-dark) 88%,
    transparent 100%
  );
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.top-bar svg {
  width: 16px;
  height: 16px;
  fill: var(--gold);
}

/* ========== HEADER ========== */
.header {
  background: var(--green-dark);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-dark) 12%,
    var(--gold) 50%,
    var(--gold-dark) 88%,
    transparent 100%
  );
}

.header::before {
  content: '◆';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 9px;
  line-height: 1;
  padding: 0 14px;
  background: var(--green-dark);
  z-index: 1;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.logo img {
  height: 70px;
  width: auto;
  display: block;
  background: transparent;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 8px 16px;
  background: var(--white);
  min-width: 180px;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
  width: 120px;
  background: transparent;
}

.search-box svg {
  width: 16px;
  height: 16px;
  stroke: #999;
  flex-shrink: 0;
}

.header-icons {
  display: flex;
  gap: 16px;
}

.header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: color 0.3s;
}

.header-icon:hover {
  color: var(--gold-light);
}

.header-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.cart-badge {
  position: relative;
}

.cart-badge .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ========== HERO SECTION ========== */
.hero {
  width: 100%;
  overflow: hidden;
  background: var(--green-dark);
  line-height: 0;
}

.hero-banner-link {
  display: block;
  width: 100%;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 520px;
}

@media (max-width: 768px) {
  .hero-banner {
    max-height: none;
    min-height: 220px;
    object-fit: cover;
  }
}

/* ========== SECTION TITLES ========== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--green-dark);
  display: inline-block;
  position: relative;
}

.section-title .deco-left,
.section-title .deco-right {
  display: inline-block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin: 0 20px;
  position: relative;
}

.section-title .deco-left::before,
.section-title .deco-right::before {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 8px;
}

.section-title .deco-left::before {
  right: -4px;
}

.section-title .deco-right::before {
  left: -4px;
}

/* ========== FEATURED PRODUCTS ========== */
.featured-section {
  padding: 70px 0;
  background: var(--cream);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.featured-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.featured-card-image {
  height: 300px;
  overflow: hidden;
  position: relative;
  background: #faf8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.featured-card-label {
  text-align: center;
  padding: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
}

.featured-center {
  background: var(--white);
  border-radius: 12px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid rgba(197,160,89,0.2);
}

.featured-center h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.featured-center p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.featured-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.btn-primary {
  display: block;
  padding: 12px 24px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--green-medium);
}

.btn-outline {
  display: block;
  padding: 10px 24px;
  background: transparent;
  color: var(--green-dark);
  border: 1.5px solid var(--gold);
  border-radius: 25px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

/* ========== BEST SELLER ========== */
.bestseller-section {
  padding: 70px 0;
  background: var(--cream-dark);
}

.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 8px 24px;
  border: 1.5px solid var(--green-dark);
  border-radius: 25px;
  background: transparent;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  display: inline-block;
  text-align: center;
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--green-dark);
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.product-card-image {
  height: 220px;
  overflow: hidden;
  background: #faf8f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.product-card-image img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card-info {
  padding: 16px;
}

.product-card-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.btn-add-cart {
  width: 100%;
  padding: 10px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.btn-add-cart:hover {
  background: var(--green-medium);
}

/* ========== INFO BAR ========== */
.info-bar {
  padding: 50px 0;
  background: var(--white);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.info-item {
  text-align: center;
  padding: 20px;
}

.info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.info-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.info-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 10 C60 30 80 40 90 50 C80 60 60 70 50 90 C40 70 20 60 10 50 C20 40 40 30 50 10Z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 60px 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 100px;
  margin-bottom: 20px;
  display: block;
  background: transparent;
}

.footer-contact p {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
}

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

.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--gold);
}

.newsletter-form {
  display: flex;
  margin-top: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 13px;
  padding: 10px 0;
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.newsletter-form button svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--gold);
}

.social-icons a:hover svg {
  stroke: var(--green-dark);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

/* ========== MOBILE MENU ========== */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 16px;
  }

  .nav-menu a {
    color: var(--text-dark);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    color: var(--green-dark);
  }

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

  .mobile-toggle {
    display: block;
  }

  .search-box {
    display: none;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

  .info-grid {
    grid-template-columns: 1fr;
  }

  .header-icons .header-icon span {
    display: none;
  }
}
