@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-Hairline.ttf);
  font-weight: 100;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-Thin.ttf);
  font-weight: 200;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-Light.ttf);
  font-weight: 300;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-Regular.ttf);
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-Medium.ttf);
  src: url(../assets/fonts/HelveticaNowDisplay-Medium.ttf);
  font-weight: 500;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-Bold.ttf);
  font-weight: 600;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-ExtraBold.ttf);
  font-weight: 700;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-Black.ttf);
  font-weight: 800;
}

@font-face {
  font-family: "Helvetica";
  src: url(../assets/fonts/HelveticaNowDisplay-ExtBlk.ttf);
  font-weight: 900;
}

:root {
  --yellow: #e8e26b;
  --blue: #64e2e8;
  --green: #82e86d;
  --pink: #e86b8c;
  --orange: #e8ad6d;
  --purple: #887acc;
  --background1: #ffffff;
  --background2: #e6e7e5;
  --text1: #000000;
  --text2: #454543;

  /* Responsive font sizes */
  --font-size-small: clamp(0.8rem, 2vw, 0.9rem);
  --font-size-base: clamp(1rem, 2.5vw, 1.2rem);
  --font-size-large: clamp(1.2rem, 3vw, 1.5rem);
  --font-size-xl: clamp(1.5rem, 4vw, 2rem);
  --font-size-xxl: clamp(2rem, 5vw, 3rem);

  /* Responsive spacing */
  --spacing-xs: clamp(0.5rem, 2vw, 1rem);
  --spacing-sm: clamp(1rem, 3vw, 1.5rem);
  --spacing-md: clamp(1.5rem, 4vw, 2rem);
  --spacing-lg: clamp(2rem, 5vw, 3rem);
  --spacing-xl: clamp(3rem, 6vw, 4rem);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html {
  margin: 0;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Helvetica", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--background2);
  color: var(--text2);
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Text selection styles */
::selection {
  background: transparent;
  color: inherit;
}

#container {
  position: relative;
  z-index: 1;
}

#selection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 999;
}

.selection-highlight {
  position: absolute;
  pointer-events: none;
  border-radius: 4px;
  opacity: 1;
  mix-blend-mode: multiply;
  transition: background 0.3s ease;
}

.highlighted {
  background: var(--yellow);
  color: white;
  padding: 0 2px;
  border-radius: 2px;
}

.text-block {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-in-out;
  font-size: var(--font-size-xl);
}

.text-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.bold {
  font-weight: 800;
}

/* Header styles */
header {
  width: 100%;
  height: auto;
  min-height: 50px;
  z-index: 9999;
  position: fixed;
  top: 0;
  background-color: var(--background2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid var(--text2);
  font-weight: 800;
  font-size: var(--font-size-base);
  z-index: -1;
  padding: 0 var(--spacing-sm);
  text-decoration: none;
}

.header-top a {
  text-decoration: none;
  color: var(--text2);
}

.header-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50px;
  border-bottom: 1px solid var(--text2);
  background-color: var(--background2);
  z-index: 99999;
  flex-wrap: wrap;
}

