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

body {
  font-family: 'Noto Serif Hebrew', sans-serif;
  line-height: 1.6;
  color: #333;
  direction: rtl;
  text-align: right;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.flex-r {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.space-b {
  justify-content: space-between;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: #1a3c34;
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  order: 1;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

.logo a:hover {
  color: #f4a261;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-direction: row-reverse;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

nav ul li a:hover {
  color: #f4a261;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

.profile-icon {
  display: flex;
  align-items: center;
}

.profile-icon a {
  color: #fff;
  text-decoration: none;
  height: 24px;
}

.profile-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  transition: fill 0.3s ease;
}

.profile-icon a:hover svg {
  fill: #f4a261;
}

.admin-dropdown {
  position: relative;
}

.admin-button {
  background-color: #f4a261;
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Noto Serif Hebrew', sans-serif;
}

.admin-dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1001;
  right: 0;
  border-radius: 4px;
  top: 100%;
}

.admin-dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  font-family: 'Noto Serif Hebrew', sans-serif;
}

.admin-dropdown-content a:hover {
  background-color: #f5f5f5;
}

.admin-dropdown:hover .admin-dropdown-content {
  display: block;
}

/* Recent Profiles Section */
.recent-profiles {
  padding: 4rem 0;
  background: #fff;
  text-align: center;
}

.recent-profiles h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 2rem;
}

.recent-profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.recent-profiles .profile-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-profiles .profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.recent-profiles .profile-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.tshirt-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tshirt-quote {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1rem;
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 80%;
  line-height: 1.2;
}

/* Profiles Section */
.profiles-section {
  padding: 100px 0 4rem;
  background: #f9f9f9;
  text-align: center;
}

.profiles-section h1 {
  font-size: 2.5rem;
  color: #1a3c34;
  margin-bottom: 2rem;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.profile-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.profile-card-content {
  padding: 1rem;
}

.profile-card-content h2 {
  font-size: 1.5rem;
  color: #1a3c34;
  margin-bottom: 0.5rem;
}

.profile-card-description {
  font-size: 1rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.pagination-link:hover {
  background: #f4a261;
  color: #fff;
}

.pagination-link.active {
  background: #1a3c34;
  color: #fff;
}

/* Profile Hero Section */
.profile-hero {
  padding: 100px 0 4rem;
  background: #f9f9f9;
  text-align: center;
}

.profile-hero h1 {
  font-size: 2.5rem;
  color: #1a3c34;
  margin-bottom: 2rem;
}

.profile-hero-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.profile-photo img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #1a3c34;
}

.tshirt-preview {
  display: flex;
  align-items: center;
}

.tshirt-design {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Profile About Section */
.profile-about {
  padding: 4rem 0;
  background: #fff;
  text-align: right;
}

.profile-about h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.profile-about p {
  font-size: 1.1rem;
  color: #333;
}

/* Profile Gallery Section */
.profile-gallery {
  padding: 4rem 0;
  background: #f9f9f9;
  text-align: center;
}

.profile-gallery h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-item img {
  width: 100%;
  max-width: 300px;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* Profile CTA Section */
.profile-cta {
  padding: 4rem 0;
  text-align: center;
  background: #fff;
}

.profile-cta h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.profile-cta p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: #f4a261;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  margin: 0.5rem;
}

.cta-button:hover {
  background: #e76f51;
}

.cta-button.secondary {
  background: #1a3c34;
}

.cta-button.secondary:hover {
  background: #2a4c44;
}

/* Hero Section */
.hero {
  background: url('https://images.unsplash.com/photo-1716951884362-e560807383b5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 150px 0 100px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Mission Section */
.mission {
  padding: 4rem 0;
  background: #f9f9f9;
  text-align: center;
}

.mission h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mission p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Process Section */
.process {
  padding: 4rem 0;
  text-align: center;
  background: #fff;
}

.process h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step {
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

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

.step i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.step:nth-child(1) i {
  color: #f4a261;
}

.step:nth-child(2) i {
  color: #1a3c34;
}

.step:nth-child(3) i {
  color: #e76f51;
}

.step:nth-child(4) i {
  color: #333;
}

.step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #1a3c34;
}

.step p {
  font-size: 1rem;
  color: #333;
}

/* CTA Section */
.cta {
  padding: 4rem 0;
  text-align: center;
  background: #fff;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* About Hero Section */
.about-hero {
  background: url('https://images.unsplash.com/photo-1716951923523-0c76b14d4852?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 150px 0 100px;
  position: relative;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.about-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* About Content Section */
.about-content {
  padding: 4rem 0;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-content img {
  width: 50%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.about-content-text {
  width: 50%;
  text-align: center;
}

.about-content-text h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.about-content-text p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}

/* Team Section */
.team {
  padding: 4rem 0;
  text-align: center;
  background: #fff;
}

.team h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 2rem;
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.team-member img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
}

.team-member h3 {
  font-size: 1.5rem;
  color: #1a3c34;
  margin: 0.5rem 0;
}

.team-member p {
  font-size: 1rem;
  color: #333;
}

/* Legal Pages Section */
.legal {
  padding: 100px 0 4rem;
  background: #fff;
  text-align: right;
}

.legal h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.legal h3 {
  font-size: 1.5rem;
  color: #1a3c34;
  margin: 1.5rem 0 0.5rem;
}

.legal p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.legal a {
  color: #f4a261;
  text-decoration: none;
}

.legal a:hover {
  color: #e76f51;
}

/* Entry Pages Section (Login/Signup) */
.entry {
  padding: 100px 0 4rem;
  background: #fff;
  text-align: center;
}

.entry-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
}

.entry-header-title {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 0.5rem;
}

.entry-header-sub {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.entry-header-link {
  color: #f4a261;
  text-decoration: none;
}

.entry-header-link:hover {
  color: #e76f51;
}

.entry-form-item {
  margin-bottom: 1.5rem;
  text-align: right;
}

.entry-form-item label {
  display: block;
  font-size: 1rem;
  color: #1a3c34;
  margin-bottom: 0.5rem;
}

.entry-form-item input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Noto Serif Hebrew', sans-serif;
}

.entry-form-check {
  margin-bottom: 1.5rem;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-form-check input {
  width: auto;
}

.entry-form-check label {
  font-size: 1rem;
  color: #333;
}

.entry-form-check a {
  color: #f4a261;
  text-decoration: none;
}

.entry-form-check a:hover {
  color: #e76f51;
}

.entry-form-submit {
  display: block;
  width: 100%;
  background: #f4a261;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
}

.entry-form-submit:hover {
  background: #e76f51;
}

.or {
  font-size: 1rem;
  color: #333;
  margin: 1rem 0;
  text-align: center;
}

.google-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #1a3c34;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid #1a3c34;
  border-radius: 5px;
}

.google-signup:hover {
  background: #1a3c34;
  color: #fff;
}

.error-msg {
  color: #e76f51;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

/* Design Page Form */
.design-section {
  padding: 100px 0 4rem;
  background: #fff;
  text-align: center;
}

.design-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
}

.progress-indicator {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.progress-step {
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.progress-step.active {
  background: #f4a261;
}

.form-stage {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-stage.active {
  display: block;
  opacity: 1;
}

.form-stage h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.form-stage .entry-form-item {
  margin-bottom: 1.5rem;
  text-align: right;
}

.form-stage .entry-form-item label {
  display: block;
  font-size: 1rem;
  color: #1a3c34;
  margin-bottom: 0.5rem;
}

.form-stage .entry-form-item input,
.form-stage .entry-form-item textarea,
.form-stage .entry-form-item select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Noto Serif Hebrew', sans-serif;
}

.form-stage .entry-form-item textarea {
  resize: vertical;
  min-height: 100px;
}

.form-stage .entry-form-item input[type="file"] {
  padding: 0.5rem;
}

.image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.image-preview img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.form-buttons button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.form-buttons .next-btn,
.form-buttons .submit-btn {
  background: #f4a261;
  color: #fff;
}

.form-buttons .next-btn:hover,
.form-buttons .submit-btn:hover {
  background: #e76f51;
}

.form-buttons .back-btn {
  background: #ccc;
  color: #333;
}

.form-buttons .back-btn:hover {
  background: #bbb;
}

.success-msg {
  color: #1a3c34;
  font-size: 1rem;
  margin-top: 1rem;
  text-align: center;
  display: none;
}

/* Footer */
footer {
  background: #1a3c34;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

footer ul li a {
  color: #fff;
  text-decoration: none;
}

footer ul li a:hover {
  color: #f4a261;
}

/* Order Section */
.order-section {
  padding: 100px 0 4rem;
  background: #fff;
  text-align: center;
}

.order-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.order-tshirt-preview {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.order-tshirt-preview h2 {
  font-size: 1.5rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.order-container form {
  flex: 1;
  min-width: 300px;
}

.order-container h2 {
  font-size: 1.5rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.price-details {
  margin: 1.5rem 0;
  text-align: right;
}

.price-details p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.price-details p strong {
  color: #1a3c34;
}

#checkout-button {
  background: #f4a261;
  color: #fff;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#checkout-button:hover {
  background: #e76f51;
}

#checkout-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Success Section (Payment Success Page) */
.success-section {
  padding: 100px 0 4rem;
  background: #fff;
  text-align: center;
}

.success-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 10px;
}

.success-container h1 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.success-container p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
}

.success-icon {
  margin-bottom: 1rem;
}

.profiles-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1a3c34;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  transition: background 0.3s ease;
}

.profiles-link:hover {
  background: #2a4c44;
}

/* Size Dropdown */
.entry-form-item select#size {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Noto Serif Hebrew', sans-serif;
  background-color: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="%231a3c34"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  padding-left: 2.5rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.entry-form-item select#size:focus {
  border-color: #f4a261;
  box-shadow: 0 0 5px rgba(244, 162, 97, 0.5);
  outline: none;
}

.entry-form-item select#size:hover {
  border-color: #e76f51;
}

.entry-form-item select#size option {
  background: #fff;
  color: #333;
  font-family: 'Noto Serif Hebrew', sans-serif;
}

/* Disabled state for placeholder option */
.entry-form-item select#size option[disabled] {
  color: #999;
}

/* T-shirt Font Dropdown */
.entry-form-item select#tshirt-font {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="%231a3c34"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  padding-left: 2.5rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.entry-form-item select#tshirt-font:focus {
  border-color: #f4a261;
  box-shadow: 0 0 5px rgba(244, 162, 97, 0.5);
  outline: none;
}

.entry-form-item select#tshirt-font:hover {
  border-color: #e76f51;
}

/* Font-specific styles for options */
.entry-form-item select#tshirt-font option[value="Adamina"] {
  font-family: 'Adamina', serif;
}

.entry-form-item select#tshirt-font option[value="Aladin"] {
  font-family: 'Aladin', cursive;
}

.entry-form-item select#tshirt-font option[value="Alef"] {
  font-family: 'Alef', sans-serif;
}

