* {
    padding: 0;
    margin: 0;
    font-family: 'Inter';
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 16px;
}
.image-logo{
    width: 30px;
    height: auto;
}
.name-desc{
    display: flex;
    flex-direction: column;
    gap: 0;
}

.name-desc h1{
    font-size: 16px;
    font-weight: 700;
}

.name-desc p {
    font-size: 12px;
    font-weight: 400;
    color: #9D9D9D;
}

.nav-links{
    display: flex;
    height: 19px;
    gap: 32px;
}
.nav-links a{
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #9B9B9B;
    font-size: 14px;
    font-weight: 600;
}

.search-box{
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #F3F3F3;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 10px 13px;
    gap: 5px;
}

.search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    align-items: center;
}

.zoom-icon {
    width: 17px;
    height: auto;
}
.card{
    padding: 20px 30px;
    border: 1px solid #F3F3F3;
    border-radius: 40px;
    transition: all 0.3s ease
}

.card:hover {
    transform: translateY(-14px);
    box-shadow: 0 8px 20px rgba(54, 54, 54, 0.1);
    cursor: pointer;
}

.card-content{
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.card-img{
    width: 112px;
    height: 133px;
    object-fit: contain;
    margin: 0 auto; 
}

.card-title{
    font-size: 14px;
    font-weight: 400;
    flex: 1; 
}

.card-desc{
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.price-section{
    display: flex;
   align-items: center;
   justify-content: space-between;
}

.price-column{
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.price-label{
    font-size: 11px;
    font-weight: 400;
    color: #BDBDBD;
}

.card-price{
    font-size: 14px;
    font-weight: 700;
}

.card-btn{
    width: 32px;
    height: 32px;
    border: 1px solid #F2F2F2;
    border-radius: 8px;
    background-color: #FFFFFF;
    cursor: pointer;
}

.card-btn.active {
    background: linear-gradient(135deg, #89F09C 0%, #3CC755 100%);
    border: none;
}

.card-btn:hover{
    opacity: 0.9;
    box-shadow: 0 2px 8px rgba(60, 199, 85, 0.3);
    transition: all 0.3s ease;
}

.card-btn.active:hover {
    opacity: 0.85;
    box-shadow: 0 4px 12px rgba(60, 199, 85, 0.5);
}

header{
    height: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #EAEAEA;
}

.card-wrapper {
    display: grid; 
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px;
    margin-top: 30px;
}

.title{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.title h1 {
    font-size: 28px;
}
.title-search{
    margin: 30px 20px;
}

.loading-message {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    display: none;
}

.error-message {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #d32f2f;
    display: none;
}

.search-filter{
    display: flex;
    position: relative;
    gap: 5px;
    width: 100%;
}

.cart-sidebar {
    position: fixed;
    right: -385px;
    top: 0;
    width: 385px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

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

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 95%;
    padding: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
}

.sidebar-footer {
    display: none;
    flex-direction: column;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    gap: 15px;
}

.sidebar-footer.show {
    display: flex;
}

.footer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.footer-row .dots {
    flex-grow: 1;
    border-bottom: 1px dotted #ccc;
    height: 0;
}

.footer-row span:last-child {
    min-width: 100px;
    text-align: right;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.checkout-btn {
    background: #9DD458;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(60, 199, 85, 0.3);
}

.checkout-btn:active {
    transform: scale(0.98);
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 15px;
    padding: 40px 20px;
}

.empty-cart-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.empty-cart h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.empty-cart p {
    font-size: 14px;
    color: #999;
    margin: 0;
    line-height: 1.5;
}

.back-btn {
    background:#9DD458;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: 20px;
    width: 100%;
}

.back-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(60, 199, 85, 0.3);
}

.back-btn:active {
    transform: scale(0.98);
}

.cart-item {
    display: flex;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 10px;
    gap: 10px;
}

.cart-item-content {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 80px;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-info h4 {
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.cart-item-qty {
    font-size: 11px;
    color: #999;
    margin: 0;
}

.cart-item-price {
    font-size: 12px;
    font-weight: bold;
    margin: 0;
}

.remove-btn {
    background: none;
    border: 1px solid #ddd;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: #f0f0f0;
    color: #333;
}

@media (min-width: 640px) {
    .card-wrapper{
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 24px;
    }
}

@media (min-width: 768px) {
    .card-wrapper{
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
         padding: 0 30px;
    }
}

@media (min-width: 1024px) {
    .card-wrapper{
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        padding: 0;
    }

    header{
        padding: 44px 45px;
    }

    .image-logo {
        width: 40px;
    }

    .name-desc h1 {
        font-size: 20px;
    }

    .name-desc p {
        font-size: 14px;
    }

    .nav-links a {
        font-size: 14px;
        gap: 10px;
    }

    .title {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .title h1 {
        font-size: 32px;
    }

    .title-search {
        margin: 60px 45px;
    }

    .search-box {
        width: 250px;
        flex: none;
    }

    .search-filter{
        gap: 15px;
        width: auto;
    }
}


.product-details-main {
    margin: 40px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-image {
    width: 300px;
    height: 400px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #3CC755;
    margin: 0;
}

.add-to-cart-btn {
    background: #9DD458;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 199, 85, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}


@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        gap: 30px;
    }

    .product-image {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .product-title {
        font-size: 22px;
    }

    .product-price {
        font-size: 20px;
    }

    .product-details-main {
        margin: 20px 16px;
    }
}