/*!
 * NAF Theme - Custom Tailwind CSS
 * Self-contained CSS file with NAF branding and Tailwind utility classes
 * No build process required - works on any hosting environment
 */

/* NAF Brand Colors as CSS Variables */
:root {
  /* Primary Colors */
  --naf-primary: #c5a45c;
  --naf-primary-50: #fdfcf7;
  --naf-primary-100: #faf6e8;
  --naf-primary-200: #f3ebd0;
  --naf-primary-300: #e9d9a8;
  --naf-primary-400: #ddc27e;
  --naf-primary-500: #c5a45c;
  --naf-primary-600: #b8934c;
  --naf-primary-700: #a07d40;
  --naf-primary-800: #846539;
  --naf-primary-900: #6d5330;
  --naf-primary-dark: #0b1b3f;

  /* Text Colors */
  --naf-text-primary: #1e293b;
  --naf-text-secondary: #64748b;

  /* Background Colors */
  --naf-bg-paper: #ffffff;

  /* Secondary Colors */
  --naf-secondary: #0b1b3f;
  --naf-secondary-50: #f0f4ff;
  --naf-secondary-100: #e5ecff;
  --naf-secondary-200: #d0ddff;
  --naf-secondary-700: #2a3cd9;
  --naf-secondary-800: #2532af;
  --naf-secondary-900: #243189;

  /* Neutral Colors */
  --naf-gray-50: #f8fafc;
  --naf-gray-100: #f1f5f9;
  --naf-gray-200: #e2e8f0;
  --naf-gray-300: #cbd5e1;
  --naf-gray-400: #94a3b8;
  --naf-gray-500: #64748b;
  --naf-gray-600: #475569;
  --naf-gray-700: #334155;
  --naf-gray-800: #1e293b;
  --naf-gray-900: #0f172a;

  /* Status Colors */
  --naf-success: #10b981;
  --naf-success-50: #ecfdf5;
  --naf-success-100: #d1fae5;
  --naf-warning: #f59e0b;
  --naf-warning-50: #fffbeb;
  --naf-warning-100: #fef3c7;
  --naf-error: #ef4444;
  --naf-error-50: #fef2f2;
  --naf-error-100: #fee2e2;

  /* Shadows */
  --naf-shadow: 0 4px 24px rgba(11, 27, 63, 0.08);
  --naf-shadow-lg: 0 12px 40px rgba(11, 27, 63, 0.15);
  --naf-shadow-primary: 0 4px 15px rgba(197, 164, 92, 0.4);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--naf-gray-800);
  background-color: var(--naf-gray-50);
  margin: 0;
  padding: 0;
}

/* Global layout to ensure footer positioning */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main,
#primary {
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--naf-gray-900);
}

h1 {
  font-size: 2.25rem;
} /* text-4xl */
h2 {
  font-size: 1.875rem;
} /* text-3xl */
h3 {
  font-size: 1.5rem;
} /* text-2xl */
h4 {
  font-size: 1.25rem;
} /* text-xl */

a {
  color: var(--naf-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--naf-primary-600);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}
.space-x-4 > * + * {
  margin-left: 1rem;
}

