/* ============================================================
   StepStyle Store — style.css
   Clean & Minimal theme
   ============================================================ */

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

:root {
  --black:   #111111;
  --white:   #ffffff;
  --gray-1:  #f5f5f3;
  --gray-2:  #e8e8e4;
  --gray-3:  #aaaaaa;
  --accent:  #2a9d8f;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-dark:hover { background: #333; border-color: #333; }

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-2);
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
}

.nav-links {
  display: flex; list-style: none; gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-3);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }

.cart-icon {
  font-size: 20px;
  position: relative;
  display: flex; align-items: center; gap: 5px;
}
.cart-count {
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500;
}

/* ─── HERO ──────────────────────────────────────────────────── */
.hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 90px 5% 80px;
  gap: 48px;
  min-height: 78vh;
  background: var(--gray-1);
}

.hero-content { flex: 1; max-width: 520px; }

.hero-sub {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 22px;
  color: var(--black);
}
.hero-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--black);
}

.hero-desc {
  font-size: 16px;
  color: #555;
  margin-bottom: 36px;
  max-width: 400px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }

/* ─── HERO COLLAGE ──────────────────────────────────────────── */
.hero-collage {
  display: flex;
  gap: 12px;
  height: 500px;
  width: 100%;
  max-width: 480px;
  animation: float 4s ease-in-out infinite;
}

.collage-main {
  flex: 2;
  border-radius: 200px 200px 120px 120px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.collage-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.collage-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 40px;
}

.collage-small {
  flex: 1;
  border-radius: 100px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ─── SECTION TITLE ─────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 300;
  text-align: center;
  margin-bottom: 42px;
  color: var(--black);
}

/* ─── CATEGORIES ────────────────────────────────────────────── */
.categories {
  padding: 80px 5%;
  background: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  border-radius: 16px;
  overflow: hidden;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.category-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.category-card:hover .category-img {
  transform: scale(1.07);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  color: var(--white);
}

.category-overlay h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-overlay p {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.category-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}
.category-card:hover .category-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── FEATURED / PRODUCTS GRID ──────────────────────────────── */
.featured {
  padding: 80px 5%;
  background: var(--gray-1);
}

.shop-section {
  padding: 60px 5% 80px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-2);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* ─── PRODUCT IMAGE ─────────────────────────────────────────── */
.product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-1);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

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

.product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: var(--gray-1);
}

.product-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.product-cat-badge[data-cat="accessories"] { color: #a36b1a; }
.product-cat-badge[data-cat="clothing"]    { color: #a31a6f; }

.product-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}

.product-desc {
  font-size: 13px;
  color: var(--gray-3);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-price {
  font-size: 18px;
  font-weight: 500;
  color: var(--black);
}

.add-btn {
  padding: 9px 18px;
  font-size: 13px;
  transition: background 0.2s;
}

.view-all { text-align: center; margin-top: 48px; }

.no-results {
  text-align: center;
  padding: 60px;
  color: var(--gray-3);
  font-size: 16px;
  width: 100%;
}

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  padding: 60px 5% 40px;
  text-align: center;
  background: var(--gray-1);
  border-bottom: 1px solid var(--gray-2);
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  margin-bottom: 10px;
}
.page-header p { color: var(--gray-3); font-size: 15px; }

/* ─── FILTER BAR ────────────────────────────────────────────── */
.filter-bar {
  padding: 24px 5%;
  border-bottom: 1px solid var(--gray-2);
  background: var(--white);
}
.filter-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}

.search-input {
  flex: 1; min-width: 200px;
  padding: 10px 16px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--black); }

.filter-buttons { display: flex; gap: 8px; }

.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--gray-2);
  background: transparent;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-3);
}
.filter-btn:hover { border-color: var(--black); color: var(--black); }
.filter-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* ─── CART PAGE ─────────────────────────────────────────────── */
.cart-section {
  padding: 60px 5%;
  max-width: 1100px;
  margin: 0 auto;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
}
.cart-empty p { font-size: 20px; margin-bottom: 24px; color: var(--gray-3); }

#cart-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cart-items {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--gray-1);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--gray-2);
}

.cart-item-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-2);
  flex-shrink: 0;
}
.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-img-fallback {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--gray-1);
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-family: var(--font-display); font-size: 18px; margin-bottom: 2px; }
.cart-item-cat { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.cart-item-price { font-weight: 500; font-size: 15px; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-item-qty button {
  width: 28px; height: 28px;
  border: 1.5px solid var(--gray-2);
  background: var(--white);
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
}
.cart-item-qty button:hover { background: var(--gray-2); }
.cart-item-qty span { font-size: 15px; font-weight: 500; min-width: 18px; text-align: center; }

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-3);
  transition: color var(--transition);
  padding: 4px;
}
.cart-item-remove:hover { color: #e63946; }

.cart-summary {
  width: 300px;
  background: var(--gray-1);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--gray-2);
  position: sticky; top: 90px;
}
.cart-summary h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}
.total-row {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  border-top: 1px solid var(--gray-2);
  padding-top: 14px;
  margin-top: 6px;
}

