/*
Theme Name: Naos Child
Template: hello-elementor
Version: 1.0.0
Text Domain: naos-child
*/
/* ==========================================================================
   GALLERY PAGE
========================================================================== */

/* =========================================================
   PAGE
========================================================= */
@media (min-width: 1024px) {
	.naos-gallery-page {
		height: 100vh;
		overflow: hidden;
	}

	.naos-inner-page {
		height: 100%;
		width: 100%;
	}
	.naos-product-view {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 50vh 1fr;
		transform: translatey(-55%);
	}

	.naos-info-block {
		grid-column: 1;
		min-width: 0;
	}

	.naos-artwork-block {
		grid-column: 2;
		width: 50vh;
		max-width: 50vh;
		justify-self: center;
	}
}
.naos-product-item {
  position: relative;
  display: block;
	aspect-ratio: 1 / 1;
	
	object-fit: cover;
}
.naos-product-view img{
	clip-path: inset(0% round 0.2em);
}
.naos-product-item img{
	width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity .25s ease, transform .25s ease, filter .25s ease;
	cursor: pointer;
	display: block;
	object-fit: cover;
}
.naos-product-item.is-active img {
  opacity: 0.35;
	pointer-events: none;
}
.naos-product-item.is-active::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(219, 177, 63, 1);
  z-index: 2;
}




/*PRODUCT LIST*/
@media (min-width: 1025px) {
	.naos-right-prints-block {
		position: absolute;
		max-height: 100vh;
		height: 100vh;
		overflow-x: visible;
		z-index: 1;
	}

	.naos-product-list {
		height: 100%;
		max-height: 100%;
		overflow-y: auto !important;
		overflow-x: visible;
		padding-top: calc(100vh - 4 * 5.5em);
		padding-bottom: 4.5em;
		box-sizing: border-box;
	}

	.naos-product-list::-webkit-scrollbar {
		display: none;
	}
	.naos-right-prints-block::before {
		content: "";
		position: absolute;
		width: 150%;
		left: 50%;
		transform: translateX(-50%);
		z-index: 4;
		top: -20px;
		height: 4.5em;
		pointer-events: none;
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: 	blur(8px);
		background: rgba(245,245,242,0.45);
		mask-image: linear-gradient(to top, transparent 0%, black 55%, black 100%);
		-webkit-mask-image: linear-gradient(to top, transparent 0%, black 55%, black 100%);
	}
	.naos-top-text-block{
		z-index: 2;
		   mix-blend-mode: difference;
	}
	.naos-top-text-block p{
		color: #FFF;
	}
	.naos-right-prints-block::after {
		content: "";
		position: absolute;
		width: 150%;
		left: 50%;
		transform: translateX(-50%);
		z-index: 3;
		bottom: -20px;
		height: 4.5em;
		pointer-events: none;
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
		background: rgba(245,245,242,0.45);
		mask-image: linear-gradient(to bottom, transparent 0%, black 55%, black 100%);
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 55%, black 100%);
	}

	.naos-main-image {
    position: relative;
    overflow: visible;
  }

  .naos-main-image img {
    position: relative;
    z-index: 2;
    transform-origin: center center;
  }
 .naos-main-image .naos-main-image-previous {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    opacity: 1;
    animation: naosPreviousPrintHold 0.85s ease forwards;
  }

  .naos-main-image img.naos-artwork-enter {
    animation: naosNewPrintScaleIn 0.75s cubic-bezier(.16, 1, .3, 1);
  }

  @keyframes naosNewPrintScaleIn {
    0% {
      opacity: 0;
      transform: scale(0);
    }

    65% {
      opacity: 1;
      transform: scale(1.04);
    }

    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes naosPreviousPrintHold {
    0% {
      opacity: 1;
      transform: scale(1);
    }

    70% {
      opacity: 1;
      transform: scale(1);
    }

    100% {
      opacity: 0;
      transform: scale(1);
    }
  }
}

/*****/







.naos-artwork-thumb {
	border: 0.5px solid rgba(0,0,0,1);
  opacity: 0.26;
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
  width: 100%;
  display: block;
  object-fit: cover;
}
.naos-artwork-thumb.is-active {
  opacity: 1;
	border: 0.5px solid rgba(0,0,0,0.3);
	
}
.naos-artwork-thumb:not(.is-active) {
  filter: grayscale(1) contrast(0.8);
}

