/**
 * Product.css - Kitchen Product Page Styles
 * Handles layout, cart functionality, and responsive design for product pages
 * Enhanced with mobile-first responsive design and bottom navigation
 */

/* =============================================================================
   MOBILE-FIRST RESPONSIVE FOUNDATION
   ============================================================================= */

/**
 * Ensure proper mobile viewport handling
 * Note: Viewport meta tag should be added to HTML head
 */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/**
 * Mobile-first base styles
 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
 /*   -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;*/
}

/**
 * Mobile body padding to account for bottom navigation
 */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for bottom navigation */
    }
    
    /* Optimize product summary/header section for mobile */
    .product-summary,
    .product-header,
    .product-info-section {
        padding: 10px !important;
        margin: 5px 0 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Reduce spacing in dark summary sections */
    .dark-section,
    .product-details-header,
    [style*="background-color: #"] {
        padding: 8px 10px !important;
        margin: 5px 0 !important;
        min-height: auto !important;
    }
    
    /* Compact product title and details */
    .product-title,
    .product-name {
        font-size: 18px !important;
        line-height: 1.2 !important;
        margin: 5px 0 !important;
        padding: 5px 0 !important;
    }
    
    /* Reduce spacing in product specification areas */
    .product-specs,
    .product-options {
        padding: 5px 10px !important;
        margin: 5px 0 !important;
    }
    
    /* Target any sections with excessive height on mobile */
    section,
    div[style*="height"],
    div[style*="padding"] {
        min-height: auto !important;
    }
    
    /* Compact any large containers that might contain the summary */
    .container,
    .content-wrapper,
    .main-content {
        padding: 5px !important;
        margin: 0 !important;
    }
    
    /* Reduce line height and spacing for better mobile density */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2 !important;
        margin: 8px 0 !important;
        padding: 0 !important;
    }
    
    /* Compact paragraph and text spacing */
    p, div, span {
        line-height: 1.3 !important;
        margin: 4px 0 !important;
    }
}

/* =============================================================================
   STICKY LAYOUT COMPONENTS
   ============================================================================= */

/**
 * Main sticky header for product pages
 */

