/* ============================================================
   PeakWear Custom CSS
   ============================================================ */

:root {
  --brand-red: #e63329;
  --brand-black: #111111;
  --brand-white: #ffffff;
  --brand-gray: #f5f5f5;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111;
  background: #fff;
}

/* -----------------------------------------------
   Scrollbar
----------------------------------------------- */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* -----------------------------------------------
   Mega Menu
----------------------------------------------- */
.mega-menu-item {
  position: relative;
}

.mega-dropdown {
  animation: fadeDown 0.18s ease forwards;
  transform-origin: top center;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Large mega-dropdown for Men/Women */
.mega-dropdown-wide {
  min-width: 480px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

/* -----------------------------------------------
   Cart Badge
----------------------------------------------- */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  background: var(--brand-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 2px;
}

/* -----------------------------------------------
   Hero Slider (Swiper)
----------------------------------------------- */
.heroSwiper .swiper-slide {
  overflow: hidden;
}

.heroSwiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.heroSwiper .swiper-pagination-bullet-active {
  opacity: 1;
  width: 30px;
  border-radius: 5px;
  background: var(--brand-red);
}

.heroSwiper .swiper-button-next,
.heroSwiper .swiper-button-prev {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.heroSwiper .swiper-button-next:hover,
.heroSwiper .swiper-button-prev:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.swiper-slide-active h2 {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards 0.2s;
}

.swiper-slide-active p {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards 0.4s;
}

.swiper-slide-active a {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards 0.6s;
}

.swiper-slide-active .countdown-item {
  opacity: 0;
  animation: slideInUp 0.8s ease forwards 0.5s;
}

/* -----------------------------------------------
   Countdown Timer
----------------------------------------------- */
.countdown-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 70px;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
}

.countdown-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
}

.countdown-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* -----------------------------------------------
   Category Quick Nav (Bubbles)
----------------------------------------------- */
.quick-nav-item {
  flex: 0 0 auto;
  width: 90px;
  text-align: center;
}

.quick-nav-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 10px;
  border: 2px solid #eee;
  padding: 3px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.quick-nav-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.quick-nav-item:hover .quick-nav-circle {
  border-color: var(--brand-red);
}

.quick-nav-item:hover img {
  transform: scale(1.1);
}

.quick-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111;
}

/* -----------------------------------------------
   Category Tile
----------------------------------------------- */
.category-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: background var(--transition);
}

.category-tile:hover .category-tile-overlay {
  background: rgba(0, 0, 0, 0.4);
}

/* -----------------------------------------------
   Product Cards
----------------------------------------------- */
.product-card {
  position: relative;
  text-align: center;
  background: white;
  padding-bottom: 10px;
  overflow: hidden;
}

.product-card:hover {
  z-index: 10;
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
  aspect-ratio: 3/4;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Removed hover zoom */
/* .product-card:hover .product-card-img-primary {
  transform: scale(1.1);
} */

.product-card-img-secondary {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

.product-card.has-hover-image:hover .product-card-img-primary {
  opacity: 0;
}

.product-card.has-hover-image:hover .product-card-img-secondary {
  opacity: 1;
  visibility: visible;
}

.product-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 10;
}

.product-card-actions {
  position: absolute;
  bottom: -48px;
  left: 0;
  right: 0;
  transition: bottom var(--transition);
  z-index: 10;
}

.product-card:hover .product-card-actions {
  bottom: 0;
}

.product-card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 10;
  transition: opacity var(--transition);
  transition: opacity var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.product-card:hover .product-card-wishlist {
  opacity: 1;
}

/* Mobile: always show wishlist button */
@media (max-width: 768px) {
  .product-card-wishlist {
    opacity: 1;
  }
}

/* -----------------------------------------------
   Buttons
----------------------------------------------- */
.btn-primary {
  background: var(--brand-black);
  color: #fff;
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--brand-black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: inline-block;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
}

.btn-primary:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
}

.btn-outline {
  background: transparent;
  color: var(--brand-black);
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--brand-black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: inline-block;
  text-decoration: none;
  text-align: center;
  border-radius: 4px;
}

.btn-outline:hover {
  background: var(--brand-black);
  color: #fff;
}

/* -----------------------------------------------
   Size & Color Swatches (Product Detail)
----------------------------------------------- */
.size-btn {
  min-width: 44px;
  height: 44px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--brand-black);
  background: var(--brand-black);
  color: #fff;
}

.size-btn.out-of-stock {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid #e5e5e5;
  cursor: pointer;
  transition: border-color var(--transition);
  position: relative;
}

.color-swatch.active {
  border-color: var(--brand-black);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-black);
}

/* -----------------------------------------------
   Section Headings
----------------------------------------------- */
.section-title {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.8rem;
  text-align: center;
  color: #888;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.section-divider {
  width: 40px;
  height: 2px;
  background: var(--brand-red);
  margin: 0.75rem auto 2.5rem;
}