/* Spacing */
.p-0 {
  padding: 0;
}
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.px-12 {
  padding-left: 3rem;
  padding-right: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.m-0 {
  margin: 0;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-16 {
  margin-top: 4rem;
}

.ml-2 {
  margin-left: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

/* Colors */
.text-primary {
  color: var(--naf-primary);
}
.text-primary-600 {
  color: var(--naf-primary-600);
}
.text-secondary {
  color: var(--naf-secondary);
}
.text-gray-500 {
  color: var(--naf-gray-500);
}
.text-gray-600 {
  color: var(--naf-gray-600);
}
.text-gray-700 {
  color: var(--naf-gray-700);
}
.text-gray-800 {
  color: var(--naf-gray-800);
}
.text-gray-900 {
  color: var(--naf-gray-900);
}
.text-white {
  color: white;
}

/* Text Alignment */
.text-left {
  text-align: left;
}

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

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

.bg-primary {
  background-color: var(--naf-primary);
}
.bg-secondary {
  background-color: var(--naf-secondary);
}
.bg-gray-50 {
  background-color: var(--naf-gray-50);
}
.bg-gray-100 {
  background-color: var(--naf-gray-100);
}
.bg-gray-200 {
  background-color: var(--naf-gray-200);
}
.bg-white {
  background-color: white;
}

.border-primary {
  border-color: var(--naf-primary);
}
.border-gray-100 {
  border-color: var(--naf-gray-100);
}
.border-gray-200 {
  border-color: var(--naf-gray-200);
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}

.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
}
.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}
.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.shadow-naf {
  box-shadow: var(--naf-shadow);
}
.shadow-naf-lg {
  box-shadow: var(--naf-shadow-lg);
}

/* Positioning */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.top-full {
  top: 100%;
}
.right-0 {
  right: 0;
}
.left-3 {
  left: 0.75rem;
}
.top-3 {
  top: 0.75rem;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}

/* Display */
.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline-flex {
  display: inline-flex;
}

/* Sizing */
.w-full {
  width: 100%;
}
.w-auto {
  width: auto;
}
.h-5 {
  height: 1.25rem;
}
.h-12 {
  height: 3rem;
}
.max-w-xs {
  max-width: 20rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.min-w-0 {
  min-width: 0px;
}

/* Aspect Ratio */
.aspect-square {
  aspect-ratio: 1 / 1;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Cursor */
.cursor-zoom-in {
  cursor: zoom-in;
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--naf-primary);
  color: var(--naf-secondary);
  border-color: var(--naf-primary);
}

.btn-primary:hover {
  background-color: var(--naf-primary-600);
  color: var(--naf-secondary);
  box-shadow: var(--naf-shadow-primary);
}

.btn-secondary {
  background-color: var(--naf-secondary);
  color: white;
  border-color: var(--naf-secondary);
}

.btn-secondary:hover {
  background-color: var(--naf-secondary-800);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--naf-primary);
  border-color: var(--naf-primary);
}

.btn-outline:hover {
  background-color: var(--naf-primary);
  color: var(--naf-secondary);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Cards */
.card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--naf-shadow);
  border: 1px solid var(--naf-gray-200);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--naf-shadow-lg);
}

.product-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: var(--naf-shadow);
  border: 1px solid var(--naf-gray-200);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--naf-shadow-lg);
}

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

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

/* Forms */
.form-input,
.form-select {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--naf-gray-300);
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  color: var(--naf-gray-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--naf-primary);
  box-shadow: 0 0 0 2px rgba(197, 164, 92, 0.2);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--naf-gray-700);
  margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:gap-12 {
    gap: 3rem;
  }
  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:items-center {
    align-items: center;
  }

  .lg\:justify-between {
    justify-content: space-between;
  }
}

/* Additional utility classes for the new shop design */
.xl\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.text-4xl {
  font-size: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
}

.font-800 {
  font-weight: 800;
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

.bg-gradient-to-br {
  background: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
  background: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-primary {
  --tw-gradient-from: var(--naf-primary);
  --tw-gradient-stops: var(--tw-gradient-from),
    var(--tw-gradient-to, rgba(197, 164, 92, 0));
}

.to-primary-dark {
  --tw-gradient-to: var(--naf-primary-dark);
}

.text-white\/90 {
  color: rgba(255, 255, 255, 0.9);
}

.max-w-2xl {
  max-width: 42rem;
}

.group:hover .group-hover\:text-primary {
  color: var(--naf-primary);
}

.group:hover .group-hover\:text-primary-dark {
  color: var(--naf-primary-dark);
}

@media (max-width: 767px) {
  .container {
    padding: 0 0.5rem;
  }
}
