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

html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

/* Keep shared navigation items shrinkable when the root text size grows. */
.site-header-inner {
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
}

.site-header-logo {
  min-width: 0;
  max-width: 100%;
}

.site-header-logo img {
  max-width: 100%;
  max-height: 112px;
}

.site-header-nav {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 36px);
}

.site-header-nav > a,
.site-header-nav > form,
.site-header-nav > form > button {
  min-width: 0;
  max-width: 100%;
}

.site-header-nav > a,
.site-header-nav > form > button {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.site-header-nav img {
  width: auto;
  max-width: 100%;
  max-height: 64px;
}

.site-header-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  max-width: calc(100vw - 32px);
}

.mobile-menu-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-menu-nav > a,
.mobile-menu-nav > form,
.mobile-menu-nav > form > button {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.mobile-menu-nav img {
  width: auto;
  max-width: 100%;
  max-height: 40px;
}

@media (max-width: 400px) {
  .site-header-inner {
    padding-inline: 16px !important;
  }
}

.registration-phone-code-cell,
.registration-phone-number-cell,
.registration-phone-code,
.registration-phone-number {
  min-width: 0;
  max-width: 100%;
}

.registration-phone-code,
.registration-phone-number {
  display: block;
  width: 100%;
}

.login-options,
.login-remember,
.login-forgot {
  min-width: 0;
}

.login-forgot {
  overflow-wrap: anywhere;
}

/* The warm-white, soft-shadow treatment selected for the orange footer. */
.footer-soft-shadow {
  --color-footer-ink: #fff8e9;
}

.footer-soft-shadow h3,
.footer-soft-shadow .footer-content p,
.footer-soft-shadow nav a {
  text-shadow: 0 2px 3px rgba(89, 38, 24, 0.72);
}

.footer-legal-orange {
  background: linear-gradient(90deg, #d96808, #b84a0b);
}

.footer-soft-shadow [data-footer-legal] p {
  text-shadow: 0 1px 2px rgba(89, 38, 24, 0.56);
}

@media (max-width: 767px) {
  .footer-content {
    padding-inline: min(2.5rem, 40px);
  }
}

.auth-card {
  padding: min(2rem, 32px);
  min-width: 0;
  max-width: 100%;
}

.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card h4,
.auth-card h5,
.auth-card h6,
.auth-card p,
.auth-card a,
.auth-card label:not(.sr-only) {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  text-wrap: wrap;
}

@media (min-width: 640px) {
  .registration-phone-code-cell {
    flex: 0 1 13rem;
    width: 13rem;
    max-width: 40%;
  }

  .registration-phone-number-cell {
    flex: 1 1 0%;
  }
}

.reflow-grid,
.reflow-card,
.reflow-copy,
.reflow-action {
  min-width: 0;
  max-width: 100%;
}

.reflow-card,
.reflow-copy {
  overflow-wrap: anywhere;
}

.reflow-action {
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

#event-inquiry-form,
#step-1,
#event-phone-fields,
#event-date {
  min-width: 0;
  max-width: 100%;
}

#event-date {
  width: 100%;
}

.reflow-action-row {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reflow-action-row > * {
  min-width: 0;
  max-width: 100%;
}

.reflow-tabs {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

/* The authenticated product configurator must keep its controls usable when
   the document text size grows.  The minimum is deliberately rem-based so
   enlarged text reduces the column count; auto-fit still caps the desktop
   layout at three columns through the one-third calculation. */
#product-order-app {
  width: 100%;
  padding: clamp(16px, 5vw, 32px);
}

#step-2,
#step-3,
#date-config-tabs,
#product-order-app {
  min-width: 0;
  max-width: 100%;
}

.order-product-grid {
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, max(8rem, calc((100% - 2rem) / 3))), 1fr)
  );
  gap: 1rem;
}

.order-product-card {
  padding: 12px;
}

.order-product-card > img {
  max-height: 112px;
}

