:root {
    --brand-purple: #CC00FF;
    --brand-blue: #0099FF;
    --brand-light-blue: #00BBFF1A;
    --brand-light-purple: #C44DFF1A;
    --swap-blue: #44B0FF;
    --swap-purple: #8B44FF;
    --max-width: 1440px;
    --horizontal-padding: 2rem;
}
@media screen and (max-width: 768px) {
.container {
flex-direction: column;
padding: 1rem
}
.navbar a {
    display: block;
    margin-bottom: 10px;
}    
.card {
    width: 100%;
}
}

/* ------------- Location section  ------------- */
.search-section {
    background: #333333;
    color: #B3B3B3;
    font-size: 12px;
    font-weight: 400;
    padding: 12px 20px;
}

.location-search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-prefs {
    display: flex;
    align-items: center;
    gap: 20px;
}

.prefs-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.separator {
    margin: 0 8px;
    color: #666;
}

button, .auth-link {
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover, .auth-link:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .location-search-container {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .location-info {
        display: none;
    }
}

@media (max-width: 480px) {
    .location-search-container {
        flex-direction: column;
        align-items: flex-end;
    }
    .prefs-group {
        gap: 8px;
    }
    
    .user-prefs {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .location-info {
        display: none;
    }
}
/*--------------- Location section ------------- */

/*--------------- Sub-Navigation section ------------- */
:root {
    --brand-purple: #8B44FF;
    --brand-blue: #44B0FF;
    --max-width: 1440px;
    --horizontal-padding: 2rem;
}

.sub-navigation {
    padding: 1rem 0;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sub-navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--horizontal-padding);
    position: relative;
}

.logo {
    max-height: 70px;
    width: auto;
}

.search-container {
    flex: 1;
    max-width: 600px;
    min-width: 200px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 6px;
    padding: 0 1rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.search-button {
    background: linear-gradient(to top, var(--brand-purple), var(--brand-blue));
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.search-button:hover {
    opacity: 0.9;
}

.shop-preferences {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 1rem;
}

.icon-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.mobile-sidebar.active {
    transform: translateX(-100%);
}

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

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-sidebar {
    position: fixed;
    top: 0;
    left: 100%;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 1.5rem;
}

    .mobile-menu-toggle {
        display: block;
        margin-left: auto;
    }

    .search-container-mobile.mobile-search {
        margin-bottom: 2rem;
        margin-right: 20px;
    }
    .search-container {
        display: none;
    }

    .shop-preferences-mobile.mobile-preferences {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .shop-preferences {
        display: none;
    }

    .mobile-preferences .icon-button {
        padding: 0.75rem 0;
    }

    .mobile-preferences span[aria-hidden="true"] {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-sidebar,
    .sidebar-overlay {
        display: none !important;
    }
}
@media (max-width: 480px) {
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    max-width: 330px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 1.5rem;
}
}

/*---------------Main Nav section  ---------------*/
.main-nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

nav[aria-label="Primary"] {
    flex: 1;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    color: #666;
    padding: 0.5rem;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.nav-list a:hover,
.nav-list a:focus-visible {
    color: #2563eb;
    background-color: #f0f8ff;
    outline: none;
}

.nav-list a.active {
    color: #2563eb;
    font-weight: 600;
}

.contact-info {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    padding: 0.5rem;
}

.phone-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone-link:hover,
.phone-link:focus-visible {
    color: #2563eb;
    outline: none;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .nav-list a {
        transition: none;
    }
}

@media (max-width: 480px) {
    .main-nav{
        display: none;
    }
/* Mobile Sidebar Container */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

.mobile-sidebar[aria-hidden="false"] {
    transform: translateX(-100%);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: flex-end;
}

.close-sidebar {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #666;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.close-sidebar:hover {
    color: #2563eb;
}

/* Mobile Search */
.search-container-mobile {
    margin-top: 1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 1rem;
}

#mobile-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: none !important;
    outline: none !important;
    border-radius: 8px;
    font-size: 1rem;
}

#mobile-search-input:focus {
    outline: 2px solid #2563eb;
    outline-offset: -1px;
}

.search-button {
    background: linear-gradient(to top, var(--brand-purple), var(--brand-blue)) !important;
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: #1d4ed8;
}

/* Shopping Preferences */
.shop-preferences-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.icon-button {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #666;
    position: relative;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.icon-button:hover {
    color: #2563eb;
}

.icon-button i[class*="caret"] {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Mobile Navigation Links */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-list a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-list a.active {
    background: #f0f8ff;
    color: #2563eb;
}

.mobile-nav-list a:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-contact-info i {
    font-size: 1.25rem;
    color: #2563eb;
}

.mobile-contact-info .phone-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

/* Accessibility Enhancements */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-sidebar {
        transition: none;
    }
}
}
@media (max-width: 768px) {
    .main-nav{
        display: none;
        text-decoration: none   ;
    }
    .mobile-links{
        text-align: center;
    }
    .mobile-nav-list a{
        text-decoration: none !important;
    }

/* Mobile Sidebar Container */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

.mobile-sidebar[aria-hidden="false"] {
    transform: translateX(-100%);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: flex-end;
}

.close-sidebar {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #666;
    font-size: 1.5rem;
    transition: color 0.2s ease;
}

.close-sidebar:hover {
    color: #2563eb;
}

/* Mobile Search */
.search-container-mobile {
    margin-top: 1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 1rem;
}

#mobile-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: none !important;
    outline: none !important;
    border-radius: 8px;
    font-size: 1rem;
}

#mobile-search-input:focus {
    outline: 2px solid #2563eb;
    outline-offset: -1px;
}

.search-button {
    background: linear-gradient(to top, var(--brand-purple), var(--brand-blue));
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.search-button:hover {
    background: #1d4ed8;
}

/* Shopping Preferences */
.shop-preferences-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.icon-button {
    background: none;
    border: none;
    padding: 0.5rem;
    color: #666;
    position: relative;
    font-size: 1.25rem;
    transition: color 0.2s ease;
}

.icon-button:hover {
    color: #2563eb;
}

.icon-button i[class*="caret"] {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* Mobile Navigation Links */
.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-list a {
    display: block;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-list a.active {
    background: #f0f8ff;
    color: #2563eb;
}

.mobile-nav-list a:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-contact-info i {
    font-size: 1.25rem;
    color: #2563eb;
}

.mobile-contact-info .phone-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

/* Accessibility Enhancements */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .mobile-sidebar {
        transition: none;
    }
}
}

/* Main Content  */
.hero-container{
    background: linear-gradient(
    to right,
        var(--brand-light-purple),
        var(--brand-light-blue)
    );
}
main{
    margin-top: 30px;
}
.hero-main{
    display: flex;
    justify-content: space-evenly;
}
.hero-main h1{
    padding: 2rem;
    font-weight: 600;
    font-size: 46px;
    color: #1E1E1E;
}
.hero-main p{
    padding: 2rem;
    font-weight: 400;
    font-size: 18px;
    color: #1E1E1E;
}
.hero-search-container {
    flex: 1;
    width: 400px;
    min-width: 200px;
    border-radius: 36px;
    position: relative;
    background: #fff;
    padding: 2rem;
    z-index: 1;  
}
.hero-search-container::before {
    content: "";
    position: absolute;
    top:   50%;
    left:  50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: linear-gradient(
    to top,
        var(--brand-light-purple),
        var(--brand-light-blue)
    );
    filter: blur(20px);
    opacity: 0.6;
    border-radius: inherit;
    z-index: -1;
}

.hero-search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    height: 60px;
}

.hero-search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid #E6E6E6;
    border-radius: 6px;
    padding: 0 1rem;
}

.hero-search-input-group input {
    flex: 1;
    padding: 0.75rem 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.hero-search-button {
    background: linear-gradient(to right, var(--brand-purple), var(--brand-blue));
    color: white;
    border: none;
    border-radius: 14px;
    width: 100px;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.hero-search-button:hover {
    opacity: 0.9;
}

.image-container {
    position: relative;
    display: inline-block;
}
.image-container img.base {
    display: block;
    max-width: 100%;
    height: auto;
}

    /* Top‐right overlay */
.overlay-top {
    position: absolute;
    top: -19px;
    right: -60px; 
    height: auto;
    pointer-events: none;
    }

    /* Bottom‐left overlay */
.overlay-bottom {
    position: absolute;
    bottom: -16px;
    left: -16px;
    height: auto;
    pointer-events: none;
}

@media (max-width: 480px) {
    .hero-main{
        flex-wrap: wrap;
    }
    .overlay-top {
        display: none;
    }

    /* Bottom‐left overlay */
.overlay-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    height: auto;
    pointer-events: none;
}
.hero-search-container {
    flex: 1;
    width: 300px;
    min-width: 200px;
    border-radius: 36px;
    position: relative;
    background: #fff;
    padding: 2rem;
    z-index: 1;  
}
.hero-search-button {
    background: linear-gradient(to right, var(--brand-purple), var(--brand-blue));
    color: white;
    border: none;
    border-radius: 14px;
    width: auto;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.hero-search-input-group {
    flex-wrap: wrap;
}

}
@media (min-width: 768px) {
    .hero-main{
        flex-wrap: wrap;
    }
    .overlay-top {
        position: absolute;
        top: -19px;
        right: -60px; 
        height: auto;
        pointer-events: none;
    }

    /* Bottom‐left overlay */
.overlay-bottom {
    position: absolute;
    bottom: 16px;
    left: 16px;
    height: auto;
    pointer-events: none;
}
.hero-search-container {
    flex: 1;
    width: 400px;
    min-width: 200px;
    border-radius: 36px;
    position: relative;
    background: #fff;
    padding: 2rem;
    z-index: 1;  
}
.hero-search-button {
    background: linear-gradient(to right, var(--brand-purple), var(--brand-blue));
    color: white;
    border: none;
    border-radius: 14px;
    width: 100px;
    height: 40px;
    cursor: pointer;
    transition: opacity 0.2s;
}
}

/*--------------------- Working Section ------------------*/
.graphic img {
    max-width: 100%;
    display: block;
}

/* Section wrapper */
.how-it-works {
    font-family: 'Inter', sans-serif;
    padding: 2rem;
    box-sizing: border-box;
    background: #e0f3ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 100px;
}

/* Left content */
.how-it-works .content {
    flex: 1;
    max-width: 45%;
}
.how-it-works .title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #111;
}

/* Steps list */
.steps {
    list-style: none;
}
.step-item {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.step-item:last-child::before {
    height: calc(1.25rem);
}

/* Marker dot */
.marker {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    margin-right: 1rem;
    margin-top: 0.25rem;
}
.step-item.active .marker {
    background: #1f8efa;
    border-color: #1f8efa;
}

/* Text */
.step-item .text h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.step-item .text p {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Active step styles */
.step-item.active {
    color: #1f8efa;
}
.step-item.active .text h3 {
    font-weight: 600;
}

/* Right graphic */
.how-it-works .graphic {
    flex: 1;
    max-width: 50%;
    text-align: right;
}
.how-it-works .graphic img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsiveness*/
@media (max-width: 768px) {
.how-it-works {
    flex-direction: column;
    padding: 1rem;
}
.how-it-works .content,
.how-it-works .graphic {
    max-width: 100%;
    text-align: center;
}
.how-it-works .graphic {
    margin-top: 2rem;
}

.how-it-works .title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-item {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
/* .step-item::before {
    left: 0.5rem;
} */
.marker {
    width: 10px;
    height: 10px;
    margin-right: 0.75rem;
    margin-top: 0.15rem;
}

.step-item .text h3 {
    font-size: 0.95rem;
}
.step-item .text p {
    font-size: 0.825rem;
    line-height: 1.3;
}
}
/*--------------------- Working Section End ------------------*/

/*--------------------- Categories Section ------------------*/
.categories {
    margin-top: 70px;
    margin-bottom: 90px;
}

.categories-container h2 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
}

.filter-buttons {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 6px;
    background-color: #EEEEEE;
    border-radius: 20px;
    width: max-content;
}

.filter-buttons button {
    padding: 8px 16px;
    border: none;
    background-color: #fff;
    color: #1E1E1E;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.filter-buttons button:hover,
.filter-buttons button.active {
    background-color: #504e4e;
    color: #fff;
}

.products-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-header {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    gap: 0.5rem;
}
.card-header img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.card-header .user-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}
.card-header .user-info .name { font-weight: bold; }
.card-header .user-info .rating {
    color: #f5a623;
    font-size: 0.85rem;
}
.card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: rgb(255, 239, 218);

}
.card-body .have-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6F2DDB;
    font-size: 0.85rem;
}
.card-body h3.title { font-size: 1.1rem; margin-top: 0.25rem; }
.card-body p.desc { font-size: 0.9rem; color: #666; }
.card-body .image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 4px;
}
.card-body .image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-body .image-wrapper .tag {
    position: absolute;
    top: 0.5rem; left: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}
.card-body .image-wrapper .favor {
    position: absolute;
    top: 0.5rem; right: 0.5rem;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.3);
    cursor: pointer;
}
.card-body .time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
}
.card-footer {
    background: #fff;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-have {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #0073FF;
}
.footer-want-text { font-size: 0.9rem; color: #555; padding-left: 1.5rem; }
.footer-button {
    margin-top: 0.5rem;
    align-self: stretch;
    padding: 0.5rem;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


.view-products {
    width: 150px;
    border: 1px solid black;
    text-align: center;
    border-radius: 14px;
    margin: 0 auto;
    height: 30px;
    cursor: pointer;
    margin-top: 20px;
}

.view-products a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 18px;
}


/* Large tablets / small desktops */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Medium tablets */
@media (max-width: 900px) {
    .categories {
        margin-top: 50px;
        margin-bottom: 60px;
    }

    .categories-container h2 {
        font-size: 30px;
    }

    .filter-buttons {
        gap: 6px;
        padding: 4px;
    }
    .filter-buttons button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .card {
        box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    }
    .card-header img.avatar {
        width: 35px;
        height: 35px;
    }
    .card-header .user-info {
        font-size: 0.85rem;
    }
    .card-body h3.title {
        font-size: 1rem;
    }
    .card-body p.desc,
    .card-body .have-label,
    .card-body .time {
        font-size: 0.85rem;
    }
    .card-body {
        padding: 0.5rem;
    }
    .card-footer {
        padding: 0.5rem;
    }
    .footer-have,
    .footer-want-text,
    .footer-button {
        font-size: 0.85rem;
    }
}

/* Slimier phones */
@media (max-width: 600px) {
    .categories {
        margin-top: 40px;
        margin-bottom: 40px;
    }
    .categories-container h2 {
        font-size: 24px;
    }

    .filter-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .filter-buttons button {
        margin-bottom: 4px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .card-header {
        padding: 0.5rem;
        gap: 0.4rem;
    }
    .card-header img.avatar {
        width: 30px;
        height: 30px;
    }

    .card-body {
        gap: 0.4rem;
    }
    .card-body .image-wrapper {
        padding-top: 60%;
    }

    .view-products {
        width: 150px;
        padding: 0 1rem;
        height: auto;
        line-height: 2rem;
        font-size: 1rem;
    }
}


/*--------------------- Categories Section End ------------------*/

/*--------------------- FAQs Section ------------------*/
.faq {
    max-width: 1250px;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
    font-family: sans-serif;
    background-color: #F2F3FF;
}

.faq h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.faq .subtitle {
    color: #555;
    margin-bottom: 2rem;
}

.faq-container {
    margin: 0 auto;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s;
    position: relative;
}

.faq-item:hover,
.faq-item.open {
    transform: translateY(-2px);
    box-shadow:
    0 0 15px rgba(255, 0, 0, 0.3),
    0 0 25px rgba(255, 165, 0, 0.3),
    0 0 35px rgba(255, 255, 0, 0.3),
    0 0 45px rgba(0, 128, 0, 0.3),
    0 0 55px rgba(0, 0, 255, 0.3),
    0 0 65px rgba(75, 0, 130, 0.3),
    0 0 75px rgba(238, 130, 238, 0.3);
}


.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #222;
}


.faq-question .icon {
    font-size: 1.25rem;
    font-weight: bold;
    transition: transform 0.3s;
}


.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
}

