/* 
    Origin Roots - Shop
    INDEX - index.html, script.js, styles.css
    Author: Jan - Ole Rieper
    Company: Origin Roots Fashion UG

    Last Update:     2026-07-19  YYYY-MM-DD
    Version:         1.0
*/



/* PRODUCTS - TOP SECTION */
.products-top {
  padding: 0 10px;
  padding-top: 10px;
  color: var(--text);
}

/* PRODUCTS - TOP SECTION - H1 */
.products-top h1 {
  margin-bottom: -4px;
  padding: 0;

  letter-spacing: 1px;

  font-family: var(--font-inter);
  font-size: 1.7rem;
}

/* PRODUCTS - TOP SECTION - P */
.products-top p {
  padding-left: 3px;
  padding-bottom: 4px;
  padding-top: 6px;

  letter-spacing: 0.2px;
  
  font-family: var(--font-inter);
  font-size: 14px;

  color: rgba(0, 0, 0, 0.85);
}


.products-navigation {
  padding-top: 0px;
  margin-top: -9px;
}


.products-navigation-index {
  width: auto;
  padding: 0 20px;

  overflow-x: hidden;

  font-size: 14px;
  font-family: var(--font-inter);

  color: var(--text-hover);
}


.products-navigation-index p  {
  display: flex;
  gap: 6px;

  align-items: center;
  text-align: center;
}


.products-navigation-index a {
  opacity: 1;

  text-wrap: nowrap;
  text-decoration: none;
  list-style: none;
  letter-spacing: 1px;

  font-family: var(--font-inter);
  font-size: 13px;

  color: var(--text-hover);

  cursor: pointer;

  transition: ease-in-out 150ms;
}


.products-navigation-index a:hover {
  opacity: 0.8;
  letter-spacing: 1.1px;
}


.products-navigation-links {
  display: flex;
  gap: 6px;

  width: auto;
  padding: 10px;

  box-sizing: border-box;
  overflow-x: auto;
  align-content: center;
  justify-content: flex-start;
  text-wrap: nowrap;
}


.products-navigation-links a {
  display: flex;

  min-width: 60px;
  padding: 6px 12px;

  align-content: center;
  justify-content: center;

  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.18);
  border: none;
  border-radius: 6px;

  text-decoration: none;
  letter-spacing: 1.2px;
  font-family: var(--font-quicksand);
  font-size: 14px;
  font-weight: bold;

  color: rgb(32, 32, 32);

  cursor: pointer;
  transition: ease-in-out 200ms;
}


.products-navigation-links a:hover {
  color: var(--text-hover);
}


/* PRODUCTS - MAIN SECTION */
.products-main {
  padding: 0 10px;
  color: var(--text);
}


/* PRODUCTS - MAIN SECTION - ACTION BAR */
.products-main-actions {
  display: flex;

  margin-bottom: -10px;

  padding-top: 8px;
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 14px;

  justify-content: space-between;

  border-top: solid 1px rgba(0, 0, 0, 0.2);
  border-right: solid 1px rgba(0, 0, 0, 0.2);
  border-left: solid 1px rgba(0, 0, 0, 0.2);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  
  color: var(--text);  
}

/* PRODUCTS - MAIN SECTION - ACTION BAR - INPUT */
.products-main-actions input {
  height: 26px;
  width: 26px;
  margin-top: -2px;
  
  border: solid 1px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  outline: none;

  text-align: center;
  font-size: 18px;

  color: rgb(66, 66, 66);
}

/* PRODUCTS - MAIN SECTION - ACTION BAR */
.products-main-actions button {
  height: 26px;
  width: 26px;

  opacity: 1;

  border: none;
  border-radius: 5px;
  background: transparent;

  cursor: pointer;
}

/* PRODUCTS - MAIN SECTION - ACTION BAR */
.products-main-actions button:hover {
  opacity: 0.6;
}

/* PRODUCTS - MAIN SECTION - ACTION BAR */
.products-main-actions img {
  height: 24px;
  width: auto;
}


.products-main-actions-left, .products-main-actions-mid, .products-main-actions-right {
  display: flex;
  gap: 4px;

  justify-content: center;
  align-content: center;
}


/* PRODUCTS - MAIN SECTION - PRODUCT LISTINGS */
.products-main-listing {
  padding: 10px;

  border: solid 1px rgba(0, 0, 0, 0.2);
  border-radius: 10px;

  color: var(--text);
}


.product-listing-section {
  width: 100%;
  /* max-width: 1800px; VERIFY */
  margin: 0 auto;
  padding: 0;
}


.product-listing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 10px;

  width: auto;

  justify-items: center;
}


