@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
}

body {
  background: white;
  color: black;
  overflow-x: hidden;
}

a{
color:inherit;
text-decoration:none;
cursor:pointer;
}

/* ======================================================
   NAV (CLEAN)
====================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6%;
  z-index: 1000;
}

/* NAV LOGO */

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;

  display: block;

  transition: 0.25s ease;
}

/* subtle hover like luxury brands */

.logo img:hover {
  opacity: 0.8;
}


/* animated light */

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  z-index: -2;

  background:
radial-gradient(circle at 25% 35%, rgba(0,0,0,.18), transparent 60%),
radial-gradient(circle at 75% 70%, rgba(0,0,0,.14), transparent 65%);

animation:cornerReveal 12s ease-in-out infinite alternate;
}

@keyframes cornerReveal{

0%{
transform:translate(0,0);
}

100%{
transform:translate(-40px,25px);
}

}

/* noise */

.bg-noise {
  position: fixed;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  pointer-events: none;
}

/* header */

.pieces-header {
  padding: 160px 8% 40px;
  position: relative;
}

.pieces-header h1 {
  font-family: "Anton";
  font-size: 80px;
  letter-spacing: 10px;
}

.pieces-header p {
  opacity: 0.6;
  margin-top: 10px;
}

.back-icon {
  font-size: 30px;
  text-decoration: none;
  color: black;
}

/* sections */

.pieces-section {
  padding: 30px 8%;
}

.pieces-section h2 {
  font-family: "Anton";
  font-size: 28px;
  letter-spacing: 8px;
  margin-bottom: 60px;
  position: relative;
}

.pieces-section h2::after {
  content: "";
  width: 80px;
  height: 2px;
  background: black;
  display: block;
  margin-top: 12px;
}

/* ============================= */
/* AVAILABLE CATALOG */
/* ============================= */

.catalog-grid {
  display: grid;
  gap: 20px;
  padding: 0 6%;
}

@media (min-width: 700px) {
  .catalog-grid {
    justify-content: center;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

}

.catalog-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;

  border-radius: 10px;
}

.catalog-card:hover {
  transform: translateY(-4px);
}

.catalog-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.catalog-meta {
  margin-top: 12px;
  text-align: center;
}

.catalog-meta span {
  display: block;
  letter-spacing: 2px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 4px;
}

.catalog-meta p {
  font-size: 13px;
  opacity: 0.8;
  margin: 2px 0;
}

/* ============================= */
/* PRODUCT PAGE */
/* ============================= */

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.product-images img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;

  border-radius: 10px;
}

#thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

#thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

#thumbs img:hover {
  border: 2px solid black;
}

.product-info h2 {
  font-family: "Anton";
  font-size: 36px;
  letter-spacing: 4px;
}

.price {
  font-size: 22px;
  margin-top: 10px;
}

.delivery {
  opacity: 0.6;
  margin-bottom: 20px;
}

/* color spheres */

#colorOptions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.color {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid black;
  cursor: pointer;
  display: inline-block;
  transition: 0.2s;
}

.color.active {
  transform: scale(1.2);
  border: 3px solid black;
}

/* sizes */

.size-grid {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.size-grid button {
  padding: 12px 16px;
  min-width: 44px;
  min-height: 44px;

  border: 1px solid black;
  background: white;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: black;

  border-radius: 4px;

  transition: transform 0.12s ease, background 0.18s ease;
}

.size-grid button.active {
  background: black;
  color: white;
  border-color: black;
  transform: scale(0.94);
}

.size-grid button:hover {
  background: #aca8a8;
}

/* quantity */

.qty {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
}

.qty button {
  padding: 8px 16px;
  font-size: 18px;
}

/* buttons */

.add-cart {
  margin-top: 20px;
  padding: 14px 26px;
  background: black;
  color: white;
  border: none;
  cursor: pointer;

  border-radius: 6px;
}

/* ADD TO CART SUCCESS */

.add-cart.added {
  background: #111;

  transform: scale(0.97);
}

.buy-now {
  margin-top: 10px;
  padding: 14px 26px;
  border: 1px solid black;
  background: white;
  color: black !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;

  border-radius: 6px;
}

/* cart */

.cart-icon {
  position: absolute;
  right: 40px;
  top: 40px;
  font-size: 22px;
  cursor: pointer;
}

/* CART THUMBNAIL */

.cart-thumb {
  width: 60px;
  height: 80px;

  object-fit: cover;

  border-radius: 4px;
}

/* CART PANEL */
#cartPanel {
  position: fixed;
  top: 0;
  right: -100%;

  width: 420px;
  max-width: 85vw;

  height: 100vh;

  background: white;

  padding: 36px 26px;

  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);

  transition: right 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);

  z-index: 1200;

  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  #cartPanel {
    width: 85vw;
    max-width: 85vw;
  }
}

