
body{
  margin:0;
  font-family:'Press Start 2P', monospace;
  background:#FFF8E7;
  color:black;
  min-height:100vh;
  image-rendering:pixelated;
}

/* Background floating pixel particles */
.float-layer{
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 6px);
  animation: subtleMove 14s infinite linear;
  opacity:0.25;
}

@keyframes subtleMove {
  0%{transform:translate(0,0);}
  100%{transform:translate(20px, 20px);}
}

/* Panel */
.panel{
  text-align:center;
  padding:20px 30px;
  z-index:10;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
}

.logo{
  width:135px;
  margin-bottom:22px;
  animation: float 3.5s ease-in-out infinite;
  image-rendering:pixelated;
}

@keyframes float {
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}

.brand{
  color:#000000;
}

.dot{
  color:rgb(5, 5, 5);
}

.pixel-text{
  font-size:14px;
  letter-spacing:1px;
}

h1,h2{
  margin:12px 0;
  line-height:1.6;
}

/* Fade in animation */
.fade-in{
  animation: fadeIn 1.4s ease forwards;
  opacity:0;
}

@keyframes fadeIn {
  to{ opacity:1; }
}

/* Subtle fade for subtext */
.subtle-fade{
  animation: fadeLater 3s ease forwards;
  opacity:0;
}

@keyframes fadeLater {
  0%{opacity:0;}
  40%{opacity:0;}
  100%{opacity:1;}
}

.navbar {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 100;
}

.navbar a {
    background: #fff8d4;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 8px;
    font-size: 12px;
    text-decoration: none;
    color: black;
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 101;
    border: 2px solid transparent;
}

.navbar a:hover {
    background: #eee0b6;
    border: 2px solid #0077ff;
}

/* Homepage Navbar */
.homepage-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: red;
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 100;
    border-bottom: 3px solid black;
    box-shadow: 0 4px 0px black;
    animation: navbarEntrance 0.6s ease-out forwards;
    transform: translateY(-100%);
}

