/*--------- Main Layout & Global Interface Styles ----------*/
:root {
    /* Pristine White & Theme Colors */
    --pure-white: #ffffff;
    --bg-color: #ffffff; 
    --off-white: #f8f9fa;
    --primary-brown: #8D6E63;
    --primary-hover: #6D4C41;
    --dark-coffee: #4E342E;
    --medium-brown: #5D4037;
    --text-main: #333333;
    --text-muted: #666666;
    --border-brown: rgba(141, 110, 99, 0.2);
    
    /* Functional Colors */
    --danger: #c0392b;
    --success: #27ae60;
    --link-blue: #0288D1;
    
    /* Glassmorphism Utilities */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
    --backdrop-blur: blur(16px);
    
    /* Responsive Shapes & Typography */
    --radius-main: clamp(12px, 2vw, 24px);
    --radius-small: clamp(6px, 1vw, 12px);
    --font-main: 'Poppins', sans-serif;
}
/* Global Reset to prevent layout shifting issues */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: clamp(1.5, 2vw, 1.8);
    overflow-x: hidden;
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    text-decoration: none;
    transition: color 0.3s ease-in-out, transform 0.3s ease;
}
a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-coffee);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: clamp(10px, 2vw, 20px);
}
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}
h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.3;
}
h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.4;
}
.container, .small-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(15px, 5vw, 50px);
    padding-right: clamp(15px, 5vw, 50px);
    max-width: 1400px;
    box-sizing: border-box;
}
.small-container {
    max-width: 1080px;
}
.row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(15px, 3vw, 30px);
    width: 100%;
}
/*--------- Glassmorphism Base Components ----------*/
.formcontainer, .accountinfo, .cartinfo, .contactForm, .legal-card, .competition-card, .stat-card, .job-card > div, .glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: var(--radius-main);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    padding: clamp(20px, 4vw, 40px);
    width: 100%;
    box-sizing: border-box;
    margin-top: clamp(15px, 3vw, 30px);
    margin-bottom: clamp(15px, 3vw, 30px);
}
.formcontainer:hover, .glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: var(--glass-shadow-hover);
}
/*--------- Layout Buttons ----------*/
.btn, .cta-button, .enter-btn, input[type=submit] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-brown);
    color: var(--pure-white);
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 35px);
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.1vw, 1.5px);
    text-align: center;
}
.btn:hover, .cta-button:hover, .enter-btn:hover, input[type=submit]:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(141, 110, 99, 0.35);
    color: var(--pure-white);
    border-color: rgba(255, 255, 255, 0.2);
}
/*--------- Layout: Navbar & Header ----------*/
.header {
    width: 100%;
    margin-bottom: clamp(20px, 4vw, 40px);
    position: relative;
    z-index: 10;
    background-color: var(--pure-white);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(10px, 2vw, 20px) clamp(15px, 5vw, 50px);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: top 0.4s ease, background 0.4s ease;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}
.logocontainer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.logo {
    height: clamp(40px, 6vw, 65px);
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
}
.logo:hover {
    transform: scale(1.08) rotate(-1deg);
}
#menucontainer {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: clamp(10px, 1.5vw, 25px);
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-links li a {
    color: var(--text-main);
    font-weight: 500;
    font-size: clamp(0.85rem, 1vw, 1rem);
    padding: clamp(6px, 1vw, 10px) clamp(10px, 1.2vw, 15px);
    border-radius: 30px;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: transparent;
}
.nav-links li a:hover {
    color: var(--primary-brown);
    background: rgba(141, 110, 99, 0.08);
    transform: translateY(-2px);
}
.exitmenutogglebtn {
    display: none;
    visibility: hidden;
    opacity: 0;
}
.nav-icons {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(10px, 2vw, 25px);
}
.cartpic, .accountpic, .wishlistpic {
    width: clamp(24px, 3vw, 30px);
    height: clamp(24px, 3vw, 30px);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
    filter: none;
}
.cartpic:hover, .accountpic:hover, .wishlistpic:hover {
    transform: scale(1.2) translateY(-2px);
}
.cartquantity {
    background: var(--danger);
    color: var(--pure-white);
    padding: clamp(2px, 0.5vw, 4px) clamp(6px, 1vw, 8px);
    border-radius: 50%;
    font-size: clamp(10px, 1vw, 12px);
    position: absolute;
    top: -10px;
    right: -12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(192, 57, 43, 0.4);
}
.menu-icon {
    width: clamp(28px, 4vw, 35px);
    margin-left: clamp(10px, 2vw, 20px);
    display: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}
