/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f3f3f3; 
  color: #222;
}
@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .nav-close  { display: none; }  /* ← THIS is the key line */

  .nav-menu {
    position: static;
    transform: none;
    flex-direction: row;
    padding: 0;
    background: none;
    gap: 1rem;
    align-items: center;
  }

  .search-form input { width: 220px; }
  .products { grid-template-columns: repeat(4, 1fr); }
}

img { max-width: 100%; display: block; }

/* NAVBAR – MOBILE FIRST */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 1rem;
  background: #fff;
  /*padding: 0.75rem 1rem;*/
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.logo { height: 75px; }

.nav-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
}

.a h2{
  color: #007bff;
}

.nav-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

/* NAV ACTIVE STATE */
.nav-link.active {
  color: #007bff;
  font-weight: 600;
}

/* Optional underline effect (desktop looks nicer) */
@media (min-width: 992px) {
  .nav-link.active {
    position: relative;
  }

  .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #007bff;
  }
}

.nav-menu.open { transform: translateX(0); }

.nav-link {
    display: flex;
  align-items: center;
  height: 40px;
  font-size: 1.2rem;
  text-decoration: none;
  color: #222;
  padding: 0.5rem 1rem;
}

.search-form input {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

/* MAIN */
.page { padding: 1rem; }

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* PRODUCTS – MOBILE */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem; /* ← section spacing */
}

