/* ============================================
   JENTRIX — Pixel-Perfect Static Clone
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

/* ---------- UTILITIES ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.938rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background-color: #1a1a1a;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #333333;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--outline {
  background-color: transparent;
  color: #1a1a1a;
  border: 2px solid #1a1a1a;
}

.btn--outline:hover {
  background-color: #1a1a1a;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  height: 72px;
  display: flex;
  align-items: center;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.header__nav-list {
  display: flex;
  gap: 32px;
}

.header__nav-link {
  font-size: 0.938rem;
  font-weight: 500;
  color: #555555;
  position: relative;
  padding: 4px 0;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1a1a1a;
  transition: width 0.3s ease;
}

.header__nav-link:hover {
  color: #1a1a1a;
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__cart {
  position: relative;
  color: #1a1a1a;
  padding: 8px;
  transition: color 0.2s ease;
}

.header__cart:hover {
  color: #555;
}

.header__cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.header__menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 0;
  background-color: #f9f9f7;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 7/8.6;
  max-height: 540px;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
  padding: 96px 0;
}

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

.category-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.category-card__image {
  aspect-ratio: 6/7;
  overflow: hidden;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card__image img {
  transform: scale(1.05);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  color: #ffffff;
}

.category-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card__desc {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ============================================
   BEST SELLERS / PRODUCTS
   ============================================ */
.best-sellers {
  padding: 96px 0;
  background-color: #f9f9f7;
}

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

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.product-card__image {
  position: relative;
  aspect-ratio: 5/6;
  overflow: hidden;
  background-color: #f5f5f5;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  letter-spacing: 0.02em;
}

.badge--bestseller {
  background-color: #1a1a1a;
  color: #ffffff;
}

.badge--new {
  background-color: #2563eb;
  color: #ffffff;
}

.badge--sale {
  background-color: #dc2626;
  color: #ffffff;
}

.product-card__quick-view {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  color: #1a1a1a;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-card__quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-card__quick-view:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

.product-card__info {
  padding: 16px;
}

.product-card__name {
  font-size: 0.938rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: #333333;
}

/* ============================================
   WHY SHOP WITH US
   ============================================ */
.why-us {
  padding: 96px 0;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-us__card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.why-us__icon {
  width: 72px;
  height: 72px;
  background-color: #f9f9f7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #1a1a1a;
}

.why-us__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.why-us__desc {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.6;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
  padding: 96px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.newsletter__inner {
  text-align: center;
  max-width: 560px;
}

.newsletter__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.newsletter__desc {
  font-size: 1rem;
  color: #aaaaaa;
  margin-bottom: 32px;
  line-height: 1.6;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #2a2a2a;
  color: #ffffff;
  font-size: 0.938rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter__input::placeholder {
  color: #888888;
}

.newsletter__input:focus {
  border-color: #ffffff;
}

.newsletter__btn {
  white-space: nowrap;
  background-color: #ffffff;
  color: #1a1a1a;
}

.newsletter__btn:hover {
  background-color: #e5e5e5;
  transform: translateY(-1px);
}

.newsletter__success {
  display: none;
  margin-top: 16px;
  font-size: 0.875rem;
  color: #4ade80;
}

.newsletter__success.visible {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: #111111;
  color: #cccccc;
  padding-top: 64px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2a2a2a;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.footer__tagline {
  font-size: 0.875rem;
  color: #999999;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer__contact p {
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: #999999;
}

.footer__contact a {
  color: #cccccc;
}

.footer__contact a:hover {
  color: #ffffff;
}

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

.footer__heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

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

.footer__col ul li a {
  font-size: 0.875rem;
  color: #999999;
  transition: color 0.2s ease;
}

.footer__col ul li a:hover {
  color: #ffffff;
}

.footer__bottom {
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 0.813rem;
  color: #666666;
}

.footer__trust {
  font-size: 0.813rem;
  color: #666666;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.active {
  right: 0;
}

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-sidebar__header h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.cart-sidebar__close {
  color: #666;
  padding: 4px;
  transition: color 0.2s ease;
}

.cart-sidebar__close:hover {
  color: #1a1a1a;
}

.cart-sidebar__body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.cart-sidebar__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #999999;
  gap: 16px;
}

.cart-sidebar__empty p {
  font-size: 1rem;
  color: #666;
}

.cart-sidebar__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-sidebar__item-img {
  width: 80px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-sidebar__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-sidebar__item-details {
  flex: 1;
}

.cart-sidebar__item-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-sidebar__item-price {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 8px;
}

.cart-sidebar__item-remove {
  font-size: 0.75rem;
  color: #dc2626;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.cart-sidebar__footer {
  padding: 20px 24px;
  border-top: 1px solid #f0f0f0;
}

.cart-sidebar__total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #ffffff;
  border-radius: 16px;
  z-index: 3001;
  width: 720px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  color: #666;
  padding: 4px;
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: #1a1a1a;
}

.modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.modal__desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal__sizes {
  margin-bottom: 24px;
}

.modal__size-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.modal__size-options {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.modal__size {
  width: 40px;
  height: 40px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.813rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #1a1a1a;
}

.modal__size:hover,
.modal__size.active {
  border-color: #1a1a1a;
  background-color: #1a1a1a;
  color: #ffffff;
}

.modal__add-to-cart {
  width: 100%;
}

/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    max-height: 400px;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: 2.5rem;
  }

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

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__links {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.625rem;
    margin-bottom: 32px;
  }

  .header__menu-toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .header__nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.063rem;
    border-bottom: 1px solid #f5f5f5;
  }

  .hero {
    padding: 48px 0;
    min-height: auto;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .categories {
    padding: 64px 0;
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .best-sellers {
    padding: 64px 0;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .why-us {
    padding: 64px 0;
  }

  .why-us__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newsletter {
    padding: 64px 0;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter__title {
    font-size: 1.5rem;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .modal__image {
    max-height: 300px;
  }

  .modal__info {
    padding: 24px 20px;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__actions .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
    width: 100%;
  }

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

  .products__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card__info {
    padding: 12px;
  }

  .product-card__name {
    font-size: 0.813rem;
  }

  .product-card__price {
    font-size: 0.875rem;
  }

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

/* ---------- SCROLL ANCHOR OFFSET ---------- */
#men,
#women,
#kids,
#new-arrivals,
#best-sellers,
#categories {
  scroll-margin-top: 88px;
}

/* ---------- NAV HIGHLIGHT ---------- */
@keyframes highlightCard {
  0% { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5); }
  100% { box-shadow: none; }
}

.product-card.highlight {
  animation: highlightCard 1.5s ease-out;
}

/* ---------- BODY NO SCROLL ---------- */
body.no-scroll {
  overflow: hidden;
}
