w-input, .w-select {
     padding: 8px 5px !important;
}

.extra-item-h1 {
    font-size:13px !important;
}

.product-qty-input {
     background-color:#fff !important; 
}


#detailQty {
      background-color:#3898ec00 !important; 
}

/* Ensure quantity input stays readable for 2-3 digit values */
.form-3 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.product-qty-input#detailQty {
    width: 7ch !important;            /* comfortably fits 2-3 digits */
    min-width: 64px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    background-color: #f5f5f7 !important;
    color: #1f2937 !important;
    padding: 10px 12px !important;
    position: relative !important;
    z-index: 2 !important;            /* stay above container visuals */
}

@media screen and (max-width: 480px) {
    .product-qty-input#detailQty {
        width: 5ch !important;
        min-width: 48px !important;
    }
}

/* Circle minus/plus buttons styled to match theme */
#qtyMinus, #qtyPlus {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1.5px solid #e5e7eb !important;
    background: #ffffff !important;
    color: #151b63 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    padding: 0 !important;
}

#qtyMinus:hover, #qtyPlus:hover {
    border-color: #151b63 !important;
    background: #f7f9ff !important;
}

/* Big Add to Cart button styled in site theme */
#detailAddToCart {
    background: #151b63 !important;
    color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 28px !important;
    height: 56px !important;
    border-radius: 14px !important;
}

#detailAddToCart .product-detail-button-h1,
#detailAddToCart #detailPrice {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
}

/* Hide duplicate right-hand price inside the Add button */
#detailPrice { display: none !important; }

/* Make qty input clearer for 2+ digits and align better with controls */
.product-qty-input#detailQty {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* Restyle +/- buttons to be clearer and less bulky */
/* ensure compact on small screens but still readable */
@media screen and (max-width: 480px) {
  .product-qty-input#detailQty { width: 6ch !important; min-width: 56px !important; }
}

/* Remove backgrounds from +/- icons while keeping layout */
#qtyMinus, #qtyPlus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#qtyMinus:hover, #qtyPlus:hover { background: transparent !important; border: none !important; }
#qtyMinus:focus, #qtyPlus:focus { outline: none !important; box-shadow: none !important; }

/* Product Options Styles - Using existing Extra Sides styling */

.product-option-header {
    margin-bottom: 10px;
}

.product-option-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    background-color: white;
    margin-top: 10px;
}

.product-option-select:focus {
    outline: none;
    border-color: #151b63;
    box-shadow: 0 0 0 2px rgba(21, 27, 99, 0.1);
}

/* Required field indicator - REMOVED to avoid confusion */
/* .extra-item-h1::after {
    content: " *";
    color: #ff4444;
    font-weight: bold;
} */

/* Required field validation styles */
.required-field-missing {
    border: 2px solid #ff4444 !important;
}

.required-field-missing .extra-item-h1 {
    color: #ff4444 !important;
    font-weight: bold !important;
}





/* Validation notification styles */
.validation-notification {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.validation-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

.validation-notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.validation-text {
    font-weight: 500;
    font-size: 14px;
}

/* Pulse animation for missing fields */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
    }
}

/* Slide down animation for notification */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shimmer effect for notification */
@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}



/* Loading state for options */
.product-options-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-family: Inter, sans-serif;
}

.product-options-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #151b63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* TAKE OUT button active state - keep white text but change background to lighter blue */
.nav-link-focus.w--current {
    color: #fff !important;
    background-color: #4a5bb8 !important;
}

/* Loading state for options */
.product-options-loading {
    text-align: center;
    padding: 20px;
    color: #666;
    font-family: Inter, sans-serif;
}

.product-options-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #151b63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Custom CSS for Amish Market */

