/* ===== MODERN RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #fffaf5 0%, #fff5ef 100%);
  color: #2c1810;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #d4643c;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #b24b3b;
  transform: translateY(-2px);
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 3rem;
  background: linear-gradient(135deg, rgba(255, 207, 184, 0.95), rgba(255, 230, 213, 0.95));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 179, 154, 0.3);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.8rem 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
  max-width: 100%;
}

.logo-link:hover .logo-img {
  filter: brightness(1.1);
}

.logo-text {
  display: none;
}

.main-nav {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: #5a3b2f;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(212, 100, 60, 0.1);
  border-radius: 50px;
  transition: left 0.3s ease;
  z-index: -1;
}

.main-nav a:hover::before {
  left: 0;
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.6);
  color: #b24b3b;
  box-shadow: 0 4px 15px rgba(178, 75, 59, 0.15);
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
  padding: 0;
}

/* ===== HERO SECTION ===== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 3rem;
  background: linear-gradient(135deg, rgba(255, 207, 184, 0.3), rgba(255, 230, 213, 0.3));
  border-bottom: 1px solid rgba(242, 179, 154, 0.2);
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #b24b3b, #d4643c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.1rem;
  color: #5a3b2f;
  line-height: 1.8;
  max-width: 35rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-banner {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(178, 75, 59, 0.2);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-banner:hover {
  transform: scale(1.02) translateY(-5px);
}

/* ===== SECTION TITLES ===== */
.section-title {
  padding: 3rem 3rem 1.5rem;
  text-align: center;
  animation: fadeInDown 0.6s ease;
}