.product-listing-container {
  position: relative;
  height: auto;
  /*width: fit-content; OLD */
  width: 100%;
  padding: 4px;

  overflow: hidden;

  border: solid 1px rgba(0, 0, 0, 0.14);
  border-radius: 6px;

  cursor: pointer;
}


.product-listing-container-link {
  position: absolute;

  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
}


.global-wishlist-overlay svg {
  height: 120px;
  width: 120px;

  opacity: 1;

  align-self: center;

  filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.1));
}


.product-container-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  padding: 5px;

  border: none;
  outline: none;

  color: #999999;
  background: transparent;
  
  transition: transform 200ms ease;
  cursor: pointer;
  z-index: 30;
}


.product-container-wishlist-btn:hover {
  transform: scale(1.1);
}


.product-container-wishlist-btn svg {
  display: block;

  width: 23px;
  height: 23px;

  filter: drop-shadow(0 1px 4px rgba(199, 199, 199, 0.16));
}


.product-container-wishlist-btn .heart-filled {
  display: none;
}


.product-container-wishlist-btn.is-liked .heart-outline {
  display: none;
}


.product-listing-container-details {
  text-align: center;
  font-family: var(--font-inter);
}


.product-listing-container-details h4 {
  margin: 0;
  padding: 0;

  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.6px;
}


.product-listing-container-details p {
  margin: 0;
  padding: 0;

  font-family: var(--font-apple);
  /*font-size: 14px;
  letter-spacing: 1px;*/
}


.products-color-control {
  display: flex;

  height: auto;
  width: 100%;
  padding-top: 4px;
  gap: 10px;

  align-content: center;
  justify-content: center;
}


.products-color-container {
  display: flex;
  height: 20px;
  width: 20px;
  align-items: center;
  justify-content: center;
  border: solid 1px rgba(98, 98, 98, 0.61);
  border-radius: 4px;
  letter-spacing: inherit;
  font-weight: 200;
  color: var(--text);
  background: transparent;
  transition: ease-in-out 90ms;
  cursor: pointer;
}


.products-color-container:hover {
  box-shadow: 0px 3px 7px -2px rgba(0,0,0,0.6);
}


.products-color-container.products-color-active {
  border: solid 1px rgba(0, 0, 0, 0.8);
  box-shadow: 0px 3px 4px -2px rgba(70, 70, 70, 0.86);
  font-weight: 600;
  color: var(--text-hover);
}

/* DESKTOP - PRODUCT DETAILS - TOP SECTION - RIGHT - COLOR - CONTROL - CONTAINER (DISABLED) */
.products-color-container.products-color-disabled {
  border: solid 1px rgba(226, 36, 36, 0.8);
  box-shadow: 0px 3px 7px -2px rgba(226, 36, 36, 0.8);
  opacity: 0.4;
  filter: blur(1px);
}


#products-color-status-white {
  background: rgb(200, 200, 200);
}


#products-color-status-grey {
  background: rgb(87, 87, 87);
}


.product-listing-container-data {
  position: relative;

  min-height: 64px;
  padding-top: 8px;
}


.product-listing-container-data-text-wrapper {
  position: relative;
  width: 100%;
}


.product-listing-container-data-collection-x {
  text-transform: capitalize;
  letter-spacing: 0.6px;

  font-size: 12px;
  font-weight: normal;

  color: var(--text-hover);
}


.product-listing-container-data-title-x {
  padding: 2px 0;

  letter-spacing: 0.8px;

  font-family: var(--font-apple);
  font-size: 14px;
  font-weight: normal;
}


.product-listing-container-data-price-x {
  font-size: 13px;
  font-weight: normal;
}


.product-listing-container-data-animation {
  display: flex;

  position: absolute;
  top: 50%; left: 0; right: 0;

  align-items: center;
  justify-content: center;
  pointer-events: none;

  transform: translateY(-50%);
}

.product-listing-container-data-animation img {
  opacity: 0.55;

  height: 22px;
  width: 22px;
  
  align-self: center;
  justify-self: center;
}


.product-listing-container-data-arrow {
  display: flex;
  flex-direction: column;
  gap: 12px;

  opacity: 0;

  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: underline;

  color: #535353;
}


.product-listing-container-image img {
  height: auto;
  width: 100%;
}


.product-container-product-img {
  display: none;

  opacity: 0;

  transform: scale(1.15);
  transition: ease-in-out 150ms;
}


.product-listing-container:hover .product-container-product-img {
  display: block;

  opacity: 1;
  
  transform: scale(1);
}


.product-container-model-img {
  display: block;

  transition: ease-in-out 150ms;
}