/* Adjust cart icon position to prevent accidental clicks */
.cart-icon-container {
  position: fixed;
  top: 80px; /* Move down from 20px to 80px to avoid navigation overlap */
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  background: #151b63;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.cart-icon-container:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Ensure navigation doesn't overlap with cart icon */
.navbar {
  z-index: 999; /* Lower than cart icon */
}

/* Mobile adjustments */
@media screen and (max-width: 767px) {
  .cart-icon-container {
    top: 70px; /* Slightly lower on mobile */
    right: 15px;
    width: 50px;
    height: 50px;
  }
  
  .cart-icon {
    font-size: 20px;
  }
  
  .cart-count {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

/* Additional spacing for navigation to prevent overlap */
.nav-menu {
  margin-right: 80px; /* Add space for cart icon */
}

@media screen and (max-width: 767px) {
  .nav-menu {
    margin-right: 60px; /* Less space on mobile */
  }
}

/* Make mobile nav menu full width */
@media screen and (max-width: 767px) {
  .w-nav, .navbar { width: 100% !important; }
  .nav-container { width: 100% !important; max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
  .nav-menu { width: 100% !important; max-width: 100% !important; }
}

/* Mobile tweaks for product detail modal */
@media (max-width: 640px) {
  .product-detail-block { max-height: 85vh; overflow-y: auto; }
  .product-detail-text-block { padding-right: 8px; }
  .product-detail-button-block { width: 100%; justify-content: space-between; }
  #detailAddToCart { width: 100%; justify-content: center; }
}

/* Ensure product option labels are left-aligned on mobile */
@media (max-width: 640px) {
  #productDetailModal .product-extra-items-form { text-align: left !important; direction: ltr !important; }
  #productDetailModal .product-extra-item-block { justify-content: flex-start !important; }
  #productDetailModal .product-extra-item-block .checkbox-field { justify-content: flex-start !important; flex: 1 1 auto !important; }
  #productDetailModal .product-extra-item-block .w-form-label { text-align: left !important; display: inline-block !important; }
  #productDetailModal .product-extra-item-block > .extra-item-h1 { margin-left: auto !important; text-align: right !important; }
  #productOptionsContainer,
  .product-extra-block,
  .product-extra-items-form,
  .product-extra-item-block,
  .product-extra-item-block .w-form-label {
    text-align: left !important;
  }
  .product-extra-item-name-block { justify-content: flex-start !important; }
  .product-extra-item-price-block { margin-left: auto !important; text-align: right !important; }
  /* Keep the price chip on the right side while labels are left-aligned */
  .product-extra-item-block { justify-content: flex-start !important; }
}

/* Responsive product name sizing and wrap fixes */
@media (max-width: 900px) {
  .product-h1 { font-size: 17px !important; line-height: 1.25 !important; }
}
@media (max-width: 640px) {
  .product-h1 { font-size: 16px !important; line-height: 1.25 !important; }
  .product-text-block { padding: 16px !important; }
}

/* Product options grid: 2 per row on desktop/tablet, 1 per row on mobile */
.product-extra-items-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 24px !important;
  row-gap: 12px !important;
  align-items: center !important;
  justify-items: stretch !important;      /* ensure children span full cell width */
}

.product-extra-item-block {
  display: flex !important;
  flex-direction: row !important;        /* horizontal layout: label left, price right */
  align-items: center !important;
  gap: 10px !important;
  justify-content: flex-start !important; /* override Webflow space-between */
  width: 100% !important;                /* take full width within grid cell */
}

/* Lay out input + label as a unit and let it take available width */
.product-extra-item-block .checkbox-field {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  flex: 1 1 auto !important;             /* take remaining width */
  min-width: 0 !important;               /* allow wrapping */
  justify-content: flex-start !important; /* ensure left alignment */
}

/* Slightly raise input to align with first line of multi-line labels */
.product-extra-item-block .w-checkbox-input.checkbox {
  margin-top: 2px !important;
}

/* Long option text wraps cleanly */
.product-extra-item-block .w-form-label {
  white-space: normal !important;         /* allow long text to wrap */
  line-height: 1.4 !important;
  word-break: break-word !important;
  text-align: left !important;            /* force left aligned text */
  display: inline-block !important;
}

/* Keep the plus and amount aligned together on the baseline */
.option-price {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
}
.option-price-plus { line-height: 1 !important; }
.option-price-amount { line-height: 1 !important; }

/* Price chip: keep on the right, single line */
.product-extra-item-block > .extra-item-h1 {
  margin-left: auto !important;           /* push price to the right */
  white-space: nowrap !important;         /* keep "+ $X.XX" together */
  display: inline-flex !important;
  align-items: baseline !important;
  text-align: right !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}

/* Select-type option should stretch full width */
.product-extra-items-form select.product-option-select {
  grid-column: 1 / -1 !important;
}

@media (max-width: 640px) {
  .product-extra-items-form { grid-template-columns: 1fr !important; }
  .product-extra-items-form { justify-items: stretch !important; }
}

/* Non-clickable placeholder card for empty categories */
.product-placeholder {
  background-color: #ececec;
  border-radius: 25px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  cursor: default !important;
}
.product-placeholder .product-h1 { margin: 0; text-align: center; }

/* Add to cart button responsiveness in the product modal */
.product-button-block {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
}

#detailAddToCart {
  flex: 1 1 auto !important;
  min-width: 0 !important;            /* allow flexbox to shrink properly */
  box-sizing: border-box !important;
  white-space: nowrap !important;      /* keep label in one line */
}

@media (max-width: 540px) {
  .product-button-block { flex-direction: column; align-items: stretch; }
  #detailAddToCart { width: 100% !important; }
  #detailAddToCart .product-detail-button-h1 { font-size: 17px !important; }
}

@media (max-width: 380px) {
  #detailAddToCart .product-detail-button-h1 { font-size: 16px !important; }
}



/* Product Size Display Styles */
.product-size-block {
    margin-top: 8px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: inline-block;
}

.product-size-text {
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Smaller Product Description Text */
.product-detail-p {
    font-size: 16px !important;
    line-height: 22px !important;
}

/* Responsive adjustments for size display */
@media screen and (max-width: 767px) {
    .product-size-block {
        margin-top: 6px;
        padding: 3px 6px;
    }
    
    .product-size-text {
        font-size: 12px;
    }
    
    .product-detail-p {
        font-size: 14px !important;
        line-height: 20px !important;
    }
}

/* Ensure product detail modal appears above cart modal */
.product-detail-modal {
    z-index: 10000000 !important;
}

/* Cart Modal Layout - Position pricing section at bottom */
.cart-modal .cart-block .cart-sub-block {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 120px) !important;
    min-height: 500px !important;
    overflow-y: auto !important; /* allow entire modal content to scroll */
}

.cart-modal .cart-block .cart-sub-block #cartView {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important; /* let content define height */
}

.cart-modal .cart-block .cart-sub-block .cart-product-main-block {
    flex: 0 0 auto !important; /* grow naturally with items */
    overflow: visible !important;
    padding-bottom: 20px !important;
    max-height: none !important;
}

.cart-modal .cart-block .cart-sub-block .cart-price-main-block {
    position: static !important; /* no sticky behavior */
    background: white !important;
    border-top: 1px solid #e9ecef !important;
    border-radius: 15px 15px 0 0 !important;
    margin-top: 20px !important;
}

/* Contact form input size adjustments - matching admin panel styling */
.input-field {
    width: 100% !important;
    padding: 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    min-height: auto !important;
    height: auto !important;
}

.input-field[type="text"],
.input-field[type="email"],
.input-field[type="tel"] {
    height: auto !important;
    min-height: auto !important;
}

.input-field[type="textarea"] {
    min-height: 80px !important;
    resize: vertical !important;
}

/* Cart button size adjustments */
.cart-button {
    padding: 12px 24px !important;
    font-size: 16px !important;
    line-height: 20px !important;
}

/* Cart pricing text size adjustments */
.cart-price-h1,
.cart-total-price-h1 {
    font-size: 18px !important;
    line-height: 22px !important;
}

/* Tighter spacing for price summary rows */
.cart-price-main-block {
    padding: 14px !important;
    margin-top: 14px !important;
}

.cart-price-block {
    padding: 6px 0 !important;
    margin-bottom: 8px !important;
}

.cart-total-price-block {
    padding: 12px 0 !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    border-top-width: 1px !important;
}

/* Contact form spacing to match Careers form */
#contactForm .contact-h2 {
    display: block !important;
    margin-top: 16px !important;
    margin-bottom: 6px !important;
}

#contactForm .input-field {
    margin-bottom: 18px !important;
}

#contactForm textarea.input-field {
    min-height: 80px !important;
    resize: vertical !important;
}

#contactForm .submit-button {
    margin-top: 12px !important;
}