@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #0e2b46;
  --navy-light: #1c3e5e;
  --navy-rgb: 14, 43, 70;
  --orange: #ff6f00;
  --orange-hover: #e65c00;
  --orange-rgb: 255, 111, 0;
  --yellow: #ffd043;
  --cream: #fdfaf6;
  --sky: #e8f4fd;
  --green: #10b981;
  --text: #1a2b3c;
  --muted: #5e6e80;
  --line: #ebdcc9;
  --white: #ffffff;
  --white-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(14, 43, 70, 0.06);
  --shadow-premium: 0 20px 40px rgba(14, 43, 70, 0.05);
  --shadow-hover: 0 30px 60px rgba(14, 43, 70, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--radius-full);
  border: 2px solid var(--cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

body {
  font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 246, 0.8);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 900;
  color: var(--navy);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  width: 160px;
  height: auto;
}

.navlinks {
  display: flex;
  gap: 12px;
  align-items: center;
}

.navlinks a {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-light);
  border-radius: var(--radius-full);
}

.navlinks a:hover {
  color: var(--orange);
  background: rgba(255, 111, 0, 0.05);
}

.cart-link {
  background: var(--navy);
  color: white !important;
  padding: 10px 20px !important;
  box-shadow: 0 10px 20px rgba(14, 43, 70, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-link:hover {
  background: var(--orange) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 111, 0, 0.25);
}

.menu-button {
  display: none;
  border: 0;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 43, 70, 0.15);
}

/* Containers & Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Bento Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

/* Glassmorphism Cards */
.card {
  background: var(--white-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 111, 0, 0.15);
}

/* Scroll Driven Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  animation: fadeInUp both;
  animation-timeline: view();
  animation-range: entry 10% cover 30%;
}

@supports not (animation-timeline: view()) {
  /* Fallback for browsers that don't support scroll-driven animations */
  .scroll-reveal {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
}

/* Typography */
h1, h2, h3 {
  font-family: 'Fredoka', sans-serif;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 8px;
  display: block;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 60px 24px;
}

.hero-content {
  max-width: 580px;
}

.hero-card {
  position: relative;
  background: linear-gradient(135deg, #fffcf8 0%, #fff0e0 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card img {
  border-radius: var(--radius-md);
  transition: transform 0.5s ease;
  width: 100%;
  object-fit: cover;
}

.hero-card:hover img {
  transform: scale(1.03);
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  align-items: center;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.button.primary {
  background: linear-gradient(135deg, var(--orange) 0%, #ff8f00 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(255, 111, 0, 0.25);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 111, 0, 0.35);
}

.button.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--navy);
}

.button.secondary:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(14, 43, 70, 0.15);
}

.button.dark {
  background: var(--navy);
  color: white;
  box-shadow: 0 10px 20px rgba(14, 43, 70, 0.15);
}

.button.dark:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 111, 0, 0.25);
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(14, 43, 70, 0.03);
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: var(--radius-full);
}

/* Product Cards */
.product-card {
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-premium);
}

.product-card .img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sky);
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  position: relative;
}

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

.product-card:hover img {
  transform: scale(1.06);
}

.product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.price {
  color: var(--orange);
  font-weight: 800;
  font-size: 24px;
  font-family: 'Fredoka', sans-serif;
}

.small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.icon-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
}

.icon-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  padding: 10px;
  background: var(--sky);
  border-radius: var(--radius-sm);
}

/* Offer Banner */
.banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(14, 43, 70, 0.2);
}

.banner h2 {
  color: white;
}
.banner p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
  font-size: 18px;
}

/* Page Title & Breadcrumb Header */
.page-title {
  padding: 60px 24px 20px;
  text-align: center;
  background: radial-gradient(circle at top, #fff3e5 0%, transparent 70%);
}

.page-title h1 {
  margin-top: 10px;
}

/* Shop Layout */
.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.filter-box {
  position: sticky;
  top: 98px;
  align-self: start;
  background: var(--white-glass);
}

.filter-box h3 {
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.size-guide-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.size-guide-item:last-child {
  border-bottom: 0;
}

/* Form Styles & Floating Labels */
.input-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}

.input-group label {
  position: absolute;
  left: 16px;
  top: 18px;
  color: var(--muted);
  font-size: 15px;
  transition: var(--transition);
  pointer-events: none;
  transform-origin: left top;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 16px 8px;
  font: inherit;
  background: white;
  color: var(--text);
  outline: none;
  transition: var(--transition);
}

.input-group textarea {
  min-height: 120px;
  resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.1);
}

/* Floating Label Animation */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group select:focus ~ label,
.input-group select:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-10px) scale(0.8);
  color: var(--orange);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

/* Cart Page Styles */
.cart-row {
  display: grid;
  grid-template-columns: 100px 2fr 1.2fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--sky);
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--cream);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  border: 1px solid var(--line);
  margin-top: 10px;
}

.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--radius-full);
  background: white;
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty button:hover {
  background: var(--orange);
  color: white;
  transform: scale(1.05);
}

.cart-actions {
  text-align: right;
}

.cart-actions strong {
  font-size: 18px;
  color: var(--navy);
}

/* Summary Box */
.summary {
  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 12px 0;
  font-size: 16px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row.total {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Fredoka', sans-serif;
  border-bottom: 0;
  padding-top: 18px;
}

.notice {
  border-left: 4px solid var(--orange);
  background: #fffcf8;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.01);
}

/* FAQ Accordion Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white-glass);
  margin-bottom: 0;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-premium);
}

.faq-item:hover {
  border-color: rgba(255, 111, 0, 0.15);
  box-shadow: var(--shadow-hover);
}

.faq-question {
  padding: 24px;
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.open {
  border-color: var(--orange);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

/* Product Detail Custom Specs */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.features-list {
  list-style: none;
  margin: 20px 0;
}

.features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--text);
  font-weight: 500;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
  font-size: 18px;
}

/* Footer styling */
.footer {
  background: var(--navy);
  color: white;
  margin-top: 80px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer .container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 60px 24px;
}

.footer h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin: 12px 0;
  font-size: 15px;
  font-weight: 600;
}

.footer a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.hidden {
  display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 990px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-content {
    max-width: 100%;
  }
  .actions {
    justify-content: center;
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filter-box {
    position: static;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px;
  }
  .banner .button {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 20px;
  }
  .menu-button {
    display: inline-block;
  }
  .navlinks {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 80px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-hover);
    flex-direction: column;
    align-items: stretch;
    z-index: 101;
    gap: 8px;
  }
  .navlinks.open {
    display: flex;
  }
  .navlinks a {
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
  }
  .cart-link {
    justify-content: center;
  }
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .cart-row {
    grid-template-columns: 80px 1fr;
    gap: 16px;
  }
  .cart-row .cart-actions {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
  }
  .footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
