/* ============================================
   MOBILE RESPONSIVE ENHANCEMENTS
   Add this to the END of store.css
   ============================================ */

/* =======================
   Responsive Logo
========================== */

.logo-img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .logo-img {
    width: 160px;
  }
}

@media (max-width: 480px) {
  .logo-img {
    width: 140px;
  }
}

/* =======================
   Mobile Hamburger Menu
========================== */

/* Hide the checkbox */
.nav-toggle-checkbox {
  display: none;
}

/* Hide hamburger on desktop */
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

/* Hamburger icon styling */
.hamburger-icon {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  position: relative;
  transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  top: 8px;
}

/* Mobile: Show hamburger, hide nav by default */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
  }
  
  .main-header {
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
    position: relative;
  }
  
  .main-header .logo {
    order: 1;
    flex: 1;
  }
  
  .main-nav {
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0;
  }
  
  .main-nav a {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }
  
  /* When checkbox is checked, show nav */
  .nav-toggle-checkbox:checked ~ .main-nav {
    max-height: 400px;
    padding: 0.5rem 0;
    margin-top: 1rem;
  }
  
  /* Animate hamburger to X */
  .nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger-icon {
    background: transparent;
  }
  
  .nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger-icon::before {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .nav-toggle-checkbox:checked ~ .nav-toggle-label .hamburger-icon::after {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* =======================
   Hero Section Mobile
========================== */

@media (max-width: 768px) {
  .hero-section {
    margin-bottom: 2rem;
  }
  
  .hero-tagline {
    padding: 1rem;
  }
  
  .hero-tagline h1 {
    font-size: 1.3rem;
    line-height: 1.4;
  }
  
  .hero-background {
    flex-direction: column;
    min-height: auto;
    max-height: none;
  }
  
  .hero-model-left,
  .hero-model-right {
    display: none;
  }
  
  .hero-center {
    flex: none;
    width: 100%;
    padding: 1.5rem 1rem;
  }
  
  .sweet-roll-text {
    font-size: 2.5rem;
    margin: 1rem 0;
  }
  
  .pricing-info {
    font-size: 1rem;
    margin: 1rem 0;
  }
  
  .price-highlight {
    font-size: 1.5rem;
  }
  
  .shipping-text {
    font-size: 0.95rem;
    display: block;
    margin-top: 0.3rem;
  }
  
  .offer-text {
    font-size: 1rem;
  }
  
  .order-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    margin: 1.5rem 0;
  }
  
  /* Responsive video embed */
  .video-embed {
    width: 100%;
    margin-top: 1.5rem;
  }
  
  .video-embed iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 480px) {
  .hero-tagline h1 {
    font-size: 1.1rem;
  }
  
  .sweet-roll-text {
    font-size: 2rem;
  }
  
  .price-highlight {
    font-size: 1.3rem;
  }
  
  .order-button {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    width: 90%;
    max-width: 280px;
  }
}

/* =======================
   Features Section Mobile
========================== */

@media (max-width: 768px) {
  .features-section {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
  }
  
  .feature-highlight {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .feature-video {
    width: 100%;
    min-width: unset;
  }
  
  .feature-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  
  .feature-text {
    min-width: unset;
  }
  
  .feature-description {
    font-size: 1.2rem;
  }
  
  .feature-cta {
    font-size: 1.1rem;
  }
}

/* =======================
   Transformation Gallery Mobile
========================== */

@media (max-width: 768px) {
  .transformation-gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    flex-wrap: nowrap;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .transformation-gallery .transformation-item {
    flex: 0 1 30%;
    min-width: 0;
    max-width: 120px;
    text-align: center;
  }
  
  .transformation-gallery .transformation-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0.3rem;
  }
  
  .transformation-gallery .transformation-item h3 {
    font-size: 0.8rem;
    margin-top: 0.4rem;
  }
}

@media (max-width: 480px) {
  .transformation-gallery {
    gap: 0.4rem;
    padding: 1rem 0.75rem;
  }
  
  .transformation-gallery .transformation-item {
    max-width: 100px;
  }
  
  .transformation-gallery .transformation-item h3 {
    font-size: 0.7rem;
    margin-top: 0.3rem;
  }
}

/* =======================
   Testimonial Section Mobile
========================== */

@media (max-width: 768px) {
  .testimonial-section {
    padding: 2rem 1rem;
  }
  
  .testimonial-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .testimonial-section .testimonial-image {
    flex: none;
    width: 100%;
    max-width: 280px;
  }
  
  .testimonial-section .testimonial-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
  }
  
  .testimonial-quote blockquote {
    font-size: 1.2rem;
  }
  
  .testimonial-quote cite {
    font-size: 1rem;
  }
}

