* {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Main';
  src: url("/assets/fonts/Nice Sugar.ttf");
}

@font-face {
  font-family: 'Headings';
  src: url("/assets/fonts/Spicy Sale.ttf");
}

:root {
  --text-color: blueviolet;
}

body {
  font-family: 'Main', 'Comic Sans MS', 'Poppins', sans-serif;
  font-size: 16px;
  margin: 0;
  background: linear-gradient(to bottom, white, white, white, white, lemonchiffon);
  color: var(--text-color);
  transition: all 0.3s ease;
  line-height: 1.5;
}

h1,
h2 {
  font-size: xx-large;
}

h3,
h4,
h5 {
  font-size: 18px;
}

h1,
h2,
h3,
h4 {
  text-align: center;
  letter-spacing: 1px;
  font-family: 'Headings';
  color: red;
}

p {
  margin: 15px 0;
}

a {
  color: red;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px; /* This adds space */
}

hr {
  width: 70%;
  height: 0;
  border: none;
  border-top: 3px dashed transparent;
  border-image: linear-gradient(to right, red, orange, yellow, lime, dodgerblue, blueviolet) 1;
  margin: 2em auto;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, rgb(255, 18, 18), rgb(255, 182, 45), rgb(255, 255, 120), rgb(81, 255, 81), rgb(97, 176, 255), rgb(173, 85, 255));
  color: white;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 4px solid white;
}

nav ul {
  display: flex;
  gap: 1em;
  list-style: 0;
  padding: 0;
}

.welcome-content ul {
  list-style: none; /* Remove default bullets */
  padding-left: 0;
}

.welcome-content ul li {
  position: relative;
  padding-left: 1.2em;
  padding-bottom: 10px;
}

.welcome-content ul li::before {
  content: "★";
  position: absolute;
  left: 0;
  font-size: large;  /* Change size here */
}

nav a {
  text-decoration: none;
  line-height: none;
  color: white;
  font-weight: bold;
  font-size: large;
  text-shadow:
    2px 2px blueviolet,
    -2px 2px blueviolet,
    2px -2px blueviolet,
    -2px -2px blueviolet,
    2px 0 blueviolet,
    -2px 0 blueviolet,
    0 2px blueviolet,
    0 -2px blueviolet;
}

nav a.active {
  border-bottom: 3px solid white;
}

nav img {
  max-height: 30px;
}

/* === Banner === */
.banner {
  background-image: url('/assets/storefront/banner alt.png');
  background-position: center;
  background-size: 950px;
  height: 255px;
}

.top-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5em;
  margin: 0;
  padding: 0;
}

.cart-btn {
  background: white;
  border: 4px solid blueviolet;
  border-radius: 20px;
  padding: 0.5em 1.5em;
  font-size: large;
  cursor: pointer;
}

/* === Welcome Section === */
.welcome-section {
  display: flex;
  justify-content: center;
  padding: 2em 1em;
  position: relative;
}

.about .welcome-section {
  padding: 0 1em;
}

.welcome-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  position: relative;
  max-width: 100%;
}

/* 💬 Bubble box for text */
.welcome-text {
  padding: 1.5em;
  max-width: 60%;
  position: relative;
}

/* 🧷 PFP */
.welcome-pfp {
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}

.welcome-description {
  font-size: 1em;
  line-height: 1.6em;
}

.shop-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 0 3em;
}

.category-sidebar {
  flex: 1;
  border-radius: 10px;
  position: sticky;
  top: 120px;
  height: fit-content;
}

.category-sidebar h3 {
  margin-bottom: 10px;
  font-size: x-large;
  text-align: center;
}

.category-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-sidebar li {
  position: relative;
  display: inline-block;
  padding: 7px;
  --color1: rgb(255, 55, 55);
  --color2: rgb(255, 196, 87);
  background: linear-gradient(135deg, var(--color1), var(--color2));
  border: 3px solid blueviolet;
  border-radius: 18px 70px 10px 70px;
  letter-spacing: 1px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: large;
  margin: 10px 0;
  transition: all 0.2s ease;
  transform: perspective(250px) rotateX(8deg);
  width: 100%;
  cursor: pointer;
  box-shadow: 0 5px 0 blueviolet;
}

.category-sidebar li:nth-child(2) {
  --color1: rgb(255, 204, 109);
  --color2: rgb(255, 239, 92);
}

.category-sidebar li:nth-child(3) {
  --color1: rgb(255, 238, 85);
  --color2: #a7ff6d;
}

.category-sidebar li:nth-child(4) {
  --color1: rgb(137, 247, 255);
  --color2: rgb(232, 203, 255);
}

.category-sidebar li:hover,
.category-sidebar li.active {
  transform: perspective(250px) rotateX(8deg) scale(1.1);
  filter: brightness(1.2);
  background: blueviolet;
  color: white;
  text-shadow: -1px 3px black, 0 0 5px black;
  box-shadow: 0 5px 0 black;
}

.shop-page {
  flex: 3;
  text-align: center;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  gap: 3em;
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background: white;
  border-radius: 10px;
  outline: 4px solid blueviolet;
  box-shadow: 8px 8px 0 blueviolet;
  padding: 15px;
  width: 280px;
  max-width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product:hover {
  transform: scale(1.06);
  box-shadow: 0 0 blueviolet;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden; /* Hide extra images */
  margin-bottom: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.carousel-image {
  flex: 0 0 100%; /* Each image takes full carousel width */
  object-fit: contain;
}


.carousel button {
  position: absolute;
  top: 50%;
  color: inherit;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
}

.prev {
  left: 5px;
}

.next {
  right: 5px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(165, 204, 255);
  cursor: pointer;
}

.dot.active {
  background: blueviolet;
}

.color-picker {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.color-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.color-circle:hover {
  transform: scale(1.2);
}

.product img {
  max-width: 100%;
  max-height: 170px;
  margin: 0 auto;
}

.product h3 {
  font-family: 'Main', 'Comic Sans MS', 'Poppins', sans-serif;
  margin: 15px 0 0 0;
}

.product p {
  font-size: larger;
  margin: 10px 0;
}

.buy-button {
  background: red;
  color: white;
  text-decoration: none;
  width: 100%;
  border-radius: 10px;
  padding: 10px;
}

.buy-button:hover {
  background: blueviolet;
}

footer {
  background: linear-gradient(to right, rgb(255, 18, 18), rgb(255, 182, 45), rgb(255, 255, 120), rgb(81, 255, 81), rgb(97, 176, 255), rgb(173, 85, 255));
  color: white;
  text-align: center;
  padding: 10px;
  border-top: 4px solid white;
  margin-top: 3em;
}

footer img {
  margin-top: 15px;
  height: 25px;
}



/* === Mobile tweaks === */
@media (max-width: 768px) {

  .shop-layout {
    padding: 20px;
    flex-direction: column;
  }

  .welcome-section {
    padding-bottom: 0;
  }

  .welcome-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .welcome-text {
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  .category-sidebar,
  .shop-page {
    position: static;
    width: 100%;
    text-align: center;
  }

  .category-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .category-sidebar li {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: initial;
    max-width: 40%;
    border-radius: 20px;
  }
}