/* Session Timeout Warning */
.session-timeout-warning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
}

.timeout-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#keep-alive-btn {
  background-color: var(--primary-pink);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  font-weight: bold;
  transition: background-color 0.3s;
}

#keep-alive-btn:hover {
  background-color: var(--secondary-pink);
}/* CAPTCHA Styling */
#captcha_response {
  max-width: 150px;
  text-align: center;
  font-size: 1.2em;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  #captcha_response {
    max-width: 100%;
    text-align: left;
  }
}/* About Preview Section on Home Page */
@media (max-width: 768px) {
  /* General two-column layouts */
  .two-column {
    display: flex;
    flex-direction: column;
  }
  
  .two-column .col {
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Fix for images in columns */
  .col img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  .about-preview .two-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .about-preview .col {
    width: 100%;
  }
  
  .about-preview img.rounded-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    margin: 10px auto;
    display: block;
  }
}/* Logo Container */
.logo-container a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-container a:hover {
  transform: scale(1.02);
}

.logo-container img {
  cursor: pointer;
}/* Mobile CSS for Sweet Lickins */

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  width: 35px;
  height: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 10px;
  cursor: pointer;
  z-index: 1000;
  background-color: var(--light-pink);
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hamburger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: var(--dark-brown);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  top: 20px;
}

.hamburger.open span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

/* Base Mobile Styles */
@media (max-width: 992px) {
  /* Typography adjustments */
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 2.2em;
  }
  
  h2 {
    font-size: 1.8em;
  }
  
  h3 {
    font-size: 1.5em;
  }
  
  /* Navigation adjustments */
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
  }
  
  .main-nav li {
    flex: 0 0 25%;
  }
  
  /* Hero section adjustments */
  .hero-logo {
    max-width: 300px;
  }
  
  /* Adjust columns for tablets */
  .values-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Universal image resizing */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Rounded images */
  .rounded-img {
    border-radius: 10px;
    width: 100%;
    display: block;
  }
}

@media (max-width: 768px) {
  /* Mobile Navigation */
  .hamburger {
    display: block;
    z-index: 1001; /* Ensure it's above everything */
  }
  
  .main-nav {
    position: relative;
  }
  
  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--light-pink);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  }
  
  .main-nav ul.show {
    display: flex;
  }
  
  .main-nav li {
    flex: 0 0 100%;
    width: 100%;
  }
  
  .main-nav a {
    text-align: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
  }
  
  /* Top Bar */
  .top-bar {
    flex-direction: column;
    padding: 10px;
  }
  
  .social-links, .user-actions {
    margin: 5px 0;
    text-align: center;
  }
  
  /* Container */
  .container {
    padding: 0 15px;
  }
  
  /* Hero Section */
  .hero {
    padding: 40px 20px;
  }
  
  .hero-two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-content-column {
    text-align: center;
    order: 2;
  }
  
  .hero-logo-column {
    order: 1;
    display: flex;
    justify-content: center;
  }
  
  .hero-logo {
    max-width: 250px;
  }
  
  .hero h1 {
    font-size: 2em;
  }
  
  /* Product Grid */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  /* Forms */
  .form-container {
    padding: 20px 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-input {
    padding: 12px; /* Larger touch targets */
  }
  
  .btn {
    padding: 12px 20px; /* Larger touch targets */
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-section {
    margin-bottom: 20px;
  }
  
  /* About Page */
  .about-intro {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 20px;
  }
  
  .values-grid, .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Menu */
  .menu-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 10px;
    overflow-x: visible;
  }
  
  .menu-nav li {
    margin: 5px;
    flex: 0 0 auto;
  }
  
  .menu-item {
    flex-direction: column;
  }
  
  .menu-item-image {
    width: 100%;
    height: 150px;
  }
  
  /* Contact Page */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-info, .contact-form {
    margin-bottom: 30px;
  }
  
  /* Gallery */
  .gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 10px;
    gap: 10px;
  }
  
  .filter-btn {
    flex: 0 0 auto;
    margin: 0 5px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  /* Special Offers */
  .special-card {
    grid-template-columns: 1fr;
  }
  
  .season-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 10px;
    gap: 10px;
  }
  
  .season-tab {
    margin: 5px;
  }
  
  /* Newsletter form mobile layout */
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    margin-bottom: 10px;
    width: 100%;
    border-radius: 5px;
  }
  
  .newsletter-form button {
    width: 100%;
    border-radius: 5px;
  }
}