/* =======================
   Learn More Section Mobile
========================== */

@media (max-width: 768px) {
  .learn-more-section {
    padding: 2rem 1rem;
  }
  
  .learn-more-section h2 {
    font-size: 1.5rem;
  }
  
  .learn-more-button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* =======================
   Awards Section Mobile
========================== */

@media (max-width: 768px) {
  .awards-section {
    padding: 1.5rem 1rem;
  }
  
  .award-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    flex-wrap: nowrap;
  }
  
  .award-text {
    flex: 1;
  }
  
  .award-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .award-image {
    flex: 0 0 160px;
    background: transparent;
  }
  
  .award-image img {
    width: 160px;
    background: transparent;
  }
  
  .final-cta {
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .award-content {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .award-text p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  
  .award-image {
    flex: none;
  }
  
  .award-image img {
    width: 140px;
  }
}

/* =======================
   Guarantee Section Mobile
========================== */

@media (max-width: 768px) {
  .guarantee-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }
  
  .guarantee-badge {
    flex: none;
  }
  
  .guarantee-circle {
    width: 130px;
    height: 130px;
  }
  
  .guarantee-days {
    font-size: 2.5rem;
  }
  
  .guarantee-text {
    font-size: 0.7rem;
  }
  
  .guarantee-details {
    min-width: unset;
  }
  
  .guarantee-details p {
    font-size: 1rem;
  }
}

/* =======================
   Shop Page Hero Mobile
========================== */

@media (max-width: 768px) {
  .hero-announcement {
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-announcement .price-big {
    font-size: 1.6rem;
    display: block;
    margin: 0.5rem 0;
  }
  
  .hero-announcement .small {
    font-size: 0.9rem;
    display: block;
    margin-top: 0.3rem;
  }
  
  .hero-announcement .note {
    font-size: 0.85rem;
  }
}

/* =======================
   Product Grid Mobile
========================== */

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .product-card {
    padding: 0.75rem;
  }
  
  .product-card img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
  }
  
  .product-card h2 {
    font-size: 0.9rem;
    margin: 0.3rem 0 0.2rem 0;
  }
  
  .product-card p {
    font-size: 0.85rem;
    margin: 0.2rem 0;
  }
  
  .badge.sale {
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    max-width: 320px;
    gap: 0.6rem;
  }
  
  .product-card {
    padding: 0.6rem;
  }
  
  .product-card h2 {
    font-size: 0.8rem;
  }
  
  .product-card p {
    font-size: 0.8rem;
  }
}

/* =======================
   Product Page Mobile
========================== */