.product-listing-container:hover .product-container-model-img {
  display: none;

  opacity: 0;

  transform: scale(0.95);
}


.product-listing-container-control {
  display: flex;

  padding-top: 6px;
  padding-bottom: 2px;

  justify-content: center;
}


.product-listing-container-control button {
  display: flex;

  height: auto;
  width: auto;
  padding: 5px;

  opacity: 1;

  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 5px;

  color: white;
  background: var(--text);

  transition: ease-in-out 150ms;
  cursor: pointer;
}


.product-listing-container-control button:hover {
  opacity: 0.8;
}


.product-listing-container-control button:active {
  transform: scale(.99);
}



/* -------------------------------------------------------------------------------> RESPONSIVE */
/* MEDIA - MAX WIDTH 1599 PIXEL */
@media (max-width: 1599px) {
  .product-listing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 16px;
  }
}

/* MEDIA - MAX WIDTH 1199 PIXEL */
@media (max-width: 1199px) {
  .product-listing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
  }
}

/* MEDIA - MAX WIDTH 800 PIXEL */
@media (max-width: 800px) {
  .products-top {
    padding-top: 4.4rem;
  }


  .products-navigation {
    margin-top: -16px;
  }


  .products-navigation-index {
    padding: 0 15px;

    font-size: 11px;
  }

  .products-navigation-links {
    padding: 6px 8px;
    font-size: 12px;
  }

  .products-main-actions {
    display: none;
  }

  .products-main-listing {
    padding: 0;
    border: none;
  }

  .product-listing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
}

/* MEDIA - MAX WIDTH 400 PIXEL
@media (max-width: 400px) {
  .product-listing-grid {
    grid-template-columns: 1fr;
  }
} */




/* -------------------------------------------------------------------------------> ANIMATION - FUNCTIONS */
/* ANIMATION - PRODUCT LISTING - CONTAINER - "FORWARD TO DETAILED PRODUCT PAGE" TEXT FLY OUT ANIMATION */
.product-listing-container.is-animating .product-listing-container-data-text-wrapper {
  animation: animationTextFlyOutIn 1.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ANIMATION - PRODUCT LISTING - CONTAINER - "FORWARD TO DETAILED PRODUCT PAGE" ARROW SWEEP ANIMATION */
.product-listing-container.is-animating .product-listing-container-data-arrow {
  animation: animationArrowSweep 1.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* ANIMATION - PRODUCT LISTING - CONTAINER - "ADD ITEM TO WISHLIST" HEART POP ANIMATION */
.product-container-wishlist-btn.is-liked .heart-filled {
  display: block;
  animation: animationHeartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ANIMATION - PRODUCT LISTING - OVERLAY - "ITEM ADDED TO WISHLIST" HEART FLASH ANIMATION */
.global-wishlist-overlay.show-effect {
  animation: animationGlobalHeartFlash 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}



/* -------------------------------------------------------------------------------> ANIMATION - KEYFRAMES */
/* ANIMATION - PRODUCT LISTING - CONTAINER - "FORWARD TO DETAILED PRODUCT PAGE" TEXT FLY OUT ANIMATION */
@keyframes animationTextFlyOutIn {
  0% { transform: translateY(0); opacity: 1; }
  20% { transform: translateY(-15px); opacity: 0; } 
  80% { transform: translateY(15px); opacity: 0; }  
  100% { transform: translateY(0); opacity: 1; }    
}


/* ANIMATION - PRODUCT LISTING - CONTAINER - "FORWARD TO DETAILED PRODUCT PAGE" ARROW SWEEP ANIMATION */
@keyframes animationArrowSweep {
  0% { transform: translateX(-150px); opacity: 0; }
  25% { transform: translateX(-150px); opacity: 0; }
  40% { transform: translateX(0); opacity: 1; } 
  60% { transform: translateX(0); opacity: 1; }      
  75% { transform: translateX(150px); opacity: 0; } 
  100% { transform: translateX(150px); opacity: 0; }
}


/* ANIMATION - PRODUCT LISTING - CONTAINER - "ADD ITEM TO WISHLIST" HEART POP ANIMATION */
@keyframes animationHeartPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


/* ANIMATION - PRODUCT LISTING - OVERLAY - "ITEM ADDED TO WISHLIST" HEART FLASH ANIMATION */
@keyframes animationGlobalHeartFlash {
  0% { opacity: 0; backdrop-filter: blur(0px); transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 0.9; backdrop-filter: blur(4px); transform: translate(-50%, -50%) scale(1.1); }
  40% { opacity: 1; backdrop-filter: blur(3px); transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; backdrop-filter: blur(0px); transform: translate(-50%, -50%) scale(1.2); }
}