:root {
    /* Atlassian-inspired Palette */
    --primary-color: #0052CC;
    /* Deep Blue */
    --primary-hover: #0065FF;
    --secondary-color: #42526E;
    /* Slate Gray */
    --text-color: #172B4D;
    /* Dark Navy for Text */
    --bg-color: #FAFBFC;
    /* Ice White Background */
    --white: #ffffff;
    --border-color: #DFE1E6;
    --success-color: #36B37E;
    --warning-color: #FFAB00;

    /* Shadows & Elevations */
    --shadow-sm: 0 1px 1px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
    --shadow-md: 0 4px 8px -2px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);
    --shadow-lg: 0 8px 16px -4px rgba(9, 30, 66, 0.25), 0 0 1px rgba(9, 30, 66, 0.31);

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 20px;
}

/* Header */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    /* Standard Atlassian header height */
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.cart-icon {
    position: relative;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
    text-decoration: none !important;
}

.cart-icon:hover {
    background-color: rgba(9, 30, 66, 0.08);
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #DE350B;
    /* Red badge */
    color: var(--white);
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 0 2px var(--white);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 3px;
    /* Slightly rounded for corporate feel */
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    transition: background 0.1s ease-out, box-shadow 0.1s ease-out;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: rgba(9, 30, 66, 0.08);
    /* Neutral gray bg */
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: rgba(9, 30, 66, 0.13);
}

/* Minimal Hero Section */
.hero-minimal {
    background-color: #FAFBFC;
    background-image: url('../img/hero-abstract-left.png'), url('../img/hero-abstract-right.png');
    background-repeat: no-repeat;
    background-position: left, right;
    /* background-size: 50% auto, 50% auto; */
    /* background-size: cover; */
    /* Or contain depending on image aspect ratio, cover usually safer for hero */
    padding: 100px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Ensure text is readable relative to the background - adding a subtle scrim if needed, 
   but usually better to just have dark text on light bg */
.hero-minimal h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: #172B4D;
    /* Revert to Dark Navy */
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero-minimal p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    /* Revert to Slate Gray */
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero-search-container-minimal {
    position: relative;
    max-width: 600px;
    z-index: 2;
}

.hero-search-input {
    width: 100%;
    padding: 14px 16px;
    padding-right: 48px;
    /* Space for icon on right now */
    border-radius: 4px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: none;
}

.hero-search-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.hero-search-icon-minimal {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    pointer-events: none;
}


/* Main Layout (Sidebar + Grid) */
.market-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 40px 0;
}

/* Sidebar */
.sidebar-filters h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-link {
    color: var(--text-color);
    font-size: 0.95rem;
    display: block;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
}

.filter-link:hover {
    background-color: rgba(9, 30, 66, 0.08);
    text-decoration: none;
    color: var(--text-color);
}

.filter-link.active {
    background-color: #DEEBFF;
    color: var(--primary-color);
    font-weight: 500;
}

/* Extensions Grid */
.extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.extension-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Equal height */
}

.extension-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
}

.card-header {
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: #EAE6FF;
    /* Soft purple/blue background */
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-color);
}

.card-vendor {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.card-body {
    padding: 0 20px 20px;
    flex-grow: 1;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    /* Space out price and rating */
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.card-price-tag {
    font-weight: 600;
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    margin-bottom: 16px;
    color: var(--text-color);
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
}

.mobile-menu {
    display: none;
}

@media (max-width: 900px) {
    .market-layout {
        grid-template-columns: 1fr;
        /* Stack sidebar on top */
    }

    .sidebar-filters {
        display: none;
        /* Hide sidebar by default on mobile for now, or make collapsible */
    }

    .extensions-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        box-shadow: var(--shadow-lg);
    }

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 12px 0;
        color: var(--text-color);
        border-bottom: 1px solid #f0f0f0;
    }
}

/* Details Page Specifics */
.detail-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.detail-header-block {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.detail-icon-large {
    width: 64px;
    height: 64px;
    background-color: #EAE6FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.breadcrumbs {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 24px;
}