/*
Theme Name: Haya Intimates
Theme URI: https://itae2a-zp.myshopify.com/
Author: Haya Intimates
Author URI: https://itae2a-zp.myshopify.com/
Description: A clean, mobile-first content and blog theme for Haya Intimates (Pakistani ladies-undergarments brand). Product "Shop Now" buttons link out to the Shopify store — there is no cart or checkout on this WordPress site. Includes a homepage, blog, category and product grids, trust badges and a footer. Real Haya photos are bundled in assets/img/.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haya-intimates
Tags: blog, e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   HAYA INTIMATES — base
   Colours: white bg, near-black #1A1A1A text, one red #D21929
   Font: Inter
   Mobile-first. Breakpoints: 600px (tablet), 900px (desktop).
   ============================================================ */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --accent: #d21929;
  --accent-dark: #a8121f;
  --light: #f7f7f7;
  --warm: #f6ede3;
  --warm-2: #fbe9e7;
  --border: #e8e8e8;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section { padding: 48px 0; }
.section--light { background: var(--light); }
.section--warm { background: var(--warm); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; margin-bottom: 28px; }
.section-head .eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 { font-size: 1.7rem; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; color: #fff; }
.btn--outline { background: transparent; color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--small { padding: 9px 20px; font-size: 0.9rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 9px 12px;
}
.announce span { display: inline-block; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.site-logo img { display: block; height: 52px; width: auto; }
.site-logo .site-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}
.site-logo a:hover { text-decoration: none; }

/* Hamburger (mobile) */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.menu-toggle .bar::before,
.menu-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
}
.menu-toggle .bar::before { top: -7px; }
.menu-toggle .bar::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .bar::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar::after { top: 0; transform: rotate(-45deg); }

/* Nav — hidden on mobile until toggled */
.main-nav { display: none; }
.main-nav.open { display: block; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}
.main-nav li { border-top: 1px solid var(--border); }
.main-nav li:first-child { border-top: 0; }
.main-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--accent); }

/* Header actions (WhatsApp) */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 16px; font-size: 0.88rem; white-space: nowrap; }

/* ---------- Hero (split: text left, photo right) ---------- */
.hero {
  background: var(--warm);
  padding: 48px 0 56px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.hero-copy { text-align: center; }
.hero h1 { font-size: 2rem; margin-bottom: 12px; }
.hero .hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-actions .btn { margin: 0; }
.hero-media { max-width: 520px; margin: 0 auto; width: 100%; }
.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

/* ---------- Category grid (photo tiles) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cat-card {
  display: block;
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--warm);
}
.cat-card:hover { text-decoration: none; transform: translateY(-2px); }
.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.22) 46%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.cat-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px;
}
.cat-card h3 { font-size: 1.15rem; margin: 0 0 4px; color: #fff; }
.cat-card .cat-count { color: rgba(255, 255, 255, 0.85); font-size: 0.88rem; display: block; }
.cat-card .cat-link {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cat-tone-1 { background: #fbe9e7; }
.cat-tone-2 { background: #f6ede3; }
.cat-tone-3 { background: #f3ece4; }
.cat-tone-4 { background: #fdeef0; }
.cat-tone-5 { background: #f1ece7; }
.cat-tone-6 { background: #fbe9e7; }
.cat-tone-7 { background: #f6ede3; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-card__media {
  background: var(--warm);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}
.product-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__body h3 { font-size: 0.98rem; margin: 0; }
.product-card__price { color: var(--accent); font-weight: 800; font-size: 1.05rem; }
.product-card__body .btn { margin-top: auto; }

/* ---------- Blog preview / archive ---------- */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.post-card__media {
  background: linear-gradient(135deg, var(--warm), var(--warm-2));
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__media .mono { font-size: 2rem; font-weight: 800; color: var(--accent); }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__body h3 { font-size: 1.15rem; margin: 0; }
.post-card__body h3 a { color: var(--text); }
.post-card__body h3 a:hover { color: var(--accent); }
.post-meta { color: var(--muted); font-size: 0.85rem; }
.post-card__body p { color: var(--muted); margin: 0; }
.post-card__body .read-more { font-weight: 700; margin-top: auto; }

/* ---------- Trust badges ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.trust-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.trust-item svg { width: 34px; height: 34px; stroke: var(--accent); margin-bottom: 8px; }
.trust-item h3 { font-size: 1rem; margin: 0 0 4px; }
.trust-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Single post / page ---------- */
.entry { max-width: 760px; margin: 0 auto; }
.entry__featured { margin: 0 0 24px; }
.entry__featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.entry h1 { font-size: 1.9rem; }
.entry h2 { font-size: 1.35rem; margin-top: 1.6em; }
.entry h3 { font-size: 1.12rem; margin-top: 1.4em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: 0.4em; }
.entry img { border-radius: var(--radius); }
.entry table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.entry th, .entry td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.entry th { background: var(--light); }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 700; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 32px; text-align: center; }
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 0 3px;
  color: var(--text);
  font-weight: 600;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #fff;
  margin-top: 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 44px 0 28px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer p { color: #cfcfcf; font-size: 0.94rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #e8e8e8; font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.footer-logo img { height: 56px; width: auto; background: #fff; border-radius: 8px; padding: 4px 10px; }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 16px 0;
  text-align: center;
  color: #bdbdbd;
  font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.whatsapp-float:hover { text-decoration: none; color: #fff; }
.whatsapp-float svg { width: 20px; height: 20px; fill: #fff; }

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .section { padding: 60px 0; }
  .hero h1 { font-size: 2.5rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .main-nav { display: block !important; }
  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  .main-nav li { border-top: 0; }
  .main-nav a { padding: 8px 12px; }
  .header-inner { min-height: 84px; }
  .site-logo img { height: 60px; }
  .hero { padding: 72px 0 80px; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .hero-copy { text-align: left; }
  .hero .hero-sub { margin-left: 0; margin-right: 0; }
  .hero-actions { justify-content: flex-start; }
  .hero-media { max-width: none; }
  .hero h1 { font-size: 3rem; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(4, 1fr); }
}
