/* SEARCH SUGGESTIONS */

.search-box {
    position: relative;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 280px;
    overflow-y: auto;
}

.search-suggestions.visible {
    display: block;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-type {
    font-size: 12px;
    color: #0E53B5;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 6px;
}

body.dark .home-sticky-search {
    background: #07111f;
}

body.dark .search-box,
body.dark .filter-section,
body.dark .filter-input,
body.dark .currency-box,
body.dark .price-box input,
body.dark .mini-btn,
body.dark .status-buttons button,
body.dark .search-suggestions,
body.dark .premium-card,
body.dark .discount-card,
body.dark .product-card {
    background: #111827;
    color: #edf4ff;
    border-color: #334155;
    box-shadow: none;
}

body.dark .search-box input,
body.dark .search-box i,
body.dark .search-btn,
body.dark .filter-toggle-btn,
body.dark .suggestion-item,
body.dark .suggestion-type,
body.dark .show-btn {
    color: #edf4ff;
}

body.dark .search-box input {
    background: transparent;
}

body.dark .search-btn,
body.dark .filter-toggle-btn,
body.dark .show-btn {
    background: #0E53B5;
}

body.dark .suggestion-item:hover {
    background: #1f2937;
}

body.dark .premium-content h3,
body.dark .premium-content h4,
body.dark .discount-content h3,
body.dark .discount-content p,
body.dark .product-content h3,
body.dark .product-content p,
body.dark .products-header h2,
body.dark .premium-header h2,
body.dark .discount-header h2,
body.dark .announcement-count,
body.dark .more-filter-btn,
body.dark .reset-btn {
    color: #ffffff;
}

body.dark .premium-content p,
body.dark .discount-content p,
body.dark .product-content p,
body.dark .wishlist-content p {
    color: #ffffff;
}

body.dark .product-price {
    color: #0d6efd;
}

body.dark .new-price {
    color: #0d6efd;
}

body.dark .old-price {
    color: #ffffff;
}

.home-sticky-search {
    background: #f5f7fb;
    padding: 0;
    margin: 0;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s;
}

.product-card-link:hover {
    transform: translateY(-4px);
}

/* FILTER SECTION */



.filter-section {
    width: 80%;
    background-color: #F5F7FB;
    padding: 20px;
    border-radius: 0;
    margin: 0 auto;
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.filter-input,
.currency-box,
.year-box select {
    height: 50px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 0 15px;
    background-color: white;
    color: #7c8495;
    font-size: 16px;
    outline: none;
}

.filter-input {
    flex: 1;
    min-width: 180px;
}

.status-buttons {
    display: flex;
    height: 50px;
}

.status-buttons button {
    border: 1px solid #e2e2e2;
    background-color: white;
    padding: 0 25px;
    color: #7c8495;
    font-size: 16px;
    cursor: pointer;
}

.status-buttons button:first-child {
    border-radius: 8px 0 0 8px;
}

.status-buttons button:last-child {
    border-radius: 0 8px 8px 0;
}

.active-btn {
    background-color: #e30613 !important;
    color: white !important;
    border: none !important;
}

.price-box {
    display: flex;
}

.price-box input {
    width: 130px;
    height: 50px;
    border: 1px solid #e2e2e2;
    padding: 0 15px;
    outline: none;
    font-size: 15px;
}

.price-box input:first-child {
    border-radius: 8px 0 0 8px;
}

.price-box input:last-child {
    border-radius: 0 8px 8px 0;
}

.currency-box {
    width: 90px;
}

.mini-btn {
    height: 50px;
    padding: 0 20px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    font-size: 15px;
}

.year-box {
    display: flex;
    gap: 10px;
}

.year-box select {
    width: 130px;
}

.filter-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.announcement-count {
    font-size: 20px;
    color: #222;
}

.announcement-count span {
    color: #e61616;
    font-weight: 500;
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.reset-btn {
    background: none;
    border: none;
    color: #8a90a2;
    font-size: 18px;
    cursor: pointer;
}

.more-filter-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.show-btn {
    height: 55px;
    padding: 0 35px;
    background-color: #062ee3;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}

/* SEARCH BAR */

/* SEARCH WRAPPER */

.filter-section.closed {
    display: none;
}

.search-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

/* FILTER BUTTON */

.filter-toggle-btn {
    width: 60px;
    height: 60px;

    border: none;
    border-radius: 16px;

    background-color: #0E53B5;
    color: white;

    font-size: 24px;
    cursor: pointer;

    transition: 0.3s;

    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-toggle-btn:hover {
    background-color: #083a7a;
    transform: scale(1.05);
}

/* SEARCH BOX */

.search-box {
    width: 650px;
    height: 60px;

    background: white;

    border: 2px solid #0E53B5;
    border-radius: 16px;

    display: flex;
    align-items: center;

    padding: 0 0px 0 20px;
    gap: 15px;

    transition: 0.3s;
}

.search-box:hover {
    border-color: #083a7a;
    box-shadow: 0 0 15px rgba(14, 83, 181, 0.15);
}

.search-box i {
    font-size: 22px;
    color: #0E53B5;
}

.search-box input {
    flex: 1;
    height: 100%;

    border: none;
    outline: none;

    font-size: 17px;
}

/* SEARCH BUTTON */

.search-btn {
    height: 57px;
    padding: 0 25px;

    border: none;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;

    background-color: #0E53B5;
    color: white;

    font-size: 16px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background-color: #083a7a;
}

/* FILTER HIDE */

.filter-section.closed .filter-row,
.filter-section.closed .filter-bottom {
    display: none;
}







/* Kampaniyada olan mehsullar */
/* PREMIUM SECTION */

.premium-section {
    width: 90%;
    margin: 45px auto;
}

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

.premium-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #1d2a3b;
}

.see-all-btn {
    width: 45px;
    height: 45px;
    background-color: #0E53B5;
    color: white;
    text-decoration: none;
    border-radius: 12px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 28px;
    transition: 0.3s;
}

.see-all-btn:hover {
    background-color: #083a7a;
    transform: scale(1.05);
}

/* GRID */

.premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* CARD */

.premium-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #e7e7e7;
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: #0E53B5;
    box-shadow: 0 0 18px rgba(14, 83, 181, 0.18);
}

/* IMAGE */

.premium-image {
    width: 100%;
    height: 220px;
    position: relative;
    background: #f5f5f5;
}

.premium-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

/* HEART */

.wishlist-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;

    width: 38px;
    height: 38px;

    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.wishlist-icon i {
    font-size: 20px;
    color: #7f8a99;
}

.wishlist-icon.wishlist-active i {
    color: #e30613;
}

.wishlist-icon.wishlist-active {
    background: rgba(243, 230, 230, 0.95);
}

/* PREMIUM BADGE */

.premium-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    background: #ff9800;
    border-radius: 10px;

    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-badge i {
    color: white;
    font-size: 18px;
}

/* CONTENT */

.premium-content {
    padding: 15px;
}

.premium-content h3 {
    font-size: 28px;
    color: #1d2a3b;
    font-weight: bold;
    margin-bottom: 6px;
}

.premium-content h4 {
    font-size: 22px;
    color: #222;
    margin-bottom: 8px;
}

.premium-content p {
    color: #707b8c;
    font-size: 17px;
}





/* Endirimde Olan mehsullar */
/* DISCOUNT SECTION */

.discount-section {
    width: 90%;
    margin: 60px auto 0 auto;
}

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

.discount-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #1d2a3b;
}

/* GRID */

.discount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    justify-content: center;
}

/* CARD */

.discount-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #e7e7e7;
    transition: 0.3s;
}