/* Small Phones */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8em;
  }
  
  .page-title {
    font-size: 1.6em;
  }
  
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }
  
  /* Adjust about page image */
  .about-feature-image {
    max-width: 100%;
  }
  
  /* Further compact the mobile menu */
  .main-nav a {
    padding: 10px;
    font-size: 0.9em;
  }
  
  /* Adjust max-height for very small screens */
  .main-nav ul {
    max-height: 70vh;
  }
  
  /* Touch-friendly inputs */
  input[type="submit"],
  button,
  .btn,
  select,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="date"],
  textarea {
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
}

/* Fix for fixed position elements on iOS */
@supports (-webkit-overflow-scrolling: touch) {
  .fixed-element {
    position: absolute;
  }
}

/* Improve touch targets */
@media (max-width: 768px) {
  .main-nav a, 
  .btn,
  .filter-btn,
  .season-tab,
  .checkbox-label,
  .radio-label {
    min-height: 44px;
  }
  
  /* For checkbox and radio labels, adjust layout */
  .checkbox-label input,
  .radio-label input {
    margin-right: 10px;
  }
}

/* Enhanced Mobile Styles for User-Facing Specials Page */

/* Update mobile.css with these styles */

/* Base Tablet Styles (992px and below) */
@media (max-width: 992px) {
  /* Specials banner */
  .specials-banner {
    padding: 40px 20px;
  }
  
  .specials-banner h1 {
    font-size: 2em;
  }
  
  /* Special card layout */
  .special-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  /* Control special image height for consistency */
  .special-image {
    height: 200px;
  }
  
  .special-image img {
    height: 100%;
    object-fit: cover;
  }
  
  /* Adjust loyalty program grid */
  .loyalty-benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  /* Improve benefit cards on smaller screens */
  .benefit {
    padding: 15px;
  }
  
  .benefit i {
    font-size: 1.8em;
  }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
  /* Further reduce padding on specials banner */
  .specials-banner {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  
  .specials-banner h1 {
    font-size: 1.8em;
  }
  
  /* Adjust special card content */
  .special-content {
    padding: 15px;
  }
  
  /* Make special card title smaller */
  .special-content h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
  }
  
  /* Make promo code stand out more on mobile */
  .code {
    display: inline-block;
    padding: 8px 12px;
    font-size: 1.1em;
    margin-top: 5px;
  }
  
  /* Improve special dates visibility */
  .special-dates {
    font-weight: bold;
  }
  
  /* Loyalty program section */
  .loyalty-program {
    padding: 30px 20px;
    margin: 30px 0;
  }
  
  /* Reduce to single column on mobile */
  .loyalty-benefits {
    grid-template-columns: 1fr;
  }
  
  /* Newsletter section */
  .newsletter-signup {
    padding: 30px 20px;
  }
  
  /* Season tabs - more touch-friendly */
  .season-tab {
    padding: 12px 15px;
    min-height: 44px; /* Better touch target */
    margin: 5px;
  }
  
  /* Fix no-specials message */
  .no-specials {
    padding: 25px 15px;
  }
}

/* Small Phone Styles (480px and below) */
@media (max-width: 480px) {
  /* Smaller banner */
  .specials-banner {
    padding: 25px 15px;
  }
  
  .specials-banner h1 {
    font-size: 1.6em;
  }
  
  /* Reduce image height on very small screens */
  .special-image {
    height: 180px;
  }
  
  /* Adjust season tabs for very small screens */
  .season-tabs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .season-tab {
    flex: 0 0 calc(50% - 10px);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9em;
  }
  
  /* Compact loyalty program section */
  .loyalty-program {
    padding: 25px 15px;
  }
  
  .benefit {
    padding: 15px 10px;
  }
  
  /* Make buttons more prominent */
  .loyalty-program .btn,
  .newsletter-signup .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
  }
}