#cartPanel.open {
  right: 0;
}

/* CART TITLE */

.cart-header {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 30px;
}

.cart-logo {
  height: 50px;
  width: auto;
}

#cartPanel h2 {
  font-family: "Anton", sans-serif;
  letter-spacing: 4px;
  margin-bottom: 30px;
}

/* CART ITEMS */

#cartItems {
  flex: 1;
  overflow-y: auto;
}

/* SINGLE ITEM */

.cart-item {
  display: grid;

  grid-template-columns: 60px 1fr auto;

  gap: 14px;

  align-items: center;

  padding: 18px 0;

  border-bottom: 1px solid #eee;
}

.cart-item-info {
  line-height: 1.6;
}

.cart-item-price {
  font-weight: 700;
}

/* DELETE BUTTON */

.cart-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-remove {
  border: none;
  background: none;
  cursor: pointer;

  font-size: 18px;

  opacity: 0.5;
}

.cart-remove:hover {
  opacity: 1;
}

/* CART TOTAL */

.cartTotal {
  margin-top: 28px;

  font-size: 24px;
  font-weight: 900;

  letter-spacing: 2px;

  border-top: 1px solid #eee;

  padding-top: 20px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.25);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.35s ease;

  z-index: 1100;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* CHECKOUT BUTTON */

#cartPanel button {
  margin-top: 20px;

  padding: 14px;

  border: none;

  background: black;

  color: white;

  letter-spacing: 2px;

  cursor: pointer;

  transition: 0.2s;
}

#cartPanel button:hover {
  opacity: 0.8;
}

/* checkout */

.checkout-header {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-bottom: 30px;
}

.checkout-header img {
  height: 26px;
}

#checkoutForm {
  display: none;

  position: fixed;
  inset: 0;

  background: white;

  z-index: 1300;

  padding: 60px 8%;

  overflow-y: auto;
}

#checkoutForm h2 {
  font-family: "Anton", sans-serif;
  letter-spacing: 4px;
  margin-bottom: 30px;
}

#checkoutForm input,
#checkoutForm textarea {
  display: block;

  width: 100%;
  max-width: 420px;

  padding: 12px;

  margin-bottom: 14px;

  border: 1px solid #ddd;

  font-size: 14px;
}

#checkoutForm button {
  padding: 14px 24px;

  background: black;

  color: white;

  border: none;

  letter-spacing: 2px;

  cursor: pointer;
}

/* toast */

#savedNotice {
  position: fixed;
  top: 20px;
  right: 20px;
  background: black;
  color: white;
  padding: 10px 18px;
  display: none;
}

/* ============================= */
/* COMING SOON */
/* ============================= */

.pieces-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));

  gap: 40px;

  justify-content: center;
}

.piece-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.piece-card img {
  width: 100%;
  display: block;

  border-radius: 10px;

  /* heavy blur */
  filter: blur(10px) brightness(0.6);
  transition: 0.5s;
}

.locked.reveal img {
  /* still blurred but more visible */
  filter: blur(8px) brightness(0.8);
}

.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  letter-spacing: 6px;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

/* footer */

.ghost-footer {
  padding: 60px 0;
  text-align: center;
  letter-spacing: 6px;
  font-size: 12px;
  opacity: 0.4;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 600px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pieces-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-card img,
  .piece-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
  }
}

/* very small phones */

@media (max-width: 380px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .pieces-grid {
    grid-template-columns: 1fr;
  }
}

/* ACCORDION */

.accordion {
  margin-top: 40px;
  border-top: 1px solid #ddd;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 4px;
}