.faq-item.open .faq-answer {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    color: #444;
    line-height: 1.5;
}

/*--------------------- FAQs Section End ------------------*/
/*--------------------- Promotion Section ------------------*/
.promotion {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #000;
    color: white;
    padding: 2rem;
}

.promotion-container {
    max-width: 600px;
    margin: auto;
}

.promotion-container h1 {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.highlight {
    display: inline-block;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, #7d2eff, #23c2ff);
    padding: 0.8rem 1.5rem;
    color: white;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    margin-top: 0.3rem;
}

.promotion-container h2 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 0.3rem 0;
}

.promotion-container p {
    font-size: 0.95rem;
    color: #ccc;
    margin: 0;
}


/*--------------------- Promotion Section End ------------------*/

/*--------------------- Footer Section End ------------------*/
:root {
--slate-900: linear-gradient(
    to right,
        var(--brand-light-purple),
        var(--brand-light-blue)
    );
  --slate-300: #add7df;
  --slate-300: #18191a;
}
:root {
    --brand-purple: #CC00FF;
    --brand-blue: #0099FF;
    --brand-light-blue: #00BBFF1A;
    --brand-light-purple: #C44DFF1A;
    --max-width: 1440px;
    --horizontal-padding: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer {
  background: var(--slate-900);
  color: rgb(17, 17, 17);
  padding: 4rem 1rem;
  font-family: sans-serif;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4,1fr); }
}

.footer-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer-text {
  color: var(--slate-300);
  margin-bottom: 1rem;
}
.footer-logo {
  display: block;
  margin-bottom: 1rem;
  max-width: 150px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li {
  margin-bottom: .5rem;
}
.footer a {
  text-decoration: none;
  color: var(--slate-300);
}
.footer a:hover {
  color: white;
}

.footer-socials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}
.footer-socials li {
  display: inline-flex;
}


.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: .875rem;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: var(--slate-300);
}
.footer-legal a:hover {
  color: white;
}