/* RESET & BASE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* FONT-FACE DECLARATIONS */
@font-face {
    font-family: 'Saira Expanded';
    src: url('./fonts/Saira-master/Saira-master/Saira/fonts/ttf/SairaExpanded-Black.ttf') format('truetype');
    font-weight: 900;
}

/* HERO SECTION */
.hero {
    width: 100%;
    background-color: #0a0a0a;
    padding: 80px 0px;
    text-align: center;
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 100;
}

.hero-content {
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    font-size: min(13vw, 18rem);
    font-weight: 900;
    font-family: 'Saira Expanded', sans-serif;
    letter-spacing: -3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.12);
    text-shadow: 0 0 40px rgba(220, 38, 38, 0.3);
    margin: 0;
    line-height: 0.85;
    white-space: nowrap;
    max-width: 100%;
    padding: 0px;
    z-index: 1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 0 0 30px rgba(220, 38, 38, 0.4);
    }
    50% {
        text-shadow: 0 0 60px rgba(220, 38, 38, 0.6), 0 0 100px rgba(220, 38, 38, 0.2);
    }
}

/*
.accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #dc2626, transparent);
    margin: 5px auto;
    width: 60%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}
*/

.accent-line-top {
    margin-bottom: 7px;
}

.accent-line-bottom {
    margin-top: 7px;
}

/* HERO TAGLINE GLITCH EFFECT */
.hero-tagline {
  font-size: 3.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: goldenrod;
  font-weight: 900;
  margin: 0;
  position: relative;
  z-index: 2;
  display: inline-block;

  /* Opacity pulse applied to the whole tagline */
  animation: opa-pulse 5s ease-in-out reverse infinite;
}

.hero-tagline::before,
.hero-tagline::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: goldenrod;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.9;
  will-change: clip-path, transform;
}

/* Red glitch layer */
.hero-tagline::after {
  left: 6px;
  text-shadow: -6px 0 red;
  animation:
    glitch-slice-red 0.7s infinite steps(2, end),
    glitch-shift-red 1.35s infinite steps(1, end);
}

/* Blue glitch layer */
.hero-tagline::before {
  left: -6px;
  text-shadow: 6px 0 blue;
  animation:
    glitch-slice-blue 0.58s infinite steps(2, end),
    glitch-shift-blue 1.05s infinite steps(1, end);
}

/* Opacity pulse */
@keyframes opa-pulse {
  0%, 100% {
    opacity: 0.35;
    letter-spacing:.11em;   
  }

  50% {
    opacity: 0.775;
    letter-spacing:.015em;
  }
}

/* Fine red glitch particles */
@keyframes glitch-slice-red {
  0% {
    clip-path: inset(4% 0 91% 0);
  }

  5% {
    clip-path: inset(17% 0 79% 0);
  }

  10% {
    clip-path: inset(31% 0 65% 0);
  }

  15% {
    clip-path: inset(43% 0 53% 0);
  }

  20% {
    clip-path: inset(56% 0 39% 0);
  }

  25% {
    clip-path: inset(68% 0 28% 0);
  }

  30% {
    clip-path: inset(81% 0 14% 0);
  }

  35% {
    clip-path: inset(9% 0 86% 0);
  }

  40% {
    clip-path: inset(23% 0 72% 0);
  }

  45% {
    clip-path: inset(37% 0 58% 0);
  }

  50% {
    clip-path: inset(49% 0 46% 0);
  }

  55% {
    clip-path: inset(63% 0 32% 0);
  }

  60% {
    clip-path: inset(76% 0 20% 0);
  }

  65% {
    clip-path: inset(88% 0 8% 0);
  }

  70% {
    clip-path: inset(14% 0 82% 0);
  }

  75% {
    clip-path: inset(52% 0 43% 0);
  }

  80% {
    clip-path: inset(70% 0 26% 0);
  }

  85% {
    clip-path: inset(2% 0 94% 0);
  }

  90% {
    clip-path: inset(36% 0 59% 0);
  }

  95% {
    clip-path: inset(83% 0 12% 0);
  }

  100% {
    clip-path: inset(44% 0 51% 0);
  }
}