/*--------- Layout: Departments Mega Menu ----------*/
.departmentsnavbar {
    display: none;
    position: fixed;
    top: clamp(70px, 10vw, 90px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: clamp(20px, 4vw, 35px);
    border-radius: var(--radius-main);
    box-shadow: var(--glass-shadow-hover);
    z-index: 999;
    width: clamp(280px, 90vw, 1000px);
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--glass-border);
}
.departmentsnavitems {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 20vw, 220px), 1fr));
    gap: clamp(10px, 2vw, 20px);
    padding: 0;
    margin: 0;
}
.departmentsnavitems li {
    list-style: none;
    padding: clamp(8px, 1.5vw, 15px);
    border-radius: var(--radius-small);
    transition: background 0.3s ease, transform 0.2s ease;
    background: transparent;
}
.departmentsnavitems li:hover {
    background: rgba(141, 110, 99, 0.05);
    transform: translateX(5px);
}
.departmentsnavitems li a {
    color: var(--text-main);
    font-weight: 500;
    display: block;
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    text-decoration: none;
}
/*--------- Layout: Search Bar ----------*/
.searchProductsContainer {
    width: 100%;
    max-width: clamp(300px, 80vw, 800px);
    margin: clamp(20px, 4vw, 40px) auto clamp(10px, 2vw, 20px);
    position: relative;
    z-index: 1;
    padding: 0 clamp(10px, 2vw, 20px);
    box-sizing: border-box;
}
.searchProductsDiv {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(5px, 1vw, 15px);
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    padding: clamp(6px, 1vw, 12px);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--glass-border);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.searchProductsDiv:focus-within {
    box-shadow: 0 6px 25px rgba(141, 110, 99, 0.15);
    border-color: rgba(141, 110, 99, 0.3);
}
#searchInput {
    flex: 1;
    min-width: 150px;
    border: none;
    background: transparent;
    padding: clamp(10px, 2vw, 15px) clamp(15px, 3vw, 25px);
    margin: 0;
    box-shadow: none;
    outline: none;
    color: var(--text-main);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}
#searchInput::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
#searchButton {
    background: var(--primary-brown);
    color: var(--pure-white);
    border: none;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 4vw, 40px);
    border-radius: 40px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
#searchButton:hover {
    background: var(--primary-hover);
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(141, 110, 99, 0.3);
}
/*--------- Layout: Footer ----------*/
.footer {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-top: 1px solid var(--glass-border);
    padding: clamp(40px, 8vw, 80px) 0 clamp(20px, 4vw, 40px);
    margin-top: auto;
    color: var(--text-main);
}
.footer .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}
.footer-col-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto clamp(30px, 5vw, 50px);
}
.footer-col-2 img {
    margin: 0 auto clamp(10px, 2vw, 15px);
    display: block;
}
.footer-col-3 {
    flex: 1;
    min-width: clamp(200px, 20vw, 300px);
    margin-bottom: clamp(20px, 4vw, 40px);
    padding: 0 clamp(10px, 2vw, 20px);
    text-align: center;
}
.footer-col-2 p, .footer-col-3 p {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6;
}
.footer-col-3 h3 {
    color: var(--dark-coffee);
    margin-bottom: clamp(15px, 3vw, 25px);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
.footer-col-3 h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-brown);
    border-radius: 2px;
}
.footer-col-3 ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.footer-col-3 ul li {
    margin-bottom: clamp(10px, 1.5vw, 15px);
}
.footer-col-3 ul li a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: inline-block;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}
.footer-col-3 ul li a:hover {
    color: var(--primary-brown);
    transform: translateY(-2px);
}
.footer-bottom {
    text-align: center;
    padding-top: clamp(15px, 3vw, 30px);
    border-top: 1px solid var(--border-brown);
    margin-top: clamp(20px, 4vw, 40px);
    color: var(--text-muted);
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
}
/*--------- Floating Action Buttons ----------*/
.fab-wrapper {
    position: fixed;
    bottom: clamp(20px, 4vw, 40px);
    right: clamp(20px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 20px);
    z-index: 2000;
}
.fab-btn {
    width: clamp(50px, 6vw, 65px);
    height: clamp(50px, 6vw, 65px);
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--glass-border);
    position: relative;
}
.fab-btn:hover {
    transform: scale(1.15) rotate(5deg);
    background: var(--pure-white);
    border-color: var(--primary-brown);
    box-shadow: 0 10px 25px rgba(141, 110, 99, 0.25);
}
.fab-btn img {
    width: clamp(25px, 3.5vw, 35px);
    height: clamp(25px, 3.5vw, 35px);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.5vw, 22px);
    margin-top: clamp(20px, 3vw, 28px);
}

