:root {
    --bg-dark: #0a0f1b; 
    --bg-light: #141b2d; 
    --text-primary: #e8eef7; 
    --text-secondary: #98aace; 
    --accent-color: #4184bb; 
    --accent-color-glow: rgba(91, 143, 185, 0.3); 
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 80px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark); 
    color: var(--text-primary);
    line-height: 1.7;
    position: relative; 
    overflow-x: hidden; 
}

/* This rule applies the static, blurred background ONLY to non-home pages */
body.other-page::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url('/images/aurora.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(100px); 
    transform: scale(1.2); 
}

/* START: Video Background Styles (for home-page) */
.background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Sits behind all content */
    overflow: hidden;
    background-color: var(--bg-dark); /* Fallback color */
}

.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Covers the screen without distortion */
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* This creates the slow fade */
}

.background-video.is-visible {
    opacity: 1;
}
/* END: Video Background Styles */

body::after {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
    background-color: rgba(10, 15, 27, 0.5); 
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-title,
.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.page-subtitle {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-card,
.content-section,
.auth-container,
.order-summary,
.modal,
.cart-modal,
.order-history-item,
.admin-list-item,
.confirmation-box {
    background: rgba(20, 27, 45, 0.7); 
    backdrop-filter: blur(10px); 
    border-radius: 16px;
    border: 1px solid rgba(139, 157, 195, 0.1); 
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    min-height: 200px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 10px var(--accent-color-glow);
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#main-header {
    background: transparent;
    padding: 0 2rem;
    position: fixed;
    width: 100%;
    height: var(--header-height);
    top: 0;
    z-index: 1004;
    transition: background-color 0.4s ease;
}
#main-header.scrolled {
    background-color: rgba(20, 27, 45, 0.8); 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 157, 195, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#main-header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    transition: filter 0.4s ease, opacity 0.3s ease;
    z-index: 10; /* Much lower base z-index */
    position: relative; /* Ensure z-index takes effect */
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05); /* Optional: Adds a subtle hover effect */
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.main-nav {
    display: flex;
    gap: 1.5rem;
}
.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.main-nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.search-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--bg-dark);
    border: 1px solid rgba(139, 157, 195, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}
.search-form:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color-glow);
}
.search-form input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.6rem 1rem 0.6rem 0;
    font-size: 0.9rem;
}
.search-form input:focus {
    outline: none;
}
.search-form button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0 0.5rem 0 1rem;
    cursor: pointer;
    font-size: 1rem;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header-cart {
    position: relative;
}

.search-results-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(20, 27, 45, 0.9); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 157, 195, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    z-index: 1100;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}
.suggestion-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.suggestion-item-link:hover .suggestion-item {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    border-left-color: var(--accent-color);
}
.suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}
.product-name {
    font-weight: 500;
    color: var(--text-primary);
}
.product-price {
    font-size: 0.8rem;
    color: var(--accent-color);
}
.suggestion-arrow {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}
.suggestion-item-link:hover .suggestion-arrow {
    opacity: 1;
    transform: translateX(0);
}
.search-highlight {
    background-color: rgba(91, 143, 185, 0.2);
    color: var(--accent-color);
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
}
.loading-state {
    color: var(--text-secondary);
    font-style: italic;
    justify-content: flex-start;
    gap: 0.5rem;
}
.loading-state .fa-spinner {
    color: var(--accent-color);
}
.no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}
.no-results i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.view-all-link {
    border-top: 1px solid rgba(139, 157, 195, 0.2);
    margin-top: 0.5rem;
}
.view-all {
    color: var(--accent-color);
    font-weight: 500;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: flex-start;
}
.view-all-link:hover .view-all {
    background-color: rgba(91, 143, 185, 0.1);
    border-left-color: var(--accent-color);
}

#hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: transparent; 
}
.hero-overlay {
   display: none; 
}
.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-logo {
    width: 150px; 
    height: 150px;
    margin-bottom: 1.5rem; 
}
/* --- MODIFIED CSS FOR THEME-ALIGNED ANIMATED TITLE --- */
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 5rem; 
    margin-bottom: 2rem;
    line-height: 1.2;
    
    /* Custom colors just for the hero title */
    background: linear-gradient(
        90deg, 
        #2d5a87,        /* Dark blue */
        #2784d6,        /* Medium blue */
        #ffffff,        /* White */
        #4f96e7,        /* Light blue */
        #2f72b4         /* Back to dark blue */
    );
    
    background-size: 300% 100%; 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    /* Slow smooth animation */
    animation: gentle-flow 20s ease-in-out infinite;
}

@keyframes gentle-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-subheading {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px var(--accent-color-glow);
    filter: brightness(1.2);
}
.btn-secondary {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent-color-glow);
}
.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-checkout:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.content-section {
    padding: 3rem; 
}

#products, #philosophy {
    padding: 6rem 0;
    position: relative;
    z-index: 3;
    background-color: transparent;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem;
    justify-content: center;
}
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}
.product-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card-link:hover .product-card {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}
.card-image-wrapper {
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card-link:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.card-content {
    padding: 1.5rem;
}
.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.price {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.philosophy-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
}
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.notification {
    position: absolute;
    top: 55px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: var(--accent-color);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.notification::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent var(--accent-color) transparent;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 27, 0.8);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1600;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.modal-overlay.active, .modal.active {
    opacity: 1;
    visibility: visible;
}
.modal.active {
    transform: translate(-50%, -50%) scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-content {
    padding: 3rem;
}
.modal-content .product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.modal-content .product-image-section img {
    width: 100%;
    border-radius: 8px;
}
.modal-content .product-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}
.modal-content .product-price {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}
.modal-content .product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.modal-content .btn-primary {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

#auth-page, #admin-page, #checkout-page {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background-color: transparent;
}
.auth-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 3rem;
}
.auth-form .form-group {
    margin-bottom: 1.5rem;
}
.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.auth-form input {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(139, 157, 195, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
}
.auth-form button {
    width: 100%;
}
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}
.auth-switch a {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}
.error-message {
    background-color: #5c1a24;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
}

.auth-links, .user-actions {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}
.auth-links a, .user-actions a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.auth-links a:hover, .user-actions a:hover {
    color: var(--text-primary);
}
.auth-links span, .user-actions span {
    margin: 0 0.5rem;
}
.logout-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}
.logout-btn:hover {
    color: var(--text-primary);
}

