:root {
  /* Pure white theme */
  --brand-bg-start: #ffffff;
  --brand-bg-end: #ffffff; /* pure white */
  --ribbon-bg: #ffffff;   /* pure white */
  --ribbon-bg-hover: #f8f8f8; /* very light gray for hover */
  --ribbon-text: #4b3b2b; /* brown */
}

.ribbon-header {
  background: #ffffff; /* pure white background instead of gradient */
  color: var(--ribbon-text);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.ribbon-header img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.ribbon-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ribbon-link {
  position: relative;
  display: inline-block;
  padding: 8px 18px;
  color: var(--ribbon-text) !important;
  background: transparent;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1.5px solid var(--ribbon-bg-hover);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* remove notch for pill style */
.ribbon-link::after { content: none; }

.ribbon-link:hover {
  background: var(--ribbon-bg);
  border-color: var(--ribbon-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ribbon-link:focus-visible {
  outline: 3px solid rgba(124,106,68,0.35);
  outline-offset: 2px;
}

.ribbon-link.active {
  background: var(--ribbon-bg);
  border-color: var(--ribbon-bg-hover);
}

/* Badges inside links (e.g., Cart (3)) */
.ribbon-link .cart-count { font-weight: 800; }

/* Responsive handling */
@media (max-width: 768px) {
  .ribbon-nav { 
    display: none !important; /* Hide desktop nav on mobile */
  }
  .ribbon-link { 
    display: none !important; /* Hide individual links on mobile */
  }
}

/* Global pure white background */
html, body {
  background-color: #ffffff !important;
  background: #ffffff !important;
}

/* Menu paragraph styling */
.menu-paragraph {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.menu-paragraph .ribbon-link {
  margin: 0;
}

/* Ensure all sections have white background */
.container, section, .intro, .contact, .testimonials {
  background-color: #ffffff !important;
}

/* Mobile-friendly improvements */
@media (max-width: 768px) {
  .ribbon-header {
    padding: 10px 15px;
    flex-direction: column;
    gap: 15px;
  }
  
  .ribbon-header img {
    height: 40px;
  }
  
  .menu-paragraph {
    justify-content: center;
    gap: 8px;
  }
  
  .ribbon-link {
    padding: 6px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  /* Improve touch targets */
  .ribbon-link, button, a {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Better spacing for mobile */
  .container {
    margin: 20px auto;
    padding: 0 15px;
  }
  
  /* Improve form elements on mobile */
  input, textarea, button {
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    border-radius: 8px;
  }
  
  /* Better carousel on mobile */
  .carousel-img {
    height: 40vh;
    min-height: 200px;
  }
  
  .carousel-caption {
    padding: 10px;
  }
  
  .carousel-caption h5 {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }
  
  .carousel-caption p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .ribbon-header {
    padding: 8px 10px;
  }
  
  .ribbon-header img {
    height: 35px;
  }
  
  .menu-paragraph {
    gap: 6px;
  }
  
  .ribbon-link {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .container {
    margin: 15px auto;
    padding: 0 10px;
  }
  
  .carousel-img {
    height: 35vh;
    min-height: 150px;
  }
  
  /* Single column layout for very small screens */
  .products {
    grid-template-columns: 1fr;
  }
  
  .product-card {
    margin-bottom: 15px;
  }
  
  /* Improve WhatsApp button positioning */
  a[href*="wa.me"] {
    bottom: 15px;
    right: 15px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  /* Better scroll-to-top button */
  #scrollTopBtn {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .ribbon-link:hover {
    transform: none;
  }
  
  .ribbon-link:active {
    background: var(--ribbon-bg);
    transform: scale(0.95);
  }
  
  button:active {
    transform: scale(0.95);
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100px;
  }
  
  .carousel-img {
    height: 25vh;
  }
  
  .ribbon-header {
    padding: 8px 15px;
  }
  
  .ribbon-header img {
    height: 30px;
  }
}

/* Mobile Side Menu Styles */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #4B3B2B;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-side-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: -2px 0 20px rgba(0,0,0,0.15);
  z-index: 1002;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border-left: 3px solid #4B3B2B;
}

.mobile-side-menu.active {
  right: 0;
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 20px;
  border-bottom: 2px solid #e9ecef;
  background: linear-gradient(135deg, #4B3B2B 0%, #7C6A44 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

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

/* Hide logo in mobile side menu */
.side-menu-header .header-content img {
  display: none;
}

.side-menu-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.close-menu-btn {
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-menu-btn:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.5);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.side-menu-nav {
  padding: 20px 0;
}

.side-menu-link {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  color: #4B3B2B;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.side-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4B3B2B 0%, #7C6A44 100%);
  transition: width 0.3s ease;
  z-index: -1;
}

.side-menu-link:hover {
  color: white;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(75, 59, 43, 0.2);
}

.side-menu-link:hover::before {
  width: 100%;
}

.side-menu-link:active {
  transform: translateX(8px) scale(0.98);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .menu-paragraph {
    display: none !important;
  }
  
  .ribbon-header {
    justify-content: space-between;
  }
  
  /* Hide desktop navigation completely on mobile */
  .ribbon-nav {
    display: none !important;
  }
  
  /* Ensure header layout is correct for mobile */
  .ribbon-header {
    padding: 15px 20px;
    flex-direction: row;
    gap: 0;
  }
  
  .ribbon-header img {
    height: 40px;
  }
}

/* Enhanced animations for side menu */
.mobile-side-menu {
  transform: translateX(100%);
}

.mobile-side-menu.active {
  transform: translateX(0);
}

/* Ensure desktop menu is hidden when mobile menu is active */
.mobile-side-menu.active ~ .ribbon-header .menu-paragraph,
.mobile-side-menu.active ~ .ribbon-header .ribbon-nav {
  display: none !important;
}

/* Force hide desktop navigation on mobile devices */
@media (max-width: 768px) {
  .ribbon-nav,
  .menu-paragraph,
  .ribbon-link {
    display: none !important;
  }
}

/* Staggered animation for menu items */
.side-menu-link {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.5s ease forwards;
}

.side-menu-link:nth-child(1) { animation-delay: 0.1s; }
.side-menu-link:nth-child(2) { animation-delay: 0.2s; }
.side-menu-link:nth-child(3) { animation-delay: 0.3s; }
.side-menu-link:nth-child(4) { animation-delay: 0.4s; }
.side-menu-link:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .mobile-side-menu {
    width: 280px;
  }
  
  .side-menu-link {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}


