/* ================================
   GLOBAL STYLES — MS ZEENAT TRADERS
   ================================ */
:root {
  --primary: #b08968;
  --secondary: #e6ccb2;
  --accent: #d4a373;
  --dark: #1b1b1b;
  --light: #f8f8f8;
  --white: #fff;
  --gray: #666;
  --font-main: 'Poppins', sans-serif;
  --font-alt: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 10px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  width: 100%;
}

/* ================================
   HEADER / NAVIGATION
   ================================ */
header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-family: var(--font-alt);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.logo:hover {
  color: var(--accent);
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.main-menu li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}
.main-menu li a.active,
.main-menu li a:hover {
  color: var(--primary);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.search-bar {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: 1px solid #ddd;
  outline: none;
  transition: var(--transition);
  max-width: 150px;
  width: 100%;
}
.search-bar:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(176,137,104,0.3);
}

.icon-btn,
.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.icon-btn:hover,
.profile-btn:hover {
  color: var(--primary);
}

.cart-badge {
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  position: relative;
  top: -8px;
  left: -4px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(3px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-3px);
}

/* ================================
   HERO CAROUSEL
   ================================ */
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
  width: 100%;
}
.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}
.overlay h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  width: 100%;
}
.overlay p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}
.cta-btn {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}
.cta-btn:hover {
  background: var(--accent);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: var(--white);
  border: none;
  padding: 0.7rem;
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
}
.carousel-nav:hover {
  background: var(--primary);
}
.carousel-nav.prev {
  left: 15px;
}
.carousel-nav.next {
  right: 15px;
}