.checkout-btn { width: 100%; text-align: center; margin-top: 22px; }

.continue-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--gray-3);
  margin-top: 14px;
  transition: color var(--transition);
}
.continue-link:hover { color: var(--black); }

/* ─── CONTACT PAGE ──────────────────────────────────────────── */
.contact-section {
  display: flex;
  gap: 60px;
  padding: 70px 5%;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-block, .contact-form-block { flex: 1; min-width: 280px; }

.about-block h2,
.contact-form-block h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 18px;
}
.about-block p { color: #555; margin-bottom: 14px; line-height: 1.7; }

.contact-info-list { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #444;
}
.ci-icon { font-size: 18px; margin-top: 1px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--black);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--black); }

.form-success {
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 44px 5%;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
}
.footer p { font-size: 13px; color: #888; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px;
  color: #aaa;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
    min-height: auto;
  }
  .hero-btns { justify-content: center; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-collage { height: 320px; max-width: 100%; }

  .nav-links { display: none; }

  #cart-content { flex-direction: column; }
  .cart-summary { width: 100%; position: static; }

  .contact-section { flex-direction: column; }
}
#c-country {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}
#c-country:focus { border-color: var(--black); }
/* ─── SIZE SELECTOR ─────────────────────────────────────────── */
.size-selector {
  margin-bottom: 14px;
}

.size-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-3);
  margin-bottom: 8px;
}

.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-btn {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gray-2);
  background: var(--white);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--black);
}

.size-btn:hover {
  border-color: var(--black);
}

.size-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
/* ─── REVIEWS ───────────────────────────────────────────────── */
.product-reviews {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-2);
}
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.reviews-title { font-size: 13px; font-weight: 500; color: var(--black); }
.write-review-btn {
  font-size: 12px; background: none;
  border: 1.5px solid var(--gray-2); border-radius: 99px;
  padding: 4px 12px; cursor: pointer; font-family: var(--font-body); color: var(--black);
  transition: all 0.2s;
}
.write-review-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.verify-form {
  background: var(--gray-1); border-radius: 10px;
  padding: 16px; margin-bottom: 12px;
}
.verify-hint { font-size: 12px; color: var(--gray-3); margin-bottom: 10px; }
.verify-form input {
  width: 100%; padding: 8px 12px; border: 1.5px solid var(--gray-2);
  border-radius: 8px; font-family: var(--font-body); font-size: 13px;
  margin-bottom: 8px; outline: none;
}
.verify-form input:focus { border-color: var(--black); }
.review-form {
  background: var(--gray-1); border-radius: 10px;
  padding: 16px; margin-bottom: 12px;
}
.star-rating {
  display: flex; gap: 4px; margin-bottom: 10px;
  font-size: 24px; cursor: pointer;
}
.star-input { color: var(--gray-2); transition: color 0.15s; }
.star-input.active, .star-input.selected { color: #f4a61d; }
.review-comment {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--gray-2);
  border-radius: 8px; font-family: var(--font-body); font-size: 13px;
  margin-bottom: 10px; resize: vertical; outline: none;
}
.review-comment:focus { border-color: var(--black); }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--gray-2); }
.review-item:last-child { border-bottom: none; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review-stars { color: #f4a61d; font-size: 13px; }
.review-author { font-size: 13px; font-weight: 500; }
.review-body { font-size: 13px; color: #555; margin-bottom: 4px; line-height: 1.5; }
.review-date { font-size: 11px; color: var(--gray-3); }

/* ─── TESTIMONIALS (Homepage) ───────────────────────────────── */
.testimonials {
  padding: 80px 5%;
  background: var(--black);
  color: var(--white);
}
.testimonials .section-title { color: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px;
}
.testimonial-stars { color: #f4a61d; font-size: 18px; margin-bottom: 14px; }
.testimonial-comment {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px; font-style: italic;
}
.testimonial-author { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; }
.testimonial-product { font-size: 12px; color: #2a9d8f; margin-top: 2px; }
/* ─── MOBILE HAMBURGER MENU ─────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile styles */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--gray-2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--gray-2);
  }

  .nav-links a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    color: var(--black) !important;
  }

  .nav-links a:hover {
    background: var(--gray-1);
  }

  .navbar {
    position: relative;
  }
}