/* ========================================
   JAWNS - Main Styles (Base)
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

ul {
  list-style: none;
}

/* ========================================
   Theme Switcher
   ======================================== */
.theme-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 4px;
}

.theme-label {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.theme-btn {
  width: 32px;
  height: 32px;
  font-size: 18px;
  border-radius: 4px;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.6;
}

.theme-btn:hover {
  transform: scale(1.1);
  opacity: 1;
}

.theme-btn.active {
  opacity: 1;
  transform: scale(1.15);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 900;
  background: #ffffff;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
}

.acronym-rotator {
  height: 18px;
  overflow: hidden;
}

.acronym {
  display: block;
  font-size: 11px;
  opacity: 0;
  animation: acronymFade 4s ease-in-out infinite;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

@keyframes acronymFade {
  0%, 100% { opacity: 0; }
  15%, 85% { opacity: 1; }
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 10px;
  transition: all 0.2s;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #000;
}

/* ========================================
   Hero Section
   ======================================== */
.home-main {
  flex: 1;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  padding: 60px 30px;
  gap: 60px;
}

.hero-content {
  z-index: 1;
  text-align: left;
}

.hero-images {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 2px solid var(--border-color, #333);
}

.hero-title {
  font-size: clamp(48px, 10vw, 120px);
  letter-spacing: 5px;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 24px;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.hero-tagline {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.8;
}

.cta-btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.cta-btn-mobile {
  display: none;
}

/* ========================================
   Signup Section
   ======================================== */
.signup-section {
  padding: 60px 20px;
  text-align: center;
}

.signup-container {
  max-width: 500px;
  margin: 0 auto;
}

.signup-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.signup-text {
  margin-bottom: 25px;
  opacity: 0.8;
}

.signup-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.signup-input {
  padding: 12px 20px;
  min-width: 280px;
  font-size: 16px;
}

.signup-btn {
  padding: 12px 30px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.signup-message {
  margin-top: 15px;
  font-size: 14px;
}

/* ========================================
   Featured Products
   ======================================== */
.featured-section {
  padding: 60px 30px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.view-all-btn {
  display: block;
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ========================================
   Products Page
   ======================================== */
.products-main, .about-main, .cart-main, .checkout-main, .moodboard-main {
  flex: 1;
  padding: 30px;
}

.products-hero, .moodboard-hero {
  text-align: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 48px;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 18px;
  opacity: 0.7;
}

.filter-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.quick-add-btn {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  background: #fff;
  border: 1px solid #000;
  border-right: none;
  border-bottom: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.quick-add-btn:hover {
  background: #000;
  color: #fff;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-info {
  padding: 15px 0;
}

.product-name {
  font-size: 16px;
  margin-bottom: 5px;
}

.product-price {
  font-size: 18px;
  font-weight: bold;
}

/* ========================================
   Product Modal
   ======================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  z-index: 10;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.modal-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-info h2 {
  font-size: 28px;
}

.modal-price {
  font-size: 24px;
  font-weight: bold;
}

.modal-description {
  opacity: 0.8;
  line-height: 1.7;
}

.modal-options {
  display: flex;
  align-items: center;
  gap: 15px;
}

.size-select {
  padding: 10px 20px;
  font-size: 14px;
}

.modal-quantity {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qty-btn {
  width: 35px;
  height: 35px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn {
  padding: 15px 30px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: auto;
  transition: all 0.3s;
}

/* ========================================
   Cart Page
   ======================================== */
.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px;
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.cart-item-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.cart-item-details {
  font-size: 14px;
  opacity: 0.7;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-item-price {
  font-size: 18px;
  font-weight: bold;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.remove-item {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.remove-item:hover {
  opacity: 1;
}

.cart-summary {
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.cart-summary h3 {
  font-size: 20px;
  margin-bottom: 25px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.summary-row.total {
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  padding-top: 20px;
}

.summary-note {
  opacity: 0.6;
}

.checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 25px;
  transition: all 0.3s;
}

.continue-shopping {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.7;
}

/* ========================================
   Checkout Page
   ======================================== */
.checkout-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  font-size: 16px;
}

.validation-msg {
  font-size: 12px;
  min-height: 18px;
}

.validation-msg.error {
  color: #ff4444;
}

.validation-msg.success {
  color: #44ff44;
}

.place-order-btn {
  padding: 18px 40px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 20px;
  transition: all 0.3s;
}

.checkout-summary {
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-summary h3 {
  font-size: 20px;
  margin-bottom: 25px;
}

.checkout-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.checkout-item-name {
  flex: 1;
}

/* Order Success */
.order-success {
  text-align: center;
  padding: 80px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 30px;
}

.order-success h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.order-number {
  font-size: 18px;
  margin: 20px 0 30px;
}

/* ========================================
   About Page
   ======================================== */
.about-hero {
  text-align: center;
  margin-bottom: 60px;
}

.about-marquee {
  overflow: hidden;
  white-space: nowrap;
  margin-top: 20px;
}

.about-marquee span {
  display: inline-block;
  animation: marquee 15s linear infinite;
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-block {
  margin-bottom: 50px;
}

.about-block h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-block p {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.85;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 48px;
  font-weight: bold;
}

.stat-label {
  font-size: 14px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.under-construction {
  text-align: center;
  margin-top: 60px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ========================================
   Mood Board
   ======================================== */
.moodboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 300px;
  gap: 15px;
  max-width: 1400px;
  margin: 0 auto;
}

.mood-item {
  overflow: hidden;
  position: relative;
}

.mood-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.mood-item:hover img {
  transform: scale(1.05);
}

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

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

/* ========================================
   Footer
   ======================================== */
.footer {
  margin-top: auto;
  padding: 50px 30px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-section h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-section h4 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.footer-section a {
  display: block;
  margin-bottom: 10px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 14px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 15px;
}

.visitor-counter {
  font-family: monospace;
}

.visitor-number {
  font-family: monospace;
  font-size: 12px;
}

.footer-netscape {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 10px;
}

.footer-section p {
  white-space: nowrap;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 30px 15px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 320px;
  }

  .hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .navbar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
  }

  .logo-container {
    order: 1;
  }

  .hamburger {
    display: flex;
    order: 2;
  }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
    border-top: 1px solid #000;
    padding-top: 15px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    border-bottom: 1px solid #ccc;
  }

  .cta-btn-desktop {
    display: none;
  }

  .cta-btn-mobile {
    display: inline-block;
    margin-top: 20px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card {
    padding: 5px;
  }

  .product-image {
    aspect-ratio: 1;
  }

  .product-name {
    font-size: 12px;
  }

  .product-price {
    font-size: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }

  .cart-content,
  .checkout-content {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
  }

  .cart-item-actions {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
  }

  .moodboard-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .mood-item.wide {
    grid-column: span 1;
  }

  .theme-switcher {
    position: static;
    justify-content: center;
    padding: 10px;
  }
}
