/* Base Styles */
* { box-sizing: border-box; }
body {
  font-family: 'Helvetica Neue', sans-serif;
  margin: 0; padding: 0;
  background: #f5f1e6 url('images/paper-texture.png') repeat;
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: #333; line-height: 1.6;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header, Nav */
.centered-header {
  background: url('images/website-backround.png') no-repeat center center;
  background-size: cover;
  text-align: center;
  padding: 2rem 0;
}
.centered-header .logo {
  max-width: 300px;
  width: 100%;
  height: auto;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background: #0A2F44;
  padding: 0.5rem 0;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 1rem;
  transition: background 0.3s ease;
}
.main-nav a:hover {
  background: #126F85;
  border-radius: 4px;
}
.main-nav a[aria-current="page"] {
  border-bottom: 2px solid #126F85;
}

/* Product Card */
.product-card {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 1.5rem auto;
  overflow: hidden;
}

/* Corrected Image Container: Flush left with 15px padding */
.product-figure {
  flex: 1;
  display: block;
  padding: 15px;
  margin: 0;
}
.product-figure img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  margin: 0;
  float: left;
  border-radius: 6px;
}

/* Product Details */
.product-details {
  flex: 2;
  padding: 1rem 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.product-details h3 {
  margin: 0 0 0.5rem;
}
.product-details p {
  margin: 0 0 1rem;
}

/* Actions: Button and meta */
.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.actions .price,
.actions .stock-status {
  margin: 0;
}
.actions form {
  margin: 0;
}
.actions button {
  background: #0A2F44;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}
.actions button:hover {
  background: #126F85;
}

/* Footer */
.site-footer {
  background: #0A2F44;
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* About / Shipping */
.about-section {
  color: #0A2F44;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
  padding: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
  }
}

/* Footer adjustments */
.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Make product price bold */
.actions .price {
  font-weight: bold;
}

/* Stock status colors */
.stock-status.in-stock {
  color: green;
}
.stock-status.out-of-stock {
  color: red;
}

/* Increase Buy Now button text size */
.actions button {
  font-size: 1.25rem;
}

/* Reset Buy Now button text size */
.actions button {
  font-size: 1rem !important;
}

/* Make Buy Now button smaller */
.actions button {
  font-size: 0.875rem !important;
  padding: 0.25rem 0.5rem !important;
}

/* Roosterfish background swimming left */
body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: auto;
  bottom: 10%;
  right: -500px;
  background: url('images/roosterfish.png') no-repeat;
  background-size: contain;
  pointer-events: none;
  animation: swimLeft 20s linear infinite;
}

@keyframes swimLeft {
  from { right: -500px; }
  to { right: 100%; }
}

/* Skeleton pattern body background */
body {
  background-image: url('images/rooster-skeleton-pattern.png');
  background-repeat: repeat;
  background-size: 500px 500px;
  background-position: left center;
}

/* Animate skeleton pattern swimming left */
body {
  animation: swimPattern 55s linear infinite;
}
@keyframes swimPattern {
  from { background-position: 0 center; }
  to { background-position: -500px center; }
}

/* Center text on Shipping page */
.shipping-page .about-section {
  text-align: center;
}

/* Bold text on About page */
.about-page .about-section {
  font-weight: bold;
}

/* Intro text above lure containers */
.intro-text {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #0A2F44;
  text-align: center;
}
.intro-text p {
  margin: 0;
  font-size: 1.125rem;
}

/* Make intro text bold */
.intro-text p {
  font-weight: bold;
}

/* Faded rooster skeleton overlay */
body {
  background-image: url('images/paper-texture.png');
}

/* Pseudo-element for faded skeleton pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/rooster-skeleton-pattern.png') repeat;
  background-size: 500px 500px;
  background-position: 0 center;
  animation: swimPattern 55s linear infinite;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

/* Increase rooster overlay opacity to 80% */
body::before {
  opacity: 0.8 !important;
}

/* Set rooster overlay opacity to 70% */
body::before {
  opacity: 0.7 !important;
}

/* Button text color set to beige matching logo */
.main-nav a,
.actions button {
  color: #f5f1e6 !important;
}

/* Update button and nav text to exact beige from logo */
.main-nav a,
.actions button {
  color: #F4E0B4 !important;
}

/* Match product text color to site theme */
.product-details h3,
.product-details p {
  color: #0A2F44 !important;
}

/* Ensure In Stock is green and Buy Now button text is white */
.stock-status.in-stock {
  color: green !important;
}
.actions button {
  color: #ffffff !important;
}

/* Brighter blue for Buy Now button */
.actions button {
  background: #1E90FF !important;
}
.actions button:hover {
  background: #1C86EE !important;
}

/* Slightly less bright blue for Buy Now button */
.actions button {
  background: #007ACC !important;
}
.actions button:hover {
  background: #006BB3 !important;
}

/* Style adjustment for mailto buy-now-button */
.buy-now-button {
  background: #007ACC;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-block;
}
.buy-now-button:hover {
  background: #006BB3;
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* Final unified stock-status style */
.stock-status {
  color: #FF8C00 !important;
  font-weight: bold !important;
}


/* Override specific inventory statuses to deep orange */
.stock-status.in-stock,
.stock-status.out-of-stock,
.stock-status.coming-soon {
  color: #FF8C00 !important;
}


/* Ultimate override: all stock-status elements to deep orange */
.actions .stock-status {
  color: #FF8C00 !important;
}
