/* Global CSS for Technic Packaging Website */

/* Translation Loading State */
.translations-loading {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.translations-loading::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Thai Typography - Using Google Fonts Prompt */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #d4af37;
    --gold-light: #EAD292;
    --gold-dark: #b7950b;
    --dark-navy: #012C4E;
    --deep-blue: #1b2951;
    --silver: #c0c0c0;
    --white: #ffffff;
    --cream: #faf6f0;
    --transition-duration: 0.3s;

    /* Spacing System based on Golden Ratio */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: calc(var(--spacing-md) * 1.618);
    --spacing-xl: calc(var(--spacing-lg) * 1.618);
    --spacing-2xl: calc(var(--spacing-xl) * 1.618);

    /* Golden Ratio and Layout */
    --golden-ratio: 1.618;
    --golden-ratio-inverse: 0.618;
    --phi: 1.618;

    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Dynamic hamburger menu positioning */
    --hamburger-right-padding: clamp(1rem, 3vw, 2rem);

    /* Dynamic sidebar menu sizing - Compact center-weighted layout */
    --sidebar-font-size: clamp(0.95rem, 2.8vw, 1.2rem);
    --sidebar-padding: clamp(1rem, 2.5vw, 1.5rem);
    --sidebar-item-spacing: clamp(0.8rem, 1.8vw, 1.2rem);
    --sidebar-min-height: clamp(36px, 5.5vh, 42px);

    /* Typography System - Optimized for Responsive Design */
    --font-primary: 'Prompt', 'Kanit', 'Sarabun', sans-serif;
    /* Use Prompt for English and Thai as primary across site */
    --font-display: 'Prompt', 'FC Minimal', 'Kanit', 'Sarabun', sans-serif;
    --font-ui: 'Prompt', 'Kanit', 'Sarabun', sans-serif;
    --font-heading: 'Prompt', 'Kanit', 'Sarabun', sans-serif;
    --font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    --font-thai: 'Prompt', 'FC Minimal', 'Kanit', 'Sarabun', sans-serif;

    /* Base font sizes with better mobile scaling - Reduced by 5% */
    --font-size-body: clamp(0.83125rem, 1.71vw, 1.06875rem);
    --font-size-body-lg: clamp(0.95rem, 1.9vw, 1.1875rem);
    --font-size-heading-sm: clamp(1.1875rem, 3.325vw, 2.375rem);
    --font-size-heading-md: clamp(1.6625rem, 4.275vw, 3.325rem);
    --font-size-heading-lg: clamp(2.1375rem, 5.7vw, 4.275rem);

    /* Mobile-optimized sizes - Reduced by 5% */
    --font-size-nav: clamp(0.83125rem, 1.425vw, 0.95rem);
    --font-size-hero: clamp(1.9rem, 6.65vw, 4.75rem);
    --font-size-section: clamp(1.425rem, 3.8vw, 2.375rem);

    /* Line heights */
    --line-height-body: 1.6;
    --line-height-heading: 1.2;
    --line-height-mobile: 1.5;

    /* Compact center-weighted sidebar widths */
    --sidebar-ratio-sm: 0.65;     /* 65% for small phones (≤480px) */
    --sidebar-ratio-md: 0.55;     /* 55% for large phones (481px-768px) */
    --sidebar-ratio-lg: 0.45;     /* 45% for tablets (769px-1024px) */
    --sidebar-ratio-xl: 0.35;     /* 35% for desktop (1025px-1440px) */
    --sidebar-ratio-xxl: 0.30;     /* 30% for large desktop (≥1441px) */
    --sidebar-ratio: var(--sidebar-ratio-md); /* Default */
}

body {
    font-family: var(--font-primary);
    background: var(--dark-navy);
    color: var(--white);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}

/* Thai language font support */
html[lang="th"] body {
    font-family: 'Prompt', var(--font-thai), var(--font-primary);
}

/* Force headings and display elements to use Prompt site-wide */
.sidebar-title,
.drawer-title,
.category-title,
.drawer-section h3 {
    font-family: var(--font-heading);
}

/* Enhanced Thai typography for better readability */
html[lang="th"] h1,
html[lang="th"] h2,
html[lang="th"] h3,
html[lang="th"] h4,
html[lang="th"] h5,
html[lang="th"] h6 {
    font-family: 'Prompt', var(--font-thai), var(--font-heading);
    font-weight: 600;
}

