/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BACKGROUND & FONT */
body {
  font-family: sterion, Arial, Helvetica, sans-serif;
  background: url("background.png") center / cover fixed no-repeat;
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}


/* HEADER */
header {
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  z-index: 1000;
}

.header-inner {
  text-align: center;
  padding: 15px;
  filter: drop-shadow( 0px 3px 10px rgb(159, 156, 219));
  width: 100%;

}

header img {
  height: 100px;
}

/* MAIN */
main {
  max-width: 1200px;
  margin: auto;
  padding: 30px;
}

/* PRODUCTS */
#product-list {
  display: flex;
  gap: 20px;
  margin-top: 12px;
  margin-bottom: 20px;
}

#product-list div {
  background: white;
  color: black;
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .3s;
}

#product-list div:hover {
  transform: translateY(-10px);
}

#product-list img {
  max-width: 200px;
}

/* CUSTOMIZATION */
#customization {
  background: rgb(255, 255, 255);
  color: black;
  padding: 25px;
  border-radius: 18px;
}

h2 {
  color: #ffffff;
  margin-bottom: 15px;
  margin-top: 12px;
  filter: drop-shadow( 0px 2.5px 1px black);
}

h3 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 15px;
  filter: drop-shadow( 0px 2.5px 1px black);
}

#front {
  font-family: sterion;
  padding: 12px 25px;
  background: #ffffff;
  color: rgb(0, 0, 0);
  border-radius: 12px;
  font-size: 16px;
}
#front:hover {
  background: #dddddd;
}
#front.clicked {
  font-family: sterion;
  padding: 12px 25px;
  background: #000000;
  color: white;
  border-radius: 12px;
  font-size: 16px;
}

#back {
  font-family: sterion;
  padding: 12px 25px;
  background: #ffffff;
  color: rgb(0, 0, 0);
  border-radius: 12px;
  font-size: 16px;
}
#back:hover {
  background: #dddddd;
}
#back.clicked {
  font-family: sterion;
  padding: 12px 25px;
  background: #000000;
  color: white;
  border-radius: 12px;
  font-size: 16px;
}

.canvas-container {
  display: flex;
  gap: 30px;
  justify-content: center;
}

.canvas-box p {
  text-align: center;
  font-weight: bold;
}

canvas {
  max-width: 500px;
  border: 10px solid #00000000;
  cursor: grab;
  border-radius: 18px;
}

.choose-side {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

#designSize {
  width: 25%;
}

/* ==============================
   🎨 DESIGNS CAROUSEL
============================== */

.designs-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

#designs {
  display: flex;
  gap: 15px;
  overflow-x: hidden;     /* hide scroll bar */
  scroll-behavior: smooth;
  width: 1000px;       /* 🔴 CHANGE WIDTH HERE */
  padding: 10px;
  background: #f5f5f5;
  border-radius: 14px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch; /* SMOOTH SCROLL ON IOS */
}

#designs img {
  height: 80px;           /* 🔴 DESIGN DISPLAY SIZE */
  width: auto;
  object-fit: contain;    /* NO STRETCH */
  background: white;
  padding: 6px;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border 0.2s ease;
}

#designs img:hover {
  transform: scale(1.05);
  border-color: #999;
}

#designs img.active-design {
  border-color: black;
}

/* ARROWS */
.arrow {
  background: black;
  color: white;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 38px;
}

.arrow:hover {
  background: #333;
}



/* SIZE */
.size-section {
  margin: 20px 0;
  text-align: center;
}

.sizes {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.size-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #aaa;
  cursor: pointer;
}

.size-btn.active {
  font-family: sterion;
  background: #000000;
  color: white;
}

/* add to cart */
#add-to-cart-btn {
  font-family: sterion;
  display: block;
  margin: 20px auto 0 auto;
  padding: 12px 25px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}

#export-btn {
  display: block;
  margin: 0px 20px 0 auto;
  padding: 12px 25px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}

/* CART */
#cart-section {
  margin-top: 40px;
  background: rgba(255, 255, 255);
  padding: 20px;
  border-radius: 18px;
}

