@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #c7c0b9; /* R:199,G:192,B:185 */
  --secondary: #ffffff; /* R:255,G:255,B:255 */
  --tertiary: #ece7e4; /* R:236,G:231,B:228 */
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --accent: #333333;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
}

@font-face { 
  font-family: 'Choco'; 
  src: url('font/Choco-Zp7X3.ttf') format('truetype');
  font-weight: normal; 
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--tertiary);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

.hamburger{
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Top bar */
.top-bar{
  position: relative;
  background: var(--primary);
  color: var(--secondary);
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Header */
header {
  background: var(--secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.site-title {
  font-family: 'Choco', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 1px;
  padding-left: 50px;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  left: 0;
  bottom: -4px;
  background: var(--text);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.cart-link {
  font-size: 1.2rem;
  color: var(--text);
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-link:hover {
  color: var(--accent);
}

#cart-count {
  background: var(--text);
  color: var(--secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  font-size: 0.7rem;
  position: absolute;
  top: -8px;
  right: -10px;
}


/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  position: relative;
  z-index: 1001;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger.active {
  transform: rotate(90deg);
}

/* Hide mobile profile by default */
.mobile-profile {
  display: none;
}

/* Animations for mobile menu */
.menu-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}



/* Blur effect for content when menu is open */
body.menu-open main {
  filter: blur(5px);
  transition: filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}




/* Product Page */
.product-page {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.swiper-container {
  width: 100%;
  max-width: 500px;
  height: 500px;
  border-radius: 0;
  overflow: hidden;
  background: var(--secondary);
  border: 1px solid var(--border);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: var(--secondary);
  padding: var(--spacing-md);
  border: 1px solid var(--border);
}

.product-info h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.price {
  color: var(--text);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-sizes {
  margin-bottom: 1.5rem;
}

.product-sizes h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.sizes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.size-box {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 400;
  font-size: 0.8rem;
  background: var(--secondary);
}

.size-box:hover {
  border-color: var(--text);
}

.size-box.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--secondary);
}

.size-chart-btn {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.size-chart-btn:hover {
  border-color: var(--text);
}

.quantity-control {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  width: fit-content;
}

.quantity-control button {
  background: var(--secondary);
  color: var(--text);
  border: none;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.quantity-control button:hover {
  background: var(--tertiary);
}

.quantity-control input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.5rem;
  font-size: 0.9rem;
  background: var(--secondary);
}

.btn {
  background: var(--text);
  color: var(--secondary);
  border: 1px solid var(--text);
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.3s;
  font-weight: 400;
  letter-spacing: 0.5px;
  width: 100%;
}

.btn:hover {
  background: var(--secondary);
  color: var(--text);
}

.fly-img {
  position: absolute;
  width: 50px;
  height: auto;
  border-radius: 0;
  transition: transform 1s ease-in-out, opacity 1s ease-in-out;
  z-index: 1000;
  pointer-events: none;
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {

.hamburger {
    display: block;
    position: absolute;
    left: 1rem;
    z-index: 1001;
  }
  
  header {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
  }

  

  .product-page {
    padding: var(--spacing-sm);
    flex-direction: column;
  }
  
  .swiper-container {
    height: 400px;
  }
  
  header {
    padding: var(--spacing-sm);
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .product-info {
    padding: var(--spacing-sm);
  }
}