/* ================================================================
   style.css — Eiman Dupatta & Matching Centre
   ================================================================
   TABLE OF CONTENTS:
   1. Colour Variables     — change your brand colours here
   2. Reset & Base
   3. Top Banner
   4. Navigation
   5. Hero Section
   6. Main Layout
   7. Tabs
   8. Product Tiles Grid
   9. Pagination
   10. Info Section (Map + Contact)
   11. Footer
   12. Responsive (mobile)
================================================================ */


/* ================================================================
   1. COLOUR VARIABLES
   These are the main colours used across the site.
   Change them here and the whole site updates automatically.
================================================================ */
:root {
  --rose:        #c0435a;   /* main brand red/rose — used on badges, buttons */
  --rose-dark:   #8f2d40;   /* darker rose — nav, hero, footer background */
  --rose-light:  #f7e8ec;   /* very light rose — backgrounds */

  --gold:        #c9963a;   /* gold accent — price text, popular badges */
  --gold-light:  #f5ecd8;   /* light gold — backgrounds */

  --cream:       #fdf8f2;   /* page background colour */
  --dark:        #1c1008;   /* footer background */
  --text:        #2e1f17;   /* main body text */
  --muted:       #7a6255;   /* secondary/muted text */
  --border:      #e5d8cc;   /* borders and dividers */

  --serif: 'Playfair Display', Georgia, serif;  /* heading font */
  --sans:  'DM Sans', sans-serif;               /* body font */
}


/* ================================================================
   2. RESET & BASE STYLES
================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* smooth scroll when clicking anchor links */
}

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  font-weight: 300;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}


/* ================================================================
   3. TOP BANNER
   The thin red strip at the very top ("Tailor Available" etc.)
   Change background colour with --rose-dark
================================================================ */
.top-banner {
  background: var(--rose-dark);
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.top-banner span {
  color: var(--gold-light);
  margin: 0 0.6rem; /* space around the ✦ dividers */
}


/* ================================================================
   4. NAVIGATION BAR
================================================================ */
nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky; /* stays at top when scrolling */
  top: 0;
  z-index: 200;
}

/* Shop name in the navbar */
.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand-main {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--rose-dark);
  font-weight: 700;
}
.nav-brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

/* WhatsApp button in navbar */
.nav-wa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366; /* WhatsApp green */
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-wa:hover {
  background: #1da851;
}
.nav-wa svg {
  width: 16px;
  height: 16px;
}


/* ================================================================
   5. HERO SECTION
   The large banner at the top of the page
================================================================ */
.hero {
  background: var(--rose-dark);
  position: relative;
  overflow: hidden;
  padding: 3.5rem 2rem;
  text-align: center;
}

/* Subtle diagonal pattern overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0,
    rgba(255,255,255,0.03) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 20px 20px;
}

/* Small label above the heading e.g. "Rawalpindi's Finest" */
.hero-tag {
  display: inline-block;
  border: 1px solid rgba(201,150,58,0.5);
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  margin-bottom: 1.2rem;
  position: relative; /* sits above the ::before overlay */
}

/* Main hero heading */
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem); /* fluid size — min 2rem, max 3.2rem */
  color: #fff;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.8rem;
  position: relative;
}
.hero h1 em {
  color: var(--gold-light);
  font-style: italic;
}

/* Hero subtitle/description */
.hero-sub {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  max-width: 480px;
  margin: 0 auto 1.8rem;
  line-height: 1.8;
  position: relative;
}

/* Row of service badge pills below the subtitle */
.service-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.55rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  border-radius: 2px;
}
.badge-icon {
  font-size: 1rem;
}


/* ================================================================
   6. MAIN LAYOUT
   The wrapper that holds the tabs, tiles grid, and info section
================================================================ */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}


/* ================================================================
   7. TABS (Dupattas / Cotton / etc.)
   To change tab colours, update --rose-dark
================================================================ */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.85rem 2rem;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px; /* pulls border flush to the tabs container border */
}
.tab-btn:hover {
  color: var(--rose);
}
.tab-btn.active {
  color: var(--rose-dark);
  font-weight: 500;
  border-bottom: 2px solid var(--rose-dark); /* active underline indicator */
}

/* Tab panels — only the active one is shown */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}


/* ================================================================
   8. PRODUCT TILES GRID
   Each product is a .tile card inside a .tiles grid
================================================================ */

/* Header row above tiles (item count + sort dropdown) */
.tiles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.tiles-count {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.tiles-sort {
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: none;
  padding: 0.4rem 0.8rem;
  font-family: var(--sans);
  cursor: pointer;
  outline: none;
}

/* 3-column grid */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

/* Individual product card */
.tile {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.tile:hover {
  transform: translateY(-4px); /* subtle lift on hover */
  box-shadow: 0 12px 32px rgba(192,67,90,0.12);
}

/* Product image area */
.tile-img {
  width: 100%;
  aspect-ratio: 3 / 3.5; /* controls height of image — change ratio here */
  overflow: hidden;
  position: relative;
}
.tile-img svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Badge on top-left of image (e.g. "New", "Popular") */
.tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--rose); /* default badge colour — override inline in HTML */
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  font-weight: 500;
}

/* Text info area below the image */
.tile-info {
  padding: 0.9rem 1rem 1.1rem;
}
.tile-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.tile-fabric {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Bottom row: price + WhatsApp order button */
.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile-price {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--rose-dark);
  font-family: var(--serif);
}
.tile-wa {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 0.68rem;
  padding: 0.35rem 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.tile-wa:hover {
  background: #1da851;
}
.tile-wa svg {
  width: 13px;
  height: 13px;
}


/* ================================================================
   9. PAGINATION
   Page number buttons below the tiles grid
================================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.page-btn.active,
.page-btn:hover {
  background: var(--rose-dark);
  color: #fff;
  border-color: var(--rose-dark);
}


/* ================================================================
   10. INFO SECTION — MAP + CONTACT CARD
================================================================ */

/* Side-by-side layout for map and contact */
.info-section {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ── Map card ── */
.map-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-embed {
  width: 100%;
  height: 280px; /* change this to make the map taller/shorter */
  border: none;
  display: block;
}
.map-footer {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.map-addr-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.map-addr {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.map-hours {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  line-height: 1.8;
}

/* ── Contact / services card ── */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--rose-dark);
  font-weight: 400;
}

/* Large WhatsApp button */
.wa-big {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.wa-big:hover {
  background: #1da851;
}
.wa-big svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Service rows (tailor, dyer, etc.) */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.svc-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--cream);
}
.svc-icon {
  font-size: 1.1rem;
}
.svc-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.svc-desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 0.1rem;
}


/* ================================================================
   11. FOOTER
================================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  margin-top: 3rem;
  line-height: 2;
}
footer strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
}


/* ================================================================
   12. RESPONSIVE — MOBILE
   Stacks columns to single column on small screens
================================================================ */
@media (max-width: 700px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }
  .info-section {
    grid-template-columns: 1fr; /* stack map + contact vertically */
  }
  .tab-btn {
    padding: 0.7rem 1rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 420px) {
  .tiles {
    grid-template-columns: 1fr; /* 1 column on small phones */
  }
}