.checkout-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}
.order-summary {
    padding: 2rem;
    position: sticky;
    top: 120px;
}
.order-summary h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}
.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.summary-item-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}
.summary-product-name {
    color: var(--text-primary);
    font-weight: 500;
}
.summary-product-quantity {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.summary-item-price {
    font-weight: bold;
    white-space: nowrap;
}
#summary-items-container {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
}
.total-line {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 157, 195, 0.2);
}
.total-line span {
    font-size: 1.25rem;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.summary-line span:last-child {
    font-weight: bold;
    color: var(--text-primary);
}

.header-cart-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-cart-btn:hover {
    color: var(--text-primary);
}
.cart-modal {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease-in-out;
}
.cart-modal.active {
    right: 0;
}
.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(139, 157, 195, 0.2);
}
.cart-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0;
}
.cart-modal-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(139, 157, 195, 0.2);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
.cart-modal-footer .summary-line {
    font-size: 1.2rem;
}
.cart-modal-footer .summary-line span:last-child {
    color: var(--accent-color);
}
.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(139, 157, 195, 0.1);
}
.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1.5rem;
}
.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 1.5rem;
}
.cart-item-details h3, .cart-item-details .price {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
}
.cart-item-details h3 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.cart-item-details .price {
    color: var(--text-secondary);
}
.cart-item-quantity {
    display: flex;
    align-items: center;
}
.btn-qty {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 28px;
    transition: background-color 0.3s ease;
}
.btn-qty:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.quantity-display {
    margin: 0 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.profile-details .profile-field {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 157, 195, 0.2);
    padding-bottom: 1rem;
}
.profile-details .profile-field:last-child {
    border-bottom: none;
}
.profile-details label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.profile-details p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}
.order-history-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.order-history-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: rgba(20, 27, 45, 0.9);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(139, 157, 195, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.order-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.25rem;
}
.order-id {
    font-family: monospace;
    font-size: 0.8rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--text-primary);
}
.order-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.order-products ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.order-product-item {
    color: var(--text-secondary);
    padding: 0.25rem 0;
}
.order-summary {
    text-align: right;
}
.order-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}
.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    align-self: flex-start;
}
.status-pending { background-color: #6c757d; }
.status-shipped { background-color: #17a2b8; }
.status-completed { background-color: #28a745; }
.status-cancelled { background-color: #dc3545; }
.tracking-info { margin-bottom: 0.5rem; }
.tracking-number { font-family: monospace; background-color: rgba(255, 255, 255, 0.1); padding: 2px 5px; border-radius: 3px; }

.admin-tabs {
    display: flex;
    border-bottom: 1px solid rgba(139, 157, 195, 0.2);
    margin-bottom: 2rem;
}
.tab-link {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.tab-link:hover {
    color: var(--text-primary);
}
.tab-link.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.admin-list-item {
    display: grid;
    align-items: center;
    padding: 1.5rem;
    border-left: 4px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.admin-list-item:hover {
    background-color: rgba(20, 27, 45, 0.9);
    border-left-color: var(--accent-color);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.admin-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}
.product-row {
    grid-template-columns: 2fr 1fr 1fr;
}
.user-row {
    grid-template-columns: 1fr 1.5fr 0.5fr 1fr;
    gap: 1rem;
}
.order-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-start;
}
.order-main-info {
    flex-basis: 200px;
    flex-grow: 1;
}
.order-details-expanded {
    flex-basis: 200px;
    flex-grow: 1;
}
.order-status-management {
    flex-basis: 150px;
    flex-grow: 1;
}
.order-actions {
    flex-basis: 100px;
    flex-grow: 1;
}
.order-main-info, .order-details-expanded, .order-status-management {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.order-main-info .order-id { font-size: 0.8rem; }
.order-main-info .order-customer { font-weight: 500; color: var(--text-primary); }
.order-main-info .order-date { font-size: 0.9rem; color: var(--text-secondary); }
.order-details-expanded { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.order-details-expanded p { margin: 0; }
.order-details-expanded strong { color: #ccc; }
.status-select, .tracking-input {
    background-color: var(--bg-dark);
    border: 1px solid rgba(139, 157, 195, 0.2);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
}
.order-actions {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}
.btn-save-order {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.btn-save-order:hover {
    filter: brightness(1.2);
}
.user-role {
    font-family: monospace;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
    justify-self: start;
    text-transform: capitalize;
}
.order-row .order-total {
    font-weight: bold;
    color: var(--accent-color);
    text-align: right;
}
.product-actions {
    text-align: right;
}
.btn-edit, .btn-delete {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    margin-left: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-edit:hover, .btn-delete:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}
.btn-edit {
    background-color: #4a4a4a;
}
.btn-delete {
    background-color: #9b2c2c;
}

.confirmation-box {
    padding: 3rem;
}
#order-id {
    background: var(--bg-dark) !important;
    border: 1px solid rgba(139, 157, 195, 0.2) !important;
}

@media (max-width: 900px) {
    .modal-content .product-detail-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .order-summary { position: static; margin-top: 3rem; }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .hero-logo {
        width: 120px;
        height: 120px;
        
    }
    .hero-content h1 {
        font-size: 3rem; 
    }
    .hero-subheading {
        font-size: 1.5rem;
    }
    .page-title { font-size: 2.2rem; }
    .search-results-dropdown { left: -1rem; right: -1rem; width: auto; max-height: 300px; }
    .suggestion-content { gap: 0.1rem; }
    .product-name { font-size: 0.9rem; }
    .product-price { font-size: 0.75rem; }
    .content-section { padding: 1.5rem; } 
}
.message-display {
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 1.5rem;
    display: none;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    text-align: center;
}

.tech-card {
    background: rgba(20, 27, 45, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(139, 157, 195, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 3rem 1.5rem; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.tech-card svg {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    fill: var(--accent-color);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tech-card:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-color-glow));
}

.tech-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0; 
}
/* Mobile Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    z-index: 9999; /* Highest possible */
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger-menu.active {
    position: relative;
    z-index: 1005; /* Keep highest when active */
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: rgba(20, 27, 45, 0.95); /* More opaque */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 1001; /* Above overlay and logo */
    padding: 80px 1.5rem 2rem;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    right: 0;
}
body.mobile-menu-open .logo {
    z-index: 1 !important; /* Force behind everything */
    opacity: 0.3;
    pointer-events: none; /* Prevent clicks on logo when menu is open */
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 27, 0.7);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1000; /* Above logo */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.mobile-nav-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(139, 157, 195, 0.2);
}

.mobile-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(91, 143, 185, 0.2);
    border: 1px solid rgba(91, 143, 185, 0.3);
}

.mobile-cart-btn:hover {
    color: var(--text-primary);
    background: rgba(91, 143, 185, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-color-glow);
}

/* Auth states styling */
#mobile-auth-links,
#mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

#mobile-user-actions a {
    background: rgba(255, 255, 255, 0.05);
}

#mobile-user-actions a#mobile-logout-btn {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

#mobile-user-actions a#mobile-logout-btn:hover {
    background: rgba(220, 53, 69, 0.25);
}

#mobile-user-actions a#mobile-admin-link {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.2);
    color: #51cf66;
}

#mobile-user-actions a#mobile-admin-link:hover {
    background: rgba(40, 167, 69, 0.25);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    .header-left {
        gap: 1rem;
        
    }
    
    .logo {
        margin-left: 0;
        font-size: 1.6rem;
        z-index: 10;
    }
    
    .main-nav, .search-container, .header-actions {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 9999;
    }
    .hamburger-menu.active ~ .logo,
    .mobile-nav.active + * .logo {
        z-index: 1 !important;
        opacity: 0.3;
    }        
    
    #main-header .container {
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subheading {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .page-title, .section-title {
        font-size: 2.2rem;
    }
    
    /* Prevent zooming on mobile inputs */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Fix for iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .mobile-nav {
            height: -webkit-fill-available;
            padding-bottom: constant(safe-area-inset-bottom);
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .mobile-nav {
        width: 85%;
        padding: 70px 1rem 1.5rem;
    }
    
    .mobile-nav-menu a {
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }
}


/* Fix viewport scaling issues */
@viewport {
    width: device-width;
    zoom: 1.0;
}

@-ms-viewport {
    width: device-width;
}
@media (max-width: 768px) {
    .modal-content {
        /* Reduce padding on smaller screens so content isn't cramped */
        padding: 2rem 1.5rem;
    }

    .modal-content .product-title {
        /* Decrease title font size from 3rem to 2.2rem */
        font-size: 2.2rem;
        line-height: 1.2; /* Adjust line height for the new size */
    }

    .modal-content .product-price {
        /* Decrease price font size from 1.8rem to 1.6rem */
        font-size: 1.6rem;
        margin-bottom: 1.5rem; /* Slightly reduce space below the price */
    }

    .modal-content .product-description {
        /* Decrease description font size from 1.1rem to 1rem */
        font-size: 1rem;
    }

    .modal-content .btn-primary {
        /* Make the button font slightly smaller */
        font-size: 1rem;
    }
}
/* START: Mobile Toast Notification */
.mobile-notification-toast {
    position: fixed;
    /* Position it just below the header */
    top: calc(var(--header-height) + 10px); 
    left: 50%;
    /* Start it off-screen and invisible */
    transform: translate(-50%, -30px);
    opacity: 0;
    
    background-color: var(--accent-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 30px; /* Pill shape */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    z-index: 9999; /* Highest priority */
    pointer-events: none; /* User can't click on it */
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.mobile-notification-toast.show {
    /* Move it into view and make it visible */
    transform: translate(-50%, 0);
    opacity: 1;
}
.hero-subheading,
.hero-content p,
.page-title,
.section-title,
.card-content h3,
.main-nav a,
.tech-card h3,
.modal-content .product-title,
.modal-content .product-price {
    /* A soft, dark shadow slightly below the text */
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}