h4 {
  color: rgb(0, 0, 0);
}

li {
  font-family: 'arial', Courier, monospace;
  margin-top: 10px;
  color: rgb(0, 0, 0);
}

#remove-all-btn {
  font-family: sterion;
  display: block;
  margin: 0px 20px 0 auto;
  padding: 12px 25px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}

#cart-items button {
  margin-left: 15px;
  padding: 5px 10px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ===============================
   MOBILE CLEANUP (≤ 768px)
   =============================== */
@media (max-width: 768px) {

  /* GLOBAL */
  body {
    overflow-x: hidden;
    overflow-y: scroll;
  }

  main {
    padding: 12px;
  }

  .header-inner {
    padding: 10px;
    text-align: center;
    filter: drop-shadow( 0px 3px 10px rgb(159, 156, 219));
    width: 100%;
  }

  header img {
    height: 50px;
  }

  /* ---------- PRODUCT LIST ---------- */

  h2 {
    font-size: 15px;
  }

  #product-list {
    flex-wrap: wrap;
    gap: 10px;
  
  }

  #product-list div {
    width: 100px;
    height: 150px;
    max-width: 300px;
    text-align: center;
    font-size: 7px;
  }

  #product-list img {
    width: 70px;
    height: 70px;
    max-width: 100px;
    margin-bottom: 5px;
  }

  /* ---------- CUSTOMIZATION BOX ---------- */

  h3 {
    font-size: 15px;
  }

  #customization {
    padding: 10px;
    border-radius: 15px;
  }

  /* ---------- CANVAS PREVIEW ---------- */
  .canvas-container {
    flex-direction: flex;
    gap: 2px;
    align-items: center;
    max-width: 100%;
    padding: 1px;
    box-sizing: border-box;
    justify-content: center;
    margin-bottom: 1px;
  }

  canvas {
    width: 100% !important;
    max-width: 280px;
    height: auto !important;
    touch-action: none;
    user-select: none;
  }

  .canvas-box p {
    font-size: 14px;
  }

  /* ---------- FRONT / BACK BUTTONS ---------- */
  .choose-side {
    margin-top: 1px;
    gap: 10px;
    padding: 1px;
    font-size: 12px;
  }

  #front,
  #back {
    padding: 7px 10px;
    font-size: 13px;
  }

  #front.clicked,
  #back.clicked {
    padding: 7px 10px;
    font-size: 15px;
  }

  /* ---------- DESIGN SIZE SLIDER ---------- */
  .size-section p {
    font-size: 15px;
    margin-bottom: 5px;
  }

  .size-section input[type="range"] {
    width: 100%;
    margin-bottom: 1px;
  }

  #designSize {
    width: 75%;
  }

  /* ---------- DESIGNS CAROUSEL ---------- */
  .designs-wrapper {
    width: 100%;
    gap: 8px;
    margin-top: 1px;
    margin-bottom: 1px;
  }

  #designs {
    width: 100%;
    overflow-x: scroll;
    gap: 10px;
    padding: 5px;
  }

  #designs img {
    height: 60px;
    padding: 4px;
  }

  .arrow {
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
  }

  /* ---------- SIZE BUTTONS ---------- */
  .size-section p {
    font-size: 15px;
    margin-bottom: 1px;
    margin-top: 20px;
  }

  .sizes {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 1px;
  }

  .size-btn {
    padding: 6px 12px;
    font-size: 13px;
    margin-bottom: 1px;
  }

  /* ---------- ACTION BUTTONS ---------- */
  #add-to-cart-btn {
    width: 100px;
    justify-content: left;
    font-size: 10px;
    margin: 1px;
    padding: 10px;
  }
  
  #export-btn {
    width: 100px;
    justify-content: right;
    font-size: 10px;
    padding: 10px;
    margin-right: 1px;
  }

  #remove-all-btn {
    margin-top: 10px;
    width: 200px;
    justify-content: right;
    font-size: 15px;
  }

  /* ---------- CART ---------- */
  #cart-section {
    padding: 14px;
  }

  li {
    margin-left: 10px;
    font-size: 14px;
  }
}
