.microsoft-page {
    font-family: lato;
    line-height: 1;
}
/* Banner Section */
.main-banner {
    background-image: url("https://nulodgic-static-assets.s3.us-east-1.amazonaws.com/app_direct/images/slider+background+image.png");
    background-repeat: no-repeat;
    background-position: bottom;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    height: 23.5rem;
}

/* Title & Logo */
.microsoft-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.microsoft-title h1 {
    font-family: lato;
    font-weight: 700;
    font-size: 4rem;
    color: white;
    font-weight: bold;
}

.microsoft-title img {
    height: 3rem;
}

/* Search Bar */
.microsoft-search-bar {
    position: relative;
    width: 23rem;
    height: 2rem;
    max-width: 500px;
    margin: 1rem auto 0.5rem auto;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    padding: 10px 15px;

    span {
        cursor: pointer;
    }
}

.microsoft-search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    padding-left: 10px;
    outline: none;
}

.microsoft-search-bar input::placeholder {
    color: #ccc;
    opacity: 0.9;
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Tabs */

/* Side Filters */



/* Optional: Add scroll to the filter if long */
.filter-section {
    width: 250px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: lato;
    max-height: 400px;
    overflow-y: auto;
    padding: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    cursor: pointer;
}

.filter-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.filter-body-head {
    display: flex;
    justify-content: space-between;
}

.filter-clear {
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.filter-body {
    padding: 16px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.filter-section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #002b5c;
    cursor: pointer;
}

.checkbox-item label {
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .filter-section {
        max-height: none;
        overflow: visible;
    }

    .filter-body {
        max-height: 0;
        overflow: hidden;
        padding: 0 16px;
    }

    .filter-section.open .filter-body {
        max-height: 500px;
        padding: 16px;
        border-top: 1px solid #e0e0e0;
        animation: dropdownFade 0.3s ease;
    }

    .filter-header::after {
        content: "▼";
        font-size: 12px;
        margin-left: auto;
        transform: rotate(0deg);
        transition: transform 0.2s ease;
    }

    .filter-section.open .filter-header::after {
        transform: rotate(180deg);
    }

    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: scaleY(0);
            transform-origin: top;
        }

        to {
            opacity: 1;
            transform: scaleY(1);
            transform-origin: top;
        }
    }
}


/* pagination */

.pagination-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.pagination-controls {
    text-align: center;
}

.pagination-controls button {
    padding: 6px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* loader */
.product-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 10px;
    color: #555;
    font-size: 1rem;
}

.product-loader::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top-color: #0078d4;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.filter-section {
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Skeleton Base Styles */
.skeleton-box,
.skeleton-line {
    background-color: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }

    50% {
        background-color: #e0e0e0;
    }

    100% {
        background-color: #f0f0f0;
    }
}

/* Skeleton Card Layout */
.skeleton-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: white;
    height: 250px;
    box-sizing: border-box;
}

.skeleton-box-product-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-filter-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Image Placeholder */
.skeleton-card .skeleton-box {
    width: 100%;
    height: 120px;
    border-radius: 8px;
}

/* Details Layout */


/* Title and Text Lines */
.skeleton-line.skeleton-title {
    width: 70%;
    height: 20px;
}

.skeleton-line.skeleton-text.short {
    width: 50%;
    height: 16px;
}

.skeleton-line.skeleton-text.long {
    width: 100%;
    height: 16px;
}




/* products-section */

.tab-content-wrapper {
    display: flex;
    width: 100%;
    gap: 1rem;
}


.products-section {
    width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
}

/* Product Card Container */
.msft-product-card {
    width: 100%;
    max-width: 300px;
    /* Limits max size for better layout */
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    /* Ensures content is stacked vertically */
    flex-direction: column;
    margin: auto;
}

/* Full clickable link wrapping the card */
.msft-product-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Makes link cover full card */
}

/* Product image wrapper */
.msft-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #eff0f2;
    border-radius: 20px;
    margin: 10px;
    height: 150px;
    overflow: hidden;
    /* Prevents image overflow */
}

/* Product image itself */
.msft-product-image img {
    width: 100px;
    /* Fixed width for consistency */
    height: 100%;
    object-fit: contain;
}