.entry-form-item select#tshirt-font option[value="Amiri"] {
  font-family: 'Amiri', serif;
}

.entry-form-item select#tshirt-font option[value="Arimo"] {
  font-family: 'Arimo', sans-serif;
}

.entry-form-item select#tshirt-font option[value="Arizonia"] {
  font-family: 'Arizonia', cursive;
}

/* Size and Quantity Section */
.size-quantity-section {
  margin-bottom: 2rem;
}

.size-quantity-section h2 {
  font-size: 1.5rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.size-quantity-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.size-quantity-row .entry-form-item {
  flex: 1;
}

.size-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Noto Serif Hebrew', sans-serif;
  background-color: #fff;
  color: #333;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="%231a3c34"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  padding-left: 2.5rem;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.size-select:focus {
  border-color: #f4a261;
  box-shadow: 0 0 5px rgba(244, 162, 97, 0.5);
  outline: none;
}

.size-select:hover {
  border-color: #e76f51;
}

.quantity-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  font-family: 'Noto Serif Hebrew', sans-serif;
  background-color: #fff;
  color: #333;
}

.quantity-input:focus {
  border-color: #f4a261;
  box-shadow: 0 0 5px rgba(244, 162, 97, 0.5);
  outline: none;
}

.quantity-input:hover {
  border-color: #e76f51;
}