.order-quantity-row {
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.order-quantity-row > .juice-qty,
.order-quantity-row > .extra-qty {
  min-width: 1rem;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
}

.order-quantity-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.order-product-tabs > button {
  min-width: 0;
  max-width: 100%;
  flex: 1 1 12rem;
  padding: 8px 16px;
  white-space: normal;
  overflow-wrap: anywhere;
}

#date-config-tabs {
  flex-wrap: wrap;
  overflow-x: visible;
}

#date-config-tabs > button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.order-bundle-count {
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
}

.order-bundle-count input {
  width: 80px;
  max-width: 100%;
  font-size: 1.25rem;
}

#step-2 .order-action-row,
#step-3 .order-action-row {
  align-items: stretch;
}

#step-2 .order-action-row > button,
#step-3 .order-action-row > button {
  padding: 8px 16px;
  white-space: normal;
  overflow-wrap: anywhere;
}

body {
  background-color: #fffdf8;
  font-family: 'Montserrat', sans-serif;
}

input[type="radio"] {
    appearance: none;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
}

input[type="radio"]:checked,
input[type="radio"]:active,
input[type="radio"]:focus {
    background: var(--color-primary);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* For Firefox */
}

.hidden-for-animation {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-100%);
  transition: opacity 1s ease 100ms, transform 1s ease 100ms, filter 1s ease 100ms;
}

.hidden-for-animation.inverse {
  transform: translateX(100%);
}

.show-for-animation {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}


.hidden-for-animation.inverse.show-for-animation  {
  transform: translateX(0);
}


body {
    font-family: 'Inter', sans-serif;
    color: #333;
    /* background-color: #f8f9fa; */
    scroll-behavior: smooth;
}

.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    /* Shadow moved to end of file */
}

.product-card:hover {
    transform: translateY(-5px);
    /* Shadow moved to end of file */
}

.swiper-button-next,
.swiper-button-prev {
    color: #4f46e5 !important;
}

.stars {
    display: inline-block;
    font-size: 1rem;
    color: #ffc107;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0%);
}

.dashboard-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    /* Shadow moved to end of file */
}

.dashboard-card:hover {
    transform: translateY(-3px);
    /* Shadow moved to end of file */
}

.gradient-header {
    /* background: linear-gradient(135deg, #4f46e5, #8b5cf6); */
}

.sidebar-link {
    transition: all 0.2s ease;
    border-radius: 8px;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(79, 70, 229, 0.1);
}

.stat-card {
    border-left: 4px solid #4f46e5;
}

.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    border-radius: 4px;
}

.chart-container {
    height: 250px;
    position: relative;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #830606;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    z-index: 10;
}

.file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-upload:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.05);
}

.filterDiv {
    display: none;
}

.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.active-filter {
    /* background-color: var(--color-light); */
    border-left: 4px solid var(--color-primary);
    padding-left: 12px;
    transition: all 0.3s ease;
}

.active-filter span {
    color: var(--color-primary);
    font-weight: 600;
}

.clear-filters {
    background-color: #f8fafc;
    color: #64748b;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background-color: #e2e8f0;
    color: var(--color-dark);
}

.mobile-filter-btn {
    background-color: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
    background-color: #f8fafc;
}

.filter-section {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.filter-section:last-child {
    border-bottom: none;
}

.initial-load {
    animation: initialFadeIn 1s forwards;
}

@keyframes initialFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.paginator {
    list-style: none;
    padding: 0;
    margin: 0;
}

.paginator-link {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 8px;
    /* color: #4f46e5;
    background: #f1f5f9; */
    font-weight: 500;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.05);
    /* border: none; */
    margin: 0 2px;
}

.paginator-link:hover {
    /* background: #e0e7ff;
    color: #3730a3; */
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.10);
}

.paginator-active {
    /* background: #4f46e5;
    color: #fff !important; */
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
    cursor: default;
    pointer-events: none;
}
/* Carousel shadows */
.carousel-cell > div,
.carousel-cell a {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.carousel-cell > div:hover,
.carousel-cell a:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Filter container shadow */
.lg\:w-1\/4 > div {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* General small shadows for white containers */
.bg-white {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Product cards - update to smaller default shadow */
.product-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.product-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12) !important;
}

/* Dashboard cards - smaller shadow */
.dashboard-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dashboard-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}
