@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: 4rem;
  --spacing-xl: 8rem;
}

@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(--secondary);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
}

/* Top bar */
.top-bar{
  position: relative;
  background: #000000;
  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: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  height: auto;
}

.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;
}

header img {
  height: 40px;
}

/* Navigation - Clean Minimalist */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  left: 0;
  bottom: -4px;
  background: var(--text);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Cart link */
.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 */
.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);
}

/* Menu Overlay */
.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);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    left: 1rem;
    z-index: 1002;
  }
  
  header {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 70px;
  }
  
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .logo img {
    display: none;
  }
  
  .site-title {
    font-size: 2rem;
    padding: 0;
    margin: 0;
    text-align: center;
    justify-content: center;
  }
  
  .cart-link {
    position: absolute;
    right: 1rem;
    z-index: 1002;
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    background: var(--secondary);
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    visibility: visible;
  }
  
  .nav-links:not(.show) {
    pointer-events: none;
  }
  
  .nav-links.show {
    transform: translateX(0);
    pointer-events: auto;
  }
  
  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  .nav-links.show a {
    opacity: 1;
    transform: translateX(0);
  }
  
  /* Stagger the menu item animations */
  .nav-links.show a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.show a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.show a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.show a:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.show a:nth-child(5) { transition-delay: 0.3s; }
  
  /* Close button for menu */
  .menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1001;
  }
  
  .nav-links.show .menu-close {
    opacity: 1;
    transform: rotate(0deg);
    transition-delay: 0.35s;
  }
}

/* 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);
}

/* Desktop Navigation Styles */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    box-shadow: none;
    transform: none;
    background: transparent;
    overflow: visible;
  }
  
  .nav-links a {
    padding: 0;
    border-bottom: none;
    opacity: 1;
    transform: none;
    font-size: 0.9rem;
    margin: 0 1rem;
  }
  
  .menu-close {
    display: none;
  }
  
  .menu-overlay {
    display: none;
  }
}

/* ==========================
   PRODUCT GRID STYLING
   (DESKTOP DEFAULT + MOBILE RESPONSIVE)
========================== */

/* 💻 DESKTOP VIEW (Default) */
.shop {
  text-align: center;
  padding: 10px 20px;
  background-color: #fff;
}

.shop h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 15px;
}

.shop p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

.product-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row by default */
  gap: 10px;
  justify-items: center;
  padding: 0 40px;
}

.product-card {
  background-color: #fafafa;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%;
  max-width: 500px;
  
}


.product-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1rem;
  color: #3c3c3c;
  margin-top: 10px;
  font-family:sans-serif;
    font-weight: lighter;
}

.product-card p {
  color: #7b7b7b;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 3px;
}

.btn2 {
  display: inline-block;
  margin-bottom: 20px;
  background-color: #adadad92;
  color: #000000;
  border: #000000;
  padding: 10px 18px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn2:hover {
  background-color: #bababa;
}

/* MOBILE VIEW*/
@media (max-width: 768px) {
  .shop {
    padding: 10px 3px;
  }

  .shop h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  .shop p {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .product-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
    gap: 5px;
    justify-items: center;
    padding: 0 10px;
  }

  .product-card {
    width: 100%;
    max-width: 300px; /* Adjusted to fit perfectly on 2-column mobile grid */
    
  }

  .product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

  .product-card h3 {
    font-size: 0.8rem;
    margin-top: 6px;
    font-family:sans-serif;
    font-weight: lighter;
  }

  .product-card p {
    font-size: 0.9rem;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .btn2 {
    padding: 8px 12px;
    margin-bottom: 12px;
  }
}