/* Product card subtitle styling */
.product-card-subtitle {
    font-size: var(--font-size-body);
    color: white;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* QR link red styling */
.qr-link-red {
    color: red !important;
    text-decoration: none;
}

.qr-link-red p {
    color: red !important;
    font-size: 1.1rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.qr-link-red:hover {
    color: #cc0000 !important;
    text-decoration: underline;
}

.qr-link-red:hover p {
    color: #cc0000 !important;
}

/* QR code text alignment */
.qrcode-text {
    text-align: left;
}

.qrcode-text h3,
.qrcode-text p {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

html[lang="th"] .nav-link {
    font-family: 'Prompt', var(--font-thai), var(--font-primary);
    font-weight: 500;
}

html[lang="th"] .hero-title,
html[lang="th"] .hero-subtitle,
html[lang="th"] .hero-description {
    font-family: 'Prompt', var(--font-thai), var(--font-primary);
}

/* Thai specific optimizations */
.thai-text {
    font-family: 'Prompt', var(--font-thai), var(--font-primary);
}

.thai-heading {
    font-family: 'Prompt', var(--font-thai), var(--font-heading);
    font-weight: 600;
}

.thai-bold {
    font-family: 'Prompt', var(--font-thai), var(--font-primary);
    font-weight: 700;
}

/* Navigation - Cinema Style */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(12, 20, 38, 0.9) 0%, transparent 100%);
    transition: all 0.5s ease;
}

.nav-container.scrolled {
    background: rgba(12, 20, 38, 0.95);
    backdrop-filter: blur(15px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-logo {
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-image {
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
}

/* Desktop Navigation Links */
.desktop-nav-links {
    display: none;
    margin-left: auto;
    margin-right: 2rem;
}

.desktop-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.desktop-nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.desktop-nav-link:hover,
.desktop-nav-link:focus {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.desktop-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.desktop-nav-link:hover::after {
    width: 100%;
}

/* Dropdown Navigation Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle::before {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active::before {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-dropdown);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    color: var(--dark-navy);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-dark);
    border-left-color: var(--gold);
    padding-left: 1.75rem;
}

/* Mobile/Tablet Navigation Styles */
@media (max-width: 1024px) {
    /* Hide desktop navigation on mobile/tablet */
    .desktop-nav-links {
        display: none !important;
    }

    /* Show hamburger menu on mobile/tablet */
    .hamburger-menu {
        display: flex !important;
    }
}

/* Mobile/Tablet Navigation Links - Unified Implementation */
.nav-links {
    display: none !important;
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(280px, calc(100vw * var(--sidebar-ratio)), 90vw);
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
    backdrop-filter: blur(20px);
    z-index: 9998;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(120%);
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    border-left: 3px solid var(--gold);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.nav-links.active {
    transform: translateX(0);
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Sidebar Header */
.sidebar-header {
    padding: var(--sidebar-padding);
    padding-top: clamp(3rem, 8vh, 4rem);
    padding-bottom: clamp(1.5rem, 4vh, 2rem);
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sidebar-logo-image {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-brand {
    text-align: left;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.sidebar-subtitle {
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    color: var(--cream);
    opacity: 0.8;
    font-weight: 400;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--sidebar-padding);
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sidebar-item-spacing);
}

.nav-list .nav-link {
    font-size: var(--sidebar-font-size);
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1.2rem, 3vw, 1.5rem);
    border-radius: 6px;
    min-height: var(--sidebar-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: left;
    line-height: 1.2;
    color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.nav-list .nav-link:hover {
    color: var(--gold);
}

/* Active menu animations */
.nav-links.active .nav-list .nav-link {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile Submenu Styles */
.nav-item-with-submenu {
    position: relative;
}

.submenu-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submenu-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--gold);
}

.submenu-toggle.active::after {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submenu.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

.submenu-link {
    display: block;
    color: var(--cream);
    text-decoration: none;
    padding: 0.6rem 1.5rem 0.6rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.submenu-link:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--gold);
}

.submenu-link::before {
    content: '•';
    position: absolute;
    left: 1.2rem;
    color: var(--gold);
    opacity: 0.6;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--sidebar-padding);
    padding-top: clamp(1.5rem, 4vh, 2rem);
    padding-bottom: clamp(2rem, 6vh, 3rem);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.2);
    text-align: left;
}

.sidebar-copyright {
    font-size: clamp(0.625rem, 1.5vw, 0.75rem);
    color: var(--silver);
    margin-bottom: 1rem;
    opacity: 0.8;
    line-height: 1.3;
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    color: var(--dark-navy);
    transform: translateY(-2px);
}

/* Desktop Navigation Links */
/* Desktop Navigation Styles */
@media (min-width: 1025px) {
    /* Show desktop navigation, hide hamburger */
    .desktop-nav-links {
        display: block !important;
    }

    .hamburger-menu {
        display: none !important;
    }

    /* Hide mobile sidebar by default on desktop */
    .nav-links {
        display: none !important;
    }

    /* Desktop nav-container adjustments */
    .nav-container {
        padding-right: 0 !important;
    }

    .nav {
        justify-content: space-between !important;
        align-items: center !important;
    }
}


/* Active link state for current page */
@media (min-width: 1025px) {
    .nav-link.active {
        color: var(--gold);
    }
}

/* Floating Language Switcher Styles */
.floating-language {
    position: fixed !important;
    top: 120px !important; /* Position below navbar with proper margin */
    right: 20px !important;
    z-index: 999 !important; /* Below navbar (1000) and below sidebar/drawer panels (9998) */
    background: var(--gold) !important;
    margin-top: 30px !important; /* Additional margin for spacing */
    color: var(--dark-navy);
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-duration) ease;
    font-size: clamp(11.4px, 1.14vw, 13.3px);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    backdrop-filter: blur(10px);
}

.floating-language:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.floating-language:active {
    transform: translateY(0);
}

/* Mobile navigation language switcher - hidden when using floating button */
.language-switcher {
    display: none;
}

/* Hamburger Menu - Base Styles */
.hamburger-menu {
    display: none; /* Hidden by default, shown on mobile/tablet via media queries */
    flex-direction: column;
    justify-content: space-between;
    width: 44px; /* 44px minimum touch target */
    height: 44px;
    padding: 12px 7px; /* Creates the visual 30px x 20px hamburger inside 44px touch area */
    cursor: pointer;
    z-index: 9999;
    position: relative;
    background: none;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(212, 175, 55, 0.1);
}

.hamburger-menu:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--gold);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    border-radius: 2px;
}

/* Hamburger Animation States */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--gold-light);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--gold-light);
}

