/* Reset and global styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html {
  font-size: 16px;
}

body {
  min-height: 100vh;
  font-family: "Figtree", sans-serif;
  color: #333;
  background-color: var(--color-2);
  position: relative;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  background-color: transparent;
  cursor: pointer;
}

input:focus,
textarea:focus {
  outline: none;
}

button,
select {
  text-transform: none;
}

button {
  overflow: visible;
}

body,
button,
input,
select,
textarea {
  font-family: "OpenSans", sans-serif;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "OpenSans", sans-serif;
  font-weight: 700;
  line-height: 1;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  :has(:target) {
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
  }
}

/*
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
*/

/* Variables */
:root {
  --accent-color: #0affa9;
  --color-1: #ffffff;
  --color-2: #181818;
  --color-3: #1E1E1E;
  --color-4: #252525;
}

:root {
  --header-height: 60px;
}

/* MARK: Start*/

body {
  color: var(--color-1);
}

/* ------ Header ------ */
.header {
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-small {
  max-width: 1200px;
}

/* ------ Main ------ */

.main-container {
  min-height: calc(100vh - var(--header-height));
}

.main-container.background-image {
  /* Adding background image */
  background-image: radial-gradient(rgba(56, 56, 56, 0.233), rgba(0, 0, 0, 0.877)), url(../images/4k-dark-pattern-background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.center-container {
  overflow: scroll;
  max-width: 1200px;
  height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: 120px 2rem 2rem 2rem;
  background-color: var(--color-2);
}
.center-container::-webkit-scrollbar {
  display: none;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.truncate-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.truncate-multiline {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Default to 2 lines */
  -webkit-box-orient: vertical;

  &.tm1 {
    -webkit-line-clamp: 1;
  }
  &.tm2 {
    -webkit-line-clamp: 2;
  }
  &.tm3 {
    -webkit-line-clamp: 3;
  }
}

#wishlist-container {
  margin-top: 2rem;
}

/* Wishlist item START */
.wishlist-item {
  width: 20rem;
  margin: 0 auto;
  padding: 1rem;
  background-color: var(--color-3);
  border-radius: 8px;
}

.item-picture {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  background-color: var(--color-4);
  border-radius: 8px;
  padding: 0.5rem;
}

.item-link {
  text-decoration: none;
  font-size: 0.8rem;
  color: #666;
}

[data-item-date] {
  font-size: 0.8rem;
  color: #666;
}

.space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
.item-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0.5rem 0;
}
.item-price {
  font-size: 1.5rem;
  font-weight: 500;

  & [data-original-price] {
  text-decoration: line-through;
  color: #9e9e9e;
  font-size: 0.9rem;
  }
}

.item-description {
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #ccc;
}

.item-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  color: var(--color-2);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.item-button:hover {
  background-color: #0e8f6b;
}

/* Drop down menu START */
nav {
  position: relative;
}

nav h2 {
  font-size: 1.5rem;
  border-radius: 2px;
  position: relative;
  background-color: var(--accent-color);
  height: 40px;
  text-transform: uppercase;
  margin-top: 1rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
  color: var(--color-2);
  font-weight: 200;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  box-shadow: 4px 4px 20px -2px rgba(0, 0, 0, 0.35);
  transition: all 0.4s;
}

nav:hover h2 {
  transform: translateY(-2px);
  box-shadow: 2px 2px 5px -1px rgba(0, 0, 0, 0.35);
  transistion: all 0.4s;
}

#toggle {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
  height: 40px;
}

h2::before{
  position: absolute;
  right: 0;
  top: 0;
  height: inherit;
  aspect-ratio: 1;
  background: currentColor;
  display: flex;
  align-items: center;
  padding-right: 1rem;
  content: "";
  clip-path: polygon(50% 25%, 20% 80%, 80% 80%);
  transform: rotate(180deg) scale(0.75);
}

#toggle:not(:checked) ~ h2::before {
  transform: rotate(0deg) scale(0.75);
}

#toggle:focus ~ h2{
  background-color: #0e8f6b;
  transition: background 0.45s;
}

#toggle:checked ~ ul {
  visibility: hidden;
  opacity: 0;
}

#toggle:not(:checked) ~ ul {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}


nav ul {
  padding-left: 0;
  padding-top: 1rem;
  margin-top: 0;
  background-color: var(--color-4);

  list-style: none;
  overflow: hidden;
  text-align: right;
  text-align: center;
  transition: all 0.4s ease-out;
  width: 100%;
  position: absolute;
}
nav ul li {
  border-radius: 2px;
  position: relative;
  display: inline-block;
  line-height: 1.5;
  width: 100%;
  margin: 0 0 0.25rem 0;
  background-color: var(--accent-color);
  transition: background 3s;
  box-shadow: 2px 2px 10px -2px rgba(0, 0, 0, 0.35);
}

nav ul li:hover,
nav ul li a:focus {
  background-color: var(--accent-color);
  transition: background 0.45s;
}

nav ul a {
  display: block;
  color: inherit;
  text-transform: lowercase;
  font-weight: 200;
  text-decoration: none;
}

/* Drop down menu END */

/* Wishlist item END */

/* scroll animation START */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.5);
}

.animate-on-scroll.animate {
  animation: fadeup 1s linear forwards;
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Box animation END */

/* MARK: Media Queries */

@media (width < 1000px) {
}
@media (width < 1200px) {
}