@media (max-width: 768px) {
  .product-page {
    padding: 1rem;
  }
  
  .nav-links {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .product-layout {
    flex-direction: column;
    gap: 2rem;
  }
  
  .product-images {
    flex: none;
    width: 100%;
  }
  
  .product-images img.main-image {
    max-height: 350px;
  }
  
  .thumbnail-row {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .thumbnail-row .thumb {
    width: 60px;
    height: 60px;
  }
  
  .product-info {
    flex: none;
    width: 100%;
  }
  
  .product-info h1 {
    font-size: 1.6rem;
    text-align: center;
  }
  
  .product-info .price {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .product-info form {
    text-align: center;
  }
  
  .product-info button {
    width: 100%;
    max-width: 300px;
  }
  
  .social-icons {
    text-align: center;
  }
  
  .product-description {
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: 0.95rem;
  }
}

/* =======================
   Content Wrapper Mobile
========================== */

@media (max-width: 768px) {
  .content {
    padding: 0 1rem 1.5rem 1rem;
  }
  
  .page-wrapper {
    padding: 1rem;
  }
}

/* =======================
   About Page Mobile
========================== */

@media (max-width: 768px) {
  .inventor-story {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  
  .inventor-image {
    flex: none;
  }
  
  .inventor-image img {
    width: 160px;
    height: 160px;
  }
  
  .inventor-details {
    min-width: unset;
  }
  
  .inventor-details h2 {
    font-size: 1.6rem;
  }
  
  .inventor-details p {
    font-size: 1rem;
    text-align: left;
  }
  
  .contact-section {
    padding: 2rem 0;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  .contact-info h2 {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .address-card {
    padding: 1.5rem;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .contact-form-wrapper {
    position: static;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
  
  .contact-form-card h3 {
    font-size: 1.3rem;
  }
}

/* =======================
   Instructions Page Mobile
========================== */

@media (max-width: 768px) {
  .sweetroll-intro {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .sweetroll-intro h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }
  
  .sweetroll-intro h3 {
    font-size: 1.3rem;
  }
  
  .sweetroll-intro p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .video-wrapper {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  
  .video-info h4 {
    font-size: 1rem;
  }
  
  .video-caption {
    font-size: 0.85rem;
  }
}

/* =======================
   Footer Styling
========================== */

.support-links {
  margin-top: 1rem;
}

.support-links a {
  margin: 0 0.5rem;
  color: #a855f7;
  font-weight: 500;
}

.social-links .divider {
  color: #9ca3af;
  margin: 0 0.3rem;
}

@media (max-width: 768px) {
  .main-footer {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
  }
  
  .footer {
    font-size: 0.9rem;
  }
  
  .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
  }
  
  .social-links a {
    margin: 0 4px;
    padding: 0.3rem 0.5rem;
  }
  
  .social-links .divider {
    display: none;
  }
  
  .support-links {
    margin-top: 0.8rem;
  }
  
  .support-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.3rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 6px;
  }
}

/* =======================
   Form Elements Mobile (Touch Friendly)
========================== */

@media (max-width: 768px) {
  form input[type="text"],
  form input[type="email"],
  form input[type="number"],
  form input[type="tel"],
  form textarea,
  form select {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.9rem 1rem;
    border-radius: 8px;
  }
  
  form input[type="number"] {
    width: 80px;
  }
  
  button,
  .btn,
  input[type="submit"] {
    min-height: 48px; /* Touch target size */
    font-size: 1rem;
  }
}

/* =======================
   Utility: Hide on Mobile/Desktop
========================== */

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* =======================
   Fix iOS/Safari Issues
========================== */

@supports (-webkit-touch-callout: none) {
  /* iOS-specific fixes */
  .main-nav a {
    -webkit-tap-highlight-color: transparent;
  }
  
  button,
  input[type="submit"] {
    -webkit-appearance: none;
  }
}

/* =======================
   Reduced Section Spacing (Mobile Index Page)
========================== */

@media (max-width: 768px) {
  .hero-section {
    margin-bottom: 1rem;
  }
  
  .features-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .transformation-gallery {
    margin-bottom: 1rem;
  }
  
  .testimonial-section {
    margin-bottom: 1rem;
  }
  
  .learn-more-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .awards-section {
    margin-bottom: 1rem;
  }
  
  .guarantee-section {
    margin-bottom: 1rem;
  }
}