.header-bottom a {
  font-weight: 500;
  font-size: var(--font-size-small);
  text-decoration: none;
  color: var(--text2);
  border-color: var(--text2);
  cursor: pointer;
  transition: all 0.25s linear;
  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.header-bottom a:hover {
  font-weight: 700;
  border: 1px solid var(--text2);
  background-color: #45454310;
}

/* Mobile navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text2);
  font-size: var(--font-size-large);
  cursor: pointer;
  padding: var(--spacing-xs);
  position: absolute;
  left: var(--spacing-sm);
  top: 50%;
  transform: translateY(-50%);
}

/* Logo/Icon transitions */
.text,
.icon {
  position: absolute;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.icon {
  opacity: 0;
  transform: translateY(20px);
  fill: #333;
  z-index: -5555;
}

.text {
  opacity: 1;
  transform: translateY(0);
}

.active .text {
  opacity: 0;
  transform: translateY(-20px);
}

.active .icon {
  opacity: 1;
  transform: translateY(0);
}

/* Hero sections */
.hero {
  height: 50vh;
  min-height: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../assets/images/background.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
  margin-top: 100px;
  border-bottom: 1px solid var(--text2);
  padding: var(--spacing-md);
}

.hero2 {
  height: 25vh;
  min-height: 200px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../assets/images/background2.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
  border-bottom: 1px solid black;
  padding: var(--spacing-md);
}

.hero2 img {
  max-width: min(300px, 80%);
  width: auto;
}

.hero3 {
  height: 10vh;
  min-height: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /*background-image: url("../images/background2.jpg");*/
  background-color: var(--text2);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: 1;
  border-bottom: 1px solid black;
}

/* Main content */
.main {
  width: 100%;
}

/* About sections */
.about-me-1,
.about-me-2,
.about-me-3 {
  min-height: 15vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 500;
  padding: var(--spacing-lg) var(--spacing-md);
}

.about-me-3 {
  border-bottom: 1px solid black;
}

.about-me-3 p {
  cursor: pointer;
  font-weight: 700;
}

/* Content sections */
.content {
  width: 100%;
  padding: 0;
}

p {
  margin: 0 auto;
  line-height: 1.6;
}

/* Email and social links */
.email-link,
.social-link {
  display: inline-block;
  position: relative;
  color: transparent;
  /*background-image: linear-gradient(90deg, black 60%, var(--yellow), var(--green), var(--blue));*/
  background-color: var(--text2);
  background-size: 400%;
  background-position: left center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  font-size: var(--font-size-large);
  transition: all 0.15s ease-in-out;
  line-height: 1.3;
  padding-bottom: 2px;
  word-break: break-word;
}

.email-link {
  font-size: var(--font-size-xl);
}

.email-link:hover,
.social-link:hover {
  /*background-position: right center;*/
  background-color: #45454330;
}

/* Footer */
footer {
  min-height: 300px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: var(--spacing-lg) var(--spacing-md);
  gap: var(--spacing-sm);
}

footer p {
  margin: var(--spacing-sm);
  text-align: center;
}

/* Logo colors */
.cls-1 {
  fill: #e8e26b;
  transition: all 0.25s ease-in-out;
}

/*.cls-1:hover {
  fill: #e86b8c;
}*/

.cls-2 {
  fill: #0a1007;
}

.cls-3 {
  fill: #fff;
}

.cls-4 {
  fill: #080f05;
}

.cls-5 {
  fill: #82e86d;
  transition: all 0.25s ease-in-out;
}

.cls-5:hover {
  fill: #e8ad6d;
}

.cls-6 {
  fill: #64e2e8;
  transition: all 0.25s ease-in-out;
}

.cls-6:hover {
  fill: #887acc;
}

#Capa_1 {
  max-width: min(400px, 80%);
}

/* Music section */
.my-music {
  width: 100%;
}

.my-tracks p {
  padding: 50px;
  font-size: var(--font-size-large);
  font-weight: 600;
  text-align: center;
}

.track {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 120px;
  color: var(--text2);
  transition: all 0.25s ease-in-out;
  padding: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
  border-bottom: 1px solid var(--text2);
}
.track a {
  color: var(--text2);
}

/*#track1:hover {
  background-color: var(--yellow);
}

#track2:hover {
  background-color: var(--green);
}

#track3:hover {
  background-color: var(--blue);
}*/

#track1:hover {
  background-color: var(--text2);
  color: black;
}
#track1:hover a,
#track2:hover a,
#track3:hover a {
  color: black;
}

#track2:hover {
  background-color: var(--text2);
  color: black;
}

#track3:hover {
  background-color: var(--text2);
  color: black;
}