/* Fine blue glitch particles */
@keyframes glitch-slice-blue {
  0% {
    clip-path: inset(89% 0 7% 0);
  }

  5% {
    clip-path: inset(72% 0 23% 0);
  }

  10% {
    clip-path: inset(58% 0 37% 0);
  }

  15% {
    clip-path: inset(44% 0 51% 0);
  }

  20% {
    clip-path: inset(30% 0 66% 0);
  }

  25% {
    clip-path: inset(15% 0 80% 0);
  }

  30% {
    clip-path: inset(5% 0 91% 0);
  }

  35% {
    clip-path: inset(82% 0 13% 0);
  }

  40% {
    clip-path: inset(67% 0 29% 0);
  }

  45% {
    clip-path: inset(51% 0 44% 0);
  }

  50% {
    clip-path: inset(36% 0 60% 0);
  }

  55% {
    clip-path: inset(21% 0 75% 0);
  }

  60% {
    clip-path: inset(11% 0 85% 0);
  }

  65% {
    clip-path: inset(94% 0 3% 0);
  }

  70% {
    clip-path: inset(62% 0 34% 0);
  }

  75% {
    clip-path: inset(39% 0 56% 0);
  }

  80% {
    clip-path: inset(25% 0 71% 0);
  }

  85% {
    clip-path: inset(8% 0 88% 0);
  }

  90% {
    clip-path: inset(48% 0 47% 0);
  }

  95% {
    clip-path: inset(77% 0 18% 0);
  }

  100% {
    clip-path: inset(33% 0 62% 0);
  }
}

/* Red horizontal glitch jumps */
@keyframes glitch-shift-red {
  0%, 86%, 100% {
    transform: translateX(0);
  }

  87% {
    transform: translateX(5px);
  }

  88% {
    transform: translateX(-3px);
  }

  89% {
    transform: translateX(7px);
  }

  90% {
    transform: translateX(-2px);
  }

  91% {
    transform: translateX(0);
  }
}

/* Blue horizontal glitch jumps */
@keyframes glitch-shift-blue {
  0%, 78%, 100% {
    transform: translateX(0);
  }

  79% {
    transform: translateX(-6px);
  }

  80% {
    transform: translateX(3px);
  }

  81% {
    transform: translateX(-8px);
  }

  82% {
    transform: translateX(2px);
  }

  83% {
    transform: translateX(0);
  }
}

/* Mobile adjustment */
@media (max-width: 480px) {
  .hero-tagline {
    font-size: 0.8rem;
  }
}

/* FILTER SECTION */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.filter-btn {
    padding: 6px 28px;
    border-radius: 12px;
    background-color: transparent;
    border: 2px solid #333333;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    border-color: #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.4), inset 0 0 20px rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.filter-btn.active {
    background-color: goldenrod;
    border-color: goldenrod;
    color: #0a0a0a;
    font-weight: 900;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
}

/* PRODUCTS CONTAINER */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PRODUCT CARD */
.product-card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:hover {
    border-color: #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5), inset 0 0 20px rgba(220, 38, 38, 0.05);
    transform: scale(1.03);
    background-color: #222222;
}

.product-image-container {
    width: 100%;
    height: 250px;
    background-color: #0f0f0f;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #333333;
    text-decoration: none;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-collection {
    display: inline-block;
    font-size: 0.75rem;
    background-color: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    padding: 4px 10px;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid rgba(220, 38, 38, 0.4);
    width: fit-content;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: #ffffff;
    line-height: 1.3;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: goldenrod;
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}

.product-price::before {
    content: '$';
    margin-right: 0.2em;
}

.shop-btn {
    align-self: flex-start;
    padding: 6px 16px;
    background-color: transparent;
    border: 2px solid goldenrod;
    border-radius: 12px;
    color: goldenrod;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #dc2626;
    z-index: -1;
    transition: left 0.3s ease;
}

.shop-btn:hover {
    color: #0a0a0a;
    border: 2px solid #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.shop-btn:hover::before {
    left: 0;
}

/* HIDE/SHOW PRODUCTS */
.product-card.hidden {
    display: none;
}

/* FOOTER */
.footer {
    background-color: #0a0a0a;
    border-top: 3px solid #dc2626;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-link {
    color: goldenrod;
    text-decoration: underline;
    transition: all 0.3s ease;
    font-weight: 700;
}

.footer-link:hover {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

.footer-note {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 15px;
    letter-spacing: 0.05em;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {

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

    .filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
    }

    .product-image-container {
        height: 180px;
    }
}

@media (max-width: 480px) {

    .hero {
        margin-bottom: 25px;
        padding: 40px 0px;
    }

    .hero-tagline {
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px;
    }

    .filter-btn {
        width: 100%;
    }
    
    .product-image {
    object-fit: contain;
    }

    .product-image-container {
        height: 150px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 15px 0px;
    }
    
    .accent-line-top {
    margin-bottom: 2px;
}

.accent-line-bottom {
    margin-top: 2px;
}
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 35px;
    height: 35px;
    background-color: goldenrod;
    border: 2px solid goldenrod;
    color: #0a0a0a;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.back-to-top:hover {
    background-color: #0a0a0a;
    color: #dc2626;
    border-color: #dc2626;
    box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
}