/*
 * The Print Pirate - Redesigned Stylesheet
 *
 * This stylesheet builds a bold, immersive aesthetic for the Print
 * Pirate brand. It draws inspiration from the uploaded artwork: a
 * dramatic skull‑and‑crossbones pirate surrounded by swirling red
 * energy. Dark backgrounds and luminous red accents evoke a high‑end
 * sci‑fi treasure map, while generous padding and modern typography
 * ensure readability. The design is fully responsive and works on
 * both desktop and mobile screens.
 */

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

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #f5f5f5;
  background-color: #0b0b0c; /* almost black */
  line-height: 1.6;
}

/* Navigation */
header {
  background-color: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
}

nav .logo {
  height: 50px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff3f5c; /* red accent on hover */
}

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #f5f5f5;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('the_print_pirate_banner_vertical_minus_100px.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.6); /* darken for legibility */
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 0, 0, 0.3), rgba(0, 0, 0, 0.85));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #e5e5e5;
}

.button {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  background-image: linear-gradient(to right, #ff3f5c, #ff7846);
  color: #0b0b0c;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 63, 92, 0.4);
}

/* Sections */
section {
  padding: 4rem 1rem;
}

section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #ff3f5c;
  letter-spacing: 0.05em;
}

/* About */
#about {
  background-color: #111;
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#about p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Gallery */
.gallery {
  background-color: #0b0b0c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(255, 63, 92, 0.3);
}

/* Contact */
.contact {
  background-color: #111;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  background-color: #222;
  border: 1px solid #444;
  color: #eee;
  font-size: 1rem;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: #ff3f5c;
  box-shadow: 0 0 0 2px rgba(255, 63, 92, 0.2);
}

.contact button {
  align-self: flex-start;
  background-image: linear-gradient(to right, #ff3f5c, #ff7846);
  color: #0b0b0c;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 63, 92, 0.4);
}

/* Footer */
footer {
  background-color: #0a0a0b;
  color: #777;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Store page */
main {
  padding: 3rem 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product {
  background-color: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(255, 63, 92, 0.3);
}

.product img {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.product h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #ff7846;
}

.product p {
  font-size: 0.95rem;
  color: #bbb;
  margin-bottom: 0.75rem;
}

.price {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ff3f5c;
  margin-bottom: 1rem;
}

.product button {
  background-image: linear-gradient(to right, #ff3f5c, #ff7846);
  color: #0b0b0c;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.product button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 63, 92, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {

  /* ── NAV ── */
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .logo {
    max-width: 120px;
  }

  /* ── HERO ── */
  .hero {
    padding: 3rem 1.25rem 2rem;
    background-position: center top;
  }
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero .button {
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  /* ── SECTIONS / GENERAL ── */
  section {
    padding: 2rem 1.25rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  /* ── PRODUCT GRID ── */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
  }
  .product-card {
    padding: 0.75rem;
  }
  .product-card img {
    max-width: 100%;
    height: auto;
  }

  /* ── GALLERY ── */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  /* ── CONTACT / SHIPPING FORMS ── */
  .contact {
    padding: 2rem 1.25rem;
  }
  .contact form,
  .shipping-form {
    width: 100%;
    max-width: 100%;
  }
  .contact input,
  .contact textarea,
  .shipping-form input {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
  }
  .contact textarea {
    min-height: 120px;
  }
  .button,
  button[type="submit"] {
    width: 100%;
    padding: 0.85rem;
    font-size: 1rem;
  }

  /* ── CHECKOUT TABLE ── */
  .checkout-table-wrap,
  section[style*="overflow-x"] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    font-size: 0.8rem;
    min-width: 480px;
  }
  th, td {
    padding: 0.5rem 0.6rem;
  }

  /* ── CART ── */
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* ── PAYPAL BUTTON ── */
  #paypal-button-container {
    max-width: 100% !important;
  }

  /* ── FOOTER ── */
  footer {
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    text-align: center;
  }
}

/* ── EXTRA SMALL (phones under 400px) ── */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  nav ul {
    font-size: 0.78rem;
    gap: 0.4rem 0.75rem;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}