
/* =====================================
   DUDAO.MONGOLIA - HAPPY STORE
   MAIN WEBSITE DESIGN
===================================== */

:root {
    --yellow: #ffcf00;
    --yellow-dark: #e7b900;
    --yellow-light: #fff6d6;
    --gold: #c99a00;
    --white: #ffffff;
    --light: #fafafa;
    --gray: #888888;
    --border: #eeeeee;
    --text: #393939;
    --green: #269653;
    --red: #f14e4e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: var(--text);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* =====================================
   1. HEADER
===================================== */

.main-header {
    width: 100%;
    min-height: 85px;
    padding: 12px 3%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.dudao-logo,
.happy-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dudao-logo img {
    width: 190px;
    height: 55px;
    object-fit: contain;
}

.happy-logo img {
    width: 100px;
    height: 40px;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 42px;
    background: #dddddd;
}

/* Search */

.search-box {
    flex: 1;
    max-width: 430px;
    height: 46px;

    display: flex;

    border: 1px solid #ead078;
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
}

.search-box input {
    width: 100%;
    padding: 0 18px;

    border: none;
    outline: none;

    font-size: 14px;
    color: #555555;
}

.search-box button {
    width: 55px;
    flex-shrink: 0;

    border: none;
    background: var(--yellow);

    font-size: 18px;
    transition: 0.2s;
}

.search-box button:hover {
    background: var(--yellow-dark);
}

/* Header actions */

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 14px;
    color: #555555;

    transition: 0.2s;
}

.header-link:hover {
    color: var(--gold);
}

/* =====================================
   2. NAVIGATION
===================================== */

.main-nav {
    min-height: 54px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-around;

    padding: 0 2%;

    background: #ffdf48;
    gap: 10px;

    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav a {
    padding: 17px 10px;

    font-size: 14px;
    font-weight: 600;

    color: #454545;
    white-space: nowrap;

    transition: 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #b88900;
}

.main-nav .all-category {
    background: var(--yellow);
    padding: 17px 22px;
    border-radius: 0 25px 25px 0;
}

/* =====================================
   3. HERO BANNER
===================================== */

.hero-section {
    margin: 22px 2%;
    min-height: 330px;

    padding: 35px 4%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    background: linear-gradient(
        110deg,
        #fff9e3,
        #ffedac,
        #ffe16b
    );

    border-radius: 19px;
    overflow: hidden;
}

.hero-content {
    width: 40%;
    max-width: 480px;
    flex-shrink: 0;
}

.hero-brand {
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 800;
    color: #252525;
    letter-spacing: -1.5px;
}

.hero-brand span {
    color: #d4a400;
}

.hero-content h1 {
    font-size: 22px;
    margin-top: 12px;
    margin-bottom: 14px;
    color: #444444;
}

.hero-content p {
    font-size: 15px;
    color: #777777;
    line-height: 1.8;
    max-width: 420px;
}

.hero-button {
    display: inline-block;

    margin-top: 22px;
    padding: 14px 25px;

    background: var(--yellow);
    color: #333333;

    font-size: 14px;
    font-weight: bold;

    border-radius: 30px;
    transition: 0.25s;
}

.hero-button:hover {
    background: #eebd00;
    transform: translateY(-2px);
}

.hero-visual {
    width: 60%;
    height: 270px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =====================================
   4. CATEGORY SECTION
===================================== */

.category-section {
    margin: 0 2%;
    display: grid;

    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.category-card {
    min-height: 115px;

    padding: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;

    transition: 0.25s;
    cursor: pointer;
}

.category-card:hover {
    border-color: #f0ce47;
    background: #fffaf0;
    transform: translateY(-4px);
}

.category-card img {
    width: 72px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 7px;
}

.category-card span {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* =====================================
   5. FEATURED SECTION
===================================== */

.featured-section {
    margin: 35px 2%;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.small-title {
    color: var(--gold);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title h2 {
    margin-top: 7px;
    font-size: 25px;
    color: #353535;
}

.section-title p {
    margin-top: 7px;
    color: #999999;
    font-size: 13px;
}

.see-all {
    color: #a57d00;
    font-size: 14px;
    font-weight: bold;
}

.see-all:hover {
    color: #d1a000;
}

/* =====================================
   6. SHOP LAYOUT
===================================== */

.shop-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 18px;
    align-items: stretch;
}

/* =====================================
   7. PRODUCT GRID
===================================== */

.product-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    align-items: stretch;
}

.product-card {
    position: relative;

    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 15px;

    padding: 12px;

    display: flex;
    flex-direction: column;

    min-width: 0;

    transition: 0.3s;
}

.product-card:hover {
    border-color: #efd36e;
    box-shadow: 0 8px 24px rgba(180, 150, 40, 0.12);
    transform: translateY(-4px);
}

/* Product image */

.product-image {
    position: relative;

    width: 100%;
    height: 190px;

    background: #fafafa;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.product-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;

    transition: 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* Discount */

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;

    padding: 7px 11px;

    background: var(--red);
    color: #ffffff;

    font-size: 14px;
    font-weight: bold;

    border-radius: 7px;
}

/* Product information */

.product-info {
    padding: 12px 3px 3px;

    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    color: #b78c00;
    font-size: 11px;
    font-weight: bold;
}

.product-info h3 {
    margin-top: 7px;
    margin-bottom: 6px;

    font-size: 15px;
    line-height: 1.5;

    min-height: 44px;
}

.product-description {
    color: #888888;
    font-size: 12px;
    line-height: 1.5;

    min-height: 35px;
}

/* Product specifications */

.product-specs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;
    margin-top: 12px;
    margin-bottom: 10px;
}

.product-specs span {
    background: #fff8df;
    color: #987600;

    padding: 5px 7px;

    border-radius: 5px;

    font-size: 10px;
}

/* Warranty */

.product-warranty {
    padding: 9px 0;

    color: #39915a;
    font-size: 11px;

    border-top: 1px solid #eeeeee;
}

/* Price */

.product-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;
    margin-top: 8px;
}

.product-price strong {
    color: #c49500;
    font-size: 21px;
    font-weight: 800;
}

.product-price del {
    color: #999999;
    font-size: 12px;
}

/* Saving */

.saving-label {
    display: inline-block;
    width: fit-content;

    margin-top: 8px;
    padding: 5px 8px;

    background: #e9f8e9;
    color: #248c45;

    font-size: 10px;
    font-weight: bold;

    border-radius: 6px;
}

/* Product button */

.product-button {
    display: block;
    text-align: center;

    margin-top: auto;
    padding: 11px 5px;
    margin-top: 12px;

    background: var(--yellow);
    color: #333333;

    border-radius: 8px;

    font-size: 12px;
    font-weight: bold;

    transition: 0.2s;
}

.product-button:hover {
    background: #e9b900;
}

.no-products {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: #888888;
}

/* =====================================
   8. PROMOTION SIDEBAR
===================================== */

.promotion-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.promotion-card {
    min-height: 190px;

    padding: 16px;

    background: linear-gradient(
        120deg,
        #fff6d6,
        #ffe48b
    );

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 5px;
    overflow: hidden;
}

.promotion-card div {
    flex: 1;
    min-width: 0;
}

.promotion-card span {
    color: #b18a00;
    font-size: 10px;
    font-weight: bold;
}

.promotion-card h3 {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.4;
}

.promotion-card p {
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}

.promotion-card a {
    display: inline-block;

    margin-top: 12px;
    padding: 8px 12px;

    background: var(--yellow);
    border-radius: 20px;

    font-size: 11px;
    font-weight: bold;
}

.promotion-card img {
    width: 42%;
    height: 125px;
    object-fit: contain;
}

/* =====================================
   9. SERVICE SECTION
===================================== */

.service-section {
    margin: 25px 2%;

    padding: 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 15px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    padding: 5px 12px;

    border-right: 1px solid #eeeeee;
}

.service-item:last-child {
    border-right: none;
}

.service-item > span {
    font-size: 30px;
}

.service-item strong {
    display: block;
    font-size: 13px;
}

.service-item p {
    margin-top: 5px;
    color: #888888;
    font-size: 11px;
}

/* =====================================
   10. FOOTER
===================================== */

.main-footer {
    margin-top: 40px;
    padding: 35px 20px;

    text-align: center;
    background: #fff8e4;

    line-height: 2;
}

.footer-brand {
    color: #333333;
    font-size: 25px;
    font-weight: 800;
}

.footer-brand span {
    color: #d1a000;
}

.main-footer p {
    color: #777777;
    font-size: 13px;
}

.footer-bottom {
    margin-top: 20px;
    padding-top: 15px;

    border-top: 1px solid #f0e7ca;

    color: #999999;
    font-size: 12px;
}

/* =====================================
   11. TABLET RESPONSIVE
===================================== */

@media (max-width: 1200px) {

    .main-header {
        gap: 15px;
    }

    .header-left {
        gap: 12px;
    }

    .dudao-logo img {
        width: 145px;
    }

    .happy-logo img {
        width: 120px;
    }

    .header-actions {
        gap: 12px;
    }

    .shop-layout {
        grid-template-columns: 1fr 230px;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-section {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =====================================
   12. MOBILE RESPONSIVE
===================================== */

@media (max-width: 768px) {

    .main-header {
        padding: 12px 4%;
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-left {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .dudao-logo img {
        width: 140px;
        height: 45px;
    }

    .happy-logo img {
        width: 110px;
        height: 45px;
    }

    .logo-divider {
        height: 30px;
    }

    .search-box {
        max-width: none;
        flex: 1;
    }

    .header-actions {
        gap: 12px;
    }

    .header-link {
        font-size: 12px;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 10px;
        gap: 8px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero-section {
        margin: 15px 3%;
        padding: 25px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        height: 200px;
    }

    .hero-brand {
        font-size: 31px;
    }

    .hero-content h1 {
        font-size: 18px;
    }

    .category-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .category-card {
        min-height: 105px;
    }

    .category-card img {
        width: 60px;
        height: 55px;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .product-image {
        height: 155px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-price strong {
        font-size: 17px;
    }

    .promotion-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .promotion-card {
        min-height: 150px;
        padding: 10px;
    }

    .promotion-card h3 {
        font-size: 13px;
    }

    .service-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .service-item {
        justify-content: flex-start;
        border-right: none;
    }
}

/* =====================================
   13. SMALL MOBILE
===================================== */

@media (max-width: 420px) {

    .header-actions {
        width: 100%;
        justify-content: space-around;
    }

    .category-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-image {
        height: 125px;
    }

    .product-info {
        padding: 9px 2px;
    }

    .product-price {
        gap: 5px;
    }

    .product-price strong {
        font-size: 15px;
    }

    .product-price del {
        font-size: 10px;
    }

    .saving-label {
        font-size: 9px;
    }

    .section-title h2 {
        font-size: 19px;
    }

    .see-all {
        font-size: 11px;
    }

    .promotion-sidebar {
        grid-template-columns: 1fr;
    }

    .service-section {
        grid-template-columns: 1fr;
    }
}
.hero-section {
    width: 96%;
    height: 365px;
    margin: 22px auto;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
}

.hero-section img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin: 22px auto;
    width: 96%;
}

.category-card {
    text-decoration: none;
    color: #222;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 12px;
    background: #fff;
    transition: 0.3s;
}

.category-card img {
    width: 100%;
    height: 115px;
    object-fit: contain;
}

.category-card h4 {
    font-size: 14px;
    margin: 10px 0 4px;
}

.category-card:hover {
    border-color: #ffc900;
    transform: translateY(-4px);
}

/* ================= PRODUCT HORIZONTAL SLIDER ================= */

.featured-section {
    width: 96%;
    margin: 35px auto;
    overflow: hidden;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-title h2 {
    font-size: 27px;
    color: #292929;
    margin-bottom: 7px;
}

.section-title p {
    color: #888;
    font-size: 14px;
}

.see-all {
    color: #b88700;
    text-decoration: none;
    font-weight: 700;
}

/* Хэвтээ гүйлгэх хэсэг */

.product-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px 2px 18px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ffc900 #f1f1f1;
}

.product-slider::-webkit-scrollbar {
    height: 9px;
}

.product-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.product-slider::-webkit-scrollbar-thumb {
    background: #ffc900;
    border-radius: 10px;
}

/* Бүтээгдэхүүний жагсаалт */

.product-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    width: max-content;
}

/* Бүтээгдэхүүний карт */

.product-card {
    flex: 0 0 320px;
    width: 320px;
    min-width: 0;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 19px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #ffca05;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Бүтээгдэхүүний зураг */

.product-image {
    height: 235px;
    width: 100%;
    position: relative;
    background: #fff;
    border-radius: 13px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* Хямдралын тэмдэглэгээ */

.discount-badge {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    background: #ff4b50;
    color: white;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: bold;
}

/* Бүтээгдэхүүний мэдээлэл */

.product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 12px;
}

.product-category {
    color: #bd8b00;
    font-size: 13px;
    font-weight: 700;
}

.product-info h3 {
    font-size: 17px;
    color: #252525;
    margin: 9px 0;
    min-height: 42px;
}

.product-description {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    min-height: 42px;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.product-specs span {
    background: #fff6dc;
    color: #a77a00;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 12px;
}

.product-warranty {
    border-top: 1px solid #eee;
    padding-top: 12px;
    color: #27945a;
    font-size: 13px;
    margin-bottom: 15px;
}

/* Үнэ */

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.product-price strong {
    color: #c59400;
    font-size: 25px;
    font-weight: 800;
}

.product-price del {
    color: #999;
    font-size: 13px;
}

.saving-label {
    display: inline-block;
    align-self: flex-start;
    background: #e9f7e9;
    color: #26934e;
    border-radius: 7px;
    padding: 6px 9px;
    font-size: 12px;
    margin-bottom: 14px;
}

/* Дэлгэрэнгүй товч */

.product-button {
    margin-top: auto;
    display: block;
    text-align: center;
    text-decoration: none;
    background: #ffca05;
    color: #222;
    padding: 13px 10px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.25s;
}

.product-button:hover {
    background: #edb900;
}

.no-products {
    padding: 30px;
    color: #888;
}

/* Утасны дэлгэц */

@media (max-width: 600px) {
    .product-card {
        flex-basis: 270px;
        width: 270px;
    }

    .product-image {
        height: 200px;
    }

    .section-title h2 {
        font-size: 21px;
    }
}
/* Нүүр хуудасны цэвэрхэн бүтээгдэхүүний карт */

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 14px;
    overflow: hidden;
}

.product-image {
    height: 250px;
    width: 100%;
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.product-info h3 {
    font-size: 17px;
    min-height: 42px;
    margin: 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.product-button {
    margin-top: auto;
}

/* ===== БҮТЭЭГДЭХҮҮНИЙГ ХЭВТЭЭ ГҮЙЛГЭХ ===== */

.product-slider {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #ffca05 #eeeeee;
    box-sizing: border-box;
}

.product-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    gap: 18px;
}

.product-card {
    flex: 0 0 340px !important;
    width: 340px;
    min-width: 340px;
    box-sizing: border-box;
}

/* Scrollbar загвар */

.product-slider::-webkit-scrollbar {
    height: 9px;
}

.product-slider::-webkit-scrollbar-track {
    background: #eeeeee;
    border-radius: 10px;
}

.product-slider::-webkit-scrollbar-thumb {
    background: #ffca05;
    border-radius: 10px;
}

.product-slider::-webkit-scrollbar-thumb:hover {
    background: #e5ad00;
}

/* Гар утасны тохиргоо */

@media (max-width: 600px) {
    .product-card {
        flex: 0 0 270px !important;
        width: 270px;
        min-width: 270px;
    }
}

/* ==================================
   DUDAO PRODUCT CAROUSEL
================================== */

.product-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
}

.product-slider {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.product-slider::-webkit-scrollbar {
    display: none;
}

.product-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
    gap: 18px;
}

.product-card {
    flex: 0 0 340px !important;
    min-width: 340px;
    scroll-snap-align: start;
}

.slider-arrow {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: 1px solid #eeeeee;
    border-radius: 50%;
    background: #ffffff;
    color: #bd9000;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: all 0.25s ease;
    z-index: 2;
}

.slider-arrow:hover {
    background: #ffca05;
    color: #222222;
    transform: scale(1.08);
}

.product-image img {
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {

    .product-card {
        flex: 0 0 270px !important;
        min-width: 270px;
    }

    .slider-arrow {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .product-carousel {
        gap: 6px;
    }

}

/* =================================
   NEW PRODUCTS SECTION
================================= */

.new-products-section {
    margin-top: 45px;
    margin-bottom: 45px;
}

/* Шинэ барааны зураг */

.new-products-section .product-image {
    position: relative;
}

/* NEW тэмдэглэгээ */

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 5;

    background: #ffc900;
    color: #222;

    padding: 9px 15px;
    border-radius: 9px;

    font-size: 14px;
    font-weight: bold;
}

/* Шинэ барааны карт */

.new-products-section .product-card {
    transition: transform 0.3s ease;
}

.new-products-section .product-card:hover {
    transform: translateY(-5px);
}

/* Шинэ бүтээгдэхүүний сум */

.new-products-section .slider-arrow {
    z-index: 10;
    cursor: pointer;
}

/* Утасны дэлгэц */

@media (max-width: 768px) {

    .new-products-section {
        margin-top: 30px;
    }

}
.wholesale-price {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
    margin-bottom: 8px;
}

.wholesale-price strong {
    color: #b38a00;
    font-weight: 700;
}

/* Бүтээгдэхүүний нэр ба бөөний үнийн зай */
.product-info h3 {
    margin-bottom: 5px !important;
    line-height: 1.3;
}

/* Бөөний үнэ */
.wholesale-price {
    margin-top: 3px !important;
    margin-bottom: 8px !important;
    line-height: 1.3;
    font-size: 13px;
}

/* Нэр болон бөөний үнийн зайг хамгийн бага болгох */
.product-info h3 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
}

/* Бөөний үнэ */
.product-info .wholesale-price {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
    font-size: 12px !important;
}

/* Үндсэн үнийг ойртуулах */
.product-info .product-price {
    margin-top: 2px !important;
}

/* Барааны нэр, бөөний үнэ, үндсэн үнийг маш ойртуулах */
.product-info {
    gap: 0 !important;
    padding-top: 5px !important;
}

.product-info h3 {
    min-height: unset !important;
    height: auto !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

.product-info .wholesale-price {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    font-size: 11px !important;
}

.product-info .product-price {
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
}

/* Бөөний үнийг бага зэрэг доошлуулах */
.product-info .wholesale-price {
    margin-top: 5px !important;
    margin-bottom: 2px !important;
    line-height: 1.3 !important;
}

/* =================================
   NAVIGATION ACTIVE болон SCROLL
================================= */

/* Хэсэг рүү гүйлгэхэд гарчиг дарагдахгүй */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

#categories,
#new-products,
#sale-products {
    scroll-margin-top: 90px;
}

/* Дээд навигацийн цэс */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Цэсний үндсэн өнгө */
.main-nav a {
    color: #292929;
    background: transparent;
    transition: all 0.25s ease;
}

/* Сонгогдсон цэс */
.main-nav a.active {
    background: #ffdf35 !important;
    color: #a87900 !important;
    font-weight: 700;
    border-radius: 6px;
}

/* Mouse очиход */
.main-nav a:hover {
    background: #fff0a0;
    color: #a87900;
}

/* Ангиллын карт дарагддаг болгох */
.category-card {
    display: flex;
    text-decoration: none;
    color: #222;
    cursor: pointer;
}

/* Хулгана хүрэхэд */
.category-card:hover {
    border-color: #ffcc00;
    background: #fffaf0;
    transform: translateY(-3px);
    transition: 0.2s ease;
}

/* Ангиллын нэр */
.category-card span {
    color: #222;
    text-decoration: none;
}

/* Хайлтын үр дүн */
.search-empty-message {
    width: 100%;
    text-align: center;
    padding: 30px 15px 20px;
    grid-column: 1 / -1;
}

.search-empty-icon {
    font-size: 45px;
    margin-bottom: 10px;
}

.search-empty-message h2 {
    font-size: 24px;
    color: #292929;
    margin: 10px 0;
}

.search-empty-message p {
    color: #888;
    font-size: 15px;
    margin-bottom: 30px;
}

.search-empty-message h3 {
    text-align: left;
    font-size: 21px;
    margin: 20px 0;
    color: #292929;
}

.search-result-message {
    grid-column: 1 / -1;
    padding: 15px 5px;
    color: #666;
}

/* Хайлтын талбар */
.search-box input {
    outline: none;
}

.search-box button {
    cursor: pointer;
}

/* =================================
   CATEGORY HORIZONTAL CAROUSEL
================================= */

.category-carousel {
    position: relative;
    width: 100%;
    padding: 10px 58px;
    margin: 15px 0 30px;
    box-sizing: border-box;
}

.category-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-track::-webkit-scrollbar {
    display: none;
}

.category-carousel .category-card {
    flex: 0 0 calc((100% - 84px) / 7);
    min-width: 150px;
    height: 175px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 18px;

    text-decoration: none;
    color: #222;
    scroll-snap-align: start;

    transition: 0.25s;
}

.category-carousel .category-card:hover {
    border-color: #ffca05;
    background: #fffdf4;
    transform: translateY(-3px);
}

.category-carousel .category-card img {
    width: 100px;
    height: 115px;
    object-fit: contain;
    margin-bottom: 8px;
}

.category-carousel .category-card span {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.category-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: #fff;
    color: #bd9500;

    font-size: 20px;
    cursor: pointer;

    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    z-index: 10;
}

.category-arrow:hover {
    background: #ffca05;
    color: #222;
}

.category-arrow.left {
    left: 5px;
}

.category-arrow.right {
    right: 5px;
}

@media (max-width: 768px) {
    .category-carousel {
        padding: 10px 42px;
    }

    .category-carousel .category-card {
        flex: 0 0 145px;
        min-width: 145px;
        height: 155px;
    }

    .category-carousel .category-card img {
        width: 90px;
        height: 100px;
    }

    .category-arrow {
        width: 35px;
        height: 35px;
    }
}

/* НУУЦ АДМИН НЭВТРЭХ ЛИНК */

.admin-hidden-link {
    color: #999;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.admin-hidden-link:hover {
    color: #bd9500;
}