.section-title h2 {
  font-size: 2.4rem;
  margin-bottom: 0.7rem;
  background: linear-gradient(135deg, #b24b3b, #d4643c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: 1.1rem;
  color: #8b5a3c;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.8rem;
  border: 1px solid rgba(242, 179, 154, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  animation: fadeInUp 0.6s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #b24b3b, #d4643c, #b24b3b);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(178, 75, 59, 0.15);
  border-color: rgba(212, 100, 60, 0.2);
}

.card-image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #ffe6d5 0%, #ffcfb8 100%);
  border-radius: 12px;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #b24b3b;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover .card-image-placeholder {
  transform: scale(1.05);
  background: linear-gradient(135deg, #ffb8a3, #ff9d80);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #b24b3b;
}

.card p {
  color: #6b4a3a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SCHEDULE SECTION ===== */
.schedule {
  background: linear-gradient(135deg, rgba(242, 179, 154, 0.1), rgba(255, 207, 184, 0.1));
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(242, 179, 154, 0.2);
  margin: 2rem 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.schedule h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #b24b3b;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.schedule h3:first-child {
  margin-top: 0;
}

.schedule h3::before {
  content: '📍';
  font-size: 1.1rem;
}

.schedule h3:nth-of-type(2)::before {
  content: '🎉';
}

.schedule ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.schedule li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  color: #5a3b2f;
  position: relative;
  line-height: 1.7;
}

.schedule li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #d4643c;
  font-weight: bold;
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: 2rem 3rem;
}

.contact-details {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.2rem;
  border: 1px solid rgba(242, 179, 154, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  animation: fadeInLeft 0.6s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-details h3 {
  color: #b24b3b;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-details p {
  margin-bottom: 1.2rem;
  color: #5a3b2f;
  line-height: 1.8;
}

.contact-details strong {
  color: #3b2b2b;
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

/* ===== FORM SECTIONS ===== */
.form-section {
  animation: fadeInRight 0.6s ease;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-section h3 {
  color: #b24b3b;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.order-form {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 2.2rem;
  border-radius: 16px;
  border: 1px solid rgba(242, 179, 154, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.order-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #5a3b2f;
  font-weight: 500;
}

.order-form input[type="email"],
.order-form input[type="text"],
.order-form input[type="tel"],
.order-form textarea {
  margin-top: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 100, 60, 0.2);
  font: inherit;
  font-size: 1rem;
  resize: vertical;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: none;
  border-color: #d4643c;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(212, 100, 60, 0.1);
  transform: translateY(-2px);
}

.order-form fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.order-form legend {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #5a3b2f;
}

.order-form fieldset label {
  flex-direction: row;
  align-items: center;
  margin-bottom: 0;
  font-weight: 400;
}

.order-form fieldset input[type="radio"] {
  margin-right: 0.7rem;
  margin-top: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #d4643c;
}

.order-form button,
.cta-button {
  align-self: flex-start;
  padding: 1rem 1.8rem;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg, #b24b3b, #d4643c);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(178, 75, 59, 0.2);
  position: relative;
  overflow: hidden;
}

.order-form button::before,
.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.order-form button:hover,
.cta-button:hover {
  background: linear-gradient(135deg, #933c2f, #b24b3b);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(178, 75, 59, 0.3);
}

.order-form button:active,
.cta-button:active {
  transform: translateY(-2px);
}

.order-form button:hover::before,
.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #7a5a4a;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

/* ===== FOOTER - STICKY ===== */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 3rem;
  border-top: 1px solid rgba(242, 179, 154, 0.2);
  background: linear-gradient(135deg, rgba(255, 207, 184, 0.3), rgba(255, 230, 213, 0.3));
  color: #7a5a4a;
  text-align: center;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.site-footer p {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.site-footer small {
  opacity: 0.7;
  display: block;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 207, 184, 0.2);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #b24b3b, #d4643c);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #933c2f, #b24b3b);
}

/* ===== WHOLESALE CATALOG & INVENTORY ===== */
.catalog-controls {
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.search-wrapper input {
  width: 100%;
  padding: 1rem 1.5rem 1rem 3rem;
  border: 2px solid rgba(242, 179, 154, 0.4);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: #2c1810;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  outline: none;
}

.search-wrapper input:focus {
  border-color: #d4643c;
  box-shadow: 0 4px 20px rgba(212, 100, 60, 0.15);
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8b5a3c;
  font-size: 1.2rem;
  pointer-events: none;
}

.filter-categories {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(242, 179, 154, 0.5);
  color: #8b5a3c;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.filter-btn:hover {
  background: rgba(255, 207, 184, 0.3);
  border-color: #d4643c;
  color: #d4643c;
  transform: translateY(-1px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #d4643c, #b24b3b);
  border-color: #d4643c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(212, 100, 60, 0.2);
}

.catalog-header {
  text-align: center;
  margin: 3.5rem auto 1.5rem auto;
  max-width: 800px;
  padding: 0 2rem;
}

.catalog-header h3 {
  font-size: 1.8rem;
  color: #b24b3b;
  margin-bottom: 0.5rem;
}

.catalog-header p {
  color: #6a554a;
  font-size: 0.95rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 4rem auto;
  padding: 0 2rem;
}

.flower-card {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(212, 100, 60, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.flower-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(212, 100, 60, 0.1);
  border-color: rgba(242, 179, 154, 0.5);
  background: rgba(255, 255, 255, 0.9);
}

.flower-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffd8c7, #ffcfb8);
  transition: background 0.3s ease;
}

.flower-card:hover::before {
  background: linear-gradient(90deg, #d4643c, #b24b3b);
}

.wholesaler-badge {
  display: inline-block;
  background: rgba(242, 179, 154, 0.2);
  color: #b24b3b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.flower-name-wrapper {
  margin-bottom: 0.5rem;
}

.flower-card h4 {
  font-size: 1.2rem;
  color: #2c1810;
  font-weight: 600;
}

.flower-code {
  font-size: 0.75rem;
  color: #a08272;
  font-family: monospace;
}

.flower-meta {
  font-size: 0.82rem;
  color: #8b5a3c;
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(242, 179, 154, 0.2);
  padding-bottom: 0.5rem;
}

.flower-desc {
  font-size: 0.88rem;
  color: #6a554a;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.flower-colors {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.color-tag {
  font-size: 0.72rem;
  background: rgba(255, 230, 213, 0.4);
  border: 1px solid rgba(242, 179, 154, 0.3);
  color: #8b5a3c;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
}

.btn-select-bloom {
  background: linear-gradient(135deg, #fcede3, #ffd8c7);
  border: 1px solid rgba(242, 179, 154, 0.4);
  color: #b24b3b;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-select-bloom:hover {
  background: linear-gradient(135deg, #d4643c, #b24b3b);
  border-color: #d4643c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 100, 60, 0.15);
}

.btn-select-bloom.selected {
  background: #4caf50;
  border-color: #4caf50;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

/* --- Dynamic Order Drawer banner --- */
.floating-order-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #2c1810, #3e2217);
  color: #fffaf5;
  padding: 1rem 1.8rem;
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1001;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0);
  opacity: 0;
  border: 1px solid rgba(255, 230, 213, 0.15);
}

.floating-order-banner.visible {
  transform: scale(1);
  opacity: 1;
}

.floating-order-banner span {
  font-size: 0.95rem;
  font-weight: 500;
}

.btn-banner-action {
  background: linear-gradient(135deg, #d4643c, #b24b3b);
  border: none;
  color: #ffffff;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(212, 100, 60, 0.3);
}

.btn-banner-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 100, 60, 0.4);
  filter: brightness(1.1);
}

/* --- Order Page Enhancements --- */
.selected-flowers-list {
  background: rgba(255, 230, 213, 0.3);
  border: 1px dashed rgba(242, 179, 154, 0.8);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.selected-flower-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  border: 1px solid rgba(242, 179, 154, 0.2);
}

.selected-flower-details {
  display: flex;
  flex-direction: column;
}

.selected-flower-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: #2c1810;
}

.selected-flower-code-label {
  font-size: 0.72rem;
  color: #a08272;
  font-family: monospace;
}

.selected-flower-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-qty {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(242, 179, 154, 0.6);
  background: #fff5ef;
  color: #b24b3b;
  font-size: 0.88rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-qty:hover {
  background: #b24b3b;
  color: #ffffff;
}

.qty-val {
  font-size: 0.88rem;
  font-weight: 600;
  width: 20px;
  text-align: center;
}

.btn-remove-selected {
  color: #f44336;
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: color 0.2s ease;
}

.btn-remove-selected:hover {
  color: #d32f2f;
}

.empty-selected-msg {
  font-size: 0.88rem;
  color: #8b5a3c;
  text-align: center;
  font-style: italic;
  padding: 0.5rem 0;
}

.catalog-search-order {
  margin-bottom: 1.5rem;
  position: relative;
}

.catalog-search-order input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.2rem;
  border-radius: 8px;
  border: 1px solid rgba(242, 179, 154, 0.8);
  font-size: 0.9rem;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.catalog-search-order input:focus {
  border-color: #d4643c;
  box-shadow: 0 0 0 3px rgba(212, 100, 60, 0.1);
}

.catalog-search-order::before {
  content: '🔍';
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  pointer-events: none;
}

.dropdown-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(242, 179, 154, 0.6);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 10;
  margin-top: 4px;
}

.dropdown-item {
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: #2c1810;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #fff5ef;
}

.dropdown-item-code {
  font-size: 0.72rem;
  color: #a08272;
  font-family: monospace;
}

/* ===== CART BADGE & COMMERCE STYLES ===== */
.cart-badge {
  background: linear-gradient(135deg, #b24b3b, #d4643c);
  color: #ffffff;
  border-radius: 50px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(178, 75, 59, 0.4);
  min-width: 18px;
  text-align: center;
  display: inline-block;
}

.auth-wrapper {
  max-width: 450px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(212, 100, 60, 0.05);
}

.auth-wrapper h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #b24b3b;
  font-size: 1.6rem;
}

.auth-wrapper p {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6a554a;
}

.auth-wrapper p a {
  font-weight: 600;
  color: #d4643c;
}

.auth-wrapper p a:hover {
  text-decoration: underline;
}

/* Cart & Dashboard specific grids */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto 4rem auto;
  padding: 0 2rem;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-panel {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(242, 179, 154, 0.3);
  border-radius: 16px;
  padding: 2rem;
}

.cart-summary-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(242, 179, 154, 0.4);
  border-radius: 16px;
  padding: 2rem;
  align-self: start;
  position: sticky;
  top: 100px;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(242, 179, 154, 0.2);
}

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

.cart-item-info {
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c1810;
}

.cart-item-subtitle {
  font-size: 0.8rem;
  color: #a08272;
  font-family: monospace;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-remove-cart {
  background: none;
  border: none;
  color: #f44336;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem;
  margin-left: 1rem;
  transition: color 0.2s;
}

.btn-remove-cart:hover {
  color: #d32f2f;
}

.dashboard-layout {
  max-width: 1200px;
  margin: 2rem auto 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-sidebar {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(242, 179, 154, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  align-self: start;
}

.dashboard-content {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(242, 179, 154, 0.3);
  border-radius: 16px;
  padding: 2rem;
}

.user-profile-badge {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(242, 179, 154, 0.2);
  margin-bottom: 1.5rem;
}

.user-profile-badge .avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd8c7, #ffcfb8);
  color: #b24b3b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 0.8rem auto;
  font-weight: bold;
}

.order-card {
  background: #ffffff;
  border: 1px solid rgba(242, 179, 154, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(242, 179, 154, 0.15);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.status-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.status-tag.pending {
  background: #fff8e1;
  color: #ffb300;
}

.status-tag.processing {
  background: #e3f2fd;
  color: #1e88e5;
}

.status-tag.completed {
  background: #e8f5e9;
  color: #43a047;
}

.order-details-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.order-details-table th, .order-details-table td {
  padding: 0.5rem;
  text-align: left;
  font-size: 0.88rem;
}

.order-details-table th {
  color: #8b5a3c;
  border-bottom: 1px solid rgba(242, 179, 154, 0.2);
}

/* ===== RESPONSIVE ===== */

/* Tablets & Large Devices (1025px and up) */
@media (min-width: 1025px) {
  .site-header {
    padding: 1.2rem 3rem;
  }
  
  .logo-img {
    height: 80px;
  }
  
  .main-nav a {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
  }
}

/* Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .site-header {
    padding: 1rem 2rem;
  }
  
  .logo-img {
    height: 70px;
  }
  
  .main-nav {
    gap: 0.6rem;
  }
  
  .main-nav a {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
  }
  
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
  }
  
  .hero-text h2 {
    font-size: 2.2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .section-title {
    padding: 2.5rem 2rem 1.2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 2rem;
    gap: 1.8rem;
  }
  
  .schedule {
    margin: 2rem;
    padding: 2rem;
  }
  
  .form-section h3,
  .contact-details h3 {
    font-size: 1.2rem;
  }
}

/* Small Tablets & Large Mobile (481px - 768px) */
@media (max-width: 768px) {
  * {
    scroll-behavior: smooth;
  }
  
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    gap: 0.8rem;
  }

  .site-header.scrolled {
    padding: 0.7rem 1.2rem;
  }
  
  .logo {
    flex-shrink: 0;
  }

  .logo-img {
    height: 60px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    justify-content: flex-end;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
    border-radius: 8px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1.2rem;
    gap: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-banner {
    border-radius: 12px;
  }

  .section-title {
    padding: 2rem 1.2rem 1rem;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title p {
    font-size: 1rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .card {
    padding: 1.4rem;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .card-image-placeholder {
    height: 180px;
    font-size: 0.85rem;
  }

  .schedule {
    margin: 1.2rem;
    padding: 1.5rem;
  }

  .schedule h3 {
    font-size: 1.1rem;
  }

  .contact-wrapper {
    padding: 1.2rem;
    gap: 1.2rem;
  }

  .contact-details {
    padding: 1.5rem;
  }

  .contact-details h3 {
    font-size: 1.2rem;
  }

  .contact-details p {
    font-size: 0.95rem;
  }

  .form-section h3 {
    font-size: 1.2rem;
  }

  .order-form {
    padding: 1.5rem;
    gap: 1rem;
  }

  .order-form label {
    font-size: 0.9rem;
  }

  .order-form input[type="email"],
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form textarea {
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
  }

  .order-form button,
  .cta-button {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 1.2rem;
  }

  .site-footer p {
    font-size: 0.9rem;
  }
}

/* Mobile (max 480px) */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 0.7rem 1rem;
    gap: 0.6rem;
  }

  .site-header.scrolled {
    padding: 0.6rem 1rem;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo-img {
    height: 50px;
  }

  .main-nav {
    gap: 0.3rem;
  }

  .main-nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
  }

  .main-nav a:hover {
    transform: translateY(-1px);
  }

  .hero {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .hero-text h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-banner {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(178, 75, 59, 0.15);
  }

  .section-title {
    padding: 1.5rem 1rem 0.8rem;
  }

  .section-title h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }

  .card {
    padding: 1.2rem;
  }

  .card h3 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  .card p {
    font-size: 0.88rem;
  }

  .card-image-placeholder {
    height: 150px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
  }

  .schedule {
    margin: 1rem;
    padding: 1.2rem;
  }

  .schedule h3 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .schedule ul {
    margin-bottom: 1rem;
  }

  .schedule li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
  }

  .contact-wrapper {
    padding: 1rem;
    gap: 1rem;
  }

  .contact-details {
    padding: 1.2rem;
  }

  .contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .contact-details p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
  }

  .order-form {
    padding: 1.2rem;
    gap: 0.9rem;
  }

  .order-form label {
    font-size: 0.88rem;
  }

  .order-form input[type="email"],
  .order-form input[type="text"],
  .order-form input[type="tel"],
  .order-form textarea {
    margin-top: 0.5rem;
    padding: 0.75rem 0.8rem;
    font-size: 16px;
  }

  .order-form fieldset {
    gap: 0.6rem;
  }

  .order-form legend {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
  }

  .order-form fieldset label {
    font-size: 0.88rem;
  }

  .order-form button,
  .cta-button {
    width: 100%;
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .form-note {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  .site-footer {
    padding: 1rem;
  }

  .site-footer p {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
  }

  .site-footer small {
    font-size: 0.8rem;
  }
}