/* Animations */
@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes heroEntrance {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    60% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
/* Mobile Navigation Styles */
@media (max-width: 767px) {
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
    }
    
    /* Show nav-links when active on mobile - Base styles already handle full height */
    .nav-links.active {
        display: flex !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Fix horizontal overflow on mobile */
    .nav {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Ensure no horizontal overflow on mobile */
    .nav-container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Prevent any element from exceeding viewport width */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure body and html don't allow horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Maximize page content width on mobile */
    .story-section,
    .contact-section,
    .products-section,
    .feature-tags-section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .story-container,
    .contact-container,
    .products-container,
    .feature-tags-container,
    .manufacturing-container,
    .hero-content,
    .timeline,
    .products-grid,
    .contact-content {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Ensure timeline items use full width */
    .timeline-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Full width for product showcases */
    .product-showcase {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Let base styles handle sidebar layout - they already use justify-content: space-between */
    
    .logo-image {
        height: 60px;
    }

  
    .language-switcher {
        position: absolute;
        top: 15px;
        right: 60px;
        margin-left: 0;
        z-index: 1001;
    }

    .nav-container {
        padding-right: var(--hamburger-right-padding);
    }

    .nav {
        padding: 1rem 2rem;
    }

    /* Fine-tune hamburger positioning for different phone sizes */
    @media (max-width: 380px) {
        :root {
            --hamburger-right-padding: clamp(0.75rem, 2vw, 1rem);
            /* Extra small screen adjustments - Compact layout */
            --sidebar-font-size: clamp(0.85rem, 2.5vw, 1rem);
            --sidebar-padding: clamp(0.8rem, 2vw, 1rem);
            --sidebar-item-spacing: clamp(0.6rem, 1.5vw, 0.8rem);
            --sidebar-min-height: clamp(32px, 5vh, 36px);
        }
    }

    @media (min-width: 381px) and (max-width: 480px) {
        :root {
            --hamburger-right-padding: clamp(1rem, 2.5vw, 1.5rem);
            /* Small screen adjustments - Compact layout */
            --sidebar-font-size: clamp(0.9rem, 2.8vw, 1.1rem);
            --sidebar-padding: clamp(0.9rem, 2.2vw, 1.2rem);
            --sidebar-item-spacing: clamp(0.7rem, 1.8vw, 1rem);
        }
    }

    /* iPhone SE specific fix (320x568 viewport) */
    @media (max-width: 321px) {
        :root {
            --sidebar-font-size: clamp(0.8rem, 2.2vw, 0.9rem);
            --sidebar-padding: clamp(0.6rem, 1.5vw, 0.8rem);
            --sidebar-item-spacing: clamp(0.5rem, 1.2vw, 0.7rem);
            --sidebar-min-height: clamp(28px, 4.5vh, 32px);
        }

        /* Ensure proper layout for very small screens */
        .sidebar-nav {
            padding-top: clamp(1rem, 3vh, 1.5rem) !important;
        }
        /* Reduce animation distance for small screens */
        .nav-list .nav-link {
            transform: none !important;
        }
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Tablet-specific font optimizations - Reduced by 5% */
    :root {
        --font-size-body: clamp(0.890625rem, 1.71vw, 1.009375rem);
        --font-size-body-lg: clamp(1.009375rem, 1.9vw, 1.128125rem);
        --font-size-heading-sm: clamp(1.30625rem, 3.61vw, 2.01875rem);
        --font-size-heading-md: clamp(1.78125rem, 4.56vw, 2.73125rem);
        --font-size-heading-lg: clamp(2.01875rem, 5.225vw, 3.5625rem);
        --font-size-hero: clamp(2.1375rem, 6.175vw, 4.0375rem);
        --font-size-section: clamp(1.54375rem, 3.99vw, 2.1375rem);
    }

    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        margin-left: 15px;
        z-index: 1001;
    }

    .hamburger-menu {
        display: flex !important;
        margin-left: 10px;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
    }
    
    /* Ensure bottom drawer is visible on tablet */
    .bottom-drawer-toggle {
        display: flex !important;
        bottom: 25px;
        right: 25px;
        width: 58px;
        height: 58px;
        font-size: 1.25rem;
    }
    
    .bottom-drawer {
        display: block !important;
        height: 0;
        max-height: 0;
    }
    
    .bottom-drawer.active {
        height: 70vh;
        max-height: 70vh;
    }

    /* Show nav-links when active on tablet */
    .nav-links.active {
        display: flex !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Use dynamic padding for tablet nav container */
    .nav-container {
        padding-right: calc(var(--hamburger-right-padding) + 0.5rem);
    }
    
    .logo-image {
        height: 70px;
    }
}

/* Fine-tune tablet hamburger positioning */
@media (min-width: 768px) and (max-width: 850px) {
    :root {
        --hamburger-right-padding: clamp(1.1875rem, 2.85vw, 1.6625rem);
    }
}

@media (min-width: 851px) and (max-width: 1024px) {
    :root {
        --hamburger-right-padding: clamp(1.425rem, 3.325vw, 1.9rem);
    }
}

/* Mobile-specific font optimizations */
@media (max-width: 767px) {
    /* Further optimize font sizes for small screens - Reduced by 5% */
    :root {
        --font-size-body: clamp(0.83125rem, 2.09vw, 0.95rem);
        --font-size-body-lg: clamp(0.95rem, 2.375vw, 1.06875rem);
        --font-size-heading-sm: clamp(1.06875rem, 3.8vw, 1.6625rem);
        --font-size-heading-md: clamp(1.425rem, 4.75vw, 2.1375rem);
        --font-size-heading-lg: clamp(1.78125rem, 5.7vw, 2.6125rem);
        --font-size-hero: clamp(1.6625rem, 6.65vw, 2.85rem);
        --font-size-section: clamp(1.30625rem, 4.275vw, 1.78125rem);
        --line-height-body: 1.5;
    }

    }

/* Enhanced Golden Ratio Breakpoint System */
/* Small phones */
@media (max-width: 480px) {
    :root {
        --sidebar-ratio: var(--sidebar-ratio-sm);
    }
    
    .logo-image {
        height: 50px;
    }
}

/* Large phones */
@media (min-width: 481px) and (max-width: 767px) {
    :root {
        --sidebar-ratio: var(--sidebar-ratio-md);
    }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --sidebar-ratio: var(--sidebar-ratio-lg);
    }
}

/* Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
    :root {
        --sidebar-ratio: var(--sidebar-ratio-xl);
    }
}

/* Large desktop */
@media (min-width: 1441px) {
    :root {
        --sidebar-ratio: var(--sidebar-ratio-xxl);
    }
}

/* Bottom Drawer Navigation */
.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.bottom-drawer-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--gold);
    color: var(--dark-navy);
    border: 2px solid var(--gold);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    transition: all 0.3s ease;
    font-size: 1.4rem;
    font-weight: bold;
}

.bottom-drawer-toggle:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.bottom-drawer-toggle.active {
    transform: rotate(180deg);
    background: var(--gold-dark);
}

.bottom-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--gold);
    z-index: 9998;
    transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.bottom-drawer.active {
    height: 70vh;
    max-height: 70vh;
}

.drawer-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.drawer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 600;
    margin: 0;
}

