/* Kitchen Items Page - Match search-results.php exactly */

/* Full page background like search-results */
.mycontainer.nopadding {
    background-image: url('../images/asthetic/blur-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Fixed tab headers styling */
.headers-p {
  position: fixed;
  top: 10vh;
  left: 0;
  right: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  height: auto;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
  padding-top: 15px;  
  padding-bottom: 20px;
  display: flex;
  align-items: center;
}

/* Tabs container with scrolling */
.tabs-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding-bottom: 7px;
}

.tabs-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

#acntheaders {
    display: flex;
    min-width: max-content;
    gap: 12px;
    padding: 0 20px;
    white-space: nowrap;
    justify-content: flex-start;
    margin-left: 0px;
}

/* Desktop navigation arrows */
.tab-nav-arrow {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none !important; /* Hidden by default (mobile) */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  color: #333;
  flex-shrink: 0;
  margin: 0 10px;
}

.tab-nav-arrow:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tab-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Desktop behavior - show navigation arrows, but JavaScript will hide them if not needed */
/* Hide arrows on touch devices (less than 650px) and adjust threshold by removing 25px */
@media (min-width: 650px) {
    .tab-nav-arrow {
        display: flex !important;
    }
    
    #acntheaders {
        justify-content: flex-start; /* Changed from center - let JS handle centering */
        padding: 0 15px;
    }
    
    /* Ensure tabs container can center content when arrows are hidden */
    .tabs-container {
        display: flex;
        justify-content: flex-start; /* Let JS handle centering */
    }
    
    /* When arrows are hidden, center the tabs */
    .tab-nav-arrow[style*="display: none"] ~ .tabs-container #acntheaders,
    .tab-nav-arrow:not(:visible) ~ .tabs-container #acntheaders {
        justify-content: center;
    }
}

/* Mobile improvements - ensure partial visibility for scroll indication */
@media (max-width: 768px) {
    #acntheaders h3 {
        font-size: 25px;
    }
    #acntheaders {
        padding: 0 15px 0 20px; /* Extra padding on right to show partial tab */
        gap: 20px; /* Larger gap on mobile for better touch targets */
    }
    
    /* Ensure there's always a partially visible tab on the right */
    #acntheaders::after {
        content: '';
        min-width: 40px; /* Forces partial visibility of last item */
        flex-shrink: 0;
    }
}

.accounttabheaders {
    flex-shrink: 0;
    margin-right: 0;
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.accounttabheaders:hover {
    background: rgba(255, 255, 255, 1) !important;
}

.acthactive {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

/* Tab icon styling */
.tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.tab-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    filter: invert(1);
    opacity: 0.7;
}

/* Tab content areas - match search-results exactly */
.tabs {
    display: none;
    padding: 0;
    margin: 0;
    padding-top: calc(87px);
}



.tabs.opentab {
    display: block;
}

/* Remove all custom product styling to match search-results exactly */
.products-container {
    /* No custom styling - let renderproducts.php and Bootstrap handle everything */
}

/* No products message styling to match search-results */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #ffffff;
}

.no-products h3 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-family: 'roboto', sans-serif;
}

.no-products p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-family: 'roboto', sans-serif;
    color: #ffffff;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .tab-icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
    
    #acntheaders {
        justify-content: flex-start;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    
    .tab-icon {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
    
    #acntheaders {
        padding: 0 10px;
        gap: 10px;
        justify-content: flex-start;
    }
    
    .accounttabheaders {
        font-size: 14px;
        padding: 8px 12px;
    }
}