/* =================================================
   GVNG — GLOBAL RESET & VARIABLES
================================================= */
:root {
  --bg-main: #f4f4f1;      /* Essentials-style off white */
  --text-main: #111111;
  --text-muted: #555555;
  --accent-dark: #000000;
  --accent-light: #e6e6e2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =================================================
   LINKS & BUTTONS
================================================= */
a {
  text-decoration: none;
  color: inherit;
}

button {
  background: var(--accent-dark);
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

button:hover {
  opacity: 0.8;
}

/* =================================================
   LAYOUT HELPERS
================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section {
  margin-bottom: 100px;
}

/* =================================================
   HEADER / NAVIGATION
================================================= */
header {
  padding: 35px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 1.1rem;
}

.logo-symbol {
  width: 8px;
  height: 8px;
  background: var(--accent-dark);
  display: inline-block;
}

nav a {
  margin-left: 35px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

/* =================================================
   HERO
================================================= */
.hero {
  height: 85vh;
  background: #dcdcdc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  letter-spacing: 0.3em;
  margin-bottom: 15px;
}

.hero p {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* =================================================
   SHOP CATEGORY FILTER
================================================= */
.shop-categories {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.shop-categories button {
  background: transparent;
  color: var(--text-main);
  border-bottom: 1px solid transparent;
  padding: 5px 0;
}

.shop-categories button.active {
  border-bottom: 1px solid var(--accent-dark);
}

/* =================================================
   PRODUCT GRID
================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.product-card {
  text-align: center;
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 18px;
}


.product-card h3 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #111;
}

.product-card p {
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}

/* =================================================
   PRODUCT PAGE
================================================= */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.product-images img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.product-info h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}

.product-info p {
  font-size: 0.85rem;
  margin-bottom: 25px;
  color: var(--text-muted);
}

.size-selector {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
}

.size-selector button {
  background: var(--accent-light);
  color: var(--text-main);
}

/* =================================================
   FOOTER
================================================= */
footer {
  padding: 50px 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

footer p {
  letter-spacing: 0.12em;
}

/* =================================================
   RESPONSIVE
================================================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 25px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .product-page {
    grid-template-columns: 1fr;
  }
}
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}
/* =================================================
   CART PAGE QUANTITY BUTTONS
================================================= */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.quantity-controls button {
  padding: 5px 10px;
  font-size: 0.8rem;
  cursor: pointer;
}
/* =================================================
   PRODUCT POPUP
================================================= */

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: #fff;
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.popup-content img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
}

.popup-content h2 {
  margin-bottom: 10px;
}

.popup-content p {
  margin-bottom: 15px;
}

#close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  cursor: pointer;
  font-weight: bold;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Selected Size */
.size-selector button.active-size {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
/* ================= CART PAGE ================= */

#cart-items .product-card{
  display:flex;
  align-items:center;
  gap:20px;
  text-align:left;
  margin-bottom:20px;
}

#cart-items .product-card img{
  width:140px;
  height:170px;
  object-fit:cover;
  border-radius:10px;
  flex-shrink:0;
}
/* ================= PRODUCT GALLERY ================= */

.popup-thumbnails{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:20px 0;
  flex-wrap:wrap;
}

.popup-thumbnails img{
  width:70px;
  height:70px;
  object-fit:cover;
  cursor:pointer;
  border:1px solid #ddd;
  transition:.2s;
}

.popup-thumbnails img:hover{
  border-color:#111;
}
.popup-thumbnails img.active-thumb{
  border:2px solid #111;
  transform:scale(1.05);
}
/* ===== POPUP GALLERY ===== */

.popup-gallery{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.gallery-arrow{
  position:absolute;
  background:none;
  border:none;
  color:#111;
  font-size:36px;
  cursor:pointer;
  padding:10px;
  z-index:10;
  transition:0.2s ease;
}

.gallery-arrow:hover{
  color:#777;
}

#prev-image{
  left:10px;
}

#next-image{
  right:10px;
}