.product-card {
  background: #fff;
  padding: 1rem; 
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.product-card h3 { margin: 0.75rem 0; font-size: 1.1rem; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price { font-weight: 600; }

.btn-cart {
  border: none;
  background: #007bff;
  color: #fff;
  padding: 0.6rem 0.75rem; 
  font-size: 1rem;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

/* TABLET */
@media (min-width: 576px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}

/* DESKTOP */
@media (min-width: 992px) {
  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    transform: none;
    flex-direction: row;
    padding: 0;
    background: none;
    gap: 1rem;
    align-items: center;
  }

  .search-form input { width: 220px; }

  .products { grid-template-columns: repeat(4, 1fr); }
}
  

/* MOBILE MENU CLOSE BUTTON */
.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
}
/* CART */
.cart {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  top: 75px;                 /* height of navbar */
  height: calc(100vh - 64px);
}

.cart.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.cart-items {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cart-footer {
  padding: 1rem;
  border-top: 1px solid #ddd;
}

.checkout-btn {
  width: 100%;
  padding: 0.75rem;
  background: #007bff;
  color: #fff;
  border: none; 
}

/* DESKTOP */
@media (min-width: 992px) {
  .cart {
    width: 320px;
    right: -320px;
  }
}

/* COSPLAY SHOWCASE */
.cosplay-showcase {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.cosplay-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff; 
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.cosplay-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.cosplay-info {
  padding: 1.5rem;
}

@media (min-width: 992px) {
  .cosplay-card {
    grid-template-columns: 1.2fr 1fr;
  }

  .cosplay-card img {
    height: 100%;
  }
}
/* TOYS SCROLL */
.toys-scroll {
  margin-bottom: 4rem;
}

.toys-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;

  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE */
}

.toys-row::-webkit-scrollbar {
  display: none;                /* Chrome, Safari */
}

.toy-card {
  min-width: 180px;
  background: #fff;
  padding: 1rem; 
  scroll-snap-align: start;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
}
.toy-card .price {
  font-size: 1.1rem;
  font-weight: 600;
}

.toy-card img {
  height: 140px;
  object-fit: contain;
}
@media (min-width: 992px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin: 0 auto 3rem;
  }
}
.section-title {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  grid-column: 1 / -1;        /* span full grid */
  text-align: center;
  max-width: 300px;           /* match card width visually */
  margin: 0 auto 1.5rem;      /* center horizontally */
}
/* =========================
   MODERN SEARCH BAR
========================= */

.search-form {
  width: 100%;
}

/* wrapper */
.search-wrapper {
  position: relative;
  width: 100%;
  height: 42px;
}

/* input */
.search-wrapper input {
  width: 100%;
  height: 42px;
  padding: 0 2.75rem 0 1rem;
  font-size: 1rem;             /* pill shape */
  border: 1px solid #ddd;
  background: #f9f9f9;
  color: #222;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* icon */
.search-wrapper i {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
  pointer-events: none;
}

/* focus state */
/* SOFT EXPAND FOCUS */
.search-wrapper input {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-wrapper input:focus {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
/* placeholder */
.search-wrapper input::placeholder {
  color: #999;
}

/* =========================
   DESKTOP SIZE
========================= */
@media (min-width: 992px) {
  .search-form {
    width: 320px;     /* you wanted longer */
    flex-shrink: 0;   /* IMPORTANT */
  }

  .search-wrapper input {
    font-size: 0.95rem;
  }
}
.btn-cart,
.nav-cart {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* SHOW MORE BUTTON */
.show-more-btn {
  display: block;
  margin: 1rem auto 3rem;
  padding: 0.75rem 1.5rem;
  background: #007bff;
  color: #fff;
  border: none; 
  font-size: 1rem;
  cursor: pointer;
}

.show-more-btn:hover {
  background: #0056b3;
}

/* HIDDEN MANGA ITEMS */
.product-card.hidden {
  display: none;
}
/* TOYS NAVIGATION */
.toys-scroll {
  position: relative;
}

/* NAV BUTTONS */
.toy-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 36px;
  height: 36px; 
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 5;
}

.toy-nav.prev {
  left: -10px;
}

.toy-nav.next {
  right: -10px;
}

/* HIDE BUTTONS ON VERY SMALL SCREENS (OPTIONAL) */
@media (max-width: 360px) {
  .toy-nav {
    display: none;
  }
}

/* CART CLOSE BUTTON – COOL VERSION */
.cart-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px; 
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: #222;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* HOVER (desktop) */
.cart-close:hover {
  background: #007bff;
  color: #fff;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
}

/* ACTIVE (click / tap) */
.cart-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* MOBILE – larger tap area */
@media (max-width: 576px) {
  .cart-close {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,123,255,0.5); }
  100% { box-shadow: 0 0 0 10px rgba(0,123,255,0); }
}

.cart.open .cart-close {
  animation: pulse 0.6s ease-out;
}
/* CART ITEM REMOVE BUTTON */
.cart-remove {
  width: 32px;
  height: 32px; 
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #555;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* HOVER */
.cart-remove:hover {
  background: #ff4d4d;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.4);
}

/* CLICK */
.cart-remove:active {
  transform: scale(0.95);
}

/* MOBILE – easier tapping */
@media (max-width: 576px) {
  .cart-remove {
    width: 36px;
    height: 36px;
  }
}
@media (min-width: 992px) {
  .toy-card {
    min-width: 220px;      /* was ~180px */
    padding: 1.25rem;
  }

  .toy-card img {
    height: 170px;         /* bigger image */
  }

  .toy-card h3 {
    font-size: 1.1rem;
  }

  .toy-card .price {
    font-size: 1.15rem;
  }
}
/* NAV LINK BASE */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

/* HOVER COLOR */
.nav-link:hover {
  color: #007bff;
}

/* UNDERLINE SLIDE EFFECT */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #007bff;
  transition: width 0.25s ease;
}

/* SHOW UNDERLINE ON HOVER */
.nav-link:hover::after {
  width: 100%;
}

/* KEEP UNDERLINE FOR ACTIVE LINK */
.nav-link.active::after {
  width: 100%;
}
.product-card,
.toy-card,
.cosplay-card {
  transition: opacity 0.2s ease;
}
/* =====================
   ABOUT PAGE
===================== */

.about-page {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto;
}

.about-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.about-hero p {
  color: #555;
  font-size: 1.1rem;
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.about-section p {
  line-height: 1.7;
  color: #333;
}

.about-list {
  list-style: none;
  padding-left: 0;
}

.about-list li {
  padding: 0.5rem 0;
  font-size: 1.05rem;
}

.about-values {
  display: grid;
  gap: 1.5rem;
}

.value-card {
  background: #fff;
  padding: 1.5rem; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

.about-cta {
  text-align: center;
  margin-top: 4rem;
}

.about-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.about-cta p {
  font-size: 1.1rem;
  color: #444;
}

/* DESKTOP */
@media (min-width: 768px) {
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-hero h1 {
    font-size: 2.6rem;
  }
}  
.owl-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.owl-nav button {
  pointer-events: auto;
  background: rgba(0,0,0,0.6) !important;
  color: #fff !important;
  font-size: 28px !important;
  width: 44px;
  height: 44px; 
}
/* FIX OWL IMAGE RATIO ON MOBILE */
.gallery .owl-item img {
  width: 100%;
  height: auto;              /* 🔑 keeps real proportions */
  object-fit: contain;       /* prevents cropping */
  display: block;
} 
/* OWL CAROUSEL – DESKTOP IMAGE SCALE FIX */
@media (min-width: 1024px) {
  .gallery .owl-stage {
    display: flex;
    align-items: center;
  }

  .gallery .owl-item {
    display: flex;
    justify-content: center;
  } 

  .gallery .owl-item img {
    height: 520px;          /* ← image actually grows */
    max-height: none;       /* 🔑 remove hidden cap */
    width: auto;            /* keep proportions */
    object-fit: contain;
  }
}
.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 5px;
  margin: 15px 0;
}
.thumb {
  width: 100%;
  height: 40px;
  object-fit: cover;
  cursor: pointer; 
  opacity: 0.6;
  transition: 0.3s ease;
}
.thumb:hover {
  opacity: 1;
}

.thumb.active {
  border: 2px solid #007bff;
  opacity: 1;
}

/* 📱 MOBILE */
@media (max-width: 768px) {
  .thumb {
    height: 70px;   /* più basse su mobile */
  }
}

/* 📱 EXTRA SMALL DEVICES */
@media (max-width: 480px) {
  .thumbnail-gallery {
    gap: 4px;
  }

  .thumb {
    height: 30px;          /* Ancora più piccole */
  }
}
.modal {
  display: none;              /* hidden by default */
  position: fixed;
  inset: 0;                   /* same as top:0; left:0; right:0; bottom:0 */
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;    /* horizontal center */
  align-items: center;        /* vertical center */
}

.modal-content {
  background: #fff;
  width: 400px;
  margin: 5% auto;
  padding: 20px; 
  text-align: center;
  position: relative;
}

.modal-img {
  width: 200px;
  margin: 0 auto 20px auto;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

select {
  padding: 5px; 
}
.volume-label {
  display: block;
  text-align: left;
  margin-top: 8px;
  font-weight: 500;
}

.select-wrapper { 
  position: relative;
  width: 200px; 
}

.volume-select {
  width: 100%;
  padding: 12px 15px;
  font-size: 15px;  
  border: 2px solid #ddd;
  background: white;
  cursor: pointer;
  appearance: none;              /* removes default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.3s ease;
}

/* Custom arrow */
.select-wrapper::after {
  content: "▼";
  position: absolute; 
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #555;
}

.volume-select:hover {
  border-color: #1877f2;
}

.volume-select:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.2);
}
.main-image {
  position: relative;   /* VERY IMPORTANT */
  width: 100%;
  height: 100%;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  padding: 12px;
  cursor: pointer; 
  z-index: 10; /* 👈 THIS FIXES BUTTON HIDING */
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}
@media (max-width: 768px) {
  .thumbnail-gallery {
    display: none;
  }
} 
.hidden {
  display: none !important;
}