/* Product details wrapper */
.msft-product-details {
    padding: 10px;
    flex-grow: 1;
    /* Fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Product name styling */
.msft-product-name {
    font-size: 1rem;
    /* Responsive font */
    font-weight: bold;
    color: #1e1e1e;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product description styling */
.msft-product-blurb {
    color: #949aa7;
    font-size: 0.9rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.msft-product-name:hover,
.msft-product-blurb:hover {
    cursor: help;
}


.msft-product-ratting-box {
    display: flex;
    justify-content: space-between;
}

/* Price + rating container */
.msft-prize-ratting {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
}

/* Price text */
.msft-product-price {
    color: #686a6d;
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rating stars container */
.msft-product-ratting {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
}

/* Single star icon */
.rating_starItem {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.msft-prize-ratting-num {
    color: #25a8ff;
    margin: 0;
    font-size: 0.9rem;
}


.microsoft-tabs-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    width: 80%;
    box-sizing: border-box;
    scroll-behavior: smooth;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.microsoft-tabs-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.microsoft-tabs {
    /* display: flex; */
    align-items: center;
    gap: 0;
    display: inline-flex;
    /* Important: allows content to be scrollable */
    min-width: max-content;
}

.microsoft-tab {
    font-size: 1rem;
    font-family: lato;
    font-weight: 500;
    color: white;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.microsoft-tab.active {
    opacity: 1;
    font-weight: bold;
    border-color: white;
}

.dot-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    pointer-events: none;
    user-select: none;
    flex-shrink: 0;
}

.microsoft-tab,
.dot-separator {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Tab Content */
.microsoft-overview-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.microsoft-overview-card {
    display: flex;
    align-items: flex-start;
    background-color: #f5f8fc;
    border-radius: 12px;
    padding: 24px;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.microsoft-overview-card img {
    flex-shrink: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-content p {
    margin-top: 8px;
    color: #444;
}

.tab-main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
    width: 100%;
}

.show-more-tab {
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    padding: 6px 12px;
    margin-left: 12px;
    border: 1px solid #fff;
}

.show-more-tab:hover {
    background-color: #fff;
    color: #020b3b;
    transition: background-color 0.2s ease;
}

.side-panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: auto;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease-in-out;
}

.side-panel.open {
    display: block;
}

.side-panel-header {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 16px 20px;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 99;
}

.side-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.side-panel-header button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.side-panel-content {
    max-height: calc(100vh - 60px);
}

.side-panel-content button {
    display: block;
    color: #020b3b;
    width: 100%;
    padding: 1rem;
    padding-right: 4rem;
    text-align: left;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    box-sizing: border-box !important;
    border: none;
    position: relative;
    z-index: 1;
    font-size: large;
}

.side-panel-content button:first-child {
    font-size: xx-large;
    font-weight: 700;
}

.side-panel-content button:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, #25a8ff 50%, transparent 100%);
    z-index: -1;
}



.side-panel-content button:hover {
    background-color: #eaeaea;
}




/* Hide all tab content by default */
#microsoftTabContent>.microsoft-tab-content {
    display: none;
}

#microsoftTabContent>.microsoft-tab-content.active {
    display: block;
}

.microsoft-tab-content {
    margin: 50px 10px;
}





@media (max-width: 1024px) {
    .products-section {
        grid-template-columns: 1fr 1fr;
    }

    .microsoft-overview-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .microsoft-overview-card img {
        max-width: 90% !important;
    }

    .card-content {
        align-items: center !important;
    }

    .microsoft-title {
        h1 {
            font-size: 2rem;
        }
    }

    .microsoft-search-bar {
        height: 2.5rem !important;
        padding: 10px !important;
        width: 15rem;
    }

    .microsoft-tabs-wrapper {
        padding: 0 1rem !important;
    }

    .filter-section {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    .filter-wrapper {
        display: flex;
        justify-content: center;
    }

    .card-content p {
        font-size: medium;
    }

    .microsoft-title {
        flex-direction: column;

        h1 {
            font-size: 2rem;
        }
    }

    .tab-content-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .products-section {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .microsoft-search-bar input {
        font-size: 14px;
    }

    .msft-product-card {
        max-width: 100%;
    }

    .msft-product-image {
        height: 120px;
    }

    .msft-product-image img {
        width: 80px;
    }

    .side-panel-content button {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .side-panel-content button:first-child {
        font-size: 1.5rem;
    }

    .pagination-layout {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .rating_starItem {
        width: 13px !important;
    }
}