.remove-size-btn {
  padding: 0.5rem 1rem;
  background: #e76f51;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.remove-size-btn:hover {
  background: #d65f41;
}

#add-size-btn {
  padding: 0.75rem 1.5rem;
  background: #1a3c34;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

#add-size-btn:hover {
  background: #2a4c44;
}

/* Success Stage */
.success-container {
  text-align: center;
  padding: 2rem;
}

.success-icon {
  margin-bottom: 1rem;
}

.success-container h2 {
  font-size: 2rem;
  color: #1a3c34;
  margin-bottom: 1rem;
}

.success-container p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 2rem;
}

.restart-btn {
  background: #1a3c34;
  color: #fff;
}

.restart-btn:hover {
  background: #2a4c44;
}

/* Loading Stage */
.loading-container {
  text-align: center;
  padding: 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f4a261;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  font-size: 1.1rem;
  color: #1a3c34;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    order: 0;
  }

  .profile-icon {
    display: flex;
    align-items: center;
    order: 2;
  }

  .logo {
    flex: 1;
    text-align: center;
    order: 1;
  }

  .nav-group {
    display: none;
    width: 100%;
    order: 3;
    position: absolute;
    top: 60px;
    right: 0;
    background: #1a3c34;
    padding: 1rem;
    z-index: 1000;
  }

  .nav-group.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  .admin-dropdown {
    margin: 10px 0;
  }

  .admin-dropdown-content {
    position: static;
    box-shadow: none;
    background: #f9f9f9;
  }

  .recent-profiles-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recent-profiles .profile-card {
    width: 300px;
    margin: 0 auto;
  }

  .design-section, .entry, .profile-hero, .profiles-section, .hero, .mission, .process, .cta, .recent-profiles, .order-section, .success-section {
    padding: 80px 0 3rem;
  }

  .design-form, .entry-form, .order-container, .success-container {
    padding: 1.5rem;
    max-width: 90%;
  }

  .form-stage h2, .about-hero h2, .about-content-text h2, .team h2, .cta h2, .entry-header-title, .profile-hero h1, .profile-about h2, .profile-gallery h2, .profile-cta h2, .profiles-section h1, .hero h2, .mission h2, .process h2, .recent-profiles h2, .order-container h2, .order-tshirt-preview h2, .success-container h1 {
    font-size: 1.8rem;
  }

  .form-stage .entry-form-item label, .about-hero p, .about-content-text p, .team p, .cta p, .profile-about p, .profile-cta p, .profile-card-description, .hero p, .mission p, .step p, .price-details p, .success-container p {
    font-size: 1rem;
  }

  .image-preview img {
    width: 80px;
    height: 80px;
  }

  .form-buttons {
    flex-direction: column;
  }

  .form-buttons button {
    width: 100%;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-content img, .about-content-text {
    width: 100%;
    max-width: 100%;
  }

  .about-content img {
    height: 200px;
    margin-bottom: 1rem;
  }

  .team-members {
    grid-template-columns: 1fr;
  }

  .team-member img {
    width: 150px;
    height: 150px;
  }

  .profile-hero-content {
    flex-direction: column;
    align-items: center;
  }

  .profile-photo img {
    width: 300px;
    height: 300px;
  }

  .tshirt-design {
    width: 250px;
    height: 250px;
  }

  .tshirt-preview {
    margin-bottom: 15px;
  }

  .tshirt-quote {
    font-size: 0.9rem;
  }

  .gallery-item img {
    max-width: 250px;
    max-height: 500px;
  }

  .profiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .profile-card-image img {
    height: 300px;
  }

  .profile-card-content h2 {
    font-size: 1.3rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .step {
    max-width: 300px;
    margin: 0 auto;
  }

  .order-container {
    flex-direction: column;
    padding: 1.5rem;
  }

  .size-quantity-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .size-select, .quantity-input {
    font-size: 0.9rem;
    padding: 0.6rem;
    padding-left: 2rem;
  }

  .size-select {
    background-position: left 0.6rem center;
  }

  .remove-size-btn, #add-size-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .success-icon {
    width: 48px;
    height: 48px;
  }

  .profiles-link {
    font-size: 1rem;
  }

  .loading-container p {
    font-size: 1rem;
  }

  .spinner {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.2rem;
  }

  .profile-icon svg {
    width: 20px;
    height: 20px;
  }

  .menu-toggle {
    font-size: 1.2rem;
  }

  .form-stage h2, .about-hero h2, .about-content-text h2, .team h2, .cta h2, .entry-header-title, .profile-hero h1, .profile-about h2, .profile-gallery h2, .profile-cta h2, .profiles-section h1, .hero h2, .mission h2, .process h2, .recent-profiles h2, .order-container h2, .order-tshirt-preview h2, .success-container h1 {
    font-size: 1.5rem;
  }

  .form-stage .entry-form-item label, .about-hero p, .about-content-text p, .team p, .cta p, .profile-about p, .profile-cta p, .profile-card-description, .hero p, .mission p, .step p, .price-details p, .success-container p {
    font-size: 0.9rem;
  }

  .image-preview img {
    width: 60px;
    height: 60px;
  }

  .form-buttons button, .cta-button, .entry-form-submit {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .about-content img {
    height: 150px;
  }

  .team-members img, .profile-photo img {
    width: 300px;
    height: 300px;
  }

  .tshirt-design {
    width: 250px;
    height: 250px;
  }

  .tshirt-quote {
    font-size: 0.8rem;
  }

  .gallery-item img {
    max-width: 250px;
    max-height: 500px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .profile-card-image img {
    height: 300px;
  }

  .profile-card-content h2 {
    font-size: 1.2rem;
  }

  .pagination-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .size-quantity-section h2 {
    font-size: 1.3rem;
  }

  .size-select, .quantity-input {
    font-size: 0.8rem;
    padding: 0.5rem;
    padding-left: 1.8rem;
  }

  .size-select {
    background-position: left 0.5rem center;
  }

  .remove-size-btn, #add-size-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .success-icon {
    width: 40px;
    height: 40px;
  }

  .profiles-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .loading-container p {
    font-size: 0.9rem;
  }

  .spinner {
    width: 24px;
    height: 24px;
  }

  .entry-form-item select#size, .entry-form-item select#tshirt-font {
    font-size: 0.8rem;
    padding: 0.5rem;
    padding-left: 1.8rem;
    background-position: left 0.5rem center;
  }
}