/* ================================
   SECTIONS (CATEGORIES, FEATURED, ETC.)
   ================================ */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 3rem 0 1rem;
  color: var(--dark);
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.card-content {
  padding: 1rem;
  text-align: center;
}
.price {
  color: var(--primary);
  font-weight: 600;
  margin: 0.4rem 0;
}
.btn-small {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  margin: 0.3rem;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-small:hover {
  background: var(--accent);
}

/* ================================
   OFFER BANNER
   ================================ */
.offer-banner {
  text-align: center;
  background: var(--secondary);
  padding: 2rem 1rem;
  color: var(--dark);
  font-weight: 500;
  margin: 3rem 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* ================================
   GALLERY
   ================================ */
.gallery {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
  width: 100%;
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item .caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  padding: 0.7rem;
  text-align: center;
  transition: var(--transition);
  opacity: 0;
}
.gallery-item:hover .caption {
  opacity: 1;
}

/* ================================
   REVIEWS
   ================================ */
.reviews-carousel {
  display: flex;
  overflow: hidden;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}
.review-slide {
  opacity: 0;
  transform: scale(0.95);
  transition: var(--transition);
  flex-shrink: 0;
  width: 100%;
}
.review-slide.active {
  opacity: 1;
  transform: scale(1);
}
.review-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  text-align: center;
  width: 280px;
  max-width: 100%;
}
.review-avatar {
  background: var(--primary);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 1rem;
}

/* ================================
   NEWSLETTER
   ================================ */
.newsletter {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem;
  width: 100%;
  box-sizing: border-box;
}
.newsletter form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}
.newsletter input {
  flex: 1;
  min-width: 250px;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.newsletter input::placeholder {
  color: rgba(255,255,255,0.7);
}
.newsletter button {
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  flex-shrink: 0;
}
.newsletter button:hover {
  background: var(--accent);
  color: var(--white);
}

/* ================================
   ABOUT & CONTACT PREVIEW SECTION
   ================================ */
.preview {
  display: flex;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 3rem auto;
  padding: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.preview-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  flex: 1 1 300px;
  min-width: 280px;
  text-align: center;
  transition: var(--transition);
  max-width: 100%;
  width: 100%;
}
.preview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.preview-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.preview-card p {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.preview-card .cta-btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.preview-card .cta-btn:hover {
  background: var(--accent);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* ================================
   FOOTER
   ================================ */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 1rem 1rem;
  width: 100%;
  box-sizing: border-box;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  width: 100%;
  box-sizing: border-box;
}
.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin: 0.4rem 0;
}
.footer-col a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--accent);
}
.social-icons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.social-icons a {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: 50%;
  padding: 0.6rem;
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--accent);
}
.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 300px;
}
.footer-newsletter input {
  padding: 0.5rem;
  border-radius: var(--border-radius);
  border: none;
  outline: none;
  width: 100%;
}
.footer-newsletter button {
  background: var(--primary);
  border: none;
  padding: 0.6rem;
  border-radius: var(--border-radius);
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.footer-newsletter button:hover {
  background: var(--accent);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
  width: 100%;
}

/* ================================
   SKELETON LOADER
   ================================ */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton-text {
  height: 1rem;
  border-radius: 5px;
}
.skeleton-text.long {
  width: 80%;
  margin: 0.5rem auto;
}
.skeleton-text.short {
  width: 50%;
  margin: 0.5rem auto;
}
.skeleton-card {
  height: 250px;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
  nav {
    padding: 1rem;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    padding: 0.5rem;
  }
}

/* ================================
   RESPONSIVE NAVIGATION FIX
   ================================ */
@media (max-width: 900px) {
  nav {
    position: relative; /* mobile ke liye relative */
  }

  .main-menu {
    position: fixed; /* fixed rakha jaye viewport par */
    top: 70px;       /* header height ke neeche */
    right: 0;
    background: var(--white);
    flex-direction: column;
    width: 220px;
    padding: 1rem;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(100%); /* initially hidden */
    transition: transform 0.3s ease;
    z-index: 9999;
    height: calc(100vh - 70px); /* full screen height minus header */
    overflow-y: auto; /* agar items zyada ho toh scrollable */
  }

  .main-menu.active {
    transform: translateX(0); /* open menu */
  }

  .main-menu li {
    margin: 1rem 0;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .hamburger span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
  }

  .user-controls {
    gap: 0.5rem;
  }
  .search-bar {
    max-width: 120px;
  }
  .preview {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .overlay h1 {
    font-size: 2rem;
  }
  .overlay p {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.6rem;
    margin: 2rem 0 0.5rem;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 600px) {
  .hero {
    height: 50vh;
  }
  .overlay h1 {
    font-size: 1.6rem;
  }
  .overlay p {
    font-size: 0.9rem;
  }
  .cta-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.5rem;
  }
  .review-card {
    width: 90%;
    padding: 1rem;
  }
  .reviews-carousel {
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .newsletter {
    padding: 2rem 0.5rem;
  }
  .newsletter form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    max-width: 100%;
  }
  .newsletter input {
    min-width: auto;
    width: 100%;
  }
  .newsletter button {
    align-self: stretch;
    text-align: center;
  }
  .preview {
    padding: 0.5rem;
    gap: 1rem;
  }
  .preview-card {
    padding: 1.5rem 1rem;
    min-width: auto;
  }
  .offer-banner {
    padding: 1.5rem 0.5rem;
    margin: 2rem 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  .footer-newsletter {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
    padding: 0.5rem;
  }
  .logo {
    font-size: 1.2rem;
  }
  nav {
    padding: 0.8rem;
  }
  .user-controls {
    gap: 0.3rem;
  }
  .search-bar {
    display: none;
  }
  .overlay {
    padding: 1rem;
  }
  .section-title {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.5rem;
  }
  .contact-links {
    gap: 0.5rem;
  }
}

@media (max-width: 400px) {
  .hero {
    height: 40vh;
  }
  .overlay h1 {
    font-size: 1.4rem;
  }
  .overlay p {
    font-size: 0.85rem;
  }
  .card img,
  .gallery-item img {
    height: 200px;
  }
  .review-card {
    padding: 1rem;
  }
  .preview-card {
    padding: 1rem;
  }
  .footer {
    padding: 2rem 0.5rem 0.5rem;
  }
}