.drawer-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.drawer-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.drawer-tab:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

.drawer-tab.active {
    background: var(--gold);
    color: var(--dark-navy);
    border-color: var(--gold);
}

.drawer-content {
    height: calc(100% - 80px);
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(0, 0, 0, 0.3);
}

.drawer-content::-webkit-scrollbar {
    width: 6px;
}

.drawer-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.drawer-content::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.drawer-content::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.drawer-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.drawer-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-section {
    margin-bottom: 1.5rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.category-item {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover::before {
    left: 100%;
}

.category-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.category-item i {
    color: var(--gold-light);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.category-item:hover i {
    transform: translateX(3px);
}

.related-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.related-product {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.related-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.related-product:hover::before {
    transform: scaleX(1);
}

.related-product:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.related-product h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.related-product p {
    color: var(--cream);
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.related-product-link {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.related-product-link:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.related-product-link::after {
    content: '→';
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.related-product-link:hover::after {
    transform: translateX(2px);
}

/* Bottom Drawer styles continued from above */

/* Responsive Bottom Drawer */
@media (max-width: 767px) {
    .bottom-drawer-toggle {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }

    .bottom-drawer.active {
        height: 80vh;
    }

    .drawer-header {
        padding: 0.75rem 1rem;
    }

    .drawer-title {
        font-size: 1.1rem;
    }

    .drawer-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8125rem;
    }

    .category-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .category-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8125rem;
    }

    .related-products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .bottom-drawer.active {
        height: 85vh;
    }

    .drawer-tabs {
        gap: 0.25rem;
    }

    .drawer-tab {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .category-items {
        grid-template-columns: 1fr;
    }

    .drawer-content {
        padding: 0.75rem;
    }
}

/* Bottom Drawer Content Styling */
.drawer-section {
    margin-bottom: 1.5rem;
}

.drawer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-section h3 i {
    font-size: 1rem;
}

.product-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-category {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-category:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateX(5px);
}

.product-category.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.category-desc {
    font-size: 0.8rem;
    color: var(--silver);
    opacity: 0.8;
}

.product-category i:last-child {
    color: var(--gold);
    margin-left: 0.5rem;
}

.product-category.active i:last-child {
    color: var(--gold-light);
}

/* Related Products Styling */
.related-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-product {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-product:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.related-product-image {
    margin-right: 1rem;
    flex-shrink: 0;
}

.related-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.related-product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
}

.related-product-desc {
    font-size: 0.8rem;
    color: var(--silver);
    opacity: 0.8;
    line-height: 1.4;
}

.related-product i {
    color: var(--gold);
}

/* Tab Content Styling */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Drawer Handle Styling */
.drawer-handle {
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin: 0.5rem auto;
    cursor: grab;
}

.drawer-handle:active {
    cursor: grabbing;
}

/* Desktop bottom drawer adjustments */
@media (min-width: 1025px) {
    .bottom-drawer-toggle {
        display: flex !important;
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .bottom-drawer {
        display: block !important;
        height: 0;
        max-height: 0;
    }

    .bottom-drawer.active {
        height: 60vh;
        max-height: 60vh;
    }
}

/* Contact Section - Clean Card Design */
.contact-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-blue) 50%, var(--dark-navy) 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    position: relative;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

/* Contact Grid Layout - 3 Cards with Maximized Map */
.contact-grid {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 650px;
    align-items: stretch;
}

/* Contact Card Base Styles */
.contact-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.22);
    transition: all var(--transition-duration) ease;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Company Info Card - Top Left */
.company-info-card {
    grid-column: 1;
    grid-row: 1;
}

.company-info-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.company-name-th {
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.company-name-en {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.company-address {
    text-align: left;
}

.company-address p {
    color: var(--cream);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.address-th {
    font-size: 1.2rem;
    color: var(--cream);
    text-align: left;
}

.address-en {
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 500;
    text-align: left;
}

.company-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.company-contact p {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-phone {
    font-size: 1.4rem;
    color: var(--gold-dark);
}

.contact-email {
    font-size: 1.2rem;
    color: var(--cream);
}

/* QR Codes Card - Bottom Left */
.qr-codes-card {
    grid-column: 1;
    grid-row: 2;
}

.qr-codes-card .card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
}

.qrcode-container {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    box-shadow: none;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all var(--transition-duration) ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
}

.qrcode-container:hover {
    transform: none;
    box-shadow: none;
}

.qrcode-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    margin-bottom: 0.45rem;
    object-fit: cover;
    display: block;
    align-self: flex-start;
}

.qrcode-text h3 {
    color: var(--gold);
    font-size: 1rem;
    margin: 0.1rem 0 0.1rem 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.qrcode-text p {
    color: var(--cream);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
}

/* Map Card - Right Side (Maximized) */
.map-card {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 0;
    position: relative;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-link {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.map-link a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color var(--transition-duration) ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.map-link a:hover {
    color: var(--gold);
}

.map-link a::after {
    content: '↗';
    font-size: 0.7rem;
    transition: transform var(--transition-duration) ease;
}

.map-link a:hover::after {
    transform: translate(2px, -2px);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 1.5rem;
    }

    .company-info-card {
        grid-column: 1;
        grid-row: 1;
    }

    .qr-codes-card {
        grid-column: 1;
        grid-row: 2;
    }

    .map-card {
        grid-column: 1;
        grid-row: 3;
        height: 400px;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-grid {
        gap: 1.25rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .qr-codes-card .card-content {
        padding: 1.5rem;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .company-name-th {
        font-size: 1.1rem;
    }

    .company-name-en {
        font-size: 1.1rem;
    }

    .map-card {
        height: 350px;
    }

    .qrcode-image {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 2rem 0.5rem;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .card-content {
        padding: 1rem;
    }

    .qr-codes-card .card-content {
        padding: 1rem;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .qrcode-image {
        width: 60px;
        height: 60px;
    }

    .map-card {
        height: 300px;
    }

    .map-link {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
    }

    .map-link a {
        font-size: 0.8rem;
    }
}

/* Web view specific adjustments - Must be last to override responsive styles */
@media (min-width: 1025px) {
    .card-content {
        padding: 3rem 3rem 3rem 3rem !important; /* Match all card padding */
    }
    .company-info-card .card-content {
        padding: 3rem 3rem !important; /* Extra space for address card on desktop */
    }

    .qr-codes-card .card-content {
        gap: 1.5rem !important; /* Space between QR codes */
        padding: 2rem 2rem !important;
    }
    
    .qrcode-container {
        margin: 0.4rem !important; /* Margin around each QR container */
        padding: 1.1rem !important; /* Prevent text hugging the edges */
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    .qrcode-image {
        width: 112px;
        height: 112px;
        margin-bottom: 0.6rem;
    }

    .qrcode-text h3 {
        font-size: 1.1rem !important; /* Larger on desktop */
    }

    .qrcode-text p {
        font-size: 1rem !important; /* Larger on desktop */
    }
}