/* ============================================================
   JESCO — Fashion Store | Global Stylesheet
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --accent: #e8304a;
  --accent-dark: #c42039;
  --dark: #1a1a1a;
  --gray: #6b7280;
  --light-gray: #f7f7f7;
  --border: #e5e7eb;
  --white: #ffffff;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 10px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); background: var(--white); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
address { font-style: normal; }

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

/* --- Section Spacing --- */
.section { padding: 70px 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 30px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.06em; cursor: pointer; border: none; transition: var(--transition);
}
.btn--primary {
  background: var(--accent); color: var(--white);
}
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,48,74,0.35); }
.btn--sm { padding: 9px 20px; font-size: 0.8rem; }
.btn--outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--white); }

/* --- Section Title --- */
.section-title { font-family: var(--font-display); font-size: 2rem; color: var(--accent); font-weight: 700; margin-bottom: 40px; }
.section-title.text-center { text-align: center; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--dark); color: var(--white);
  text-align: center; padding: 9px 20px;
  font-size: 0.82rem; letter-spacing: 0.04em;
}
.topbar a { color: var(--accent); margin-left: 8px; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 999;
  background: var(--white); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }

/* Logo */
.logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 900; color: var(--dark); letter-spacing: -1px; }
.logo--white { color: var(--white); }

/* Nav */
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__item > a {
  display: block; padding: 10px 14px; font-size: 0.88rem; font-weight: 500;
  color: var(--dark); border-radius: 6px; transition: var(--transition);
}
.nav__item > a:hover, .nav__item > a.active { color: var(--accent); }
.nav__item--contact > a { color: var(--accent); font-weight: 600; }
.arrow { font-size: 0.7rem; }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 160px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition); z-index: 100;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { display: block; padding: 10px 16px; font-size: 0.85rem; }
.dropdown li a:hover { background: var(--light-gray); color: var(--accent); }

/* Header Actions */
.header__actions { display: flex; align-items: center; gap: 6px; }
.action-btn { font-size: 0.85rem; font-weight: 500; padding: 6px 12px; border-radius: 6px; color: var(--dark); border: none; background: none; cursor: pointer; }
.action-btn:hover { color: var(--accent); }
.action-icon { background: none; border: none; cursor: pointer; color: var(--dark); display: flex; align-items: center; padding: 6px; border-radius: 50%; transition: var(--transition); }
.action-icon:hover { color: var(--accent); background: var(--light-gray); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: var(--white);
  font-size: 0.65rem; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--light-gray); padding: 60px 0 0; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 480px; gap: 40px; }

.hero__offer { font-size: 0.85rem; color: var(--accent); font-weight: 600; letter-spacing: 0.1em; display: block; margin-bottom: 14px; }
.hero__title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; line-height: 1.1; color: var(--dark); margin-bottom: 30px;
}
.hero__title strong { font-weight: 900; display: block; }

/* Hero Image */
.hero__image { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 480px; }
.hero__circle {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 380px; height: 380px; border-radius: 50%;
  background: linear-gradient(135deg, #f8d7dc, #fce4e8);
  z-index: 0;
}
.hero__model { position: relative; z-index: 1; height: 460px; object-fit: cover; object-position: top; border-radius: 0; }
.hero__badge {
  position: absolute; top: 40px; right: 20px; z-index: 10;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 0.78rem; font-weight: 700; line-height: 1.2;
  box-shadow: 0 4px 16px rgba(232,48,74,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.06)} }

.hero__product-card {
  position: absolute; bottom: 60px; right: 0; z-index: 10;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px; min-width: 180px;
}
.hero__product-card img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; }
.product-card-name { font-size: 0.82rem; font-weight: 600; }
.product-card-price { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.product-card-link { font-size: 0.75rem; color: var(--accent); font-weight: 600; }
.product-card-link:hover { text-decoration: underline; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories { background: var(--white); }
.categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.category-card { position: relative; border-radius: var(--radius); overflow: hidden; height: 220px; cursor: pointer; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--white);
}
.category-card__label h3 { font-weight: 700; font-size: 1rem; }
.category-card__label p { font-size: 0.8rem; opacity: 0.9; }

.category-card--center { display: flex; align-items: center; justify-content: center; background: var(--light-gray); }
.bestsellers-card { text-align: center; padding: 30px; }
.bestsellers-tag { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--dark); display: block; margin-bottom: 16px; }
.bestsellers-icons { margin-top: 16px; color: var(--accent); font-size: 1.2rem; display: flex; justify-content: center; gap: 6px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: flex; align-items: center; gap: 18px; padding: 20px; }
.feature__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(232,48,74,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.feature p { font-size: 0.82rem; color: var(--gray); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products { background: var(--white); }
.products__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 16px; }
.products__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 18px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--border); background: none; color: var(--gray); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }

.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--border); transition: var(--transition); }
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.product-card__img-wrap { position: relative; overflow: hidden; height: 220px; background: var(--light-gray); }
.product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__img-wrap img { transform: scale(1.07); }

.product-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; }
.product-badge--new { background: var(--dark); color: var(--white); }
.product-badge--sale { background: var(--accent); color: var(--white); }

.wishlist-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--white); border: none; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; color: var(--border); transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wishlist-btn:hover, .wishlist-btn.active { color: var(--accent); }

.product-card__info { padding: 14px 16px 18px; }
.product-card__info .stars { font-size: 0.8rem; color: #f5a623; margin-bottom: 6px; }
.product-card__info .stars span { color: var(--gray); font-size: 0.75rem; }
.product-card__info h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.price { font-size: 0.92rem; font-weight: 700; color: var(--dark); }
.price s { font-weight: 400; color: var(--gray); margin-left: 6px; font-size: 0.82rem; }

/* Hidden products for filter */
.product-card.hidden { display: none; }

/* ============================================================
   DEAL OF THE DAY
   ============================================================ */
.deal { background: var(--light-gray); overflow: hidden; }
.deal__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.deal__tag { font-size: 0.8rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.deal__content h2 { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; margin-bottom: 28px; }

.countdown { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; }
.countdown__unit { text-align: center; }
.countdown__unit span { display: block; font-size: 2.4rem; font-weight: 700; color: var(--dark); line-height: 1; }
.countdown__unit label { font-size: 0.65rem; font-weight: 600; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; }
.countdown__sep { font-size: 2rem; font-weight: 700; color: var(--accent); padding-bottom: 16px; }

.deal__image { position: relative; display: flex; justify-content: center; align-items: flex-end; height: 400px; }
.deal__script {
  position: absolute; top: 10px; right: 0; z-index: 0;
  font-family: var(--font-display); font-size: 5rem; font-weight: 900;
  color: rgba(232,48,74,0.12); letter-spacing: -2px; user-select: none;
  white-space: nowrap;
}
.deal__image img { position: relative; z-index: 1; height: 380px; object-fit: cover; border-radius: var(--radius); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--white); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-hover); border-color: transparent; }
.testimonial-card .stars { color: #f5a623; margin-bottom: 14px; font-size: 1rem; }
.testimonial-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; margin-bottom: 20px; }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-card__author strong { display: block; font-size: 0.88rem; font-weight: 700; }
.testimonial-card__author span { font-size: 0.78rem; color: var(--gray); }

/* ============================================================
   BRANDS
   ============================================================ */
.brands { background: var(--light-gray); padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.brands__grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.brand-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--gray); opacity: 0.6; transition: var(--transition); cursor: pointer;
}
.brand-logo:hover { opacity: 1; color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { font-size: 0.85rem; line-height: 1.7; margin: 16px 0 20px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: var(--transition);
}
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer__col h4 { color: var(--white); font-weight: 700; font-size: 0.95rem; margin-bottom: 20px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer__col ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer__col address p { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.footer__payments { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.pay-badge {
  padding: 4px 10px; background: rgba(255,255,255,0.1);
  border-radius: 4px; font-size: 0.72rem; font-weight: 700; color: var(--white);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 20px; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.45);
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__image { height: 340px; margin-top: 20px; }
  .hero__circle { width: 280px; height: 280px; }
  .hero__model { height: 320px; }
  .deal__inner { grid-template-columns: 1fr; text-align: center; }
  .deal__image { height: 260px; }
  .deal__image img { height: 250px; }
  .categories__grid { grid-template-columns: 1fr 1fr; }
  .category-card--center { grid-column: 1 / -1; height: auto; }
  .testimonials__grid { grid-template-columns: 1fr 1fr; }
  .features__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .nav {
    display: none; flex-direction: column; position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--white); z-index: 998; padding: 30px 20px;
    overflow-y: auto; border-top: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; width: 100%; }
  .nav__item > a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; }
  .hamburger { display: flex; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .categories__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .brands__grid { justify-content: center; gap: 28px; }
  .action-btn { display: none; }
  .hero__product-card { right: 50%; transform: translateX(50%); bottom: 20px; }
}