.download-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(18px, 3vw, 26px);
    background: #fff;
    border: 1px solid rgba(141, 110, 99, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(62, 39, 35, 0.06);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.download-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(62, 39, 35, 0.11);
}

.download-option-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 14px;
    font-size: 1.5rem;
}

.windows-icon {
    color: #1769aa;
    background: #e8f3fb;
}

.android-icon {
    color: #287a3d;
    background: #e9f5eb;
}

.download-option h3 {
    margin: 0 0 8px;
    color: var(--dark-coffee, #3e2723);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}

.download-option > p {
    flex: 1;
    margin: 0 0 18px;
    color: var(--text-muted, #666);
    font-size: 0.9rem;
    line-height: 1.55;
}

.download-option .download-btn {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
}

.download-option .download-btn-windows {
    background: #1769aa;
    box-shadow: 0 5px 16px rgba(23, 105, 170, 0.2);
}

.download-option .download-btn-windows:hover,
.download-option .download-btn-windows:focus-visible {
    background: #0d568f;
    box-shadow: 0 8px 20px rgba(23, 105, 170, 0.28);
}

.download-option .download-btn-android {
    background: #287a3d;
    box-shadow: 0 5px 16px rgba(40, 122, 61, 0.2);
}

.download-option .download-btn-android:hover,
.download-option .download-btn-android:focus-visible {
    background: #1e6330;
    box-shadow: 0 8px 20px rgba(40, 122, 61, 0.28);
}

.download-option .download-btn:focus-visible,
.app-download-link:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

.download-file-type {
    margin-top: 10px;
    color: var(--text-muted, #666);
    font-size: 0.78rem;
}

.platform-instructions {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(141, 110, 99, 0.15);
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.platform-instructions h3 {
    margin-bottom: 14px;
    color: var(--dark-coffee, #3e2723);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.platform-instructions h3 i {
    margin-right: 8px;
    color: var(--primary-brown, #8d6e63);
}

.platform-instructions ol {
    margin: 0;
    padding-left: 22px;
    color: var(--text-muted, #666);
}

.platform-instructions li {
    padding-left: 4px;
    margin-bottom: 10px;
}

.platform-instructions li:last-child {
    margin-bottom: 0;
}

.installation-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-left: 3px solid #287a3d;
    background: #f0f8f1;
    color: #245b34;
    font-size: 0.85rem;
}

.footer-download-actions {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 250px;
}

.app-download-link {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    background: #fff;
    color: #3e2723 !important;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-download-link:hover,
.app-download-link:focus-visible {
    transform: translateY(-2px);
    color: #3e2723 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.app-download-link--android {
    background: #e9f5eb;
}

.app-download-link > i {
    flex: 0 0 26px;
    color: #1769aa;
    font-size: 1.45rem;
    text-align: center;
}

.app-download-link--android > i {
    color: #287a3d;
}

.app-download-link span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.app-download-link strong {
    font-size: 0.88rem;
}

.app-download-link small {
    color: #625955;
    font-size: 0.76rem;
}

.auth-footer-downloads {
    margin: 0 auto 24px;
    text-align: center;
}

.auth-footer-downloads h2 {
    margin-bottom: 14px;
    color: var(--dark-coffee, #3e2723);
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
}

.auth-footer-downloads .footer-download-actions {
    display: flex;
    justify-content: center;
    max-width: none;
}

@media (max-width: 700px) {
    .download-options {
        grid-template-columns: 1fr;
    }

    .download-option {
        align-items: stretch;
    }

    .download-option-icon {
        align-self: flex-start;
    }

    .footer-download-actions {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .auth-footer-downloads .footer-download-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download-option,
    .app-download-link {
        transition: none;
    }

    .download-option:hover,
    .app-download-link:hover {
        transform: none;
    }
}

/*--------- Mobile Responsive Adjustments ----------*/
@media (max-width: 992px) {
    .nav-links {
        gap: clamp(8px, 1vw, 15px);
    }
}
@media (max-width: 768px) {
    .searchProductsDiv {
        flex-direction: column;
        border-radius: var(--radius-main);
        padding: clamp(10px, 3vw, 20px);
    }
    #searchButton {
        width: 100%;
        border-radius: var(--radius-small);
        margin-top: 10px;
    }
}