@keyframes navbarEntrance {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

.homepage-navbar .nav-link {
    background: transparent;
    padding: 8px 16px;
    font-size: 11px;
    text-decoration: none;
    color: rgb(0, 0, 0);
    cursor: pointer;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.2s;
    text-transform: uppercase;
}

.homepage-navbar .nav-link:hover {
    border: 2px solid #0077ff;
    box-shadow: 4px 4px 0px black;
    border-radius: 6px;
    background: #fff8d4;
}

.homepage-navbar .nav-link.active {
    background: #fff8d4;
    color: black;
    border: 2px solid black;
    box-shadow: 4px 4px 0px black;
    border-radius: 6px;
}

.homepage-navbar .nav-link.active:hover {
    background: #0055cc;
    border-color: #0055cc;
}

/* Homepage Main */
.homepage-main {
    padding: 120px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.homepage-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    justify-content: center;
}

.homepage-left {
    flex: 1;
    margin-top: 100px;
    text-align: center;
    max-width: 500px;
}

.homepage-right {
    flex: 1;
    max-width: 600px;
}

.homepage-logo {
  padding : 10px;
  height : auto;
  width: 135px;
  margin-bottom: 15px;
  image-rendering: pixelated;
}

.animate-logo {
    animation: logoEntrance 1s ease-out forwards, float 3.5s ease-in-out infinite 1s;
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-title {
    animation: titleEntrance 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slogan {
    animation: sloganEntrance 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes sloganEntrance {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-button {
    animation: buttonEntrance 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

@keyframes buttonEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-deals {
    animation: dealsEntrance 1s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
}

@keyframes dealsEntrance {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.homepage-title {
    font-size: 32px;
    margin: 5px 0;
    line-height: 1.4;
}

.homepage-slogan {
    font-size: 14px;
    color: rgb(11, 11, 11);
    margin: 15px 0 30px;
    line-height: 1.6;
}

.shop-now-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #fff8d4;
    color: black;
    text-decoration: none;
    font-size: 12px;
    border: 3px solid black;
    box-shadow: 6px 6px 0px black;
    transition: all 0.2s;
    margin: 20px 0 50px;
    font-family: 'Press Start 2P', monospace;
}

.shop-now-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px black;
    background: #8b5117;
}

.shop-now-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0px black;
    background: #c98d49;
}

/* Top Deals Section */
.top-deals-section {
    padding: 20px;
    text-align: center;
}

.top-deals-title {
    font-size: 18px;
    margin-bottom: 30px;
    color: black;
}

.top-deals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.deal-card {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    background: #fff8d4;
    border: 3px solid black;
    box-shadow: 6px 6px 0px black;
    overflow: hidden;
}

.deal-card.empty {
    background: #f0e6d2;
    border-style: dashed;
    opacity: 0.5;
}

.deal-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

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

.deal-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    padding: 6px 10px;
    font-size: 10px;
    border: 2px solid black;
    box-shadow: 3px 3px 0px black;
    font-family: 'Press Start 2P', monospace;
}

.animate-deal-card {
    animation: dealCardEntrance 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
}

@keyframes dealCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design for Homepage */
@media (max-width: 968px) {
    .homepage-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .homepage-left,
    .homepage-right {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .homepage-navbar {
        padding: 10px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .homepage-navbar .nav-link {
        font-size: 9px;
        padding: 6px 12px;
    }
    
    .homepage-main {
        padding: 100px 15px 40px;
    }
    
    .homepage-content-wrapper {
        gap: 30px;
    }
    
    .homepage-title {
        font-size: 24px;
    }
    
    .homepage-slogan {
        font-size: 12px;
    }
    
    .shop-now-btn {
        padding: 12px 30px;
        font-size: 10px;
    }
    
    .top-deals-grid {
        gap: 15px;
        max-width: 100%;
    }
    
    .deal-card {
        border-width: 2px;
        box-shadow: 4px 4px 0px black;
    }
}

/* Nav - same as navbar for about and contact pages */
.nav {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 100;
}

.nav a {
    background: #fff8d4;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 8px;
    font-size: 12px;
    text-decoration: none;
    color: black;
    cursor: pointer;
    display: inline-block;
    position: relative;
    z-index: 101;
    border: 2px solid transparent;
}

.nav a:hover {
    background: #eee0b6;
    border: 2px solid #0077ff;
}

/* About Page Styles */
.about-page {
    text-align: center;
    padding: 20px;
}

.about-logo {
    width: 135px;
    height: auto;
    margin-top: 120px;
    margin-bottom: 10px;
    image-rendering: pixelated;
    object-fit: contain;
}

.about-container {
    max-width: 650px;
    margin: 30px auto;
    line-height: 1.4;
    text-align: center;
    padding: 25px;
    background: #fff9e2;
    border: 3px solid black;
    box-shadow: 6px 6px 0px black;
    position: relative;
    top: -210px;
    z-index: 3;
    animation: aboutContainerEntrance 1.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

@keyframes aboutContainerEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.about-container h2 {
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-container p {
    font-family: "VT323";
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
}

/* Contact Page Styles */
.contact-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 100px 20px 60px;
    text-align: center;
}

.contact-logo {
    height : auto;
    width: 80px;
    margin-bottom: 10px;
    image-rendering: pixelated;
    object-fit: contain;
}

.contact-page h2 {
    margin: 0 0 30px 0;
    font-size: 18px;
}

.form-box {
    text-align: center;
    width: 350px;
}

.form-box input,
.form-box textarea {
    width: 90%;
    padding: 12px;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    border: 2px solid black;
    background-color: #fff9e2;
    outline: none;
    resize: none;
}

.form-box textarea {
    height: 120px;
}

.form-box button {
    padding: 12px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    background: #fff9e2;
    border: 3px solid black;
    cursor: pointer;
    box-shadow: 4px 4px 0px black;
    transition: all 0.1s ease-in-out;
    margin-left: 0px;
}

.form-box button:active {
    box-shadow: 0px 0px 0px black;
    transform: translate(4px, 4px);
}

.form-box button:hover {
    background: #eee0b6;
}

.form-box button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    padding: 15px 20px;
    margin-top: 20px;
    font-size: 11px;
    text-align: center;
    border: none;
    border-radius: 4px;
    min-height: 30px;
    display: block;
    line-height: 1.6;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Products Section */
.products-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    padding-top: 100px;
}

.products-logo {
    height: auto;
    width: 105px;
    margin: 0px auto 15px;
    display: block;
    image-rendering: pixelated;
    padding: 0px;
    animation: productsLogoEntrance 1s ease-out forwards;
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
}

@media (max-width: 600px) {
    .products-logo {
        width: 80px;
        margin-bottom: 8px;
    }
}

@keyframes productsLogoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.products-title {
    text-align: center;
    font-size: 24px;
    margin-top: 0px;
    margin-bottom: 30px;
    color: black;
    animation: productsTitleEntrance 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes productsTitleEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        padding: 15px 10px 25px;
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 10px 6px 20px;
    }
}

/* Product Card */
.product-card {
    background: #fff9e2;
    border: 3px solid black;
    box-shadow: 6px 6px 0px black;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    animation: productCardEntrance 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

@keyframes productCardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px black;
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 aspect ratio */
    background: #fff9e2;
    overflow: hidden;
}

.product-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    padding: 6px 10px;
    font-size: 10px;
    border: 2px solid black;
    box-shadow: 3px 3px 0px black;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.product-brand {
    font-size: 9px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 8px;
    line-height: 1.4;
    color: black;
    min-height: 40px;
}

.product-sizes {
    font-size: 7px;
    color: #666;
    margin-top: 5px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.price-original {
    font-size: 8px;
    text-decoration: line-through;
    color: #999;
}

.price-final {
    font-size: 11px;
    color: red;
    font-weight: bold;
}

.product-link {
    margin-top: 12px;
    padding: 10px 15px;
    background: #fff8d4;
    color: black;
    text-decoration: none;
    text-align: center;
    font-size: 8px;
    border: 2px solid black;
    box-shadow: 3px 3px 0px black;
    transition: background 0.2s, transform 0.2s;
    display: inline-block;
}

.product-link:hover {
    background: #eee0b6;
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px black;
}

.loading, .error, .no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 12px;
    color: #666;
}

.error {
    color: red;
}

/* Pagination Controls */
.pagination-controls {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: paginationEntrance 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes paginationEntrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination-info {
    font-size: 10px;
    color: #666;
    margin-bottom: 10px;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.pagination-btn {
    padding: 10px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    background: #fff8d4;
    border: 3px solid black;
    cursor: pointer;
    box-shadow: 4px 4px 0px black;
    transition: all 0.1s ease-in-out;
    color: black;
}

.pagination-btn:hover:not(:disabled) {
    background: #eee0b6;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0px black;
}

.pagination-btn:active:not(:disabled) {
    box-shadow: 0px 0px 0px black;
    transform: translate(4px, 4px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0e6d2;
}

.pagination-page-info {
    font-size: 10px;
    color: #0077ff;
    font-family: 'Press Start 2P', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
        padding: 10px;
    }
    
    .products-title {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .product-card {
        border-width: 2px;
        box-shadow: 4px 4px 0px black;
    }
}

.about-content-wrapper {
  position: relative;
}

.about-ship-and-waves-animation {
  position: relative;
  width: 100%;
  margin: 180px auto 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 150px;
  image-rendering: pixelated;
}

.waves {
  width: 100%;
  height: 250px;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  /* Animation to 'unwind' image from left to right */
  clip-path: inset(0 100% 0 0);
  animation: unwindWaves 2.2s cubic-bezier(0.4,0,0.2,1) forwards;
  position: relative;
  z-index: 1;
}

@keyframes unwindWaves {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0% 0 0);
  }
}

.ship {
  position: absolute;
  top: -25%;
  left: 0%;
  transform: translateY(-50%);
  width: auto;
  height: 180px;
  display: block;
  opacity: 1;
  z-index: 2;
  image-rendering: pixelated;
  /* Animate forward sailing with up-down motion */
  animation: ship-sail 5s linear infinite;
}

@keyframes ship-sail {
  0% {
    left: 0%;
    top: -25%;
    transform: translateY(-25%);
  }

  5% {
    transform: translateY(-20%) ;
  }

  10% {
    transform: translateY(-17%);
  }

  15% {
    transform: translateY(-25%);
  }

  20% {
    transform: translateY(-30%);
  }

  25% {
    transform: translateY(-35%);
  }

  30% {
    transform: translateY(-30%);
  }

  35% {
    transform: translateY(-25%);
  }

  40% {
    transform: translateY(-20%);
  }

  45% {
    transform: translateY(-17%);
  }

  50% {
    transform: translateY(-20%);
  }

  55% {
    transform: translateY(-25%);
  }

  60% {
    transform: translateY(-34%);
  }

  65% {
    transform: translateY(-40%);
  }

  70% {
    transform: translateY(-30%);
  }

  75% {
    transform: translateY(-25%);
  }

  80% {
    transform: translateY(-21%);
  }

  85% {
    transform: translateY(-19%);
  }

  90% {
    transform: translateY(-17%);
  }

  95% {
    transform: translateY(-23%);
  }

  100% {
    left: 90%;
    top: -25%;
    transform: translateY(-25%);
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px auto 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 720px;
}

.filter-select {
  padding: 10px 15px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  background: #fff8d4;
  border: 2px solid black;
  box-shadow: 2px 2px 0px black;
  cursor: pointer;
  color: black;
  transition: all 0.1s ease-in-out;
  text-transform: uppercase; 
  width: fit-content;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 900px) {
  .filter-bar {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    overflow-x: visible;
    gap: 8px;
    padding: 0 10px;
    width: 100%;
    max-width: 100%;
  }

  .filter-select {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    text-align: center;
    font-size: 8px;
    padding: 8px 6px;
  }
}

@media (max-width: 500px) {
  .filter-bar {
    gap: 6px;
    padding: 0 8px;
  }
  
  .filter-select {
    flex: 1 1 0;
    min-width: 0;
    font-size: 7px;
    padding: 8px 4px;
  }
}
.filter-select:hover {
  background: #eee0b6;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px black;
}

.filter-select:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px black;
}