.naos-cart-toggle-block{
	cursor: pointer;
}
.naos-cart-toggle-block:hover{
	background-color: #000!important;
}
.naos-cart-toggle-block:hover *{
	color: #fff;
}



/* TEST IMAGE LIGHTBOX */
.naos-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
}

.naos-main-image > * {
  height: 100%;
	width: 100%;
}

.naos-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
}

/* Overlay imagen ampliada */
.naos-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  background: rgba(245, 245, 242, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.naos-image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-out;
}

.naos-image-lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
  background: #f5f4ef;
  transform: scale(0.97);
  transition: transform .35s ease;
}

.naos-image-lightbox.is-open img {
  transform: scale(1);
}

.naos-lightbox-arrow {
  position: fixed;
  top: 50%;
	padding: 0;
  transform: translateY(-50%);
  z-index: 10001;
  width: 44px;
  height: 44px;
	background-color: transparent;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 38px;
  line-height: 1;
	border: 0!important;
  transition: transform .2s ease;
}
.naos-lightbox-arrow:hover {
  opacity: 0.5;
		background-color: transparent;
	color: #000;
}

.naos-lightbox-prev {
  left: 24px;
}

.naos-lightbox-next {
  right: 24px;
}
/* =========================================================
   OTHERS
========================================================= */
/* Paragraph spacing reset */
p:last-child {
  margin-bottom: 0;
}
.naos-category-item {
  cursor: pointer;
}

.naos-category-item * {
  opacity: 0.72;
  transform: scale(1);
  transform-origin: center center;
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(.16, 1, .3, 1),
    font-weight 0.3s ease,
    letter-spacing 0.45s ease;
}

.naos-category-item:hover * {
  opacity: 1;
  font-weight: 500 !important;
  transform: scale(1.06);
  letter-spacing: 0.08em;
}

.naos-category-item.is-active * {
  opacity: 1;
  transform: scale(1.15);
  font-weight: 500 !important;
  letter-spacing: 0.1em;
}
/* =========================================================
   OVERLAY / BACKGROUND PATTERN
========================================================= */

.crt-overlay {
  opacity: 0.8;
  z-index: 9999;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

/* Horizontal thin lines */
.crt-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.045) 0px,
    rgba(0, 0, 0, 0.045) 2px,
    rgba(255, 255, 255, 0) 2px,
    rgba(255, 255, 255, 0) 5px
  );
  z-index: 2;
  pointer-events: none;
}


/* Soft radial shadow like Figma overlay */
.crt-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.4) 100%
  );
  opacity: 0.1;
  z-index: 3;
  pointer-events: none;
}




/* =========================================================
   MOBILE / TABLET
========================================================= */