.admin-stat-card {
  border-radius: 12px;
  padding: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* -----------------------------------------------
   Form Styles
----------------------------------------------- */
.form-input {
  width: 100%;
  border: 1.5px solid #e5e5e5;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--brand-black);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.4rem;
  color: #444;
}

/* -----------------------------------------------
   Misc Utilities
----------------------------------------------- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bg-brand-red {
  background: var(--brand-red) !important;
}

.text-brand-red {
  color: var(--brand-red) !important;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #111;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  animation: slideUp 0.3s ease;
  min-width: 220px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.toast.success {
  border-left: 3px solid #22c55e;
}

.toast.error {
  border-left: 3px solid var(--brand-red);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------------------
   Blog Content Typography (.blog-content)
   Styles all rich HTML output from TinyMCE
----------------------------------------------- */
.blog-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.85;
  color: #374151;
  word-break: break-word;
}

/* Headings */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #111;
  margin-top: 2.25em;
  margin-bottom: 0.75em;
}

.blog-content h1 {
  font-size: 2.25rem;
}

.blog-content h2 {
  font-size: 1.75rem;
}

.blog-content h3 {
  font-size: 1.35rem;
}

.blog-content h4 {
  font-size: 1.1rem;
}

.blog-content h5,
.blog-content h6 {
  font-size: 1rem;
}

/* First heading gets less top margin */
.blog-content>*:first-child {
  margin-top: 0;
}

/* Paragraphs */
.blog-content p {
  margin-top: 0;
  margin-bottom: 1.4em;
}

/* Links */
.blog-content a {
  color: var(--brand-red);
  text-decoration: underline;
  text-decoration-color: rgba(230, 51, 41, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.blog-content a:hover {
  color: #c0281f;
  text-decoration-color: #c0281f;
}

/* Images */
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.75em auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Strong & Em */
.blog-content strong {
  font-weight: 700;
  color: #111;
}

.blog-content em {
  font-style: italic;
}

/* Lists */
.blog-content ul,
.blog-content ol {
  margin: 0 0 1.4em 0;
  padding-left: 1.6em;
}

.blog-content ul {
  list-style-type: disc;
}

.blog-content ol {
  list-style-type: decimal;
}

.blog-content li {
  margin-bottom: 0.45em;
  padding-left: 0.3em;
}

.blog-content li::marker {
  color: var(--brand-red);
}

/* Nested lists */
.blog-content ul ul,
.blog-content ol ul {
  list-style-type: circle;
  margin-bottom: 0;
}

/* Blockquote */
.blog-content blockquote {
  border-left: 4px solid var(--brand-red);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: #fafafa;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #555;
  font-size: 1.05rem;
}

.blog-content blockquote p {
  margin-bottom: 0;
}

/* Horizontal rule */
.blog-content hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 2.5em 0;
}

/* Code blocks */
.blog-content pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 10px;
  padding: 1.25em 1.5em;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 1.75em 0;
}

.blog-content code {
  background: #f3f4f6;
  color: var(--brand-red);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}

.blog-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Tables */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75em 0;
  font-size: 0.9375rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #e5e7eb;
}

.blog-content th {
  background: #111;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.85em 1.1em;
  text-align: left;
}

.blog-content td {
  padding: 0.75em 1.1em;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.blog-content tr:last-child td {
  border-bottom: none;
}

.blog-content tr:nth-child(even) td {
  background: #fafafa;
}

/* Figure / captions */
.blog-content figure {
  margin: 1.75em 0;
}

.blog-content figcaption {
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: -0.75em;
  font-style: italic;
}

/* -----------------------------------------------
   Category Highlighting & Badges
----------------------------------------------- */
@keyframes blink-badge {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.95);
  }
}

.blink-animation {
  animation: blink-badge 1.5s infinite ease-in-out;
}

.category-badge {
  display: inline-block;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 6px;
  line-height: 1;
  vertical-align: middle;
  background: transparent !important;
}

.category-prominent {
  font-size: 1.1em !important;
  font-weight: 700 !important;
}

/* -----------------------------------------------
   Premium UX: Scroll Reveal
----------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* -----------------------------------------------
   Editorial Bento Grid
----------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 1.5rem;
}

.bento-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #f9f9f9;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bento-item:hover img {
  transform: scale(1.08);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
}

.bento-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-item-tall {
  grid-row: span 2;
}

.bento-item-wide {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
  }
}

@media (max-width: 640px) {

  .bento-item-large,
  .bento-item-wide {
    grid-column: span 2;
  }
}

/* -----------------------------------------------
   Glassmorphism Utilities
----------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* -----------------------------------------------
   Founder Spotlight
----------------------------------------------- */
.founder-signature {
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.parallax-hero {
  will-change: transform;
}

/* -----------------------------------------------
   Announcement Bar (Two-Line Layout)
----------------------------------------------- */
.announcement-container {
    height: 48px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.announcement-slide {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.ann-title {
    display: block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.ann-subtitle {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 1px;
}

/* -----------------------------------------------
   Related Products Side Scroller
----------------------------------------------- */
.product-side-scroller {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f9f9f9;
}

/* Custom Webkit Scrollbar */
.product-side-scroller::-webkit-scrollbar {
    height: 4px;
}

.product-side-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-side-scroller::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    transition: background 0.3s;
}

.product-side-scroller::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.scroller-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

@media (max-width: 640px) {
    .scroller-item {
        flex: 0 0 180px;
    }
    .product-side-scroller {
        gap: 16px;
    }
}