.accordion-header span {
  font-size: 18px;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 14px;
  opacity: 0.85;
}

.accordion-content ul {
  padding: 10px 0 20px 18px;
}

.accordion-content p {
  margin: 10px 0;
}

/* size table */

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 20px;
}

.size-table th,
.size-table td {
  border-bottom: 1px solid #eee;
  padding: 10px;
  font-size: 13px;
  text-align: left;
}

/* PRODUCT SOCIAL */

/* ============================= */
/* PRODUCT SOCIAL */
/* ============================= */

.product-social {
  margin-top: 40px;

  display: flex;
  align-items: center;
  gap: 18px;
}

/* icon circle */

.product-social a {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #ddd;
  border-radius: 50%;

  color: black;
  font-size: 18px;

  transition: all 0.25s ease;
}

/* hover effect */

.product-social a:hover {
  background: black;
  color: white;

  transform: translateY(-2px);

  border-color: black;
}

/* mobile */

@media (max-width: 600px) {
  .product-social {
    gap: 14px;
  }

  .product-social a {
    width: 36px;
    height: 36px;

    font-size: 16px;
  }
}

/* NAV CART RIGHT SIDE */


.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* LINKS */

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #fff;
 transition: 0.35s;
}


.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 2px;
  padding: 6px 0;
}

.nav-links a:hover::after {
  width: 100%;
}

/* CART */

.nav-cart {
  color: white;
  cursor: pointer;
  position: relative;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.nav-cart span {
  position: absolute;
  top: -6px;
  right: -10px;

  background: white;
  color: black;

  font-size: 10px;
  padding: 2px 6px;
  border-radius: 20px;
}

/* fly to cart animation */

/* =========================
   FLY TO CART IMAGE
========================= */

.fly-image {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  border-radius: 6px;
  transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fly-image.fly {
  transform: scale(0.15);
  opacity: 0.5;
}

/* =========================
   CART SHAKE
========================= */

.cart-shake {
  animation: cartShake 0.4s ease;
}

@keyframes cartShake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(4px);
  }

  75% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0);
  }
}

/* =========================
   CART COUNT PULSE
========================= */

@keyframes countPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.notice {
  position: fixed;

  top: 20px;
  right: 20px;

  background: black;
  color: white;

  padding: 12px 20px;

  font-size: 13px;
  letter-spacing: 1px;

  z-index: 2000;

  opacity: 0;

  transform: translateY(-10px);

  transition: 0.3s;
}

.notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* CART QUANTITY */

.cart-qty {
  display: flex;
  align-items: center;

  gap: 8px;

  margin-top: 6px;
}

.cart-qty button {
  width: 26px;
  height: 26px;

  border: 1px solid #ddd;

  background: white;

  cursor: pointer;

  font-size: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty span {
  min-width: 16px;
  text-align: center;

  font-size: 14px;
}

.cart-page-wrapper {
  max-width: 600px;
  margin: auto;
}

.cart-buy-btn {
  margin-top: 20px;

  padding: 14px 26px;

  background: black;

  color: white;

  border: none;

  cursor: pointer;

  letter-spacing: 2px;

  font-size: 12px;

  transition: 0.2s;

  border-radius: 6px;
}

.cart-buy-btn:hover {
  opacity: 0.85;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  opacity: 0.6;
  display: none;
  font-size: 16px;
}

.cart-count-pop {
  transform: scale(1.4);
  transition: 0.25s;
  animation: countPop 0.35s ease;
}

.empty-cart-img {
  width: 120px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.cart-empty h3 {
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: #000;
}

.cart-empty p {
  font-size: 13px;
  margin-bottom: 20px;
  color: #000;
}

.start-shopping {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #000;
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  color: #000;
  transition: 0.25s;
}

.start-shopping:hover {
  background: #000;
  color: #fff;
}

#payBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
  font-weight: 600;
}

.checkout-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  color: #000;
  z-index: 10;
}

.checkout-close:hover {
  opacity: 0.6;
}

.pay-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#payBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* OPEN STATE */

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-item.active .accordion-header span {
  transform: rotate(45deg);
}

.limited-stock {
  font-style: italic;

  font-size: 13px;

  opacity: 0.75;

  margin-top: 6px;

  letter-spacing: 0.5px;
}
