/*
 * Global styles for Shoe Paradise
 * We aim to echo the vibrant, neon-inspired look of the source site while
 * maintaining responsiveness on both desktop and mobile devices.
 */

/* Basic resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Trebuchet MS', Helvetica, sans-serif;
  background: linear-gradient(135deg, #ffc3c1 0%, #ff6b8a 100%);
  color: #000;
  overflow-x: hidden;
}

/* Announcement bar at the very top */
.announcement-bar {
  width: 100%;
  background: linear-gradient(to right, #ffd700, #ffb800);
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 0.3rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Header containing the title and promo messages */
.site-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.site-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffe3ff;
  text-shadow:
    0 0 5px #ff6bff,
    0 0 10px #ff6bff,
    0 0 20px #ff6bff,
    0 0 40px #ff00ff;
  margin-bottom: 0.5rem;
}

.site-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ff004d;
  margin-bottom: 0.3rem;
}

.countdown {
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
  font-weight: bold;
  color: #ff004d;
  margin-top: 0.2rem;
}

.offers {
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
  margin-top: 0.3rem;
}

/* Product grid on the home page */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
}

/* Individual product card */
.product-card {
  position: relative;
  width: 280px;
  border: 3px solid #000;
  border-radius: 15px;
  background: #fff5f9;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Image container inside product card */
.card-image-container {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows for image slider inside card */
.card-image-container .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffe100;
  color: #000;
  border: 2px solid #000;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem; /* Make arrow characters visible */
}

.card-image-container .nav-arrow.left {
  left: 5px;
}

.card-image-container .nav-arrow.right {
  right: 5px;
}

/* Product name inside card */
.product-card .card-product-name {
  /* Hide the product name on the card to keep a clean look.  Names
     remain available in the cart for reference. */
  display: none;
}

/* Buy button inside card */
.product-card .buy-btn {
  text-align: center;
  padding: 0.5rem;
  background: #ffe100;
  color: #000;
  font-weight: bold;
  border-top: 3px solid #000;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-card .buy-btn:hover {
  background: #ffcb00;
}

/* Floating navigation buttons (home/cart) */
.floating-nav {
  position: fixed;
  right: 15px;
  /* Position the navigation buttons near the top of the page rather than mid-height */
  top: 20%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 50;
}

.floating-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #ffe100;
  color: #000;
  border: 3px solid #000;
  border-radius: 15px;
  text-decoration: none;
  font-size: 1.3rem;
  transition: background 0.2s ease;
}

/* Resize embedded SVG/PNG icons within floating buttons */
.nav-icon {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.floating-btn:hover {
  background: #ffcb00;
}

/* Cart count indicator */
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff004d;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product page layout */
.product-page-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
}

.product-slider {
  position: relative;
  width: 450px;
  height: 450px;
  border: 3px solid #000;
  border-radius: 15px;
  overflow: hidden;
  background: #fff5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-slider .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffe100;
  color: #000;
  border: 2px solid #000;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

#prevImage { left: 10px; }
#nextImage { right: 10px; }

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-details {
  width: 400px;
  background: #fff5f9;
  border: 3px solid #000;
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: #000;
}

.product-name {
  /* Hide the large product title on the product page.  The promo
     messaging provides context and the cart will still display the id. */
  display: none;
}

.product-pricing {
  font-size: 1.4rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.new-price {
  color: #ff004d;
  font-weight: bold;
  font-size: 1.6rem;
}

.old-price {
  text-decoration: line-through;
  color: #777;
  font-size: 1rem;
}

.size-select,
.color-input {
  width: 100%;
  padding: 0.5rem;
  border: 2px solid #000;
  border-radius: 8px;
  font-size: 1rem;
}

.add-cart-btn {
  padding: 0.8rem;
  background: #ffe100;
  border: 3px solid #000;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: #000;
  transition: background 0.2s ease;
}

.add-cart-btn:hover {
  background: #ffcb00;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-grid {
    gap: 1rem;
    padding: 1rem;
  }
  .product-card {
    width: 90%;
  }
  .product-page-container {
    flex-direction: column;
    align-items: center;
  }
  .product-slider,
  .product-details {
    width: 90%;
    max-width: 450px;
  }
  .site-title {
    font-size: 2.5rem;
  }
  .site-tagline {
    font-size: 1.2rem;
  }
  .countdown {
    font-size: 1.5rem;
  }
}