/* Mobile optimization for sticky header */
@media (max-width: 768px) {
    .sticky-headerp {
        position: relative !important;
        top: auto !important;
        z-index: auto !important;
        min-height: auto !important;
        height: auto !important;
        padding: 5px 0 !important;
    }
    
    /* Reduce height of main sections */
    .u-section-1,
    .u-section-2 {
        position: relative !important;
        top: auto !important;
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Disable sticky positioning for search */
    .searchfavorite {
        position: relative !important;
        top: auto !important;
        z-index: auto !important;
    }
    
    /* Compact any large content areas */
    .u-sheet,
    .u-sheet-1 {
        min-height: auto !important;
        padding: 5px 0 !important;
        margin: 0 !important;
    }
}

html {
    height: auto !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

body {
    height: 100%;
/*    overflow-y: auto;
    overflow-x: hidden;*/
    width: 100%;
    max-width: 100%;*/
}

/* Prevent horizontal scrolling on all devices */
* {
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: border-box;
}

.sticky-headerp {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
/*    z-index: 1041;*/
}

/* Additional mobile fixes */
@media (max-width: 768px) {
    /* Ensure proper mobile layout */
    .main-row {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .left-image,
    .right-columns {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5px !important;
        box-sizing: border-box;
    }
    
    .content-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    
    .door-block,
    .carcass-block,
    .offers-block {
        width: 100% !important;
        max-width: 100% !important;
        border-left: none !important;
        border-top: 1px solid #ccc !important;
        padding: 10px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .door-block {
        border-top: none !important;
    }
    
    /* Keep side-by-side layout for mobile but make images smaller */
    .side-by-side {
        flex-direction: row !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    
    .text-section {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .image-box-wrapper {
        flex-shrink: 0 !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
    
    .image-box {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        margin: 0 !important;
    }
    
    .change-text {
        font-size: 0.75rem !important;
        text-align: center !important;
        margin-top: 5px !important;
    }
    
    /* Mobile text sizing */
    .text-item {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }
    
    .block-title {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    /* Mobile fixings section */
    .fixings-section {
        margin-top: 10px !important;
    }
    
    .fixings-section h6 {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }
    
    .fixings-controls {
        gap: 10px !important;
    }
    
    .fixings-controls label {
        font-size: 0.8rem !important;
        margin-right: 10px !important;
    }
}

/**
 * Primary section with sticky positioning
 */
.u-section-1 {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    /*z-index: 1000;*/
}

/**
 * Secondary section with flex layout
 */
.u-section-2 {
    display: flex;
    height: 100vh;
    overflow: visible;
}

/**
 * Search and favorites sticky container
 */
.searchfavorite {
    position: -webkit-sticky;
    position: sticky;
    top: 110px;
    z-index: 1;
}

/* =============================================================================
   THREE-COLUMN LAYOUT SYSTEM
   ============================================================================= */

/**
 * Base column styling
 */
.column {
    padding: 5px;
    box-sizing: border-box;
}

/**
 * Left column - Navigation and filters
 * - Sticky positioning for persistent navigation
 * - Scrollable content area
 * - Minimum width to prevent collapse
 */
.leftc {
    width: 12%;
    float: left;
    padding: 15px 8px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    min-width: 140px;
}

/**
 * Middle column - Main product content area
 * - Primary content display
 * - Bordered for visual separation
 */
.middlec {
    width: 66%;
    background: #fff;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/**
 * Right column - Shopping cart and actions
 * - Sticky positioning for persistent cart access
 * - Scrollable for long cart contents
 * - Collapsible with .hidden modifier
 */
.rightc {
    float: right;
    width: 22%;
    padding: 0px 0px 0px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid #eee;
    z-index: 100;
    margin: 0;
    box-sizing: border-box;
    min-width: 240px;
}

/**
 * Hidden state for right column
 */
.rightc.hidden {
    display: none;
}

/* =============================================================================
   SHOPPING CART COMPONENTS
   ============================================================================= */

/**
 * Main cart container
 * - Full width with responsive padding
 * - Centered layout with proper spacing
 */
.rightimagebox.menu_cart {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/**
 * Cart middle column override
 * - Specific width for cart layout
 * - Calculated max-width to prevent overflow
 */
.rightimagebox.menu_cart .column.middlec {
    width: 66%;
    float: left;
    padding: 0 15px;
    box-sizing: border-box;
    max-width: calc(100% - 420px);
}

/**
 * Cart section container
 * - Minimal padding for content spacing
 * - Centered alignment
 */
.cartsection {
    padding: 0 5px;
    margin: 0 auto;
}

/**
 * Cart header with title and controls
 * - Flexbox layout for title and VAT toggle
 * - Bottom border for visual separation
 * - Proper spacing and alignment
 */
.menu-cart-title {
    padding: 10px 0 8px;
    border-bottom: 1px solid #eee;
    margin: 0 0 8px 0;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/**
 * Cart title text styling
 */
.rphidetitle {
    position: relative;
    padding-right: 30px !important;
}

/* =============================================================================
   VAT TOGGLE SWITCH COMPONENT
   ============================================================================= */

/**
 * Container for VAT toggle with labels
 * - Flexbox layout for proper alignment
 * - Auto margin for right alignment
 * - Consistent spacing between elements
 */
.vat-toggle-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding-left: 10px;
    font-size: 0.9em;
}

/**
 * VAT toggle labels (Ex VAT / Inc VAT)
 * - Small font size for compact display
 * - Consistent color scheme
 * - Medium font weight for readability
 */
.vat-label {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
}

/**
 * Hidden checkbox input
 * - Completely hidden but accessible
 * - Zero dimensions to prevent layout issues
 */
.vattoggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/**
 * Custom toggle switch styling
 * - Pill-shaped toggle with smooth transitions
 * - Cursor pointer for better UX
 * - Hidden text with proper indentation
 */
.vatlabel {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 20px;
    background: #6c757d;
    display: block;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s ease;
}

/**
 * Toggle switch handle
 * - Circular white handle
 * - Smooth transition animation
 * - Proper positioning within toggle
 */
.vatlabel:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/**
 * Checked state - toggle background
 */
.vattoggle:checked+.vatlabel {
    background: #007bff;
}

/**
 * Checked state - handle position
 */
.vattoggle:checked+.vatlabel:after {
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

/* =============================================================================
   PANEL CLOSE BUTTON
   ============================================================================= */

/**
 * Close button for collapsible panels
 * - Positioned in top-right corner
 * - Circular design with border
 * - Flexbox centering for perfect alignment
 * - High z-index to stay above content
 */
.close-panel {
    position: absolute;
    right: 10px;
    top: 0px;
    z-index: 1001;
    cursor: pointer;
    font-size: 16px;
    background: #f8f9fa;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    border: 1px solid #ddd;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

/**
 * Close button hover state
 */
.close-panel:hover {
    background: #e9ecef;
}

/* =============================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ============================================================================= */

/**
 * Medium to large screens (968px - 1399px)
 * - Adjusted column widths for better content distribution
 * - Maintains usability across different screen sizes
 */
@media (min-width: 968px) and (max-width: 1399px) {
    .leftc {
        width: 15%;
    }

    .middlec {
        width: 40%;
    }
}

/**
 * Tablet and small desktop (769px - 1024px)
 * - Maintain three-column layout with adjusted proportions
 */
@media (min-width: 769px) and (max-width: 1024px) {
    .leftc {
        width: 18%;
        min-width: 160px;
    }
    
    .middlec {
        width: 52%;
    }
    
    .rightc {
        width: 30%;
        min-width: 280px;
    }
}

/**
 * Mobile devices (max-width: 768px)
 * - Stack columns vertically
 * - Hide desktop cart toggle
 * - Optimize for touch interaction
 */
@media (max-width: 768px) {
    /* Ensure full width on mobile - fixed approach */
    body, html {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Force all elements to respect viewport width */
    * {
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Hide desktop cart toggle on mobile */
    .cart-toggle-icon {
        display: none !important;
    }
    
    /* Disable sticky positioning on mobile */
    .sticky-headerp {
        position: relative !important;
        top: auto !important;
        z-index: auto !important;
    }
    
    /* Ensure main section takes full width */
    .u-section-1,
    .u-section-2,
    section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
        position: relative !important;
        top: auto !important;
    }
    
    /* Force full width on all major containers */
    section#sec-865c,
    section#sec-865c * {
        max-width: 100% !important;
    }
    
    /* Mobile column layout */
    .u-sheet-1 {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Ensure all parent containers use full width */
    .u-clearfix,
    .u-sheet,
    .u-sheet-1,
    .u-container-style,
    .u-group,
    .u-group-1 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Specific handling for column containers */
    .column {
        box-sizing: border-box;
        width: 100% !important;
        padding: 5px !important;
    }
    
    /* Ensure the main section container doesn't constrain width */
    section#sec-865c {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .leftc {
        display: none !important;
        width: 0%;
        float: none;
        position: relative;
        height: auto;
        min-width: auto;
        order: 1;
        padding: 0;
    }
    
    .middlec {
        width: 100% !important;
        max-width: 100% !important;
        float: none;
        order: 2;
        border: none;
        border-top: 1px solid #ccc;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
    }
    
    /* Ensure product containers handle the grid properly */
    .bottmcontentmargn.cat_content {
        overflow: hidden; /* Clear floats */
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    .bottmword1 {
        overflow: hidden; /* Clear floats */
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Individual product items within the grid */
    .middlec .product-item,
    .middlec .product-card {
        width: calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
        margin: 5px !important;
        box-sizing: border-box;
        float: left;
    }
    
    /* For very small screens, make products single column */
    @media (max-width: 480px) {
        .middlec .product-item,
        .middlec .product-card {
            width: calc(100% - 10px) !important;
            max-width: calc(100% - 10px) !important;
            margin: 5px !important;
            float: none;
        }
    }
    
    /* Main product category containers */
    .procontinrpad.borderbotm {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Ensure middle content area takes full width */
    .middle-content {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        position: relative;
        left: 0;
        right: 0;
    }
    
    /* Force all content within middle area to use full width */
    .middlec *,
    .middle-content * {
        max-width: 100vw !important;
        box-sizing: border-box;
    }
    
    /* Ensure main product containers take full width */
    .procontinrpad.borderbotm {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Product grid optimization for mobile */
    .middlec .product-grid,
    .middlec .product-container,
    .middlec .product-row {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 5px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Ensure search and filter areas use full width */
    .searchfavorite {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 10px !important;
        margin: 0 !important;
        box-sizing: border-box;
        position: relative !important;
        top: auto !important;
    }
    
    .rightc {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        z-index: 1050;
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        border-left: 1px solid #ddd;
    }
    
    /* Show cart when it has the 'show' class */
    .rightc.show {
        right: 0;
    }
    
    /* Make close button more prominent on mobile */
    .rightc .close-panel {
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 1002;
        cursor: pointer;
        font-size: 20px;
        background: #f8f9fa;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 28px;
        border-radius: 50%;
        border: 1px solid #ddd;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s ease;
    }
    
    .rightc .close-panel:hover {
        background: #e9ecef;
    }
    
    /* Ensure proper spacing for mobile cart content */
    .rightc .rightimagebox.menu_cart {
        padding: 15px;
        height: 100%;
        box-sizing: border-box;
    }
    
    .rightc .cartsection {
        padding: 10px 0;
    }
    
    /* Overlay for mobile cart */
    .mobile-cart-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }
    
    .mobile-cart-overlay.show {
        display: block;
        opacity: 1;
    }
    
    /* Mobile-friendly search and filters */
    .searchfavorite {
        position: relative;
        top: auto;
        padding: 4px;
        background: #fff;
        border-bottom: 1px solid #eee;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Override the inline style that limits search to 80% width */
    .searchfavorite .absolute {
        position: relative !important;
        left: 0 !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    
    /* Override search dish max-width */
    .searchdish {
        max-width: none !important;
        width: 100% !important;
        flex: 1 !important;
    }
    
    .inlinesearch {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .searchdish {
        flex: 1;
        min-width: 0;
    }
    
    /* Best sellers checkbox container */
    .veg {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Favorites container */
    .favorite.favoriteselection {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .inputdish {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Mobile Product Grid Layout - Two columns with 100% width utilization */
    .full_width.productpadtop {
        width: 50% !important;
        float: left;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        display: block;
    }
    
    /* Clear floats after every two items */
    .full_width.productpadtop:nth-child(2n+1) {
        clear: left;
    }
    
    /* Adjust product box for mobile two-column layout */
    .full_width.productpadtop .product1box {
        width: 100% !important;
        padding: 4px !important;
        margin: 0 !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border: 1px solid #eee;
        border-radius: 2px;
        background: #fff;
        height: 100%;
    }
    

    
    /* Product image area */
    .full_width.productpadtop .ovrlydiv {
        width: 60px;
        height: 60px;
        margin-bottom: 6px;
        flex-shrink: 0;
    }
    
    .full_width.productpadtop .ovrlydiv img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Product details area */
    .full_width.productpadtop .fodsymbol {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    
    /* Product name and code */
    .full_width.productpadtop .symblword {
        font-size: 11px;
        line-height: 1.2;
        margin-bottom: 2px;
        font-weight: 500;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }
    
    .full_width.productpadtop .newarrvl {
        font-size: 9px;
        margin-bottom: 3px;
        color: #666;
        text-align: center;
    }
    
    /* Price styling */
    .full_width.productpadtop .add1.oprice {
        font-size: 10px;
        margin-bottom: 4px;
        text-align: center;
        width: 100%;
    }
    
    .full_width.productpadtop .add2 {
        font-size: 9px;
        display: block;
        margin-bottom: 1px;
        text-align: center;
    }
    
    /* Add to cart button */
    .full_width.productpadtop .add_item,
    .full_width.productpadtop .addToCart,
    .full_width.productpadtop .addToCartMulti {
        font-size: 10px;
        padding: 4px 8px;
        min-height: 28px;
        width: 100%;
        box-sizing: border-box;
        border-radius: 3px;
        background: #007bff;
        color: white;
        border: none;
        cursor: pointer;
        margin-top: 2px;
    }
    
    .full_width.productpadtop .add_item:hover,
    .full_width.productpadtop .addToCart:hover,
    .full_width.productpadtop .addToCartMulti:hover {
        background: #0056b3;
    }
    
    /* Product number badge */
    .full_width.productpadtop .round {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 18px !important;
        height: 18px !important;
        font-size: 8px !important;
        line-height: 18px;
        text-align: center;
    }
}

/* =============================================================================
   MAIN CONTENT AREA
   ============================================================================= */

/**
 * Primary content container for product listings
 * - Minimal padding for content spacing
 * - Full width utilization
 * - Overflow handling for scrollable content
 */
.middle-content {
    padding: 5px;
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: medium;
    scrollbar-gutter: stable both-edges;
}

.middlec.is-expanded {
    height: auto;
    min-height: 100vh;
}

.middlec.is-expanded .middle-content {
    flex: none;
    height: auto;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.middle-content::-webkit-scrollbar {
    width: 12px;
}

.middle-content::-webkit-scrollbar-track {
/*    background-color: rgba(0, 0, 0, 0.05);*/
}

.middle-content::-webkit-scrollbar-thumb {
/*    background-color: rgba(0, 0, 0, 0.3);*/
    border-radius: 6px;
    border: 3px solid rgba(255, 255, 255, 0.6);
}

/* =============================================================================
   FLOATING CART TOGGLE BUTTON
   ============================================================================= */

/**
 * Floating cart toggle button
 * - Fixed positioning for persistent access
 * - Circular design with shadow for prominence
 * - Flexbox layout for icon centering
 * - Smooth transitions for interactions
 * - High z-index to stay above content
 */
.cart-toggle-icon {
    position: fixed;
    right: 30px;
    top: 120px;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    cursor: pointer;
    z-index: 998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/**
 * Cart toggle button hover state
 */
.cart-toggle-icon:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/**
 * Cart icon styling
 */
.cart-toggle-icon i {
    font-size: 22px;
    color: #495057;
    transition: color 0.2s ease;
}

/**
 * Cart item count badge
 * - Positioned in top-right corner
 * - Circular badge with contrasting colors
 * - Flexbox centering for number display
 * - Bold font weight for visibility
 */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 
=============================================================================
   ADDITIONAL RESPONSIVE BREAKPOINTS
   ============================================================================= */

/**
 * Small screens and tablets (max-width: 967px)
 * - Stack columns vertically for mobile
 * - Adjust cart toggle position
 * - Ensure minimum touch targets
 */
@media (max-width: 967px) {

    .leftc,
    .middlec,
    .rightc {
        width: 100%;
        float: none;
        position: relative;
        height: auto;
        min-width: auto;
    }

    .leftc {
        order: 1;
        padding: 10px;
    }

    .middlec {
        order: 2;
        border: none;
        border-top: 1px solid #ccc;
        display: block;
        height: auto;
    }

    .rightc {
        order: 3;
        border: none;
        border-top: 1px solid #eee;
    }

    .cart-toggle-icon {
        right: 20px;
        top: 80px;
        width: 45px;
        height: 45px;
    }

    .cart-toggle-icon i {
        font-size: 20px;
    }
}

/**
 * Extra small screens (max-width: 575px)
 * - Further optimize for mobile devices
 * - Reduce padding and margins
 * - Ensure touch-friendly interactions
 */
@media (max-width: 575px) {
    .column {
        padding: 2px;
    }

    .leftc,
    .rightc {
        padding: 8px;
    }

    .menu-cart-title {
        padding: 8px 0 6px;
        font-size: 14px;
    }

    .vat-toggle-container {
        font-size: 0.8em;
    }

    .vatlabel {
        width: 35px;
        height: 18px;
    }

    .vatlabel:after {
        width: 14px;
        height: 14px;
    }

    .cart-toggle-icon {
        right: 15px;
        top: 70px;
        width: 40px;
        height: 40px;
    }

    .cart-toggle-icon i {
        font-size: 18px;
    }

    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */

/**
 * Visibility utilities
 */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/**
 * Accessibility improvements
 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/**
 * Focus states for better accessibility
 */
.cart-toggle-icon:focus,
.close-panel:focus,
.vatlabel:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

/**
 * Print-specific styles
 * - Hide interactive elements
 * - Optimize layout for printing
 */
@media print {

    .cart-toggle-icon,
    .close-panel,
    .vat-toggle-container {
        display: none !important;
    }

    .rightc {
        position: static;
        height: auto;
        overflow: visible;
    }

    .leftc,
    .middlec,
    .rightc {
        float: none;
        width: 100%;
        border: none;
        box-shadow: none;
    }
}

/* =============================================================================
   PERFORMANCE OPTIMIZATIONS
   ============================================================================= */

/**
 * Hardware acceleration for smooth animations
 */
.cart-toggle-icon,
.vatlabel:after,
.close-panel {
    will-change: transform;
    backface-visibility: hidden;
}

/**
 * Smooth scrolling for better UX
 */
.leftc,
.rightc {
    scroll-behavior: smooth;
}

/* =============================================================================
   BROWSER-SPECIFIC FIXES
   ============================================================================= */

/**
 * Safari-specific fixes
 */
@supports (-webkit-appearance: none) {
    .vatlabel {
        -webkit-appearance: none;
    }
}

/**
 * Firefox-specific fixes
 */
@-moz-document url-prefix() {
    .cart-toggle-icon {
        -moz-user-select: none;
    }
}

/**
 * Edge/IE-specific fixes
 */
@supports (-ms-ime-align: auto) {
    .u-section-2 {
        display: -ms-flexbox;
        -ms-flex-direction: row;
    }
}/* 
=============================================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================================= */

/**
 * Mobile bottom navigation bar
 * - Fixed positioning at bottom of screen
 * - Hidden on desktop, visible on mobile
 * - Semi-transparent background with blur effect
 */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e0e0e0;
    display: none;
    z-index: 1000;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/**
 * Show bottom navigation on mobile devices
 */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

/**
 * Individual navigation items
 * - Flexbox layout for icon and text
 * - Touch-friendly sizing
 * - Smooth transitions for interactions
 */
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    min-width: 60px;
    min-height: 44px; /* Minimum touch target size */
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    position: relative;
}

/**
 * Navigation item hover/active states
 */
.mobile-nav-item:hover,
.mobile-nav-item:active {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.mobile-nav-item.active {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
}

/**
 * Navigation icons
 */
.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    color: #495057;
    transition: color 0.2s ease;
}

.mobile-nav-item:hover i,
.mobile-nav-item.active i {
    color: #007bff;
}

/**
 * Navigation labels
 */
.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    transition: color 0.2s ease;
    text-align: center;
}

.mobile-nav-item:hover span,
.mobile-nav-item.active span {
    color: #007bff;
}

/**
 * Cart icon wrapper for badge positioning
 */
.mobile-cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/**
 * Mobile cart badge
 * - Positioned on cart icon
 * - Circular design with contrasting colors
 * - Hidden when count is 0
 */
.mobile-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.mobile-cart-badge.show {
    display: flex;
}

/* =============================================================================
   MOBILE MENU TOGGLE
   ============================================================================= */

/**
 * Mobile menu toggle button for categories
 * - Only visible on mobile
 * - Positioned at top of content area
 */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        gap: 8px;
    }
}

.mobile-menu-toggle:hover {
    background: #e9ecef;
}

.mobile-menu-toggle i {
    font-size: 16px;
    color: #495057;
}

.mobile-menu-toggle span {
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}/* 
=============================================================================
   MOBILE CART PANEL
   ============================================================================= */

/**
 * Mobile cart overlay
 * - Full screen overlay for modal background
 * - Semi-transparent background
 * - Hidden by default, shown when cart is open
 */
.mobile-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

/**
 * Mobile cart panel
 * - Slides up from bottom
 * - Full width on mobile
 * - Rounded top corners
 * - High z-index to appear above everything
 */
.mobile-cart-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    z-index: 1999;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-cart-panel.show {
    transform: translateY(0);
}

/**
 * Cart panel header
 * - Contains title and close button
 * - Sticky positioning within panel
 * - Drag handle for visual feedback
 */
.mobile-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-cart-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.mobile-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/**
 * Cart close button
 */
.mobile-cart-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-cart-close:hover {
    background: #f5f5f5;
    color: #666;
}

/**
 * Cart content area
 * - Scrollable content
 * - Flexible height
 */
.mobile-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    min-height: 200px;
}

/**
 * Empty cart state
 */
.mobile-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.mobile-cart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.mobile-cart-empty p {
    margin: 8px 0;
    font-size: 16px;
}

.mobile-cart-empty p:first-of-type {
    font-weight: 600;
    color: #666;
}

/**
 * Cart footer
 * - Contains total and checkout button
 * - Sticky at bottom of panel
 */
.mobile-cart-footer {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    background: white;
}

/**
 * Mobile VAT toggle in cart
 */
.mobile-vat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}

.mobile-vat-label {
    color: #666;
    font-weight: 500;
}

.mobile-vat-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mobile-vat-switch {
    cursor: pointer;
    width: 36px;
    height: 20px;
    background: #6c757d;
    border-radius: 20px;
    position: relative;
    transition: background 0.3s ease;
}

.mobile-vat-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.mobile-vat-input:checked + .mobile-vat-switch {
    background: #007bff;
}

.mobile-vat-input:checked + .mobile-vat-switch::after {
    transform: translateX(16px);
}

/**
 * Cart total display
 */
.mobile-total-amount {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

/**
 * Mobile checkout button
 */
.mobile-checkout-btn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
}

.mobile-checkout-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.mobile-checkout-btn:active {
    transform: translateY(0);
}

.mobile-checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/**
 * Cart item styling for mobile
 */
.mobile-cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-cart-item:last-child {
    border-bottom: none;
}

.mobile-cart-item-image {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.mobile-cart-item-details {
    flex: 1;
    margin-right: 12px;
}

.mobile-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mobile-cart-item-code {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.mobile-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: #007bff;
}

.mobile-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
}

.mobile-qty-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.mobile-qty-display {
    min-width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.mobile-remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mobile-remove-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}