.track img {
  max-height: 80px;
  width: 80px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.music-title {
  margin: var(--spacing-xs) 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.music-subtitle {
  font-weight: 500;
  margin-left: 5px;
  font-size: var(--font-size-base);
}

.music-url {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.music-url a {
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  border-radius: 4px;
  font-size: var(--font-size-small);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-url a:hover {
  font-weight: 700;
}

/* Design section */
.designs-section {
  width: 100%;
}

.designs-section p {
  padding: 50px;
  font-size: var(--font-size-large);
  font-weight: 600;
  text-align: center;
}

.design {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 120px;
  transition: all 0.25s ease-in-out;
  padding: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-md);
  border-bottom: 1px solid var(--text2);
}

.design-title {
  margin: var(--spacing-xs) 0;
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.2;
  display: block;
}

.design-subtitle {
  font-weight: 600;
  font-size: var(--font-size-base);
  display: block;
  margin-bottom: var(--spacing-sm);
}

.design-url {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  justify-content: flex-end;
}

.design-url a {
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  border-radius: 4px;
  font-size: var(--font-size-small);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-url a:hover {
  font-weight: 700;
}

/* Archive section */
.archives {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: var(--spacing-md);
}

.archive-container {
  width: 100%;
  max-width: 1200px;
  padding: var(--spacing-md);
  margin-top: -50px;
  column-count: 3;
  column-gap: var(--spacing-md);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden {
  display: none;
}

.archive-item {
  break-inside: avoid;
  margin-bottom: var(--spacing-md);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.archive-item:hover {
  transform: translateY(30px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.archive-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s ease;
}

.archive-item:hover img {
  filter: brightness(1.05);
}

.archive-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: var(--spacing-md);
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
}

.archive-item:hover .archive-item-overlay {
  opacity: 1;
}

.archive-item-title {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin: 0;
}

.archive-item-category {
  font-weight: 400;
  font-size: var(--font-size-small);
  margin-top: var(--spacing-xs);
  color: rgba(255, 255, 255, 0.8);
}

.archive-header {
  text-align: center;
  padding: var(--spacing-xl) 0 var(--spacing-md);
  font-size: var(--font-size-xxl);
  font-weight: 800;
  margin-top: 100px;
}

.archive-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-xs);
  padding: 0 var(--spacing-md);
}

.filter-btn {
  background: none;
  border: 1px solid black;
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 500;
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: black;
  text-decoration: none;
  justify-content: center;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: black;
  color: white;
}

.filter-btn.yellow:hover,
.filter-btn.yellow.active {
  background-color: var(--yellow);
  border-color: var(--yellow);
  color: black;
}

.filter-btn.green:hover,
.filter-btn.green.active {
  background-color: var(--green);
  border-color: var(--green);
  color: black;
}

.filter-btn.blue:hover,
.filter-btn.blue.active {
  background-color: var(--blue);
  border-color: var(--blue);
  color: black;
}

.filter-btn.pink:hover,
.filter-btn.pink.active {
  background-color: var(--pink);
  border-color: var(--pink);
  color: black;
}

.filter-btn.orange:hover,
.filter-btn.orange.active {
  background-color: var(--orange);
  border-color: var(--orange);
  color: black;
}

.filter-btn.purple:hover,
.filter-btn.purple.active {
  background-color: var(--purple);
  border-color: var(--purple);
  color: black;
}

/* Cart button styles */
.cart-button {
  position: absolute;
  right: var(--spacing-md);
  top: 25%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.cart-button:hover {
  color: var(--text1);
}

.cart-button svg {
  stroke-width: 1.5;
}

.cart-count {
  background: var(--background2);
  color: var(--text2);
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Panel Styles */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--background2);
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-left: 1px solid black;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--text2);
  background: var(--background2);
  flex-shrink: 0;
     height: 50px;
    padding-left: 15px;
}

.cart-title {
  font-size: var(--font-size-medium);
  font-weight: 700;
  margin: 0;
}

.close-cart-btn {
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.close-cart-btn:hover {
  color: var(--text1);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  margin-top:var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid black;
}

.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin-right: var(--spacing-md);
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: var(--spacing-sm);
}

.cart-item-details {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 700;
  font-size: var(--font-size-base);
  margin: 0 0 var(--spacing-xs) 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-item-price {
  font-size: var(--font-size-small);
  color: var(--text2);
  margin-left: 0;
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.quantity-btn {
  background: none;
  border: 1px solid var(--text2);
  color: var(--text2);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: var(--text2);
  color: var(--background1);
}

.quantity-display {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  font-size: var(--font-size-small);
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--pink);
  cursor: pointer;
  padding: 8px;
  margin-left: var(--spacing-xs);
    margin-right: var(--spacing-xs);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.remove-item-btn:hover {
  color: #d32f2f;
}

.cart-total {
  padding: var(--spacing-md);
  border-top: 1px solid var(--text2);
  text-align: right;
  font-size: var(--font-size-large);
  font-weight: 700;
  background: var(--background2);
  flex-shrink: 0;
}

.cart-empty {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text2);
  margin: 0;
}

/* Product card consistency fixes */
.product-card {
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  border-color: var(--text2);
  transform: translateY(-2px);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  color: var(--text2);
}

.product-name {
  font-size: var(--font-size-base);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  padding: 0 10px;
  text-align: center;
}

.product-brand {
  font-size: var(--font-size-small);
  font-weight: 500;
  color: var(--text2);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: var(--font-size-large);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  margin-top: auto; /* Push price to bottom */
}

.add-to-cart-btn {
  width: 100%;
  background: var(--background2);
  color: var(--background1);
  border: none;
  padding: var(--spacing-sm);
  font-family: "Helvetica", Arial, sans-serif;
  font-weight: 700;
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  margin-top: auto;
}

/* Mobile cart adjustments */
@media (max-width: 768px) {
  .cart-panel {
    width: 100%;
    max-width: 100vw;
    border: none;
  }
  .add-to-cart-btn{
      margin-bottom: var(--spacing-md);
  }

  .cart-button {
    right: var(--spacing-sm);
    top: 50%;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    width: 100%;
    height: 120px;
    margin-right: 0;
    margin-bottom: var(--spacing-sm);
    margin-left: unset;
  }

  .remove-item-btn {
    align-self: flex-end;
    margin-left: 0;
    margin-top: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .cart-header {
    padding: var(--spacing-sm);
  }

  .cart-items {
    padding: var(--spacing-sm);
  }

  .cart-total {
    padding: var(--spacing-sm);
  }
  .hero{
      margin-top: 50px;
  }
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .header-bottom {
    position: fixed;
    top: 50px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 50px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    background-color: var(--background2);
    transition: left 0.3s ease;
    z-index: 9998;
    padding: 0;
  }
  
  .header-bottom a{
      border-radius: unset;
  }

  .header-bottom.mobile-open {
    left: 0;
  }

  .header-bottom a {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid var(--text2);
    margin: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Product card link styles */
.product-card-link {
  display: block;
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.product-card-link:hover {
  transform: translateY(-2px);
}

.product-card-link .product-card {
  cursor: pointer;
}

.product-card-link .product-card:hover {
  border-color: var(--text2);
  transform: none; /* Remove individual transform since parent handles it */
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
  .carousel-nav {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .carousel-nav.prev {
    left: 5px;
  }

  .carousel-nav.next {
    right: 5px;
  }

  .carousel-indicators {
    bottom: 5px;
  }

  .carousel-indicator {
    width: 6px;
    height: 6px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .image-thumbnails {
    gap: var(--spacing-xs);
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }
}

/* Improve carousel performance */
.carousel-images {
  will-change: transform;
}

.carousel-images img {
  will-change: auto;
}

/* Accessibility improvements */
.carousel-nav:focus {
  outline-offset: 2px;
}

.carousel-indicator:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Prevent image dragging */
.carousel-images img,
.thumbnail {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* Enhanced carousel styles */
.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  background: none;
  transform: translateY(-50%);
  color: var(--text2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  user-select: none;
}

.product-card:hover .carousel-nav,
.image-carousel:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:focus {
  outline-offset: 2px;
  opacity: 1;
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: 12px;
}

.product-card:hover .carousel-indicators,
.image-carousel:hover .carousel-indicators {
  opacity: 1;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

.carousel-indicator:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Product page thumbnail improvements */
.image-thumbnails {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-xs);
  scrollbar-width: thin;
  scrollbar-color: var(--text2) var(--background2);
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.thumbnail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  z-index: 1;
}

.thumbnail:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
  border-color: var(--yellow);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail:hover {
  border-color: var(--text2);
  transform: scale(1.02);
}

.thumbnail:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* Main image improvements */
.main-image {
  transition: opacity 0.3s ease;
}

/* Performance optimizations */
.carousel-images,
.thumbnail {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .carousel-images,
  .thumbnail,
  .carousel-nav,
  .carousel-indicator {
    transition: none;
  }
}

/* Page Loader Styles */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--background2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999; /* Increased z-index to be above header */
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden; /* Prevent any scrollbars */
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Prevent interaction when hidden */
}

.loader-logo {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--text2);
  position: relative;
  animation: loaderPulse 2s ease-in-out infinite;
  user-select: none; /* Prevent text selection */
}

.loader-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--yellow), var(--green), var(--blue), var(--pink));
  background-size: 400% 400%;
  animation: gradientShift 3s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: loaderColorFade 4s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes loaderColorFade {
  0%,
  20% {
    opacity: 0;
  }
  40%,
  60% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
  }
}

/* Page Transition Styles */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--background2);
  z-index: 999998; /* Just below page loader */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: none; /* Allow clicks to pass through during transition */
}

.transition-logo {
  font-family: "Helvetica", Arial, sans-serif;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--text2);
  position: relative;
  animation: transitionFade 0.4s ease;
  user-select: none;
  text-align: center;
  line-height: 1;
}

.transition-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--yellow), var(--green), var(--blue), var(--pink));
  background-size: 400% 400%;
  animation: gradientShift 3s ease-in-out infinite;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: transitionColorFade 0.8s ease-in-out;
}

