:root {
    --primary-color: #4c39d6;
    --secondary-color: #6d55ed;
    --accent: #8d7df7;
    --text-primary: #2b2140;
    --text-secondary: #736687;
    --text-faint: #a79cb8;
    --background: #f5f7fc;
    --background-soft: #eef1f9;
    --panel: #ffffff;
    --panel-alt: #f9faff;
    --border: #e3e6f2;
    --border-strong: #d3d8e8;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --gradient: linear-gradient(120deg, #4c39d6, #6d55ed 60%, #8d7df7);
    --gradient-soft: linear-gradient(150deg, #f0edff, #f5f7ff);
    --shadow-xs: 0 2px 4px -2px rgba(40, 20, 70, .15);
    --shadow-sm: 0 6px 16px -6px rgba(50, 30, 110, .18);
    --shadow-md: 0 14px 40px -12px rgba(55, 35, 120, .25);
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 26px;
    --focus-ring: 0 0 0 4px rgba(108, 90, 235, .18);
    --trans: .32s cubic-bezier(.55, .18, .3, .92);
    font-family: 'Segoe UI', 'Montserrat', 'Open Sans', system-ui, sans-serif;
}

/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    min-width: 1200px;
    overflow-x: auto;
}

body {
    background-color: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#navigateHome {
    text-decoration: none;
    /* Removes underline */
    /* color: #0064E1; */

    color: var(--primary-color);
    /* Keeps the default text color */
    display: inline-block;
    /* Prevents underline from appearing due to inline element */
}

#navigateHome:visited,
#navigateHome:hover,
#navigateHome:focus {
    text-decoration: none;
    /* Ensures no underline on visit, hover, or focus */
    /* color: #0045bc; */
    color: rgb(215, 215, 215);
    /* Ensures color stays consistent */
}

#navigateHome h1 {
    margin: 0;
}

/* Company Name */
.Companyname {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 0.8rem;
    margin: 0;
    box-shadow: var(--shadow);
}

.company-logo img {
    width: 100x;
    height: 100px;
    border-radius: 50%;
    margin-right: 0.5rem;

}

.Companyname h1 {
    color: white;
    font-size: 2rem;
    letter-spacing: 2px;
}

.company-logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Header Navigation */
.Header-bar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.Header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.company-logo {
    flex-shrink: 0;
}

.Header-nav {
    margin-left: auto;
    margin-right: 100px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.Header-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.Header-nav ul li {
    position: relative;
}

.Header-nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: #000000;
    text-decoration: none;
    padding: 6px 0;
    display: inline-block;
    transition: color 0.2s;
    position: relative;
    border-radius: 6px;
}

.Header-nav ul li a::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 4px;
    background: #791da0;
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(.4, 0, .2, 1);
}

.Header-nav ul li a:hover::after,
.Header-nav ul li a.active::after {
    width: 100%;
}

.Header-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.Header-nav a:hover {
    background: transparent;
    color: #000;
}

.location-select select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.location-select select:hover {
    border-color: #007bff;
}

.location-select {
    flex-shrink: 0;
}

.search-box {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    padding: 0.4rem 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.search-box button {
    padding: 0.4rem 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.header-icons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: 0.8rem;
}

.likes-btn,
.profile-btn {
    font-size: 1rem;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.likes-btn a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.likes-btn a:hover {
    color: #ff4d6d;
    /* Change to your preferred hover color */
}

.likes-btn.active i {
    color: #ff4d6d;
}

.likes-btn .item-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4d6d;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

.likes-btn {
    position: relative;
}

/* Profile dropdown styles */
.profile-btn {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
    margin-top: 10px;
}

.profile-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.profile-dropdown a:hover {
    background-color: #f5f5f5;
}

.login-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
}

#signOutButton {
    border-top: 1px solid #f0f0f0;
}

.likes-btn:hover,
.profile-btn:hover {
    color: var(--primary-color);
}

.likes-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
}

.profile-btn a {
    color: inherit;
    text-decoration: none;
}

/* Header icon colors */
.likes-btn i,
.profile-btn i,
.announcement-btn i {
    color: black;
}

/* Essentials dropdown (match homepage) */
.essentials-dropdown {
    position: relative;
}

.essentials-dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.essentials-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(60, 60, 120, 0.13);
    border-radius: 12px;
    padding: 10px 0;
    z-index: 10000;
}

.essentials-dropdown:hover .dropdown-menu,
.essentials-dropdown:focus-within .dropdown-menu {
    display: block;
}

.essentials-dropdown .dropdown-menu li {
    list-style: none;
}

.essentials-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    color: #3E3E42;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.liked-items-container {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.liked-item-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    text-align: center;
    width: 200px;
}

.liked-item-card img {
    max-width: 100%;
    border-radius: 5px;
}

.liked-item-card h3 {
    margin: 0.5rem 0;
}

.liked-item-card .remove-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

.liked-item-card .remove-btn:hover {
    background-color: #ff1a1a;
}

/* Cart container */
.cart-container {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
    flex-grow: 1;
}

.cart-header {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.cart-header h1 {
    color: #333;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-header h1 i {
    color: #ff4d6d;
}

.cart-summary {
    margin-top: 0.5rem;
    color: #666;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
}

.cart-items {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    min-height: 400px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: #666;
}

.empty-cart i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.empty-cart p {
    margin-bottom: 2rem;
}

.browse-btn {
    background-color: #5239df;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.browse-btn:hover {
    background-color: #0052a3;
}

/* Cart item */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

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

.cart-item-image {
    width: 120px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cart-item-content p {
    color: #666;
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.cart-item-content .university-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.university-info-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.university-info-item i {
    color: #0066cc;
    margin-right: 0.3rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.delete-btn {
    background-color: #fff;
    color: #ff4d6d;
    border: 1px solid #ff4d6d;
}

.delete-btn:hover {
    background-color: #ffe5e5;
}

.view-btn {
    background-color: #0066cc;
    color: white;
}

.view-btn:hover {
    background-color: #0052a3;
}

/* Cart sidebar */
.cart-sidebar {
    height: fit-content;
}

.cart-summary-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.cart-summary-box h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #666;
}

.summary-actions {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.compare-btn {
    background-color: #5c41f8;
    color: white;
}

.compare-btn:hover {
    background-color: #0052a3;
}

.clear-btn {
    background-color: #fff;
    color: #666;
    border: 1px solid #ccc;
}

.clear-btn:hover {
    background-color: #f2f2f2;
}

.need-help {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.need-help h4 {
    margin-bottom: 0.5rem;
}

.need-help p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-btn {
    display: block;
    background-color: var(--accent);
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: #218838;
}

/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
    padding: 0 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #0066cc;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-section p {
    color: #bbb;
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #444;
    margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 100px 1fr;
    }

    .cart-item-actions {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}