/* 
 * Stiyko Dance Shoes - Main Styles
 * Black & White Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-gray-100: #f3f3f3;
  --color-gray-200: #e5e5e5;
  --color-gray-800: #333333;
  --font-main: 'Inter', sans-serif;
  --transition-fast: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Snackbar (Toast) */
#snackbar {
  visibility: hidden;
  min-width: 250px;
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 99999;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

#snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

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

.text-center {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-gray-200);
  padding: 1rem 0;
}

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

.logo img {
  height: 40px;
  width: auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.burger-menu {
  display: none;
}

/* Order Button Style in Nav */
.btn-nav-order {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-nav-order:hover {
  background-color: var(--color-gray-800);
  color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Remove underline effect for button */
.btn-nav-order::after {
  display: none;
}


.header-socials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-gray-200);
}

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-black);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-gray-200);
}

.lang-link {
  color: var(--color-gray-800);
  opacity: 0.5;
}

.lang-link.active {
  color: var(--color-black);
  opacity: 1;
  text-decoration: underline;
}

.lang-link:hover {
  opacity: 0.8;
}

.lang-link:hover {
  opacity: 0.8;
}

/* Mobile Nav - Hidden by default on Desktop */
.mobile-nav {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  /* min-height: 80vh; */
  /* display: flex; */
  /* align-items: center; */
  background-color: var(--color-white);
  padding: 2rem 0;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 8px;
  /* box-shadow: 0 4px 20px rgba(0,0,0,0.05); */
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  list-style: none;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* or contain depending on image aspect ratio? Images look wide */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.carousel-btn:hover {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn--left {
  left: 20px;
}

.carousel-btn--right {
  right: 20px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  padding: 10px 0;
  gap: 10px;
}

.carousel-indicator {
  border: 0;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background: var(--color-gray-200);
  cursor: pointer;
}

.carousel-indicator.current-slide {
  background: var(--color-black);
}

/* Main Content Area */
.main-content {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.brand-story {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.brand-story p {
  font-size: 1.1rem;
  color: var(--color-gray-800);
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 4rem 20px;
  background-color: var(--color-black);
  color: var(--color-white);
  border-radius: 4px;
  margin-bottom: 4rem;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--color-white);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-dark {
  display: inline-block;
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid var(--color-black);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-dark:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: var(--color-gray-100);
  padding: 3rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col h4 {
  font-size: 14px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Hide for mobile, implement burger if needed, or simple stack */
  }

  .nav-container {
    /* For simplicity in this prompt, maybe just keep lang switch and logo centered? */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Hamburger Menu */
  .burger-menu {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--color-black);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  /* Mobile Nav Overlay */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
  }

  .mobile-nav.active {
    transform: translateX(0);
  }

  .mobile-nav .nav-link {
    font-size: 1.5rem;
  }

  /* Hide default header right items on mobile, but keep lang switch */
  .header-right {
    display: flex;
    margin-left: auto;
    /* Push to right */
    margin-right: 1rem;
    /* Gap between lang and burger */
    gap: 0;
  }

  .header-right .nav-link,
  .header-right .header-socials {
    display: none;
  }

  /* Style Order Button in Mobile Menu */
  .mobile-nav .btn-mobile-order {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    margin-top: 1rem;
    transition: transform 0.3s;
  }

  .mobile-nav .btn-mobile-order:hover {
    transform: scale(1.05);
  }

  /* Adjust lang switch for mobile header bar */
  .lang-switch {
    padding-left: 0;
    border-left: none;
  }

  .mobile-socials {
    margin-top: 2rem;
    gap: 1.5rem;
    border-left: none;
    justify-content: center;
    padding-left: 0;
  }
}

/* Measurement Guide Section */
.measure-section {
  padding: 4rem 0;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gray-200);
  margin-bottom: 1rem;
  line-height: 1;
}

.step-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step-desc {
  color: var(--color-gray-800);
  font-size: 0.95rem;
}

.measure-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.05); */
}

/* CATALOG STYLES */

.catalog-section {
  padding: 2rem 0;
  min-height: 80vh;
}

.catalog-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Filters Sidebar */
.filters-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--color-white);
  padding: 1rem;
  position: sticky;
  top: 80px;
  /* below sticky header */
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  align-self: flex-start;
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-gray-200);
  padding-bottom: 0.5rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-gray-800);
  transition: color 0.2s;
}

.filter-label:hover {
  color: var(--color-black);
}

.filter-label input[type="radio"],
.filter-label input[type="checkbox"] {
  accent-color: var(--color-black);
  cursor: pointer;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
  display: none;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--color-black);
  color: var(--color-white);
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

/* Product Grid */
.product-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 1px solid var(--color-gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Share Button */
.product-share-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-gray-200);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--color-black);
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-5px);
}

.product-card:hover .product-share-btn {
  opacity: 1;
  transform: translateY(0);
}

.product-share-btn:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .product-share-btn {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card.highlighted {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transform: scale(1.02);
  z-index: 1;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(45deg, #000000, #999999, #000000) border-box;
  background-size: 200% 200%;
  animation: borderShimmer 2s linear infinite;
}

@keyframes borderShimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-image-container {
  position: relative;
  padding-top: 100%;
  /* Square aspect ratio 1:1 */
  overflow: hidden;
  background-color: var(--color-gray-100);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-info {
  padding: 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--color-gray-800);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.product-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Responsive Catalog */
@media (max-width: 900px) {
  .catalog-layout {
    flex-direction: column;
    position: relative;
  }

  /* Sticky filter button */
  .mobile-filter-toggle {
    display: block;
    position: sticky;
    top: 80px;
    /* just below sticky header */
    z-index: 100;
    margin: 10px 0 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  /* Filter panel as overlay */
  .filters-sidebar {
    position: fixed;
    top: 73px;
    /* below header */
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    z-index: 9999;
    display: none;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 1rem;
    /* Reset sticky from desktop */
    align-self: auto;
  }

  .filters-sidebar.active {
    display: block;
  }

  /* Apply button inside filter panel */
  .filters-apply-btn {
    display: block;
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-bottom: 1rem;
  }

  /* .filters-apply-btn:hover {
    background: var(--color-gray-800);
    transform: scale(1.02);
  } */
}

@media (min-width: 900px) {

  /* Hide apply button on desktop */
  .filters-apply-btn {
    display: none;
  }
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  color: var(--color-gray-800);
  width: 100%;
}

/* Filters Backdrop (mobile overlay) */
.filters-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filters-backdrop.active {
  display: block;
  opacity: 1;
}

/* Scroll To Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-black);
  color: var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--color-gray-800);
  transform: translateY(-5px);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 30px;
    right: 20px;
    width: 45px;
    height: 45px;
    z-index: 2000;
  }
}

/* Skeleton Loader */
.skeleton {
  background: #f0f0f0;
  background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
  background-size: 200% 100%;
  animation: 1.5s shine linear infinite;
}

@keyframes shine {
  to {
    background-position-x: -200%;
  }
}

.skeleton-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-white);
  padding: 0;
}

.skeleton-image {
  width: 100%;
  padding-top: 100%;
  /* 1:1 Aspect Ratio */
  position: relative;
}

.skeleton-content {
  padding: 1.2rem;
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
}

.skeleton-title {
  height: 1.5rem;
  margin-bottom: 1rem;
  width: 80%;
}

.skeleton-desc {
  height: 0.8rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

.skeleton-desc.short {
  width: 60%;
}