:root {
    --primary-color: #0ea5e9; /* Light blue tech */
    --primary-hover: #0284c7;
    --accent-color: #f59e0b; /* Amber */
    --bg-warm: #f8fafc; /* Very light slate */
    --text-dark: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --card-bg: #ffffff;
    --border-warm: #e2e8f0;
}

/* Bootstrap color overrides to match --primary-color and --accent-color settings */
.text-primary {
    color: var(--primary-color) !important;
}
.bg-primary {
    background-color: var(--primary-color) !important;
}
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}
.border-primary {
    border-color: var(--primary-color) !important;
}


body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, span, td, th, label, .font-serif, .font-oswald {
    font-family: 'Inter', sans-serif !important;
}

body {
    color: var(--text-dark);
    background-color: var(--bg-warm);
    overflow-x: hidden;
}

/* Exempt FontAwesome classes from Times New Roman */
.fa, .fa-solid, .fa-regular, .fa-brands, [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* --- Navigation --- */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-warm);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.brand-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.cart-trigger {
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.65rem;
    padding: 0.35em 0.6em;
    background-color: var(--accent-color) !important;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-image-overlay {
    display: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    display: inline-block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.text-italic {
    font-style: italic;
    color: var(--primary-color);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border: 2px solid var(--text-dark);
    font-weight: 700;
}

.btn-outline-dark:hover {
    background-color: var(--text-dark);
    color: white;
}

/* --- About Section --- */
.rounded-about {
    border-radius: 4rem 4rem 4rem 0;
}

.about-img-wrapper {
    position: relative;
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: 20px;
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-color);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.feature-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid var(--border-warm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

/* --- Products --- */
.btn-filter {
    background: white;
    border: 2px solid var(--border-warm);
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.2s;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.btn-filter:hover, .btn-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.product-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 1.25rem;
    border: 1px solid var(--border-warm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.1);
    border-color: var(--primary-color);
}

.product-img-wrapper {
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-warm);
}

.product-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 5px;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2);
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
}

.fw-black {
    font-weight: 900 !important;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* --- Auth --- */
.auth-card {
    background: var(--card-bg);
    border-radius: 3rem;
    border: 1px solid var(--border-warm);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.auth-input {
    background: var(--bg-warm);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    font-weight: 500;
}

.auth-input:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

/* --- Admin --- */
.admin-card {
    background: var(--card-bg);
    border-radius: 2rem;
    border: 1px solid var(--border-warm);
}

.table thead th {
    border-bottom: 2px solid var(--border-warm);
}

/* --- Cart --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--card-bg);
    z-index: 2500;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(45, 36, 30, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2499;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.bg-light-warm {
    background-color: var(--bg-warm);
}

/* --- Modals --- */
.rounded-modal {
    border-radius: 3rem;
}

.confirm-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fee2e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* --- Footer --- */
.footer-section {
    background: #ffffff;
    color: var(--text-dark);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-warm);
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact li {
    color: #a3948a;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-warm);
    color: var(--text-dark);
    border: 1px solid var(--border-warm);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-warm);
}

/* --- Admin Dashboard --- */
.admin-tab-btn {
    background: white;
    border: 1px solid var(--border-warm);
    padding: 0.75rem 1.5rem;
    border-radius: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab-btn:hover, .admin-tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(139, 94, 60, 0.15);
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-primary-light { background-color: #fef3c7; }
.bg-warning-light { background-color: #fffbeb; }
.bg-success-light { background-color: #ecfdf5; }

.admin-nav::-webkit-scrollbar {
    height: 4px;
}

.admin-nav::-webkit-scrollbar-thumb {
    background: var(--border-warm);
    border-radius: 10px;
}

/* --- Toast --- */
.toast-custom {
    min-width: 320px;
    border-radius: 1.25rem;
    border: 1px solid var(--border-warm);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    background: var(--card-bg);
    color: var(--text-dark);
    margin-bottom: 12px;
    overflow: hidden;
    animation: slideDown 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast-success { border-left: 6px solid #10b981; }
.toast-error { border-left: 6px solid #ef4444; }
.toast-info { border-left: 6px solid #3b82f6; }

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.qty-control {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-val {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- My Orders --- */
.my-orders-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid var(--border-warm);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.order-header {
    border-bottom: 1px solid var(--border-warm);
}

.status-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

.status-step::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-warm);
    border-radius: 2px;
}

.status-step.active::after {
    background: var(--accent-color);
}

.status-step.completed::after {
    background: var(--primary-color);
}

.admin-card {
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.bg-primary-light {
    background-color: rgba(107, 73, 56, 0.1);
}

.feedback-history-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.feedback-history-container::-webkit-scrollbar {
    width: 6px;
}

.feedback-history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.feedback-history-container::-webkit-scrollbar-thumb {
    background: var(--border-warm);
    border-radius: 10px;
}

.bg-light-warm {
    background-color: var(--bg-warm);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .hero-section { height: auto; padding: 100px 0; }
}

@media (max-width: 576px) {
    .cart-sidebar { width: 100%; right: -100%; }
    .hero-title { font-size: 2.5rem; }
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    border-color: var(--accent-color) !important;
}

.blog-card img {
    transition: transform 0.4s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
}

.btn-add-to-cart-premium {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.btn-add-to-cart-premium:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: white !important;
}

/* Bento Grid & Light Mode Overrides for High Contrast */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bento-item {
    background: #ffffff;
    border: 1px solid var(--border-warm);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(14, 165, 233, 0.05), 0 10px 10px -5px rgba(14, 165, 233, 0.02);
    border-color: var(--primary-color);
}

.bento-hero-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
}

.bento-hero-medium {
    grid-column: span 2;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bento-hero-small {
    grid-column: span 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Custom Interactive Tech Categories */
.tech-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tech-cat-card {
    background: #ffffff;
    border: 1px solid var(--border-warm);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.tech-cat-card:hover {
    background: var(--bg-warm);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.05);
    transform: translateY(-5px);
}

.tech-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.tech-cat-card:hover .tech-cat-icon {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

/* Feature Showcase section */
.features-light-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-light-card {
    background: #ffffff;
    border: 1px solid var(--border-warm);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.feature-light-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.feature-light-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 991px) {
    .bento-container {
        grid-template-columns: 1fr;
    }
    .bento-hero-large, .bento-hero-medium, .bento-hero-small {
        grid-column: span 1;
        grid-row: span 1;
        min-height: auto;
    }
}