@media (max-width: 1024px) {
	html,
  body {
    overscroll-behavior-y: none;
  }

	

  .naos-gallery-page {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .naos-inner-page {
    height: auto !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .naos-top-text-block,
  .naos-product-view,
  .naos-info-block,
  .naos-artwork-block,
  .naos-right-prints-block,
  .naos-footer-legal-block {
    position: static !important;
    transform: none !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .naos-product-view {
    display: flex !important;
    flex-direction: column !important;
  }

	.naos-logo-block{
		position: fixed;
		z-index: 999;
		background-color: #EFEFEF;
		top: 0!important;
		left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
	}
	.naos-category-block{
		position: fixed;
		top: 38px;
		bottom: unset!important;
		background-color: #e7e7e7!important;
	}
	
  .naos-cart-toggle-block {
		position: fixed;
    bottom: unset !important;
    top: 0 !important;
    right: 0 !important;
    left: unset !important;
  }

  .naos-category-item.is-active * {
    transform: none !important;
  }

  .naos-category-block {

    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .naos-category-block::-webkit-scrollbar {
    display: none;
  }

  .naos-category-block > .e-con {
    flex-wrap: nowrap !important;
    width: max-content !important;
    max-width: none !important;
  }

  .naos-product-list {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .naos-product-list::-webkit-scrollbar {
    display: none;
  }

  .naos-product-item {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
  }

  .naos-product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
	.naos-lightbox-arrow {
		width: 20px;
		height: 24px;
		font-size: 28px;
	}
	.naos-lightbox-prev {
		left: 4px;
	}
	.naos-lightbox-next {
		right: 4px;
	}
}

@media (max-width: 767px) {
  .naos-add-to-cart a {
    width: 100%;
  }

  .naos-product-item {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
	
}


/* =========================================================
   CART PANEL / OVERLAY - EXPAND FROM CORNER
========================================================= */

.naos-cart-system {
  position: fixed !important;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

/* Overlay */
.naos-cart-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* Panel */
.naos-cart-panel {
  position: absolute !important;
  left: 10px;
  bottom: 10px;
	top: 10px;
  width: min(42rem, 92vw);
  z-index: 2;
  background: #f5f4ef;
  overflow-y: auto;

  clip-path: inset(100% 100% 0 0);
  -webkit-clip-path: inset(100% 100% 0 0);

  transition:
    clip-path 0.65s cubic-bezier(.22, 1, .36, 1),
    -webkit-clip-path 0.65s cubic-bezier(.22, 1, .36, 1);
}

/* Contenido interno oculto al inicio */
.naos-cart-panel > * {
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* Estado abierto */
body.naos-cart-open .naos-cart-system {
  pointer-events: auto;
}

body.naos-cart-open .naos-cart-overlay {
  opacity: 1;
  visibility: visible;
}

body.naos-cart-open .naos-cart-panel {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
}

/* El contenido aparece después de que el panel empiece a abrir */
body.naos-cart-open .naos-cart-panel > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

/* Al cerrar, que el contenido desaparezca rápido */
body:not(.naos-cart-open) .naos-cart-panel > * {
  transition-delay: 0s;
}

.naos-cart-toggle-block,
.naos-cart-close {
  cursor: pointer;
}

.naos-cart-close:hover {
  opacity: 0.45;
}

body.naos-cart-open {
  overflow: hidden;
}



.naos-cart-toggle-count {
  position: absolute;
  top: -0.45em;
  right: -0.45em;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 0.25em;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.35em;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.naos-cart-toggle-count.is-visible {
  opacity: 1;
  transform: scale(1);
}

.naos-cart-items {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;

		max-height: calc(100dvh - 330px) !important;
		min-height: 0 !important;

		overflow-y: auto !important;
		overflow-x: hidden !important;

		padding-top: 1.5rem;
		padding-bottom: 1.5rem;

		-webkit-overflow-scrolling: touch;

		-webkit-mask-image: linear-gradient(
			to bottom,
			transparent 0%,
			#000 10%,
			#000 90%,
			transparent 100%
		);
		mask-image: linear-gradient(
			to bottom,
			transparent 0%,
			#000 10%,
			#000 90%,
			transparent 100%
		);

		-webkit-mask-repeat: no-repeat;
		mask-repeat: no-repeat;
		-webkit-mask-size: 100% 100%;
		mask-size: 100% 100%;
	}
/* =========================================================
   CART PANEL / TABLET & MOBILE - EXPAND FROM TOP RIGHT
========================================================= */

@media (max-width: 1024px) {
  .naos-cart-panel {
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;

    width: calc(100vw - 20px) !important;
    height: auto !important;
    min-height: auto !important;
    max-height: calc(100dvh - 20px) !important;

    overflow-y: auto;
    border-radius: 10px;

    transform-origin: right top;

    /* Cerrado: recortado desde esquina superior derecha */
    clip-path: inset(0 0 100% 100%);
    -webkit-clip-path: inset(0 0 100% 100%);
  }

  body.naos-cart-open .naos-cart-panel {
    clip-path: inset(0 0 0 0);
    -webkit-clip-path: inset(0 0 0 0);
  }
}



/* =========================================================
   ELEMENTOR EDITOR - Mostrar carrito en modo edición
========================================================= */
.elementor-editor-active .naos-cart-system,
.elementor-editor-active .naos-cart-panel {
  position: static !important;
  inset: auto !important;
  height: auto !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}



.elementor-editor-active .naos-cart-panel > * {
  opacity: 1 !important;
  transform: none !important;
}