@keyframes transitionFade {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes transitionColorFade {
  0% {
    opacity: 0;
  }
  50%,
  100% {
    opacity: 1;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Content Fade In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.1s;
}

.fade-in-delay-2 {
  transition-delay: 0.2s;
}

.fade-in-delay-3 {
  transition-delay: 0.3s;
}

/* Section Transitions */
.section-transition {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.section-transition.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Product Card Transitions */
.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced Navigation Transitions */
.header-bottom a {
  position: relative;
  overflow: hidden;
}

.header-bottom a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.header-bottom a:hover::before {
  left: 100%;
}

/* Stagger Animation for Product Grid */
.products-grid .product-card-link {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerFadeIn 0.6s ease forwards;
}

.products-grid .product-card-link:nth-child(1) {
  animation-delay: 0.1s;
}
.products-grid .product-card-link:nth-child(2) {
  animation-delay: 0.2s;
}
.products-grid .product-card-link:nth-child(3) {
  animation-delay: 0.3s;
}
.products-grid .product-card-link:nth-child(4) {
  animation-delay: 0.4s;
}
.products-grid .product-card-link:nth-child(5) {
  animation-delay: 0.5s;
}
.products-grid .product-card-link:nth-child(6) {
  animation-delay: 0.6s;
}
.products-grid .product-card-link:nth-child(7) {
  animation-delay: 0.7s;
}
.products-grid .product-card-link:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cart Panel Enhanced Transitions */
.cart-panel {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay {
  transition: opacity 0.4s ease, visibility 0.4s ease;
  backdrop-filter: blur(0px);
}

.cart-overlay.open {
}

/* Button Hover Enhancements */
.btn,
.add-to-cart-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before,
.add-to-cart-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before,
.add-to-cart-btn:hover::before {
  left: 100%;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-transition,
  .fade-in,
  .section-transition,
  .product-card,
  .products-grid .product-card-link {
    animation: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .loader-logo {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .products-grid{
      padding-top: var(--spacing-md);
  }
  .image-carousel{
      border-radius: 4px;
  }

  .transition-logo {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .product-card:hover {
    transform: translateY(-4px);
  }
}

/* Ensure consistent sizing across devices */
@media (max-width: 480px) {
  .loader-logo {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }

  .transition-logo {
    font-size: clamp(1.2rem, 5vw, 2rem);
  }
}

/* Header styles */
header {
  width: 100%;
  height: auto;
  min-height: 50px;
  z-index: 9999; /* Reduced from 99999 to be below loaders */
  position: fixed;
  top: 0;
  background-color: var(--background2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

        .btn {
            background: var(--text2);
            color: var(--background1);
            border: 1px solid var(--text2);
            padding: 10px var(--spacing-md);
            font-family: "Helvetica", Arial, sans-serif;
            font-weight: 700;
            font-size: 0.85rem;
            cursor: pointer;
            text-transform: uppercase;
            transition: all 0.25s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            width: 100%;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn:hover {
            background: var(--yellow);
            color: var(--text2);
            border-color: var(--yellow);
        }