.discount-card:hover {
    transform: translateY(-5px);
    border-color: #0E53B5;
    box-shadow: 0 0 18px rgba(14, 83, 181, 0.18);
}

/* IMAGE */

.discount-image {
    width: 100%;
    height: 220px;
    position: relative;
    background: #f5f5f5;
}

.discount-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

/* DISCOUNT BADGE */

.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;

    background: #e30613;
    color: white;

    padding: 8px 12px;
    border-radius: 10px;

    font-size: 15px;
    font-weight: bold;
}

/* HEART */

.discount-heart {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;

    width: 38px;
    height: 38px;

    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.discount-heart i {
    font-size: 20px;
    color: #7f8a99;
}

.discount-heart.wishlist-active i {
    color: #e30613;
}

.discount-heart.wishlist-active {
    background: rgba(243, 230, 230, 0.95);
}

/* CONTENT */

.discount-content {
    padding: 15px;
}

.prices {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.old-price {
    color: #8c96a5;
    text-decoration: line-through;
    font-size: 18px;
}

.new-price {
    color: #e30613;
    font-size: 26px;
    font-weight: bold;
}

.discount-content h3 {
    color: #1d2a3b;
    font-size: 24px;
    margin-bottom: 8px;
}

.discount-content p {
    color: #707b8c;
    font-size: 17px;
}











/* Productlar */

.products-section {
    width: 100%;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.products-header {
    width: 90%;
    margin-bottom: 18px;
}

.products-header h2 {
    font-size: 22px;
    font-weight: bold;
    color: #1d2a3b;
    margin: 0;
}

.products-grid {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD */
.product-card {
    background: white;
    border: 1px solid #0E53B5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    border-color: #083a7a;
    box-shadow: 0 0 15px rgba(14, 83, 181, 0.25);
}

.product-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

/* IMAGE */
.product-image {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

/* CONTENT */
.product-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #0E53B5;
    margin-bottom: auto;
}

/* FORM */
.add-to-cart-form {
    padding: 0 15px 15px 15px;
    width: 100%;
}

/* BUTTON */
.add-cart-btn {
    width: 100%;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #0E53B5;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
    font-weight: 500;
}

.add-cart-btn:hover {
    background: #0b3f8a;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

/* TABLET */

@media (max-width: 1200px) {

    .premium-grid,
    .discount-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .filter-section {
        width: 92%;
    }

}

/* SMALL TABLET */

@media (max-width: 992px) {

    .premium-grid,
    .discount-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-row {
        flex-direction: column;
    }

    .discount-header h2 {
        font-size: 25px;
        font-weight: bold;
        color: #1d2a3b;
    }

    .filter-input,
    .price-box,
    .price-box input,
    .search-box {
        width: 100%;
        padding: 0 0px 0 20px;
    }

    .bottom-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .premium-header h2,
    .discount-header h2 {
        font-size: 26px;
    }

}

/* MOBILE */

@media (max-width: 768px) {

    .premium-grid,
    .discount-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .discount-header h2 {
        font-size: 20px;
        font-weight: bold;
        color: #1d2a3b;
    }

    .filter-section {
        width: 95%;
        padding: 15px;
    }

    .search-box {
        padding: 0 0px 0 20px;
        width: 100%;
        height: 55px;
    }

    .premium-header,
    .discount-header {
        flex-direction: row;
        align-items: center;
    }

    .premium-header h2{
        
        font-size: 22px;
    }
    
    .discount-header h2 {
        font-size: 19px;
    }

    .premium-content h3,
    .new-price {
        font-size: 22px;
    }

    .premium-content h4,
    .discount-content h3 {
        font-size: 18px;
    }

    .premium-content p,
    .discount-content p {
        font-size: 15px;
    }

    .show-btn {
        width: 100%;
    }

    .bottom-right {
        gap: 10px;
    }

}

/* EXTRA SMALL DEVICES */

@media (max-width: 480px) {

    .search-box {
        padding: 0 50px 0 20px;

    }

    .search-box i {
        font-size: 18px;
    }

    .search-box input {
        font-size: 15px;
    }

    .premium-image,
    .discount-image,
    .product-image {
        height: 200px;
    }

    .premium-content,
    .discount-content,
    .product-content {
        padding: 12px;
    }

    .see-all-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

}

@media (max-width: 768px) {

    .search-wrapper {
        flex-direction: row;
        gap: 8px;
    }

    .filter-toggle-btn {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .search-box {
        padding: 0 50px 0 20px;
        flex: 1;
        width: auto;
        height: 50px;
    }

    .search-btn {
        padding: 0 15px;
        font-size: 13px;
        display: none;
    }

}